summaryrefslogtreecommitdiff
path: root/libavcodec/adpcmenc.c
Commit message (Collapse)AuthorAge
* 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.