summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* x86: cabac: fix register constraints for 32-bit modeMans Rullgard2011-06-20
| | | | | | | | Some operands need to be accessed in byte mode, which restricts the available registers in 32-bit mode. Using the 'q' constraint selects a suitable register. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cabac: move x86 asm to libavcodec/x86/cabac.hMans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: h264: cast pointers to intptr_t rather than intMans Rullgard2011-06-20
| | | | | | | Only the low-order bits are used here so the type is not important, but this avoids a compiler warning. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: h264: remove hardcoded edi in decode_significance_8x8_x86()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: h264: remove hardcoded esi in decode_significance[_8x8]_x86()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: h264: remove hardcoded edx in decode_significance[_8x8]_x86()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: h264: remove hardcoded eax in decode_significance[_8x8]_x86()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: change 'a' constraint to 'r' in get_cabac_inline()Mans Rullgard2011-06-20
| | | | | | Nothing requires this value in %eax. Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: remove hardcoded esi in get_cabac_inline()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: remove hardcoded edx in get_cabac_inline()Mans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: remove unused macro parameterMans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: remove hardcoded ebx in inline asmMans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* x86: cabac: remove hardcoded struct offsets from inline asmMans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cabac: remove inline asm under #if 0Mans Rullgard2011-06-20
| | | | | | A comment says it's not faster than the C code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cabac: remove BRANCHLESS_CABAC_DECODER switchMans Rullgard2011-06-20
| | | | | | The code does not compile without this set. Signed-off-by: Mans Rullgard <mans@mansr.com>
* cabac: remove #if 0 cascade under never-set #ifdef ARCH_X86_DISABLEDMans Rullgard2011-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* error_resilience: skip last-MV predictor step if MVs are not available.Ronald Bultje2011-06-20
| | | | Fixes crashes when playing broken MPEG2-TS streams.
* error_resilience: actually add counter when adding a MV predictor.Ronald Bultje2011-06-20
| | | | Without, the predictor isn't actually used.
* qdm2: Fix alignment of local array.Michael Niedermayer2011-06-20
| | | | | | | Fixes ticket270 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264-mt: fix deadlock in packets with multiple slices (e.g. MP4).Ronald S. Bultje2011-06-20
|
* sipr: Drop unused DSPContextAlex Converse2011-06-18
|
* sipr: include string.h for mem*()Alex Converse2011-06-18
|
* sipr: Use memmove() to copy overlapped buffers.Alex Converse2011-06-18
|
* h264: drop some ugly castsAlex Converse2011-06-18
|
* Fix build if yasm is not available.Ronald S. Bultje2011-06-18
|
* H.264: Add x86 assembly for 10-bit MC Chroma H.264 functions.Daniel Kang2011-06-18
| | | | | | Mainly ported from 8-bit H.264 MC Chroma. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: add opt_find to AVCodecContext class.Anton Khirnov2011-06-17
| | | | | Fixes encoder private options, which are broken now in ffmpeg, because opt_default2() can't find them, thus making opt_default() to fail.
* h264: Complexify frame num gap shortening codeAlexander Strange2011-06-16
| | | | | | | | By observation it did not seem to handle prev_frame_num > frame_num. This does not affect any files I have. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Fix decoding of mpegts streams with h264 video that does *NOT* have b framesMike Scheutzow2011-06-16
| | | | | | | | | | | | | | | One of the causes of this bug is that the h264 parser defaults low_delay to 1, but the h264 codec defaults low_delay to 0. Really Ugly. After many hours of looking at this, I'm still not sure how has_b_frames is *intended* to behave, but to me the implementation appears way more complicated than it ought to be. My patch relies on the encoder to set an optional field in the SPS. This works for libx264 streams, but I'm not sure that all h264 encoders will set it. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ac3enc: use correct alignment and length in channel coupling dsp functions.Justin Ruggles2011-06-15
| | | | This fixes a segfault when using the C version of ac3dsp.float_to_fixed24().
* ARM: update ff_h264_idct8_add4_neon for 4:4:4 changesMans Rullgard2011-06-15
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: factor some repetitive code into macrosMans Rullgard2011-06-14
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix SVQ3 after adding 4:4:4 H.264 supportJason Garrett-Glaser2011-06-13
|
* H.264: fix CODEC_FLAG_GRAYJason Garrett-Glaser2011-06-13
| | | | It was broken in 4:4:4, and still did chroma deblocking for no reason in 4:2:0.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-13
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* ac3enc: fix allocation of floating point samples.Justin Ruggles2011-06-13
| | | | sizeof(SampleType) is different for fixed and float encoders.
* ac3enc: remove empty ac3_float function that is never calledJustin Ruggles2011-06-13
|
* ac3enc: split templated float vs. fixed functions into a separate file.Justin Ruggles2011-06-13
| | | | | Function pointers are used for templated functions instead of needlessly duplicating many functions.
* ac3enc: dynamically allocate AC3EncodeContext fields windowed_samples and mdctJustin Ruggles2011-06-13
| | | | | This will allow the same struct to be used for both the fixed and float ac3 encoders.
* ac3enc: use function pointer to choose between AC-3 and E-AC-3 header outputJustin Ruggles2011-06-13
| | | | functions.
* Roll back 4:4:4 H.264 for nowJason Garrett-Glaser2011-06-13
| | | | Needs some ARM/PPC asm modifications.
* Fix SVQ3 after adding 4:4:4 H.264 supportJason Garrett-Glaser2011-06-13
|
* H.264: fix CODEC_FLAG_GRAYJason Garrett-Glaser2011-06-13
| | | | It was broken in 4:4:4, and still did chroma deblocking for no reason in 4:2:0.
* 4:4:4 H.264 decoding supportJason Garrett-Glaser2011-06-13
| | | | Note: this is 4:4:4 from the 2007 spec revision, not the previous (now deprecated) 4:4:4 mode in H.264.
* h264_parser: Fix whitespace after previous change.Philip Langdale2011-06-13
| | | | | Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264_parser: Fix behaviour when PARSER_FLAG_COMPLETE_FRAMES is set.Philip Langdale2011-06-13
| | | | | | | | | | Currently, the parser is buggy and only processes the stream extradata when the flag is set. This fixes it to actually inspect the frames. Whitespce will be fixed in a separate change. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: don't be so picky on decoding pps in extradata.Michael Niedermayer2011-06-13
| | | | | | | Fixes issue2517 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec.h: add or elaborate on some documentation comments.Wim Lewis2011-06-13
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: change a few comments into error messagesMichael Niedermayer2011-06-13
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Anton Khirnov <anton@khirnov.net>