summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* binkaudio: perform band table scaling in decode_initPeter Ross2011-02-25
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* bink: use LOCAL_ALIGNED for aligned stack dataMans Rullgard2011-02-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dxva2: define required feature selection macrosKyle2011-02-25
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: use EXT_AUDIO_ID field to determine core extensionsAnssi Hannula2011-02-24
| | | | | | | | | This avoids the core substream extensions scan when the EXT_AUDIO_ID field indicates no extensions or only unsupported extensions. The scan is done only if the value of EXT_AUDIO_ID is unknown or indicates a present XCh extension which we can decode. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vmdaudio: output 8-bit audio as AV_SAMPLE_FMT_U8.Justin Ruggles2011-02-23
| | | | | | There is no need to expand to 16-bits. Just use memcpy() to copy the raw data. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove unnecessary fields from VmdAudioContext and use the ↵Justin Ruggles2011-02-23
| | | | | | corresponding AVCodecContext fields instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: add out_bps to VmdAudioContext and use it to replace hard-coded ↵Justin Ruggles2011-02-23
| | | | | | sample size. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify vmdaudio_decode_frame() by handling block_type first, ↵Justin Ruggles2011-02-23
| | | | | | | | then making a single call to vmdaudio_loadsound(). This also adds output buffer size checks for AUDIO and SILENCE block types. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: move all silence chunk handling to vmdaudio_loadsound().Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: remove debugging cruftJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cosmetics: reindent after previous commitJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: simplify buffer pointer and header size handling.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: set *data_size to zero when skipping small packets and add a ↵Justin Ruggles2011-02-23
| | | | | | warning log message. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: validate block typeJustin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: use macros and a local variable for block type.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: correct the silent chunk count in the first block.Justin Ruggles2011-02-23
| | | | | | | This fixes A/V sync with several samples, notably: http://samples.mplayerhq.hu/game-formats/sierra-vmd/swat_*.vmd Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: output audio samples for standalone silent blocks.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: remove duplicated code by merging mono and stereo decoding.Justin Ruggles2011-02-23
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vmdaudio: fix raw_block_size calculation.Justin Ruggles2011-02-23
| | | | | | The size should depend on the output sample size, not the internal bit depth. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacdec: Reduce the size of buf_mdct.Young Han Lee2011-02-21
| | | | | It was doubled in size for the LTP implementation. This brings it back down to its original size.
* vp8: ppc: fix invalid reads in altivec epel mcMans Rullgard2011-02-21
| | | | | | | The 4-tap filters should only access one row/column before the reference block. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ppc: fix vc1 inverse transform, unbreak buildMans Rullgard2011-02-21
| | | | | | | | GCC 4.3 and later are more particular about signedness matching in vector operations. The operations under if(rangered) were missing assignments and thus had no effect. Signed-off-by: Mans Rullgard <mans@mansr.com>
* targa: prevent integer overflow in bufsize check.Ronald S. Bultje2011-02-21
|
* VC1: merge idct8x8, coeff adjustments and put_pixels.Ronald S. Bultje2011-02-21
| | | | | Merging these functions allows merging some loops, which makes the results (particularly after SIMD optimizations) much faster.
* dsputil: make {add/put/put_signed}_pixels_clamped() non-static.Ronald S. Bultje2011-02-21
|
* VC1: inline vc1_put_block() in vc1_decode_i_blocks().Ronald S. Bultje2011-02-21
| | | | | | Advantage is that it allows us to combine several loops into a single one, and these can eventually be merged into the IDCT itself. Also, it allows us to remove vc1_put_block(), and makes CODEC_FLAG_GRAY faster.
* amrnb: use correct size when copying lsf_r arrayMans Rullgard2011-02-20
| | | | | | lsf_r is an array of int16_t, not float. Signed-off-by: Mans Rullgard <mans@mansr.com>
* VC1: don't use vc1_put_block() in vc1_decode_i_blocks_adv().Ronald S. Bultje2011-02-20
| | | | | | | | Advanced profile never uses "range reduction", so vc1_put_block() quite literally just calls put_pixels_clamped() from vc1_decode_i_blocks_adv(). By inlining the function, we can prevent calling IDCT8x8 if CODEC_FLAG_GRAY is set, and we don't have to scale the coeffs in the [0,256] range, but can instead use put_signed_pixels_clamped().
* dsputil_mmx.c: remove ff_vector128.Ronald S. Bultje2011-02-19
| | | | Remove ff_vector128, it is identical to ff_pb_80.
* Fix invalid reads in VC1 decoderReimar Döffinger2011-02-19
| | | | Patch discussed and taken from https://roundup.ffmpeg.org/issue2584
* Fix VP3 edge emulationDavid Conrad2011-02-19
| | | | | | With negative stride, the start of the edge_emu buffer should be pointing to the last line, not the end of the buffer. With positive stride, pointing to the end of the buffer was completely wrong.
* aacdec: dsputilize the scalar multiplication in intensity stereoYoung Han Lee2011-02-19
|
* VP3: fix decoding of videos with stride > 2048Jason Garrett-Glaser2011-02-18
| | | | | Also remove qscale_table code; this didn't make sense anyways as VP3 doesn't use an MPEG-like quantizer scale.
* targa: fix potential buffer overreadsJean-Daniel Dupas2011-02-18
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix PPC build.Ronald S. Bultje2011-02-17
|
* VP8: init one less near_mvJason Garrett-Glaser2011-02-17
| | | | This one didn't actually need to be initialized.
* VP8: split out declarations to new headerJason Garrett-Glaser2011-02-17
|
* VP8: faster MV clippingJason Garrett-Glaser2011-02-17
|
* dsputil: move VC1-specific stuff into VC1DSPContext.Ronald S. Bultje2011-02-17
|
* VC1: simplify a calculation in a loop.Ronald S. Bultje2011-02-17
|
* VC1: transpose IDCT 8x8 coeffs while reading.Ronald S. Bultje2011-02-17
|
* mdct: remove unnecessary multiplicationYoung Han Lee2011-02-17
| | | | 3*n4 was already calculated in n3.
* ac3enc: fix bug in stereo rematrixing decision.Justin Ruggles2011-02-16
| | | | | | | The rematrixing strategy reuse flags are not reset between frames, so they need to be initialized for all blocks, not just block 0. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vbv_delay AVOption for ABI compatibilityMichael Niedermayer2011-02-16
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Set maximum lowres value for the MJPEG decoder to 3.Carl Eugen Hoyos2011-02-16
| | | | | | | While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* ac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().Justin Ruggles2011-02-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Document audio_resample_close().Stefano Sabatini2011-02-16
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Apply minor cosmetics fixes to the av_audio_resample_init() doxy.Stefano Sabatini2011-02-16
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* ac3enc: change default floor code to 7.Justin Ruggles2011-02-15
| | | | | | | This is to match the value in every (E-)AC-3 file from commercial sources. It has a negligible effect on audio quality. Signed-off-by: Mans Rullgard <mans@mansr.com>