1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-21 07:16:56 +00:00
mpv/video/out
Dudemanguy 7a80330be3 wayland: properly use tranche_formats when getting compositor formats
It's a bit roundabout, but we were doing this incorrectly before. The
format table alone isn't good enough because it is possible the the
compositor may advertise different formats for a specific device which
is a subset of the format table. What we need to do is add formats based
on the array in tranche_formats. Note that it is possible for the
compositor to send multiple tranches (was not able to simulate this but
it's allowed by the protocol). For mpv, we only care about the very
first one which is supposed to be the most preferred one. The compositor
can also send the entire chain of events (main device, format_table,
tranches, etc.) all over again. We handle this in the wayland code, but
handling this in mpv's core code isn't done. e.g. say a format in use
was suddenly no longer supported. We ideally should do a full reconfig
in this case, but that gets complicated and is pretty niche so save that
for another day. Multiple GPUs isn't taken into account either. We just
pick the first one. Not strictly correct, but close enough for us.
Fixes #14544.
2024-09-16 00:07:36 +00:00
..
d3d11 vo: hwdec: add AVHWDeviceType property to hwdecs 2024-08-10 14:24:36 -07:00
gpu meson: require Vulkan loader/headers >= 1.3.238 2024-09-14 17:20:16 +02:00
gpu_next vo_gpu_next: fix -Wembedded-directive warning 2024-03-19 08:58:18 +01:00
hwdec vo_dmabuf_wayland: reject formats not supported by the GPU 2024-09-16 00:07:36 +00:00
mac cocoa-cb: add support for macOS color space transformation (EDR/HDR) 2024-05-05 19:02:50 +02:00
opengl context_drm_egl: always use drmModeAddFB2WithModifiers 2024-08-11 08:22:59 -07:00
placebo video/out/placebo/utils: fix -Wignored-qualifiers warning 2024-03-19 08:58:18 +01:00
vulkan meson: require Vulkan loader/headers >= 1.3.238 2024-09-14 17:20:16 +02:00
win32 win32: make context menu items accessible from the window menu 2024-05-03 16:36:02 +02:00
wldmabuf wayland: properly use tranche_formats when getting compositor formats 2024-09-16 00:07:36 +00:00
android_common.c
android_common.h
aspect.c
aspect.h
bitmap_packer.c
bitmap_packer.h
cocoa_cb_common.swift cocoa-cb: guard color spaces that are only available on 10.15.4 upwards 2024-06-18 19:30:07 +02:00
dither.c
dither.h
dr_helper.c
dr_helper.h
drm_atomic.c various: fix indentation 2024-05-07 11:23:08 +02:00
drm_atomic.h
drm_common.c build: detect VT_GETMODE on OpenBSD 2024-07-29 15:09:49 +00:00
drm_common.h vo_drm: add support for YUYV format 2024-03-16 13:27:34 +01:00
drm_prime.c drm_prime: fix use of formats with modifiers 2024-08-11 08:22:59 -07:00
drm_prime.h
filter_kernels.c vo_gpu{,_next}: convert scale options to type choice 2024-09-14 17:06:07 +02:00
filter_kernels.h vo_gpu{,_next}: convert scale options to type choice 2024-09-14 17:06:07 +02:00
libmpv_sw.c
libmpv.h
mac_common.swift mac: code cleanup and consistency changes, fix linting issues 2024-04-28 20:21:18 +02:00
meson.build wayland: bump wayland-protocol requirement to 1.31 2024-07-08 13:33:32 +00:00
present_sync.c
present_sync.h
vo_caca.c
vo_direct3d.c vo_direct3d: support video-target-params 2024-03-27 22:08:56 +01:00
vo_dmabuf_wayland.c vo_dmabuf_wayland: reject formats not supported by the GPU 2024-09-16 00:07:36 +00:00
vo_drm.c vo_{drm,wlshm}: make query_format checks more correct 2024-03-16 13:27:34 +01:00
vo_gpu_next.c vo_gpu_next: allow setting antiring value for cscale 2024-09-15 18:54:23 +02:00
vo_gpu.c vo_gpu: restore dovi mapping directly on image_params after init 2024-09-03 17:08:28 +02:00
vo_image.c image_writer: fix TOCTOU in screenshot filename generation 2024-03-19 19:30:27 +01:00
vo_kitty.c terminal: add terminal_set_mouse_input function 2024-04-18 01:03:33 +02:00
vo_lavc.c csputils: replace mp_colorspace with pl_color_space 2024-01-22 14:54:55 +00:00
vo_libmpv.c mac/apphub: migrate remaining events functionality to new AppHub 2024-03-24 23:03:48 +01:00
vo_mediacodec_embed.c
vo_null.c
vo_sdl.c various: handle numpad add/subtract/multiply/divide keycodes 2024-08-11 15:08:42 +02:00
vo_sixel.c options: remove some deprecated OPT_REPLACED option mapping 2024-06-25 02:18:58 +00:00
vo_tct.c vo_tct: clear backbuffer on reconfig 2024-06-22 00:50:38 +02:00
vo_vaapi.c vo_vaapi: remove redundant function call 2024-05-28 21:29:07 +02:00
vo_vdpau.c vo: remove VOCTRL_SET_EQUALIZER and simplify into UPDATE_VIDEO 2024-02-17 18:56:20 +00:00
vo_wlshm.c options: move all wayland specific options to vo_opts 2024-07-24 18:46:04 +00:00
vo_x11.c vo_{drm,wlshm,x11}: add support for video-target-params 2024-03-16 13:27:34 +01:00
vo_xv.c various: fix indentation 2024-05-07 11:23:08 +02:00
vo.c vo: move target_params into responsibility of VO 2024-03-16 13:27:34 +01:00
vo.h win32: quantize taskbar playback position into uint8 range 2024-06-03 19:16:35 +02:00
w32_common.c win32: unregister window class on dll detach 2024-07-11 21:55:21 +02:00
w32_common.h w32_common: add function to control window transparency state 2024-02-17 16:06:33 +00:00
wayland_common.c wayland: properly use tranche_formats when getting compositor formats 2024-09-16 00:07:36 +00:00
wayland_common.h wayland: properly use tranche_formats when getting compositor formats 2024-09-16 00:07:36 +00:00
win_state.c
win_state.h
x11_common.c various: use talloc_replace 2024-09-08 17:33:27 +02:00
x11_common.h x11: correct position coordinates if mpv was launched with --fs 2024-05-29 13:39:20 +00:00