1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-10 08:59:45 +00:00
mpv/video/out
wm4 b0b01aa250 vo_opengl: refactor how hwdec interop exports textures
Rename gl_hwdec_driver.map_image to map_frame, and let it fill out a
struct gl_hwdec_frame describing the exact texture layout. This gives
more flexibility to what the hwdec interop can export. In particular, it
can export strange component orders/permutations and textures with
padded size. (The latter originating from cropped video.)

The way gl_hwdec_frame works is in the spirit of the rest of the
vo_opengl video processing code, which tends to put as much information
in immediate state (as part of the dataflow), instead of declaring it
globally. To some degree this duplicates the texplane and img_tex
structs, but until we somehow unify those, it's better to give the hwdec
state its own struct. The fact that changing the hwdec struct would
require changes and testing on at least 4 platform/GPU combinations
makes duplicating it almost a requirement to avoid pain later.

Make gl_hwdec_driver.reinit set the new image format and remove the
gl_hwdec.converted_imgfmt field.

Likewise, gl_hwdec.gl_texture_target is replaced with
gl_hwdec_plane.gl_target.

Split out a init_image_desc function from init_format. The latter is not
called in the hwdec case at all anymore. Setting up most of struct
texplane is also completely separate in the hwdec and normal cases.

video.c does not check whether the hwdec "mapped" image format is
supported. This should not really happen anyway, and if it does, the
hwdec interop backend must fail at creation time, so this is not an
issue.
2016-05-10 18:42:42 +02:00
..
cocoa os x: handle multiple dropped files on the window 2016-04-30 18:58:06 +02:00
opengl vo_opengl: refactor how hwdec interop exports textures 2016-05-10 18:42:42 +02:00
wayland Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
win32 mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
aspect.c aspect: rework --video-unscaled 2016-04-10 18:29:20 +02:00
aspect.h
bitmap_packer.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
bitmap_packer.h
cocoa_common.h
cocoa_common.m cocoa: get fps only from dislaylink 2016-01-14 11:11:43 +01:00
d3d_shader_420p.h
d3d_shader_nv12.h
d3d_shader_yuv.hlsl
dither.c Change GPL/LGPL dual-licensed files to LGPL 2016-01-19 18:36:34 +01:00
dither.h
drm_common.c Change GPL/LGPL dual-licensed files to LGPL 2016-01-19 18:36:34 +01:00
drm_common.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
filter_kernels.c filter_kernels: improve the gaussian function 2016-01-07 12:17:34 +01:00
filter_kernels.h filter_kernels.h: adjust the license 2016-01-19 18:41:11 +01:00
vo_caca.c
vo_direct3d.c vo_direct3d: remove passing device to decoder 2016-05-09 18:59:10 +02:00
vo_drm.c Change GPL/LGPL dual-licensed files to LGPL 2016-01-19 18:36:34 +01:00
vo_image.c mpv_talloc.h: rename from talloc.h 2016-01-11 21:05:55 +01:00
vo_lavc.c vo_lavc: fix build on Libav 2016-04-15 19:35:29 +02:00
vo_null.c
vo_opengl_cb.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_opengl.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_rpi.c vo_rpi: rename mutex/cond variables 2016-04-26 17:12:01 +02:00
vo_sdl.c video: remove some useless old RGB formats 2016-01-25 10:43:35 +01:00
vo_vaapi.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_vdpau.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo_wayland.c video: remove some useless old RGB formats 2016-01-25 10:43:35 +01:00
vo_x11.c vo_xv, vo_x11: warn that these VOs should not be used 2016-03-06 19:22:15 +01:00
vo_xv.c vo_xv, vo_x11: warn that these VOs should not be used 2016-03-06 19:22:15 +01:00
vo.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
vo.h video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
w32_common.c win32: make taskbar progress indication optional 2016-05-08 17:05:20 +02:00
w32_common.h
wayland_common.c wayland: use the advertised size in fullscreen 2016-05-08 19:47:08 +02:00
wayland_common.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
win_state.c video: switch from using display aspect to sample aspect 2015-12-19 20:45:36 +01:00
win_state.h
x11_common.c x11: tell GNOME to use dark window decorations 2016-05-09 20:39:59 +02:00
x11_common.h x11: move vo->input_ctx accesses to x11->input_ctx 2016-03-15 22:11:31 +01:00
x11_icon.bin