mpv/video/decode
wm4 64d56114ed vo_opengl: add direct rendering support
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).
2017-07-24 04:32:55 +02:00
..
d3d.c d3d: UWP support for D3D11VA 2017-06-30 18:57:37 +02:00
d3d.h d3d: UWP support for D3D11VA 2017-06-30 18:57:37 +02:00
dec_video.c options: drop --video-aspect-method=hybrid 2017-07-21 20:19:39 +02:00
dec_video.h vo_opengl: add direct rendering support 2017-07-24 04:32:55 +02:00
hw_cuda.c cuda: add new way to set cuda context on cuvid codecs 2017-05-05 00:48:53 +02:00
hw_d3d11va.c d3d: fix behavior with deprecated FFmpeg J pixel formats 2017-07-04 14:06:31 +02:00
hw_dxva2.c d3d: fix behavior with deprecated FFmpeg J pixel formats 2017-07-04 14:06:31 +02:00
hw_videotoolbox.c videotoolbox: support new libavcodec API 2017-05-24 15:25:48 +02:00
lavc.h vo_opengl: add direct rendering support 2017-07-24 04:32:55 +02:00
vd.h vd, vd_lavc: change license to LGPL (almost) 2017-06-15 16:32:47 +02:00
vd_lavc.c vo_opengl: add direct rendering support 2017-07-24 04:32:55 +02:00