summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* x86: cabac: add operand size suffixes missing from 6c32576Mans Rullgard2011-07-28
| | | | | | This fixes build with clang. Signed-off-by: Mans Rullgard <mans@mansr.com>
* h263dec: Propagate AV_LOG_ERRORs from slice decoding through frame decoding ↵Dustin Brody2011-07-28
| | | | | | with sufficient error recognition Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* x86: cabac: don't load/store context values in asmMans Rullgard2011-07-28
| | | | | | | | | | | Inspection of compiled code shows gcc handles these fine on its own. Benchmarking also shows no measurable speed difference. Removing the remaining cases in get_cabac_bypass_sign_x86() does cause more substantial changes to the compiled code with uncertain impact. Signed-off-by: Mans Rullgard <mans@mansr.com>
* H.264: optimize CABAC x86 asm for AtomJason Garrett-Glaser2011-07-28
|
* vp3/theora: flush after seek.Ronald S. Bultje2011-07-28
|
* ppc: remove redundant setting of Altivec IDCTMans Rullgard2011-07-27
| | | | | | | This is already set by dsputil_init_ppc() and is best done in only one place. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo: initialise DSPContext in ff_dct_common_init()Mans Rullgard2011-07-27
| | | | | | | The functions and tables initialised in this function rely on an initialised DSPContext. Make sure they always have one. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cosmetics: reindentJustin Ruggles2011-07-27
|
* eac3enc: support writing of basic mixing and info metadataJustin Ruggles2011-07-27
|
* dnxhdenc: fix declarations in for loopsMans Rullgard2011-07-27
| | | | | | Apparently the gcc warning doesn't trigger on these. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: remove stale bink prototypes and commentsMans Rullgard2011-07-27
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: move a bink-only function to binkdspMans Rullgard2011-07-27
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: remove some unused functionsMans Rullgard2011-07-27
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* bink: make IDCT take 32-bit inputKostya Shishkov2011-07-27
| | | | | | | | | | | Since IDCT transforming 32-bit input to 8-bit output is unusual and unpractical for most codecs, move Bink IDCT into separate context. Get rid of an additional permutation table while at it since SIMD support for Bink IDCT is unlikely to be implemented in foreseeable future. Quantisation tables also have to change type to signed for proper dequantisation of DCT coefficients. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dctref: make sure function declarations match between .c and .h fileDiego Biurrun2011-07-27
|
* x86: fix build with gcc 4.7Mans Rullgard2011-07-26
| | | | | | | | | | | | | | The upcoming gcc 4.7 has more advanced constant propagation resulting some inline asm operands becoming constants and thus emitted as literals, sometimes in contexts where this results in invalid instructions. This patch changes the constraints of the relevant operands to "rm" thus forcing a valid type. While obviously suboptimal, this is what older gcc versions already did, and there is no change to the code generated with these. Signed-off-by: Mans Rullgard <mans@mansr.com>
* jpegdec: actually search for and parse RSTnMichael Niedermayer2011-07-23
| | | | | | | | | | | | | Fixes decoding of MJPEG files produced by some UVC Logitec web cameras, such as "Notebook Pro" and "HD C910". References: http://trac.videolan.org/vlc/ticket/4215 http://ffmpeg.org/trac/ffmpeg/ticket/267 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Reviewed-by: Kostya <kostya.shishkov@gmail.com> (cherry picked from commit 7b8ed831eb8432d202dad16dedc1758b018bb1fa)
* dnxhddec: avoid a branch in 10-bit decode_dct_block()Mans Rullgard2011-07-22
| | | | | | | The minimum weight value is 32 so this test can be skipped for the 10-bit case. Overall speedup 3-4%. Signed-off-by: Mans Rullgard <mans@mansr.com>
* H.264: Add optimizations to predict x86 assembly.Daniel Kang2011-07-22
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* add Flash Screen Video 2 decoderKostya Shishkov2011-07-22
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dnxhddec: optimise dnxhd_decode_dct_block()Mans Rullgard2011-07-21
| | | | | | | | | Template the function for 8/10-bit and use lowlevel bitstream macros. 6% faster overall on i7 gcc 4.5. Signed-off-by: Mans Rullgard <mans@mansr.com>
* eac3enc: use different numbers of blocks per frame to allow higher bitratesJustin Ruggles2011-07-21
|
* dnxhd: 10-bit supportJoseph Artsimovich2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: update per-arch init funcs for non-h264 high bit depthMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: template get_pixels() for different bit depthsMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: create 16/32-bit dctcoef versions of some functionsMans Rullgard2011-07-21
| | | | | | | | | | High bitdepth H.264 needs 32-bit transform coefficients, whereas dnxhd does not. This creates a conflict with the templated functions operating on DCTELEM data. This patch adds a field allowing the caller to choose the element size in dsputil_init() and adds the required functions. Signed-off-by: Mans Rullgard <mans@mansr.com>
* jfdctint: add 10-bit versionMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg4: add Mpeg4 Profiles names.Thierry Foucu2011-07-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpeg4: decode Level Profile for MPEG4 Part 2.Thierry Foucu2011-07-21
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* imgconvert: remove unused glue and xglue macrosStefano Sabatini2011-07-21
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rv30: return AVERROR(EINVAL) instead of EINVALDiego Biurrun2011-07-21
| | | | On some platforms EINVAL could be positive, ensure we return negative values.
* simple_idct: whitespace cosmeticsMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* simple_idct: make repeated code a macroMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: remove huge #if 0 blockMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* simple_idct: change 10-bit add/put stride from pixels to bytesMans Rullgard2011-07-21
| | | | | | This matches other dsputil functions and simplifies calls. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dsputil: allow 9/10-bit functions for non-h264 codecsMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dnxhd: rename some data tablesJoseph Artsimovich2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dnxhdenc: remove inline from function only called through pointerMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* dnxhdenc: whitespace cosmeticsMans Rullgard2011-07-21
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unused and non-compiling vestigial g729 decoderDiego Biurrun2011-07-20
|
* Remove unused code under G729_BITEXACT #ifdef.Diego Biurrun2011-07-20
| | | | G729_BITEXACT is never set, so the code is all dead code.
* mpegvideo: fix invalid picture unreferencing.Ronald S. Bultje2011-07-20
| | | | | | | | | | | Mpegvideo would free frames as soon as they're not the next or prev picture. This is fine for a single-threading model, but fails miserably in a system where pictures can be referenced (as e.g. last/prev pic) in other threads. Keeping track of ownership of pictures keeps image references (e.g. motion vectors, or the reference of a motion vector) alive as long as the picture data itself is alive. This also happens to fix make THREADS=[3-16] fate-vsynth[12]-error.
* dsputil: Remove extra blank line at end.Alex Converse2011-07-20
|
* dsputil: Replace a LONG_MAX check with HAVE_FAST_64BIT.Alex Converse2011-07-20
|
* simple_idct: add 10-bit versionMans Rullgard2011-07-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove h264_lowres_idct_put/add functionsMans Rullgard2011-07-20
| | | | | | | | Use of these has been broken ever since the h264 idct was changed to always use transposed inputs. Furthermore, they were only ever used if some *other* non-default idct was requested. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove snow/dwt test programMans Rullgard2011-07-20
| | | | | | | This test program so full of programming errors it is impossible to make sense of it. Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: remove some disabled codeDiego Biurrun2011-07-20
|
* Fix incorrect max_lowres valuesMans Rullgard2011-07-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>