summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
Commit message (Collapse)AuthorAge
* avcodec/mpegvideo: Use FF_ALLOCZ_ARRAY_OR_GOTO()Michael Niedermayer2014-09-10
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: Set err on failure in ff_mpv_common_frame_size_change()Michael Niedermayer2014-09-07
| | | | | Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: check that the context is initialized in ↵Michael Niedermayer2014-09-07
| | | | | | | | | | | ff_mpv_common_frame_size_change() The function otherwise would initialize the context without setting context_initialized alternatively we could set context_initialized Fixes valgrind anomalies related to ticket 3928 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: Use "goto fail" for all error paths in ↵Michael Niedermayer2014-09-07
| | | | | | ff_mpv_common_frame_size_change() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: free_context_frame() cannot fail, make it return voidMichael Niedermayer2014-09-07
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: set codec tags in ff_mpv_decode_init()Michael Niedermayer2014-09-05
| | | | | | | Fixes Ticket3912 Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* avcodec/mpegvideo: Factor ff_mpv_decode_init() outMichael Niedermayer2014-09-05
| | | | | Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* rl.h: Use on-stack temporary VLC tables instead of having them static.Reimar Döffinger2014-09-02
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* rl.h: remove deprecated and now unused vlc member.Reimar Döffinger2014-09-02
| | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* avfilter: add codecview filterClément Bœsch2014-08-24
|
* avcodec: export motion vectors in frame side data on demandClément Bœsch2014-08-18
| | | | | | | | | | | | | | | The reasoning behind this addition is that various third party applications are interested in getting some motion information out of a video "for free" when it is available. It was considered to export other information as well (such as the intra information about the block, or the quantization) but the structure might have ended up into a half full-generic, half full of codec specific cruft. If more information is necessary, it should either be added in the "flags" field of the AVMotionVector structure, or in another side-data. This commit also includes an example exporting them in a CSV stream.
* Merge commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39'Michael Niedermayer2014-08-15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'f929ab0569ff31ed5a59b0b0adb7ce09df3fca39': cosmetics: Write NULL pointer equality checks more compactly Conflicts: cmdutils.c ffmpeg_opt.c ffplay.c libavcodec/dvbsub.c libavcodec/dvdsubdec.c libavcodec/dvdsubenc.c libavcodec/dxa.c libavcodec/libxvid_rc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/tiffenc.c libavcodec/utils.c libavcodec/vc1dec.c libavcodec/zmbv.c libavdevice/v4l2.c libavformat/matroskadec.c libavformat/movenc.c libavformat/sdp.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit '835f798c7d20bca89eb4f3593846251ad0d84e4b'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '835f798c7d20bca89eb4f3593846251ad0d84e4b': mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixes Conflicts: libavcodec/h261dec.c libavcodec/intrax8.c libavcodec/mjpegenc.c libavcodec/mpeg12dec.c libavcodec/mpeg12enc.c libavcodec/mpeg4videoenc.c libavcodec/mpegvideo.c libavcodec/mpegvideo.h libavcodec/mpegvideo_enc.c libavcodec/rv10.c libavcodec/x86/mpegvideoenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: cosmetics: Lowercase ugly uppercase MPV_ function name prefixesDiego Biurrun2014-08-15
| |
* | Merge commit '998c9f15d1ca8c7489775ebcca51623b915988f1'Michael Niedermayer2014-08-15
|\| | | | | | | | | | | | | | | | | | | | | | | | | * commit '998c9f15d1ca8c7489775ebcca51623b915988f1': idct: remove call to ff_idctdsp_init from ff_MPV_common_init Conflicts: libavcodec/dnxhdenc.c libavcodec/h263dec.c libavcodec/mpegvideo.c libavcodec/mpegvideo.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * idct: remove call to ff_idctdsp_init from ff_MPV_common_initJohn Stebbins2014-08-14
| | | | | | | | | | One step in untangling the mpegvideo code and fixing some problems in the order that initialization is being done in h263dec and h261dec.
* | Merge commit '16e6652286213014c28a9c3af70435e767d28638'Michael Niedermayer2014-07-22
|\| | | | | | | | | | | | | | | | | | | * commit '16e6652286213014c28a9c3af70435e767d28638': aarch64: NEON intrinsics dct_unquantize_h263. Conflicts: libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * aarch64: NEON intrinsics dct_unquantize_h263.James Yu2014-07-21
| | | | | | | | | | | | | | | | | | Intrinsics only used on aarch64 since the existing ARMv7 NEON asm is slightly faster (Cortex-A9, gcc-4.8, micro-benchmarks and full decoding time). Signed-off-by: James Yu <james.yu@linaro.org> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* | Merge commit '2d60444331fca1910510038dd3817bea885c2367'Michael Niedermayer2014-07-17
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2d60444331fca1910510038dd3817bea885c2367': dsputil: Split motion estimation compare bits off into their own context Conflicts: configure libavcodec/Makefile libavcodec/arm/Makefile libavcodec/dvenc.c libavcodec/error_resilience.c libavcodec/h264.h libavcodec/h264_slice.c libavcodec/me_cmp.c libavcodec/me_cmp.h libavcodec/motion_est.c libavcodec/motion_est_template.c libavcodec/mpeg4videoenc.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/x86/Makefile libavcodec/x86/me_cmp_init.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split motion estimation compare bits off into their own contextDiego Biurrun2014-07-17
| |
* | avcodec/mpegvideo: clip mv visualization arrows so that their direction is ↵Michael Niedermayer2014-07-09
| | | | | | | | | | | | maintained Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: flip motion vector visualization for backward motion vectorsMichael Niedermayer2014-07-09
| | | | | | | | | | | | Also support changing arrow head/tail shape Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: small indent fix in vismv codeClément Bœsch2014-07-07
| |
* | Merge commit 'e3fcb14347466095839c2a3c47ebecff02da891e'Michael Niedermayer2014-07-01
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e3fcb14347466095839c2a3c47ebecff02da891e': dsputil: Split off IDCT bits into their own context Conflicts: configure libavcodec/aic.c libavcodec/arm/Makefile libavcodec/arm/dsputil_init_arm.c libavcodec/arm/dsputil_init_armv6.c libavcodec/asvdec.c libavcodec/dnxhdenc.c libavcodec/dsputil.c libavcodec/dvdec.c libavcodec/dxva2_mpeg2.c libavcodec/intrax8.c libavcodec/mdec.c libavcodec/mjpegdec.c libavcodec/mjpegenc_common.h libavcodec/mpegvideo.c libavcodec/ppc/dsputil_altivec.h libavcodec/ppc/dsputil_ppc.c libavcodec/ppc/idctdsp.c libavcodec/x86/Makefile libavcodec/x86/dsputil_init.c libavcodec/x86/dsputil_mmx.c libavcodec/x86/dsputil_x86.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split off IDCT bits into their own contextDiego Biurrun2014-06-30
| |
* | avcodec/mpegvideo: dont overwrite emu_edge bufferMichael Niedermayer2014-06-28
| | | | | | | | | | | | Fixes vsynth3 fate failures on mips Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'fab9df63a3156ffe1f9490aafaea41e03ef60ddf'Michael Niedermayer2014-06-23
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fab9df63a3156ffe1f9490aafaea41e03ef60ddf': dsputil: Split off global motion compensation bits into a separate context Conflicts: libavcodec/dsputil.c libavcodec/dsputil.h libavcodec/ppc/dsputil_altivec.h libavcodec/x86/dsputil_init.c libavcodec/x86/dsputil_mmx.c libavcodec/x86/dsputil_x86.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split off global motion compensation bits into a separate contextDiego Biurrun2014-06-23
| |
* | Merge commit '7b9ef8d701c319c26f7d0664fe977e176764c74e'Michael Niedermayer2014-06-23
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '7b9ef8d701c319c26f7d0664fe977e176764c74e': mpeg: Split error resilience bits off into a separate file Conflicts: configure libavcodec/Makefile libavcodec/mpegvideo.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpeg: Split error resilience bits off into a separate fileDiego Biurrun2014-06-22
| |
* | Merge commit '8d695dc411c1ae28477f107d6f7bf2db59af95df'Michael Niedermayer2014-06-23
|\| | | | | | | | | | | | | * commit '8d695dc411c1ae28477f107d6f7bf2db59af95df': mpeg: Mark ff_mpeg_set_erpic() static Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpeg: Mark ff_mpeg_set_erpic() staticDiego Biurrun2014-06-22
| | | | | | | | It is not used outside of the file.
* | Merge commit 'e74433a8e6fc00c8dbde293c97a3e45384c2c1d9'Michael Niedermayer2014-06-19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e74433a8e6fc00c8dbde293c97a3e45384c2c1d9': dsputil: Split clear_block*/fill_block* off into a separate context Conflicts: configure libavcodec/asvdec.c libavcodec/dnxhddec.c libavcodec/dnxhdenc.c libavcodec/dsputil.h libavcodec/eamad.c libavcodec/intrax8.c libavcodec/mjpegdec.c libavcodec/ppc/dsputil_ppc.c libavcodec/vc1dec.c libavcodec/x86/dsputil_init.c libavcodec/x86/dsputil_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split clear_block*/fill_block* off into a separate contextDiego Biurrun2014-06-18
| |
* | Fix all VDPAU decoders.Carl Eugen Hoyos2014-06-18
| | | | | | | | Fixes ticket #3726.
* | avcodec/mpegvideo: check that linesize is not too smallMichael Niedermayer2014-06-13
| | | | | | | | | | | | Note linesize is rounded up to at least a multiple of 8 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: fix edge emulation with uvlinesize below 25Michael Niedermayer2014-06-13
| | | | | | | | | | | | Fixes fate-vsynth3-wmv2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '0ddc53dabbc6f636d062b187ea27934610aaad30'Michael Niedermayer2014-06-11
|\| | | | | | | | | | | | | | | | | | | | | * commit '0ddc53dabbc6f636d062b187ea27934610aaad30': mpegvideo: synchronize AVFrame pointers in ERContext fully Conflicts: libavcodec/mpegvideo.c See: 8ef9dcf1d74aea55bf39f1e479fe67e98d973954 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: synchronize AVFrame pointers in ERContext fullyJanne Grunau2014-06-11
| | | | | | | | | | | | | | | | Since error resilience uses AVFrame pointers instead of references it has to copy NULL pointers too. After a codec flush the last/next frame pointers in MpegEncContext are NULL and the old pointers remaining in ERContext are invalid. Fixes a crash in vlc for android thumbnailer. Reported and debugged by Adrien Maglo <magsoft@videolan.org>.
* | Merge commit '368f50359eb328b0b9d67451f56fda20b3255f9a'Michael Niedermayer2014-05-30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '368f50359eb328b0b9d67451f56fda20b3255f9a': dsputil: Split off quarterpel bits into their own context Conflicts: configure libavcodec/dsputil.c libavcodec/h263dec.c libavcodec/mpegvideo.c libavcodec/mpegvideo_enc.c libavcodec/vc1dec.c libavcodec/vc1dsp.c libavcodec/x86/dsputil_init.c libavcodec/x86/qpeldsp.asm Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Split off quarterpel bits into their own contextDiego Biurrun2014-05-29
| |
* | Merge commit '3832a6590156e6abc575bed51cbffa78617ee5fd'Michael Niedermayer2014-05-30
|\| | | | | | | | | | | | | * commit '3832a6590156e6abc575bed51cbffa78617ee5fd': dsputil: Move ff_alternate_*_scan tables to mpegvideo Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsputil: Move ff_alternate_*_scan tables to mpegvideoDiego Biurrun2014-05-29
| |
* | Merge commit 'a871ef0cc936612bdb0e643196be72efcf0c8986'Michael Niedermayer2014-05-11
|\| | | | | | | | | | | | | | | | | | | * commit 'a871ef0cc936612bdb0e643196be72efcf0c8986': hwaccel: Rename priv_data_size to frame_priv_data_size Conflicts: libavcodec/avcodec.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * hwaccel: Rename priv_data_size to frame_priv_data_sizeAnton Khirnov2014-05-11
| | | | | | | | This describes more accurately what this field is for.
* | avcodec/mpegvideo: fix gray*() parameter typesMichael Niedermayer2014-05-02
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/mpegvideo: support disabling motion compensationMichael Niedermayer2014-05-02
| | | | | | | | | | | | This allows analyzing videos without having prior and current frames mixed Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'c1f92d13589d431e576d719dd44427486a5e05cd'Michael Niedermayer2014-04-30
|\| | | | | | | | | | | | | * commit 'c1f92d13589d431e576d719dd44427486a5e05cd': mpegvideo: remove unused MpegEncContext.b4_stride Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * mpegvideo: remove unused MpegEncContext.b4_strideAnton Khirnov2014-04-29
| |