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
error_diffusion.h
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
libmpv_gpu.h
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
shader_cache.c
shader_cache.h
spirv.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
spirv.h
spirv_shaderc.c
user_shaders.c
user_shaders.h
utils.c vo_gpu: generally allow non-storable FBOs 2020-03-08 21:41:16 +01:00
utils.h
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
video_shaders.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
video_shaders.h