summaryrefslogtreecommitdiff
path: root/libavcodec/adpcm.c
Commit message (Collapse)AuthorAge
* adpcm: Skip samples whose ssd calculation has wrapped aroundMartin Storsjö2010-12-01
| | | | | | | | | | | | | | | Wraparound in ssd is mainly avoided by subtracting the ssd of the best node from all the others once it has grown large enough. If using very large trellis sizes (e.g. -trellis 15), the frontier is so large that the difference between the best and the worst is large enough to cause wraparound, even if the ssd of the best one is subtracted regularly. When using -trellis 10 on a 30 second sample, this causes only a slight slowdown, from 61 to 64 seconds. Originally committed as revision 25858 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Fix a comment in the trellis heap codeMartin Storsjö2010-11-20
| | | | | | This makes the wording consistent with how people usually talk about heaps. Originally committed as revision 25775 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Only increment heap_pos after finding a good enough sampleMartin Storsjö2010-11-19
| | | | | | | This increases the PSNR slightly (about 0.1 dB) for trellis sizes below 8, and gives equal PSNR for sizes above that. Originally committed as revision 25769 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Use a hash table to improve checking for duplicate samplesMartin Storsjö2010-11-19
| | | | | | | | | This lowers the run time from 158 to 21 seconds, for -trellis 8 with a 30 second sample on my machine. This requires 64 KB additional memory. Originally committed as revision 25768 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Fix a commentMartin Storsjö2010-11-14
| | | | Originally committed as revision 25751 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Replace any of the leaf nodes in the heapMartin Storsjö2010-11-12
| | | | | | | | | | | By not looking for the exactly largest node, we avoid an O(n) seek through the leaf nodes. Just pick one (not the same one every time) and try replacing that node with the new one. For -trellis 8, this lowers the run time from 190 to 158 seconds, for a 30 second 44 kHz mono sample, on my machine. Originally committed as revision 25733 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2010-11-12
| | | | Originally committed as revision 25732 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: Store the trellis nodes in a heap instead of a sorted arrayMartin Storsjö2010-11-12
| | | | | | | | | | This avoids having to memmove the large parts of the array when inserting into it. For -trellis 8, this lowers the run time from 245 seconds to 190 seconds, for a 30 second 44 kHz mono sample, on my machine. Originally committed as revision 25731 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Flush the PutBitsContext at the end of each block when encoding ADPCM IMA QTMartin Storsjö2010-08-26
| | | | Originally committed as revision 24938 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Only 4-bit ADPCM IMA WAV files are supported.Carl Eugen Hoyos2010-07-25
| | | | Originally committed as revision 24493 to svn://svn.ffmpeg.org/ffmpeg/trunk
* adpcm: convert VLAs to malloc/freeMåns Rullgård2010-06-27
| | | | Originally committed as revision 23819 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Revert Revision: 21362Michael Niedermayer2010-01-27
| | | | | | | | | | | | Log: Set CODEC_CAP_SUBFRAMES for adpcm decoders This makes ffmpeg stop printing millions of Multiple frames in a packet from stream 0 when decoding adpcm. Reason: adpcm has no subframes, the flag does not belong there Originally committed as revision 21481 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set CODEC_CAP_SUBFRAMES for adpcm decodersMåns Rullgård2010-01-21
| | | | | | | | This makes ffmpeg stop printing millions of Multiple frames in a packet from stream 0 when decoding adpcm. Originally committed as revision 21362 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Build extradata in adpcm_ms encoder.Daniel Verkamp2009-10-22
| | | | | | This fixes issue #1244. Originally committed as revision 20349 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Indicate that AdaptCoeff1 and 2 are functions of the actual coefficients.Daniel Verkamp2009-10-22
| | | | Originally committed as revision 20345 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make sample_fmts and channel_layouts compound literals const to reduce size ofReimar Döffinger2009-09-06
| | | | | | .data section. Originally committed as revision 19787 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ADPCM: remove unreachable break statement after returnMåns Rullgård2009-07-01
| | | | Originally committed as revision 19312 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix indentation after last commit.Carl Eugen Hoyos2009-06-20
| | | | Originally committed as revision 19238 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix yamaha adpcm stereo (issue 1117).Yoshihisa Uchida2009-06-20
| | | | | | Patch by Yoshihisa Uchida, yoshihisa D uchida A gmail Originally committed as revision 19237 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check if there is enough bytes before reading the buffer in the EA ADPCMVitor Sessak2009-04-27
| | | | | | decoder. Fix issue 990. Originally committed as revision 18707 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Skip 0x0000 frame footer in EA ADPCM decoder.Vitor Sessak2009-04-27
| | | | Originally committed as revision 18706 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-13
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split bitstream.h, put the bitstream writer stuff in the new fileStefano Sabatini2009-04-12
| | | | | | put_bits.h. Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-07
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Reformat long_names so that "ADPCM" comes first.Diego Biurrun2009-03-02
| | | | Originally committed as revision 17720 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change a bunch of codec long_names to be more consistent and descriptive.Diego Biurrun2009-03-02
| | | | Originally committed as revision 17716 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing av_cold in static init/close functions.Daniel Verkamp2009-02-22
| | | | | | Patch by Daniel Verkamp daniel at drv dot nu. Originally committed as revision 17526 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check validity of pointer srcCStefan Gehrer2009-02-03
| | | | Originally committed as revision 16973 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-01
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove duplicate tablesStefan Gehrer2009-01-30
| | | | Originally committed as revision 16866 to svn://svn.ffmpeg.org/ffmpeg/trunk
* avoid indeterminate order of accessing srcStefan Gehrer2009-01-30
| | | | Originally committed as revision 16855 to svn://svn.ffmpeg.org/ffmpeg/trunk
* added demuxer for FunCom ISS audio files,Stefan Gehrer2009-01-17
| | | | | | extended ADPCM decoder by ISS specific IMA variant Originally committed as revision 16658 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Modify all codecs to report their supported input and output sample format(s).Peter Ross2008-07-31
| | | | Originally committed as revision 14482 to svn://svn.ffmpeg.org/ffmpeg/trunk
* bitstream: move put_sbits() from flacenc.c to bitstream.h and use itRamiro Polla2008-07-13
| | | | | | throughout libavcodec. Originally committed as revision 14204 to svn://svn.ffmpeg.org/ffmpeg/trunk
* clip MS ADPCM predictor range to correct [0..6] range, not [0..7]Reimar Döffinger2008-07-13
| | | | Originally committed as revision 14203 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use bytestream and AV_RL* functions in ADPCM code where possibleReimar Döffinger2008-07-13
| | | | Originally committed as revision 14202 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix MS ADPCM de- and encoding: first and second sample are swapped.Reimar Döffinger2008-07-13
| | | | | | Noticeable better decoding of e.g. http://samples.mplayerhq.hu/A-codecs/msadpcm-stereo/dance-b5th.asf Originally committed as revision 14201 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 100l, fix MS ADPCM decoding for e.g. ↵Reimar Döffinger2008-07-12
| | | | | | | | http://samples.mplayerhq.hu/mov/qtaudio/surge-2-16-L-ms02.mov First coefficient array must be unsigned to fit in 8 bits Originally committed as revision 14175 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l, forgot to replace a / 256 for r14173.Reimar Döffinger2008-07-12
| | | | | | Fixes MS ADPCM regression test. Originally committed as revision 14174 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change MS ADPCM table so they fit into int8_t and change array type.Reimar Döffinger2008-07-11
| | | | Originally committed as revision 14173 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a note to remind people that new PCM/ADPCM formats need to be added toDiego Biurrun2008-07-05
| | | | | | the Makefile as well to allow proper selective compilation. Originally committed as revision 14072 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini2008-06-12
| | | | Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prevent 128*1<<trellis from becoming 0 and creating 0 sized arrays.Michael Niedermayer2008-05-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes CID84 RUN2 CID85 RUN2 CID86 RUN2 CID87 RUN2 CID88 RUN2 CID89 RUN2 CID90 RUN2 CID91 RUN2 CID92 RUN2 CID93 RUN2 CID94 RUN2 CID95 RUN2 CID96 RUN2 CID97 RUN2 CID98 RUN2 CID99 RUN2 CID100 RUN2 CID101 RUN2 CID102 RUN2 CID103 RUN2 CID104 RUN2 CID105 RUN2 CID106 RUN2 Originally committed as revision 13495 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Fix typos in ADPCM codec long names.Diego Biurrun2008-05-15
| | | | Originally committed as revision 13173 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ADPCM codec long names by Stefano Sabatini, stefano.sabatini-lala poste itDiego Biurrun2008-05-15
| | | | Originally committed as revision 13157 to svn://svn.ffmpeg.org/ffmpeg/trunk
* identationBaptiste Coudurier2008-04-25
| | | | Originally committed as revision 12969 to svn://svn.ffmpeg.org/ffmpeg/trunk