aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
Commit message (Collapse)AuthorAgeFilesLines
* doxygen: misc consistency, spelling and wording fixesDiego Biurrun2011-12-121-5/+7
|
* lavc: convert error_recognition to err_recognition.Dustin Brody2011-12-121-1/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: remove useless castMans Rullgard2011-12-121-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove extraneous semicolonsMans Rullgard2011-12-111-2/+2
| | | | | | These semicolons cause invalid empty top-level declarations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Fix a bunch of common typos.Diego Biurrun2011-12-111-3/+3
|
* h264: fix frame reordering code.Ronald S. Bultje2011-12-031-17/+50
| | | | | Fixes fate-h264-conformance-{mr2_tandberg_e,mr3_tandberg_b} without requiring -strict 1.
* h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.Ronald S. Bultje2011-12-011-1/+1
| | | | | This prevents frame allocation overflows, and fixed fate-h264-conformance-mr3_tandberg_b with 2 threads.
* h264: add support for decoding planar RGB images.Ronald S. Bultje2011-11-241-7/+16
|
* avcodec: move some AVCodecContext fields to an internal struct.Justin Ruggles2011-11-191-1/+2
| | | | | | | | A new field, AVCodecContext.internal is used to hold a new struct AVCodecInternal, which has private fields that are not codec-specific and are used by general libavcodec functions. Moved internal_buffer, internal_buffer_count, and is_copy.
* hwaccel: OS X Video Decoder Acceleration (VDA) support.Sebastien Zwickert2011-11-141-0/+1
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* h264: improve calculation of codec delay.Ronald S. Bultje2011-11-051-5/+22
| | | | | | Fixes the following conformance suite samples: HCBP1_HHI_A.264, HCBP2_HHI_A.264, HCMP1_HHI_A.264 (main) HCHP1_HHI_B.264, HCHP2_HHI_A.264, HCHP3_HHI_A.264 (frext)
* Fix decoding of lossless 4:2:2 H.264Anton Mitrofanov2011-10-281-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Fix decoding of lossless 10-bit 4:4:4 H.264Anton Mitrofanov2011-10-281-1/+1
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mpegvideo: remove some unused variables from MpegEncContext.Anton Khirnov2011-10-231-1/+0
|
* lavc: replace references to deprecated AVCodecContext.error_recognition to ↵Dustin Brody2011-10-221-2/+2
| | | | | | use AVCodecContext.err_recognition Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: mark some MC functions with av_always_inline instead of inline.Ronald S. Bultje2011-10-211-27/+33
| | | | | This actually causes them to be inlined, leading to a significant speedup (1-1.5% in my measurements).
* H264: have hl_motion() and its callees take a chroma_idc argument.Ronald S. Bultje2011-10-211-52/+98
|
* H264: change weight/biweight functions to take a height argument.Ronald S. Bultje2011-10-211-73/+53
| | | | Neon parts by Mans Rullgard <mans@mansr.com>.
* Support for lossless and inter H264 4:2:2.Ronald S. Bultje2011-10-211-11/+55
|
* h264: 4:2:2 intra decoding supportBaptiste Coudurier2011-10-211-25/+72
| | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* w32threads: support for frame multithreadingSteven Walters2011-10-161-1/+1
| | | | | | | | Replace our incomplete w32threads implementation with x264's pthreads w32threads wrapper. Relicensed to LGPL with kind permission by Pegasys Inc. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* h264: change unsupported bit depth message to error levelMans Rullgard2011-10-121-1/+1
| | | | | | | Unsupported bit depth is certainly an error the user will want to know about. Signed-off-by: Mans Rullgard <mans@mansr.com>
* h264: reset h->ref_count in case of errors in ↵Laurent Aimar2011-10-101-1/+3
| | | | | | ff_h264_decode_ref_pic_list_reordering() Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* h264: fix signed overflows in x*0x01010101 expressionsMans Rullgard2011-10-091-1/+1
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* H264: Only wait before triggering ff_thread_setup_complete() until the next ↵Michael Niedermayer2011-10-071-1/+5
| | | | | | | | | | | | slice that contains a start-of-field/frame macroblock This allows concurrent decoding of the last field/frame, rather than only the last slice, of data packets with multiple NAL units packed together. This will fix the slowdown reported in e.g. bug 52. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: correct implicit_weight for field-interlaced pictures.Ronald S. Bultje2011-10-051-1/+5
|
* h264: check for out of bounds reads in ff_h264_decode_extradata().Laurent Aimar2011-09-251-0/+4
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Fix assert() calls that need updates after FF_COMMON_FRAME macro elimination.Diego Biurrun2011-09-211-1/+1
| | | | This fixes build failures with -DDEBUG in CPPFLAGS.
* Revert "h264: Properly set coded_{width, height} when parsing H.264."Luca Barbato2011-08-291-3/+0
| | | | | | | This reverts commit b47904d158709bdec1a9d40e83d1abadf50081dc. coded_{width, height} overwrites width and height in avcodec_open and it currently just report the non-lowres size.
* h264: fix PCM intra-coded blocks in monochrome caseJeff Downs2011-08-191-12/+34
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: correct implicit weight table computation for long ref picsJeff Downs2011-08-191-9/+11
| | | | | | | Correct computation of implicit weight tables when referencing pictures that are marked for long reference. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: notice memory allocation failureDustin Brody2011-08-111-2/+8
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h264: propagate error return values for AV_LOG_ERROR-triggering eventsDustin Brody2011-08-091-13/+19
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-291-19/+17
| | | | It's more readable and less prone to breakage.
* dsputil: create 16/32-bit dctcoef versions of some functionsMans Rullgard2011-07-211-0/+1
| | | | | | | | | | 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>
* h264: remove some disabled codeDiego Biurrun2011-07-201-149/+0
|
* Eliminate FF_COMMON_FRAME macro.Diego Biurrun2011-07-111-92/+92
| | | | | FF_COMMON_FRAME holds the contents of the AVFrame structure and is also copied to struct Picture. Replace by an embedded AVFrame structure in struct Picture.
* H.264: improve qp_thresh checkJason Garrett-Glaser2011-07-081-1/+3
| | | | Eliminate redundant check in filter_mb_fast, consider bit depth in calculating qp_thresh.
* H.264: Remove redundant hl_motion_16/8 codeJason Garrett-Glaser2011-07-081-42/+10
|
* H.264: av_always_inline some more functionsJason Garrett-Glaser2011-07-081-2/+2
| | | | These weren't getting inlined all the time in all gcc versions.
* H.264: template left MB handlingJason Garrett-Glaser2011-07-031-33/+33
| | | | Faster H.264 decoding with ALLOW_INTERLACE off.
* H.264: faster write_back_*Jason Garrett-Glaser2011-07-031-9/+0
| | | | Avoid aliasing, unroll loops, and inline more functions.
* H.264: faster fill_filter_cachesJason Garrett-Glaser2011-07-031-118/+110
| | | | Reduce aliasing problems and unroll mv/ref loop.
* Remove return statements following infinite loops without breakMans Rullgard2011-07-031-1/+0
| | | | | | | These statements cannot be reached and are thus not needed. This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* H.264: disable 2tap qpel with CODEC_FLAG2_FAST and >8-bitJason Garrett-Glaser2011-06-261-1/+2
| | | | 2tap qpel isn't implemented yet for high bit depth, so it just breaks decoding.
* H.264: fix 4:4:4 + deblocking + MBAFFJason Garrett-Glaser2011-06-221-2/+2
|
* H.264: fix bug in lossless 4:4:4 decodingJason Garrett-Glaser2011-06-221-1/+1
| | | | Coefficient test for i16x16 add_pixels4 assumed luma plane.
* h264: Fix assert that failed to compile with -DDEBUG.Diego Biurrun2011-06-211-1/+1
| | | | The assert referenced a variable that no longer exists since 4:4:4 support.
* h264-mt: fix deadlock in packets with multiple slices (e.g. MP4).Ronald S. Bultje2011-06-201-0/+2
|
* h264: drop some ugly castsAlex Converse2011-06-181-2/+2
|