1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-20 06:46:55 +00:00
mpv/video/out/gpu
wm4 26f4f18c06 options: change option macros and all option declarations
Change all OPT_* macros such that they don't define the entire m_option
initializer, and instead expand only to a part of it, which sets certain
fields. This requires changing almost every option declaration, because
they all use these macros. A declaration now always starts with

   {"name", ...

followed by designated initializers only (possibly wrapped in macros).
The OPT_* macros now initialize the .offset and .type fields only,
sometimes also .priv and others.

I think this change makes the option macros less tricky. The old code
had to stuff everything into macro arguments (and attempted to allow
setting arbitrary fields by letting the user pass designated
initializers in the vararg parts). Some of this was made messy due to
C99 and C11 not allowing 0-sized varargs with ',' removal. It's also
possible that this change is pointless, other than cosmetic preferences.

Not too happy about some things. For example, the OPT_CHOICE()
indentation I applied looks a bit ugly.

Much of this change was done with regex search&replace, but some places
required manual editing. In particular, code in "obscure" areas (which I
didn't include in compilation) might be broken now.

In wayland_common.c the author of some option declarations confused the
flags parameter with the default value (though the default value was
also properly set below). I fixed this with this change.
2020-03-18 19:52:01 +01:00
..
context.c Revert "vo_gpu: move wayland below X11 in autoprobe order" 2020-01-01 20:27:54 +00:00
context.h vo_gpu: add and utilize color space information from ra_fbo 2019-10-30 02:41:25 +02:00
d3d11_helpers.c vo_gpu/d3d11: add support for configuring swap chain color space 2019-10-30 02:41:25 +02:00
d3d11_helpers.h vo_gpu/d3d11: add support for configuring swap chain color space 2019-10-30 02:41:25 +02:00
error_diffusion.c vo_gpu: process three component together in error diffusion 2019-06-16 11:19:44 +02:00
error_diffusion.h vo_gpu: implement error diffusion for dithering 2019-06-16 11:19:44 +02:00
hwdec.c Remove remains of Libav compatibility 2020-02-16 15:14:55 +01:00
hwdec.h vo_gpu: hwdec_vdpau: remove direct_mode 2019-12-28 14:31:06 -08:00
lcms.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
lcms.h
libmpv_gpu.c drm: fix libmpv ABI breakage introduced in 351c083487 2019-09-18 23:59:32 +03:00
libmpv_gpu.h client API: add a new way to pass X11 Display etc. to render API 2018-03-26 19:47:08 +02:00
osd.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
osd.h
ra.c video/out/gpu: Remove stray top-level ';' 2019-11-18 16:50:21 +01:00
ra.h video/out/gpu: Add a storable flag to ra_format 2019-07-08 00:59:28 +02:00
shader_cache.c vo_gpu: index desc namespaces by ra 2019-04-21 23:55:22 +03:00
shader_cache.h vo_gpu: invalidate fbotex before drawing 2017-12-25 00:47:53 +01:00
spirv_shaderc.c vo_gpu: switch to optimization level performance 2018-09-01 16:14:22 +02:00
spirv.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
spirv.h
user_shaders.c vo_gpu: allow user shader to fix texture offset 2019-06-06 20:01:56 +02:00
user_shaders.h vo_gpu: allow user shader to fix texture offset 2019-06-06 20:01:56 +02:00
utils.c vo_gpu: generally allow non-storable FBOs 2020-03-08 21:41:16 +01:00
utils.h
video_shaders.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
video_shaders.h vo_gpu: improve tone mapping desaturation 2019-02-18 01:54:06 +02:00
video.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
video.h vf_gpu: render subtitles 2019-11-30 18:09:31 +01:00