1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00
mpv/video/decode
wm4 ff9f2c4b6e vdpau: use libavutil for surface allocation during decoding
Use the libavutil vdpau frame allocation code instead of our own "old"
code. This also uses its code for copying a video surface to normal
memory (used by vdpau-copy).

Since vdpau doesn't really have an internal pixel format, 4:2:0 can be
accessed as both nv12 and yuv420p - and libavutil prefers to report
yuv420p. The OpenGL interop has to be adjusted accordingly.

Preemption is a potential problem, but it doesn't break it more than it
already is.

This requires a bug fix to FFmpeg's vdpau code, or vdpau-copy (as well
as taking screenshots) will fail. Libav has fixed this bug ages ago.
2017-01-17 15:48:56 +01:00
..
d3d.c win32: build with -DINITGUID 2016-09-28 21:38:52 +10:00
d3d.h d3d: implement screenshots for --hwdec=d3d11va 2016-06-28 20:38:53 +02:00
dec_video.c video: make decoder EOF reporting explicit 2017-01-11 11:02:57 +01:00
dec_video.h player: change aspects of cover art handling 2017-01-10 15:43:02 +01:00
hw_cuda.c build: prefix hwaccel decoder wrapper filenames with hw_ 2017-01-17 08:11:12 +01:00
hw_d3d11va.c build: prefix hwaccel decoder wrapper filenames with hw_ 2017-01-17 08:11:12 +01:00
hw_dxva2.c build: prefix hwaccel decoder wrapper filenames with hw_ 2017-01-17 08:11:12 +01:00
hw_vaapi_old.c build: prefix hwaccel decoder wrapper filenames with hw_ 2017-01-17 08:11:12 +01:00
hw_vaapi.c vaapi: move AVHWFramesContext setup code to common code 2017-01-17 15:48:56 +01:00
hw_vdpau.c vdpau: use libavutil for surface allocation during decoding 2017-01-17 15:48:56 +01:00
hw_videotoolbox.c build: prefix hwaccel decoder wrapper filenames with hw_ 2017-01-17 08:11:12 +01:00
lavc.h vaapi: move AVHWFramesContext setup code to common code 2017-01-17 15:48:56 +01:00
vd_lavc.c vaapi: move AVHWFramesContext setup code to common code 2017-01-17 15:48:56 +01:00
vd.h video: make decoder EOF reporting explicit 2017-01-11 11:02:57 +01:00