mirror of https://github.com/mpv-player/mpv
64d56114ed
Can be enabled via --vd-lavc-dr=yes. See manpage additions for what it does. This reminds of the MPlayer -dr flag, but the implementation is completely different. It's the same basic concept: letting the decoder render into a GPU buffer to avoid a copy. Unlike MPlayer, this doesn't try to go through filters (libavfilter doesn't support this anyway). Unless a filter can work in-place, DR will be silently disabled. MPlayer had very complex semantics about buffer types and management (which apparently nobody ever understood) and weird restrictions that mostly limited it to mpeg2 style codecs. The mpv code does not do any of this, and just lets the decoder allocate an arbitrary number of untyped images. (No MPlayer code was used.) Parts of the code based on work by atomnuker (starting point for the generic code) and haasn (some GL definitions, some basic PBO code, and correct fencing). |
||
---|---|---|
.. | ||
d3d.c | ||
d3d.h | ||
dec_video.c | ||
dec_video.h | ||
hw_cuda.c | ||
hw_d3d11va.c | ||
hw_dxva2.c | ||
hw_videotoolbox.c | ||
lavc.h | ||
vd.h | ||
vd_lavc.c |