mpv/video/decode
wm4 a8e69707f7 vd_lavc: add DR1 support
Replace libavcodec's native buffer allocation with code taken from
ffplay/ffmpeg's libavfilter support. The code in lavc_dr1.c is directly
copied from cmdutils.c. Note that this is quite arcane code, which
contains some workarounds for decoder bugs and the like. This is not
really a maintainance burden, since fixes from ffmpeg can be directly
applied to the code in lavc_dr1.c.

It's unknown why libavcodec doesn't provide such a function directly.
avcodec_default_get_buffer() can't be reused for various reasons.
There's some hope that the work known as The Evil Plan [1] will make
custom get_buffer implementations unneeded.

The DR1 support as of this commit does nothing. A future commit will
use it to implement ref-counting for mp_image (similar to how AVFrame
will be ref-counted with The Evil Plan.)

[1] http://lists.libav.org/pipermail/libav-devel/2012-December/039781.html
2013-01-13 17:39:32 +01:00
..
dec_video.c video: simplify decoder pixel format handling 2013-01-13 17:39:31 +01:00
dec_video.h
lavc.h vd_lavc: add DR1 support 2013-01-13 17:39:32 +01:00
lavc_dr1.c vd_lavc: add DR1 support 2013-01-13 17:39:32 +01:00
vd.c vd_lavc: remove codec DR 2013-01-13 17:39:32 +01:00
vd.h vd_lavc: remove codec DR 2013-01-13 17:39:32 +01:00
vd_lavc.c vd_lavc: add DR1 support 2013-01-13 17:39:32 +01:00