1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00
mpv/video/out
wm4 5accc5e7c1 vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API
Move the decoder parts from vo_vdpau.c to a new file vdpau_old.c. This
file is named so because because it's written against the "old"
libavcodec vdpau pseudo-decoder (e.g. "h264_vdpau").

Add support for the "new" libavcodec vdpau support. This was recently
added and replaces the "old" vdpau parts. (In fact, Libav is about to
deprecate and remove the "old" API without deprecation grace period,
so we have to support it now. Moreover, there will probably be no Libav
release which supports both, so the transition is even less smooth than
we could hope, and we have to support both the old and new API.)

Whether the old or new API is used is checked by a configure test: if
the new API is found, it is used, otherwise the old API is assumed.

Some details might be handled differently. Especially display preemption
is a bit problematic with the "new" libavcodec vdpau support: it wants
to keep a pointer to a specific vdpau API function (which can be driver
specific, because preemption might switch drivers). Also, surface IDs
are now directly stored in AVFrames (and mp_images), so they can't be
forced to VDP_INVALID_HANDLE on preemption. (This changes even with
older libavcodec versions, because mp_image always uses the newer
representation to make vo_vdpau.c simpler.)

Decoder initialization in the new code tries to deal with codec
profiles, while the old code always uses the highest profile per codec.

Surface allocation changes. Since the decoder won't call config() in
vo_vdpau.c on video size change anymore, we allow allocating surfaces
of arbitrary size instead of locking it to what the VO was configured.
The non-hwdec code also has slightly different allocation behavior now.

Enabling the old vdpau special decoders via e.g. --vd=lavc:h264_vdpau
doesn't work anymore (a warning suggesting the --hwdec option is
printed instead).
2013-07-28 19:25:07 +02:00
..
aspect.c vo: remove aspdat.asp member 2013-07-18 13:57:28 +02:00
aspect.h video: simplify aspect calculation stuff 2013-03-17 22:07:13 +01:00
bitmap_packer.c Silence some compiler warnings 2013-05-21 00:04:27 +02:00
bitmap_packer.h
cocoa_common.h cocoa_common: remove play/pause VOCTRL functions 2013-06-14 07:34:47 +02:00
cocoa_common.m cocoa_common: fix regression in draggable state computation 2013-07-21 21:02:44 +02:00
d3d_shader_yuv.h
d3d_shader_yuv.hlsl vo_direct3d: remove 2ch hack for 10 bit playback 2013-01-13 20:04:14 +01:00
dither.c dither: don't use long double 2013-07-05 20:26:32 +02:00
dither.h gl_video: improve dithering 2013-05-26 16:44:20 +02:00
filter_kernels.c
filter_kernels.h
gl_cocoa.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_common.c vo_opengl: some option changes 2013-07-22 02:14:15 +02:00
gl_common.h vo_opengl_old: use new option API 2013-07-22 01:50:22 +02:00
gl_header_fixes.h gl_header_fixes: add GL_RGBA32F 2013-03-28 22:55:56 +01:00
gl_lcms.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
gl_lcms.h vo_opengl: split into multiple files, convert to new option API 2013-03-28 21:46:17 +01:00
gl_osd.c add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_osd.h add a way to resize window contents without VO resize 2013-05-12 15:27:54 +02:00
gl_video_shaders.glsl gl_video: add support for more rgb formats 2013-07-18 13:52:38 +02:00
gl_video.c gl_video: make sure image parameters are correctly set on screenshots 2013-07-26 00:26:04 +02:00
gl_video.h vo_opengl: handle chroma location 2013-06-28 21:20:41 +02:00
gl_w32.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
gl_wayland.c wayland: Fallback to any GL version if 3.0 is not supported 2013-07-19 04:30:23 -07:00
gl_x11.c video/out: introduce vo_control for gl_common based VOs 2013-05-26 16:44:18 +02:00
pnm_loader.c
pnm_loader.h
vo_caca.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_corevideo.h
vo_corevideo.m video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_direct3d.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_image.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_lavc.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_null.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo_opengl_old.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
vo_opengl.c m_config: refactor some things 2013-07-28 18:44:21 +02:00
vo_sdl.c Fix some -Wshadow warnings 2013-07-23 00:45:23 +02:00
vo_vdpau.c vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00
vo_x11.c video: support setting libswscale chroma position 2013-07-25 23:03:20 +02:00
vo_xv.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo.c video/out: remove options argument from preinit() 2013-07-22 22:52:42 +02:00
vo.h vdpau: split off decoder parts, use "new" libavcodec vdpau hwaccel API 2013-07-28 19:25:07 +02:00
w32_common.c w32_common: Don't use globals for TRACKMOUSEEVENT 2013-07-25 14:47:49 -03:00
w32_common.h w32_common: Don't use globals for TRACKMOUSEEVENT 2013-07-25 14:47:49 -03:00
wayland_common.c Remove subopt-helper 2013-07-22 22:42:55 +02:00
wayland_common.h wayland: use a unified struct for the state 2013-07-18 17:52:56 +02:00
x11_common.c x11: add key modifiers to mouse button events 2013-07-21 18:07:09 +02:00
x11_common.h video: remove fullscreen flags chaos 2013-07-18 14:07:21 +02:00