summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
Commit message (Collapse)AuthorAge
...
* er: move relevant fields from Picture to ERPictureVittorio Giovara2014-03-16
| | | | | | | This is done to disentangle ER from mpegvideo. In order to use a classic Picture, callers can use ff_mpeg_set_erpic() or use a custom function to set the fields. Please note that buffers need to be allocated before calling ff_er_frame_end().
* mpegvideo: directly use frames in ff_draw_horiz_band()Vittorio Giovara2014-03-16
|
* mpeg: Drop unused parameters from ff_draw_horiz_band()Diego Biurrun2014-01-29
|
* avutil: remove timer.h include from internal.hJanne Grunau2014-01-25
| | | | Added libavutil/timer.h include to all files with {START,STOP}_TIMER.
* mpegvideo: allocate edges when encoding.Anton Khirnov2014-01-20
| | | | | Allocating edges will be removed from generic code, so the encoder must handle this explicitly.
* mpegvideo: drop support for real (non-emulated) edgesAnton Khirnov2014-01-09
| | | | | | | Several decoders disable those anyway and they are not measurably faster on x86. They might be somewhat faster on other platforms due to missing emu edge SIMD, but the gain is not large enough (and those decoders relevant enough) to justify the added complexity.
* mpegvideo: remove disabled bfin asmAnton Khirnov2014-01-03
| | | | It has been disabled as 'broken' over 3 years ago in b716a792
* mpegvideo: move dct_unquantize functions up to avoid forward declarationsAnton Khirnov2014-01-03
|
* mpegvideo: split the encoding-only parts of frame_start() into a separate ↵Anton Khirnov2014-01-03
| | | | | | | function This introduces some code duplication. However, much of it should go away once the decoders stop using MpegEncContext.
* mpegvideo: set reference/pict_type on generated reference framesAnton Khirnov2014-01-03
| | | | | | | | | Otherwise the generic code will unref them, which can then result in last_picture_ptr == current_picture_ptr, which causes deadlocks at least in rv40. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* mpegvideo: call av_frame_unref() instead of avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | | | This is a temporary workaround to allow deprecating avcodec_get_frame_defaults(). The proper solution will be using a properly allocated AVFrame in Picture.
* mpegvideo: remove an unneeded call to avcodec_get_frame_defaults().Anton Khirnov2013-12-11
| | | | ff_mpeg_unref_picture() already resets the frame.
* mpegvideo: make ff_release_unused_pictures() staticAnton Khirnov2013-12-05
| | | | | It is only called from one place in mpegvideo.c now. Also remove the remove_current parameter, which is always 1.
* mpegvideo: make frame_size_alloc() static.Anton Khirnov2013-12-05
| | | | It is not called from outside of mpegvideo.c anymore.
* mpegvideo: move encode-only parts of common_end() to encode_end()Anton Khirnov2013-12-05
|
* mpegvideo: remove commented out cruft from ff_MPV_frame_end()Anton Khirnov2013-12-05
|
* mpegvideo: split the encoding-only parts of ff_MPV_frame_end() into a ↵Anton Khirnov2013-12-05
| | | | separate function
* mpegvideo: do not update last_non_b_pict_type in update_thread_context()Anton Khirnov2013-12-05
| | | | It is used for encoding only.
* mpegvideo: move encoding-only initialization from common_init() to encode_init()Anton Khirnov2013-12-05
|
* mpegvideo: move setting encoding-only vars from common_defaults() to ↵Anton Khirnov2013-12-05
| | | | encode_defaults()
* mpegvideo: don't copy input_picture_number in update_thread_context()Anton Khirnov2013-12-05
| | | | It is encoding-only, frame threading is not used for encoding.
* mpeg4videodec: move MpegEncContext.time_increment_bits to Mpeg4DecContextAnton Khirnov2013-11-29
| | | | The field remains in MpegEncContext for use in the encoder.
* mpeg4videodec: move MpegEncContext.shape to Mpeg4DecContextAnton Khirnov2013-11-29
|
* mpegvideo: Fix swapping of UV planes for VCR2Kostya Shishkov2013-11-19
|
* lavc: use buf[0] instead of data[0] in checks whether a frame is allocatedAnton Khirnov2013-11-18
| | | | data[0] may be NULL for valid frames with hwaccel pixel formats.
* Deprecate obsolete XvMC hardware decoding supportDiego Biurrun2013-11-13
| | | | | | | XvMC has long ago been superseded by newer acceleration APIs, such as VDPAU, and few downstreams still support it. Furthermore XvMC is not implemented within the hwaccel framework, but requires its own specific code in the MPEG-1/2 decoder, which is a maintenance burden.
* Remove all Alpha architecture optimizationsDiego Biurrun2013-11-13
| | | | Alpha has been end-of-lifed and no more test machines are available.
* lavc: deprecate FF_DEBUG_MV and remove all traces of its useAnton Khirnov2013-10-31
| | | | | | It has not been actually used since 37045e422903695e610cca6ecb753df643ab9380, when the broken vismv code was removed.
* mpegvideo: Drop a faulty assertLuca Barbato2013-10-23
| | | | | | | That check is easily reachable by faulty input. CC:libav-stable@libav.org Reported-by: Torsten Sadowski <tsadowski@gmx.net>
* mpegvideo: Initialize chroma_*_shift and codec_tag even if the size is 0Martin Storsjö2013-09-24
| | | | | | | | | | | | This fixes breakage in a few fate tests on certain setups (that for some reason didn't break on OS X) after the previous commit (8812a8057). Currently, some video streams are initialized in ff_MPV_common_init with width/height set at 0 and only changed to a proper video size with ff_MPV_common_frame_size_change later. The breakage was diagnosed by Anton Khirnov. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: Replace arch initialization ifdeffery by standard conditionalsDiego Biurrun2013-08-28
|
* vdpau: remove old-style decodersRémi Denis-Courmont2013-08-05
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: unref buffers in ff_mpeg_unref_picture on frame size changesJanne Grunau2013-05-22
| | | | | | ff_mpeg_unref_picture clears the flag indicating that the frame needs to be reallocated after a frame size change. Since we have now reference counted buffers we can unref the buffers immediately.
* mpegvideo: unref old current_picture before allocating a new oneJanne Grunau2013-05-19
| | | | | | Allows decoding with only three frame buffers with frame reference counting. Fixes VAAPI based decoding in vlc which uses only three frame buffers for the mpegvideo-based codecs.
* mpegvideo: allocate sufficiently large scratch buffer for interlaced vidJindrich Makovicka2013-05-17
| | | | | | | | | | | | | | | | MPV_decode_mb_internal needs 3 * 16 * linesize bytes of scratch buffer For interlaced content, linesize is multiplied by two after the allocation of the scratch buffer, and the dest_cr pointer ends past the buffer. This patch makes ff_mpv_frame_size_alloc allocate a total of (aligned line_size) * 2 * 16 * 3 bytes, which suffices even for the interlaced case. CC:libav-stable@libav.org Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Remove commented-out debug #define cruftDiego Biurrun2013-05-16
|
* mpegvideo: Remove commented-out PARANOID debug cruftDiego Biurrun2013-05-15
|
* avcodec: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-04
|
* ppc: More consistent arch initializationDiego Biurrun2013-04-30
|
* mpegvideo: unref cur/next/prev frames when flushingHendrik Leppkes2013-04-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: Use hpeldsp instead of dsputil for half-pel functionsRonald S. Bultje2013-04-19
| | | | | | This also converts vc1, since that is mpegvideo-based. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Move start code finding to utils.cMartin Storsjö2013-03-26
| | | | | | | | | | This allows dropping the mpegvideo dependency from a number of components. This also fixes standalone building of the h264 parser, which was broken in 64e438697. Signed-off-by: Martin Storsjö <martin@martin.st>
* mpegvideo: allocate hwaccel privdata after the frame bufferHendrik Leppkes2013-03-19
| | | | | | | | | | This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when moving between displays. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix allocation of the hwaccel_picture_private dataHendrik Leppkes2013-03-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: reindentAnton Khirnov2013-03-11
|
* mpegvideo: remove useless references to h264 and svq3Anton Khirnov2013-03-11
| | | | | The h264 decoder does not use mpegvideo anymore. The svq3 decoder only uses ff_draw_horiz_band().
* mpegvideo: drop vismv codeAnton Khirnov2013-03-08
| | | | | It has been broken for over a year without anyone complaining or noticing, thus proving that nobody ever uses it.
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* lavc: move AVFrame.hwaccel_picture_private to Picture.Anton Khirnov2013-03-08
| | | | | This field is private and should not be present in a public struct. It is only used in DXVA with mpegvideo-based decoders currently.
* mpegvideo: Conditionally build error_resilience bitsMartin Storsjö2013-03-07
| | | | | This breaks the dependency of mpegvideo on error_resilience allowing compilation of components that depend on the former w/o the latter.