summaryrefslogtreecommitdiff
path: root/libavcodec/adpcmenc.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Remove unnecessary get_bits.h #includes and add missing headers where needed.Alexandra Hájková2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* adpcm: Write the proper predictor in trellis mode in IMA QTMartin Storsjö2014-06-10
| | | | | | | | | | | | | | | | | The actual predictor value, set by the trellis code, never was written back into the variable that was written into the block header. This was accidentally removed in b304244b. This significantly improves the audio quality of the trellis case, which was plain broken since b304244b. Encoding IMA QT with trellis still actually gives a slightly worse quality than without trellis, since the trellis encoder doesn't use the exact same way of rounding as in adpcm_ima_qt_compress_sample and adpcm_ima_qt_expand_nibble. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* adpcm: Avoid reading out of bounds in the IMA QT trellis encoderMartin Storsjö2014-06-06
| | | | | | | | | | | This was broken in 095be4fb - samples+ch (for the previous non-planar case) equals &samples_p[ch][0]. The confusion probably stemmed from the IMA WAV case where it originally was &samples[avctx->channels + ch], which was correctly changed into &samples_p[ch][1]. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* Move misplaced file author information where it belongsDiego Biurrun2013-04-11
|
* lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruftAnton Khirnov2013-03-09
|
* adpcmenc: ensure calls to adpcm_ima_compress_sample() are in the right orderJustin Ruggles2012-10-07
| | | | Should fix fate-acodec-adpcm-ima_wav with several compilers.
* adpcmenc: use planar sample format for adpcm_ima_wav and adpcm_ima_qtJustin Ruggles2012-10-06
|
* adpcmenc: move 'ch' variable to higher scopeJustin Ruggles2012-10-06
| | | | It is used for multiple codecs.
* adpcmenc: fix 3 instances of variable shadowingJustin Ruggles2012-10-06
|
* adpcm_ima_wav: simplify encodingJustin Ruggles2012-10-06
|
* adpcmenc: Calculate the IMA_QT predictor without overflowMichael Niedermayer2012-09-04
| | | | | | | | | | | | | | Previously, the value given to put_bits was 10 bits long for positive predictors, even though 9 bits were to be written. The extra bit could in some cases overwrite existing bits in the bitstream writer cache. This fixes a failed assert in put_bits.h, when running a version built with -DDEBUG. The fate test result gets slightly improved, thanks to getting rid of the overwritten bits in the bitstream writer cache. Signed-off-by: Martin Storsjö <martin@martin.st>
* adpcm_swf: Use correct sample offsets when using trellis.Justin Ruggles2012-08-22
| | | | Fixes invalid reads when encoding mono streams when trellis is used.
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* adpcm: don't duplicate identical AVSampleFmt array for each encoder.Ronald S. Bultje2012-07-21
|
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* adpcmenc: update to AVCodec.encode2()Justin Ruggles2012-03-20
|
* adpcmenc: Use correct frame_size for Yamaha ADPCM.Justin Ruggles2012-02-20
| | | | | | | | | | | Output packet size should match avctx->block_align. The target output packet size is 1024 bytes. Before: mono - 1024 samples -> 512 bytes stereo - 2048 samples -> 2048 bytes After: mono - 2048 samples -> 1024 bytes stereo - 1024 samples -> 1024 bytes
* adpcmenc: remove some unneeded castsJustin Ruggles2012-01-30
|
* adpcmenc: use int16_t and uint8_t instead of short and unsigned char.Justin Ruggles2012-01-30
|
* adpcmenc: fix adpcm_ms extradata allocationJustin Ruggles2012-01-30
| | | | | | Add FF_INPUT_BUFFER_PADDING_SIZE. If allocation fails, also free memory which was allocated previously in adpcm_encode_init().
* adpcmenc: return proper AVERROR codes instead of -1Justin Ruggles2012-01-30
|
* adpcmenc: check for coded_frame allocation failureJustin Ruggles2012-01-30
|
* adpcmenc: Do not set coded_frame->key_frame.Justin Ruggles2012-01-30
| | | | It is already set in avcodec_alloc_frame().
* adpcmenc: cosmetics: pretty-printingChris Berov2011-12-04
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* adpcm: update reference linksJustin Ruggles2011-09-29
| | | | | | | | Add Multimedia Wiki link. Mark dead links with [dead]. Some can still be accessed through archive.org. Update URLs for pages which have moved. Replace duplicated links in adpcmenc.c with a note to see the ADPCM decoder reference documents.
* Use explicit struct initializers for AVCodec declarations.Diego Biurrun2011-09-24
|
* adpcmenc: Set bits_per_coded_sampleJustin Ruggles2011-09-23
|
* adpcmenc: fix QT IMA ADPCM encoderBaptiste Coudurier2011-09-23
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* adpcm: split ADPCM encoders and decoders into separate files.Justin Ruggles2011-09-12
Move shared tables to a separate file as well.