summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libvpx: add support for yuv440p and yuv440p10/12 encodingJames Almer2015-05-20
| | | | | Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vmnc: Add back adapted comment about 24bitVittorio Giovara2015-05-20
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/vmnc: Simplify "24bit" supportMichael Niedermayer2015-05-20
| | | | | | | This also makes the code more robust, removing potential out of array writes. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit 'eafbc6716cede6d4a652f8bedf82f2901c68d06d'Michael Niedermayer2015-05-20
|\ | | | | | | | | | | | | * commit 'eafbc6716cede6d4a652f8bedf82f2901c68d06d': vmnc: Delay pixel size check Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * vmnc: Delay pixel size checkVittorio Giovara2015-05-19
| | | | | | | | | | | | | | | | Some clients incorrectly set 24 as bits_per_coded_sample, while the actual value is preserved in one of the codec headers. In order to work around this, delay the check until decode_frame(). Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec/hevc: Remove unused variableMichael Niedermayer2015-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec: add mathops testMichael Niedermayer2015-05-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/vmnc: Fix 32bit colour-space, there is no transparency.Carl Eugen Hoyos2015-05-20
| |
* | Fix movtext crashes caused due to lack of proper bounds checkingNiklesh2015-05-19
| | | | | | | | Signed-off-by: Niklesh <niklesh.lalwani@iitb.ac.in>
* | avcodec/flacenc: Support Multi dimensional quantizationMichael Niedermayer2015-05-20
| | | | | | | | | | | | Now with exact bit computations if exact_rice_parameters is enabled Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Mark pointers/array arguments const which are not changedMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Simplify md5 calculation code by using AV_WL24()Michael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Move udata and sums to FlacSubframeMichael Niedermayer2015-05-19
| | | | | | | | | | | | | | | | This significantly reduces the amount of stack space needed and also permits to simply copy the rice context again without speed penalty Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Support calculating rice parameters exactlyMichael Niedermayer2015-05-19
| | | | | | | | | | | | | | Some files benefit by about 0.3% from this, and speedwise its ok other files do not benefit and encode to the same size Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/flacenc: Do not copy unused udata array -> 5x faster calc_rice_params()Michael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/golomb: Remove disabled and broken codeMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mss2: use < 0 instead of != 0 to check for error of vlc initializationMichael Niedermayer2015-05-19
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavcodec/x265: detect csps in libx265_encode_init_csp()Steve Borho2015-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this change, if you link with an 8bit libx265 and try to specify a 10bit input color space via: ffmpeg -i in.mov -c:v libx265 -pix_fmt yuv420p10le out.mp4 It will error with: Incompatible pixel format 'yuv420p10le' for codec 'libx265', auto-selecting format 'yuv420p' With this fix, it will learn if a 10bit libx265 is available at startup, and thus allow 10bit input color spaces. Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/snow_dwt: Remove ff_ prefix from ff_spatial_idwt_init() and ↵Michael Niedermayer2015-05-18
| | | | | | | | | | | | | | | | ff_spatial_idwt_slice() They are only used once in the file in which they are defined Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevc_cabac: Rename ff_hevc_transform_skip_flag_decode() to ↵Michael Niedermayer2015-05-18
| | | | | | | | | | | | | | | | hevc_transform_skip_flag_decode() The function is static and used once in the file its defined in Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'rbultje/vp9-bugfixes'Michael Niedermayer2015-05-18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rbultje/vp9-bugfixes: vp9: match another find_ref_mvs() bug in libvpx. vp9: fix scaled motion vector clipping for sub8x8 blocks. vp9: improve signbias check. vp9: don't allow compound references if error_resilience is enabled. vp9: clamp segmented lflvl before applying ref/mode deltas. vp9: reset loopfilter mode/ref deltas on keyframe. vp9: fix crash when playing back 440/440 content with width%64<56. vp9: extend loopfilter workaround for vp9 h/v mix-up to work for 422. vp9: clip motion vectors in the same way as libvpx does. vp9: set skip flag if the block had no coded coefficients. vp9: apply mv scaling workaround only when subsampling is enabled. vp9: read all 4x4 blocks in sub8x8 blocks individually with scalability. vp9: fix segmentation map referencing upon framesize change. vp9: disable more pmulhrsw optimizations in idct16/32. vp9: disable all pmulhrsw in 8/16 iadst x86 optimizations. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | vp9: match another find_ref_mvs() bug in libvpx.Ronald S. Bultje2015-05-16
| | | | | | | | | | | | | | | | | | | | | If we find a second non-sub8x8 motion vector for a non-first sub8x8 block, and the clamped value is identical to the first non-sub8x8 motion vector, then the resulting nearmv motion vector is forced to zero.
| * | vp9: fix scaled motion vector clipping for sub8x8 blocks.Ronald S. Bultje2015-05-16
| | | | | | | | | | | | To match the obscure clipping bug behaviour in libvpx.
| * | vp9: improve signbias check.Ronald S. Bultje2015-05-15
| | | | | | | | | | | | | | | Otherwise it will still scale motion vectors, which leads to corrupted prediction.
| * | vp9: don't allow compound references if error_resilience is enabled.Ronald S. Bultje2015-05-15
| | | | | | | | | | | | | | | | | | libvpx (probably accidentally) clears the bits if error_res is set, along with keyframe/intraonly. This probably wasn't the intention (since it's local data), but it's behaviour we have to copy...
| * | vp9: clamp segmented lflvl before applying ref/mode deltas.Ronald S. Bultje2015-05-15
| | |
| * | vp9: reset loopfilter mode/ref deltas on keyframe.Ronald S. Bultje2015-05-15
| | |
| * | vp9: fix crash when playing back 440/440 content with width%64<56.Ronald S. Bultje2015-05-15
| | |
| * | vp9: extend loopfilter workaround for vp9 h/v mix-up to work for 422.Ronald S. Bultje2015-05-15
| | |
| * | vp9: clip motion vectors in the same way as libvpx does.Ronald S. Bultje2015-05-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The practical effect of this is that the scaling will wrongly not be applied to the interpolation edge (the 3/4 constants in this patch). In other words, we clip to the pre-scaling interpolation, even though these should be clipped post-scaling. The resulting out-of-frame MVs are thus automatically clipped within the visible portion of the frame, which is probably not the intention, but is unfortunately what libvpx does, so we need to copy that behaviour.
| * | vp9: set skip flag if the block had no coded coefficients.Ronald S. Bultje2015-05-14
| | | | | | | | | | | | | | | | | | This reproduces libvpx behaviour. It seems like it originally only targeted loopfilter behaviour, but this unfortunately effects following block contexting and thus directs bitstream sync.
| * | vp9: apply mv scaling workaround only when subsampling is enabled.Ronald S. Bultje2015-05-14
| | |
| * | vp9: read all 4x4 blocks in sub8x8 blocks individually with scalability.Ronald S. Bultje2015-05-14
| | |
| * | vp9: fix segmentation map referencing upon framesize change.Ronald S. Bultje2015-05-14
| | |
| * | vp9: disable more pmulhrsw optimizations in idct16/32.Ronald S. Bultje2015-05-14
| | | | | | | | | | | | | | | For idct16, only when called from a adst16x16 variant, so impact is minor. For idct32, for all, so relatively major impact.
| * | vp9: disable all pmulhrsw in 8/16 iadst x86 optimizations.Ronald S. Bultje2015-05-14
| | | | | | | | | | | | They all overflow in various samples that are considered valid input.
* | | avcodec/golomb: fix reading huge signed rice golomb valuesMichael Niedermayer2015-05-17
| | | | | | | | | | | | | | | | | | No testcase is known, nor any case where such huge values would occur Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/golomb: get_ur_golomb_jpegls: Fix reading huge k valuesMichael Niedermayer2015-05-17
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/flacdec: Attempt to auto-detect old buggy flacMichael Niedermayer2015-05-17
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | lavc/vc1: Never decode vc1 as gray if gray decoding was not enabled.Carl Eugen Hoyos2015-05-17
| | |
* | | lavc: Print a warning if gray decoding was requested but not enabled.Carl Eugen Hoyos2015-05-17
| | |
* | | lavc/h263: Set color_range for gray decoding.Carl Eugen Hoyos2015-05-17
| | |
* | | lavc/vc1: Set color_range for gray decoding.Carl Eugen Hoyos2015-05-17
| | |
* | | lavc/qdrw: Fix overwrite when reading invalid Quickdraw images.Carl Eugen Hoyos2015-05-17
| | |
* | | lavc/flac: Fix encoding and decoding with high lpc.Carl Eugen Hoyos2015-05-17
| | | | | | | | | | | | | | | | | | Based on an analysis by trac user lvqcl. Fixes ticket #4421, reported by Chase Walker.
* | | lavc/flacdec: Sanitize FLACSTREAMINFO usage.Carl Eugen Hoyos2015-05-17
| | |
* | | avcodec/aacenc: use < 0 instead of != 0 for error checksMichael Niedermayer2015-05-16
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/j2kenc: Use ret < 0 instead of ret != 0 for error checksMichael Niedermayer2015-05-16
| | | | | | | | | | | | | | | | | | This is how most code in FFmpeg checks for failures Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/hevc: Fix typo in num_entry_point_offsets checkMichael Niedermayer2015-05-15
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avcodec/libtheoraenc: Check for av_malloc failureMichael Niedermayer2015-05-15
| | | | | | | | | | | | | | | | | | Fixes CID1257799 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>