summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* mpegaudiodec: Fix av_dlog() invocation.Diego Biurrun2011-06-01
| | | | | | Some parameters passed to the av_dlog can be either float or int, depending on the mode the file is being compiled as. Cast those parameters to float and use appropriate conversion specifiers.
* h264/10bit: add HAVE_ALIGNED_STACK checks.Daniel Kang2011-05-31
| | | | | | | Fixes regression in 836f47d34b49e8ba9883e738a42f154130421caa in ICC-10.x, since ICC<=11.0 doesn't align stack upon function calls. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Update 8-bit H.264 IDCT function names to reflect bit-depth.Daniel Kang2011-05-31
| | | | Signed-off-by: Ronald S. Bultje <rbultje@google.com>
* Add IDCT functions for 10-bit H.264.Daniel Kang2011-05-31
| | | | | | | | Ports the majority of IDCT functions for 10-bit H.264. Parts are inspired from 8-bit IDCT code in Libav; other parts ported from x264 with relicensing permission from author. Signed-off-by: Ronald S. Bultje <rbultje@google.com>
* mpegaudioenc: Fix broken av_dlog statement.Diego Biurrun2011-05-31
|
* ARM: fix MUL64 inline asm for pre-armv6Mans Rullgard2011-05-31
| | | | | | | | | | | Prior to ARMv6, the destination registers of the SMULL instruction must be distinct from the first source register. Marking the output early-clobber ensures it is allocated unique registers. This restriction is dropped in ARMv6 and later, so allowing overlap between input and output registers there might give better code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegaudiodec: remove unusued code and variablesMans Rullgard2011-05-31
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegaudio: clean up compute_antialias() definitionMans Rullgard2011-05-31
| | | | | | | | This merges the float and fixed-point versions of the compute_antialias function, fixes invalid array indexing, and eliminates a dead copy of csa_table. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vp8: fix segmentation race during frame-threading.Ronald S. Bultje2011-05-31
| | | | | Fixes occasional failure of make fate-vp8-test-vector-010 with frame-multithreading enabled.
* ARM: simplify inline asm with 64-bit operandsMans Rullgard2011-05-30
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: enable UAL syntax in asm.SMans Rullgard2011-05-29
| | | | | | | This enables UAL syntax for all asm files instead of only those which happen to be incompatible with the old, deprecated syntax. Signed-off-by: Mans Rullgard <mans@mansr.com>
* vp8: use av_clip_uintp2() where possibleMans Rullgard2011-05-29
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: fix LOCAL_ALIGNED usage in count_mantissa_bits()Mans Rullgard2011-05-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3dsp: do not use the ff_* prefix when referencing ff_ac3_bap_bits.Justin Ruggles2011-05-28
| | | | | | this should fix the windows builds Signed-off-by: Martin Storsjö <martin@martin.st>
* ac3dsp: fix loop condition in ac3_update_bap_counts_c()Justin Ruggles2011-05-28
|
* ARM: unbreak buildMans Rullgard2011-05-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: modify mantissa bit counting to keep bap counts for all values of bapJustin Ruggles2011-05-28
| | | | | | instead of just 0 to 4. This does all the actual bit counting as a final step.
* ac3enc: split mantissa bit counting into a separate function.Justin Ruggles2011-05-28
| | | | No speed difference. This is to allow for more flexible bit counting.
* ac3enc: store per-block/channel bap pointers by reference block in a 2D arrayJustin Ruggles2011-05-28
| | | | | | | rather than in the AC3Block struct. This will make it easier to access the bap values without having to chase the reference block pointers each time.
* get_bits: add av_unused tag to cache variableMans Rullgard2011-05-28
| | | | | | | This silences numerous compiler warnings from skip_bits(), where the cache variable is not used. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: aacdec: fix constraints on inline asmMans Rullgard2011-05-28
| | | | | | | This adds output operands for modified memory allowing the volatile qualifiers to be dropped. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: remove unnecessary volatile from inline asmMans Rullgard2011-05-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: add "cc" clobbers to inline asm where neededMans Rullgard2011-05-28
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ac3enc: use LOCAL_ALIGNED macroMans Rullgard2011-05-28
| | | | | | | | | Aligned local variables must use the LOCAL_ALIGNED macro to ensure correct alignment on all systems. The unusual size argument to memset is required since the implementation of LOCAL_ALIGNED may use a pointer to an array. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavu: add av_get_pix_fmt_name() convenience functionStefano Sabatini2011-05-28
| | | | | | Also deprecate avcodec_get_pix_fmt_name() in its favor. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vpxenc: add VP8E_SET_STATIC_THRESHOLD mappingJames Zern2011-05-28
| | | | | | via the equivalent AVCodecContext::mb_threshold Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* cosmetics: indentation and alignment after previous commitJustin Ruggles2011-05-27
|
* ac3enc: add support for E-AC-3 encoding.Justin Ruggles2011-05-27
| | | | | This adds basic stream format support and allows for arbitrary bit rates rather than just those supported in AC-3.
* ac3enc: Move AC-3 AVOptions array to a separate file to make it easier toJustin Ruggles2011-05-27
| | | | use only selected options for the different AC-3 encoder types.
* ARM: disable ff_vector_fmul_vfp on VFPv3 systemsMans Rullgard2011-05-27
| | | | | | | | | | This function uses old-style vector operations deprecated in VFPv3. Some implementations, e.g. Cortex-A9, support them only through slow software emulation. Cortex-A8 does have this functionality in hardware, but as it also has NEON, this function is not used there regardless. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: Add appropriate ifdefs around certain AVX functions.Diego Biurrun2011-05-27
| | | | | nasm versions prior to 2.09 have trouble assembling some of our AVX code. Protect these sections by preprocessor macros to allow compilation to pass.
* Mark parameterless function declarations as 'void'.Diego Biurrun2011-05-26
|
* ac3enc: initialize all coefficients to zero.Justin Ruggles2011-05-25
| | | | | | | | Uninitialized coefficients were being used to generate exponents, some of which actually ended up in the final stream. Even though, they were just extra exponents that are not used by any decoder, it is still better to have consistent output for testing. This also fixes valgrind errors.
* Remove h263_msmpeg4 from MpegEncContext.Alex Converse2011-05-25
| | | | It was long ago superseded by msmpeg4_version.
* Move emms_c() from libavcodec to libavutil.Ronald S. Bultje2011-05-24
|
* tiff: set palette in the context when specified in TIFF_PAL tagStefano Sabatini2011-05-24
| | | | | | | | | | | Since image initialization was moved after tag parsing, the palette needs to be specified in the context and then copied to the allocated image in init_image(). Fixes a regression with TIFF images that have palette data, trac issue #230, file Test_Flate_8bpp.tif. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* pgssubdec: fix incorrect colors.Alexandre Colucci2011-05-24
| | | | | | | | | On Blu-ray colors are stored in the order YCrCb (and not YCbCr) as mentioned in the specifications: see System Description Blu-ray Disc Read-Only Format, 9.14.4.2.2.1 Palette Definition Segment When decoding a Blu-ray subtitle, the colors were incorrectly set. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dvdsubdec: fix incorrect colors.Alexandre Colucci2011-05-24
| | | | | | | | | | | | On DVD and HD-DVD colors are stored in the order YCrCb (and not YCbCr) as mentioned in the specifications: see DVD Specifications for Read-Only Disc / Part 3, 4.3 Program Chain Information (7) PGC_SP_PLT see DVD Specifications for High Definition Disc, 5.2 Navigation for Standard Content (11) PGC_SDSP_PLT see DVD Specifications for High Definition Disc, 5.2 Navigation for Standard Content (12) PGC_HDSP_PLT see DVD Specifications for High Definition Disc, 5.5 Presentation Data (4) SET_COLOR2 When decoding a DVD or HD-DVD subtitle, the colors were incorrectly set. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* msmpeg4: reindent.Anton Khirnov2011-05-24
|
* lavc: remove msmpeg4v1 encoder.Anton Khirnov2011-05-24
| | | | | | The encoder has never produced files that could be decoded with any software and there should be no reason to create such files anyway.
* ac3enc: add channel coupling supportJustin Ruggles2011-05-24
| | | | | | | | | Channel coupling is an optional AC-3 feature that increases quality by combining high frequency information from multiple channels into a single channel. The per-channel high frequency information is sent with less accuracy in both the frequency and time domains. This allows more bits to be used for lower frequencies while preserving enough information to reconstruct the high frequencies.
* aacdec: fix typo in scalefactor clipping checkJustin Ruggles2011-05-23
|
* h264: Properly set coded_{width, height} when parsing H.264.Felipe Contreras2011-05-23
| | | | | Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86 asm: Add SECTION_TEXT to dct32_sse.asm.Dave Yeo2011-05-23
| | | | | | | This fixes the following error on OS/2: error: segment name `.text align=16' not recognized Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dct32_sse: eliminate some spillsLoren Merritt2011-05-22
| | | | 125->104 cycles on penryn (x86_64 only)
* Fix dct32() compilation with --disable-yasmVitor Sessak2011-05-22
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dct32: Add AVX implementation of 32-point DCTVitor Sessak2011-05-21
|
* dct32: Change pass 6 permutation to allow for AVX implementationVitor Sessak2011-05-21
|
* dct32: port SSE 32-point DCT to YASMVitor Sessak2011-05-21
|
* multiple inclusion guard cleanupDiego Biurrun2011-05-21
| | | | | Add missing multiple inclusion guards; clean up #endif comments; add missing library prefixes; keep guard names consistent.