summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* aacdec: Reduce the size of buf_mdct.Young Han Lee2011-02-222-9/+12
| | | | | | It was doubled in size for the LTP implementation. This brings it back down to its original size. (cherry picked from commit e22910b21a6c78b0159f98426b10c204f12bc15a)
* vp8: ppc: fix invalid reads in altivec epel mcMans Rullgard2011-02-221-7/+14
| | | | | | | | The 4-tap filters should only access one row/column before the reference block. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit e0e46cae377347cbe1cd27c0d85568921b12c2ad)
* ppc: fix vc1 inverse transform, unbreak buildMans Rullgard2011-02-221-17/+17
| | | | | | | | | 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> (cherry picked from commit 381efba0ecedd41575f99ba9e9bd3826551079f6)
* targa: prevent integer overflow in bufsize check.Ronald S. Bultje2011-02-221-1/+1
| | | | (cherry picked from commit 78e2380a6d09e7a8b2a74d090abfb0a922e046f6)
* VC1: merge idct8x8, coeff adjustments and put_pixels.Ronald S. Bultje2011-02-225-40/+170
| | | | | | Merging these functions allows merging some loops, which makes the results (particularly after SIMD optimizations) much faster. (cherry picked from commit f8bed30d8b176fa030f6737765338bb4a2bcabc9)
* dsputil: make {add/put/put_signed}_pixels_clamped() non-static.Ronald S. Bultje2011-02-222-14/+18
| | | | (cherry picked from commit 484a337cd7cd8bb180c4a1bd3321881f1c874a92)
* VC1: inline vc1_put_block() in vc1_decode_i_blocks().Ronald S. Bultje2011-02-221-35/+13
| | | | | | | 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. (cherry picked from commit bbfd2e7ab4e2ae0b934657fe51afdbbbaead52b7)
* amrnb: use correct size when copying lsf_r arrayMans Rullgard2011-02-221-1/+1
| | | | | | | lsf_r is an array of int16_t, not float. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 1efa772e20be5869817b2370a557bb14e7ce2fff)
* VC1: don't use vc1_put_block() in vc1_decode_i_blocks_adv().Ronald S. Bultje2011-02-201-3/+11
| | | | | | | | | 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(). (cherry picked from commit 70aa916e4630bcec14439a2d703074b6d4c890a8)
* dsputil_mmx.c: remove ff_vector128.Ronald S. Bultje2011-02-201-4/+1
| | | | | Remove ff_vector128, it is identical to ff_pb_80. (cherry picked from commit bf6fa732459399fac215bdfa44dd39a6fb1d1e01)
* Fix invalid reads in VC1 decoderReimar Döffinger2011-02-201-1/+1
| | | | | Patch discussed and taken from https://roundup.ffmpeg.org/issue2584 (cherry picked from commit 2bbec1eda46d907605772a8b6e8263caa4bc4c82)
* Fix VP3 edge emulationDavid Conrad2011-02-201-2/+1
| | | | | | | 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. (cherry picked from commit a89f4ca005efa5ee82089583c7b8bc00bcee816a)
* aacdec: dsputilize the scalar multiplication in intensity stereoYoung Han Lee2011-02-201-5/+7
| | | | (cherry picked from commit 9707f84fa73c23352937fc7e4e0a85eaf3135cbc)
* VP3: fix decoding of videos with stride > 2048Jason Garrett-Glaser2011-02-201-14/+6
| | | | | | Also remove qscale_table code; this didn't make sense anyways as VP3 doesn't use an MPEG-like quantizer scale. (cherry picked from commit 902685b8abf4e2089802528a32a50f3c68033fda)
* targa: fix potential buffer overreadsJean-Daniel Dupas2011-02-181-10/+34
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 351423ae1f861da1c647d30c73503fde2b1f3dad)
* Fix PPC build.Ronald S. Bultje2011-02-183-6/+27
| | | | (cherry picked from commit ed040f35f298b39f1ddd45a133c82cb5d6d79dda)
* VP8: init one less near_mvJason Garrett-Glaser2011-02-181-1/+0
| | | | | This one didn't actually need to be initialized. (cherry picked from commit 891b1f15a7e45a2a5f91cb4c27d11259ef8e012f)
* VP8: split out declarations to new headerJason Garrett-Glaser2011-02-183-213/+248
| | | | (cherry picked from commit bcf4568f183055331415ba230e82af6d59faac1c)
* VP8: faster MV clippingJason Garrett-Glaser2011-02-181-10/+19
| | | | (cherry picked from commit 7634771e70575b2a5abaeb420c5b3c2f9948c693)
* dsputil: move VC1-specific stuff into VC1DSPContext.Ronald S. Bultje2011-02-1813-221/+272
| | | | (cherry picked from commit 12802ec0601c3bd7b9c7a2503518e28fd5e7d744)
* VC1: simplify a calculation in a loop.Ronald S. Bultje2011-02-181-1/+1
| | | | (cherry picked from commit 0b16cdc3fa1d73056649abf43288be0a7624fdcc)
* VC1: transpose IDCT 8x8 coeffs while reading.Ronald S. Bultje2011-02-184-58/+63
| | | | (cherry picked from commit 1da6ea39542424ddb691dc6cf08d611a4c6db247)
* mdct: remove unnecessary multiplicationYoung Han Lee2011-02-181-1/+1
| | | | | 3*n4 was already calculated in n3. (cherry picked from commit 979395bbbb9381b522b44c3448c24aef9c819ffc)
* ac3enc: fix bug in stereo rematrixing decision.Justin Ruggles2011-02-181-2/+1
| | | | | | | | 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> (cherry picked from commit 5b54d4b376fbd2c291b8a6dba7d425e28f654bcf)
* ac3dsp: Change punpckhqdq to movhlps in ac3_max_msb_abs_int16().Justin Ruggles2011-02-161-2/+1
| | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit 1f004fc512babe8215e2aa31fa4770aa27812cab)
* Document audio_resample_close().Stefano Sabatini2011-02-161-2/+2
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* ac3enc: change default floor code to 7.Justin Ruggles2011-02-161-1/+1
| | | | | | | | 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> (cherry picked from commit 50d7140441b61809ad4ba4ea7b4ad8fe77bc6888)
* Merge libavcore into libavutilReinhard Tartler2011-02-1668-75/+72
| | | | Done to keep ABI compatible. Otherwise this is just silly
* vbv_delay AVOption for ABI compatibilityMichael Niedermayer2011-02-161-0/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Pass VBV delay to the calling application via ctxChristophe Massiot2011-02-162-1/+10
| | | | | | | | | VBV delay is useful for T-STD compliance in some TS muxers. It is certainly possible to retrieve it by parsing the output of FFmpeg, but getting it from the context makes it simpler and less error-prone. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* binkaudio: remove unused copy of AVCodecContext*Peter Ross2011-02-151-3/+1
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 71f88b1f3843fdb676d6f72181da0c8c460341d8)
* binkaudio: fix channel count checkPeter Ross2011-02-151-2/+2
| | | | | | | | | | Perform validity check on AVFormatContext.channels instead of uninitialised field. This fixes issue 2001. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 9806fbd5351fa84f99fa5b18fe06859acb514f34)
* aacdec: Implement LTP support.Young Han Lee2011-02-154-20/+178
| | | | | Ported from gsoc svn. (cherry picked from commit ead15f1dc196ad164d105e31c8c9025f8a4ee4e7)
* aac: remove dead SBR input scalingAlex Converse2011-02-141-7/+3
| | | | | | | It has been unused since 9d06d7bce3babb82ed650c13ed13a57f6f626a71 Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 916dee9f45dab85cfc20b6bf63ce8722746e6508)
* ac3enc: Add x86-optimized function to speed up log2_tab().Justin Ruggles2011-02-145-8/+103
| | | | | | | | AC3DSPContext.ac3_max_msb_abs_int16() finds the maximum MSB of the absolute value of each element in an array of int16_t. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit fbb6b49dabc3398440c6dfa838aa090a7a6ebc0d)
* FFT: factor a shuffle out of the inner loop and merge it into fft_permute.Loren Merritt2011-02-146-38/+45
| | | | | | | 6% faster SSE FFT on Conroe, 2.5% on Penryn. Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit e6b1ed693ae4098e6b9eabf938fc31ec0b09b120)
* bink: permute Bink version 'b' quant matrices by inverse scan orderPeter Ross2011-02-141-4/+9
| | | | | | | | This fixes visual glitches in Bink version 'b' files, as the quantization tables were not being permuted. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 231539217431c32d4f22a16ee2834e24f54611f4)
* bink: simplify how quantization matrices are passed to read_dct_coeffs()Peter Ross2011-02-141-15/+8
| | | | | Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit cb62510cab8b745e65eb966c72ab7e9b122d564b)
* Make truncated mpeg4 GOP header check a bit more specific.Michael Niedermayer2011-02-141-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Apply minor cosmetics fixes to the av_audio_resample_init() doxy.Stefano Sabatini2011-02-141-3/+4
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Document audio_resample_close().Stefano Sabatini2011-02-141-0/+7
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Detect null gop headers.Michael Niedermayer2011-02-131-0/+5
| | | | Fix issue2592. / mpeg4-bad-gvop.raw
* Make tables generation insensitive to floating-point implementationVitor Sessak2011-02-131-9/+16
| | | | | | | | Using doubles make the double -> int cast well defined for all the values used, with the exception of when s[i]==1.0, which is special-cased. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 47d62c965b7bcf4715127fbf9bffab7b4c5c88b7)
* VP8: ARM optimised decode_block_coeffs_internalMans Rullgard2011-02-135-2/+259
| | | | | | | Approximately 5% faster on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit a7878c9f73c12cfa685bd8af8f3afcca85f56a8b)
* ARM optimised vp56_rac_get_prob()Mans Rullgard2011-02-132-1/+97
| | | | | | | Approximately 3% faster on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com> (cherry picked from commit 7da48fd0111adf504cfcfc5ebda7fd0681968041)
* bink: reindent after last commitPeter Ross2011-02-131-6/+6
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit adb1ad0d8005dfcbae863bccdda8fdd26bb63f30)
* Bink version 'b' video decoderPeter Ross2011-02-133-19/+370
| | | | | | | Based on original patch by Kostya Shishkov Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit e00f41d5742b3a0dc1877b030f4f6f58c19b7bbd)
* Clarify that pts_correction* fields are internal to libavcodecMichael Niedermayer2011-02-131-1/+1
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Set maximum lowres value for the MJPEG decoder to 3.Carl Eugen Hoyos2011-02-121-1/+1
| | | | | While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg.
* VP8: optimized mv prediction and decodingJason Garrett-Glaser2011-02-111-91/+91
| | | | | | Merge find_near_mvs and mv bitstream decoding: don't do prediction steps until absolutely necessary. (cherry picked from commit f3d09d44b70492022964e2ead5f439bb7c96eaa2)