mpv/video/out
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
..
cocoa cocoa_common: remove deprecated VOCTRLs/VO_EVENTs 2019-12-12 19:56:03 +01:00
cocoa-cb cocoa-cb: remove unnecessary semicolons 2020-02-22 13:56:31 +01:00
d3d11 options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
gpu options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
hwdec vo_gpu: hwdec_vaapi: set correct hw_imgfmt value 2020-01-17 15:08:46 +01:00
opengl options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
placebo video/out/gpu: Add a `storable` flag to ra_format 2019-07-08 00:59:28 +02:00
vulkan options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
win32
android_common.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
android_common.h context_android: move common code to a separate file 2019-09-27 00:05:06 +03:00
aspect.c aspect: add video margin options 2019-09-19 20:37:05 +02:00
aspect.h
bitmap_packer.c video/out/bitmap_packer: Avoid empty initializer list 2019-11-18 16:50:21 +01:00
bitmap_packer.h
cocoa_cb_common.swift cocoa-cb: support maximize/minimize on startup 2020-03-14 12:23:42 +01:00
cocoa_common.h
cocoa_common.m mac, cocoa: fix UI updates on none main queue threads 2020-02-22 13:56:31 +01:00
d3d_shader_420p.h
d3d_shader_yuv.hlsl
dither.c
dither.h
dr_helper.c client API: fix potential deadlock problems by throwing more shit at it 2019-09-26 14:14:49 +02:00
dr_helper.h client API: fix potential deadlock problems by throwing more shit at it 2019-09-26 14:14:49 +02:00
drm_atomic.c drm_atomic: do not set immutable properties 2020-02-02 18:01:55 +02:00
drm_atomic.h drm: rename plane options to better, invariant, names 2018-12-01 15:42:20 +02:00
drm_common.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
drm_common.h drm: avoid division by 0 in drm_pflip_cb with bad drivers 2019-12-07 18:34:25 +01:00
drm_prime.c drm_prime: double free bug 2020-03-05 18:12:57 +01:00
drm_prime.h drm_prime: double free bug 2020-03-05 18:12:57 +01:00
filter_kernels.c
filter_kernels.h
libmpv.h vo_libmpv: support render performance data 2018-11-13 20:43:29 +02:00
vo.c vo: redraw dropped frame if paused between queuing and drawing frame 2019-12-04 23:55:42 +01:00
vo.h vo: fix typo in comment 2020-02-09 18:32:28 +01:00
vo_caca.c vo_caca: Implement VOCTRL_UPDATE_WINDOW_TITLE 2019-10-29 17:07:41 +01:00
vo_direct3d.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_drm.c vo_drm, wo_wlshm: mention that it's software scaling 2020-02-11 21:45:16 +01:00
vo_gpu.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_image.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_lavc.c encode: get rid of the output packet queue 2018-05-03 01:08:44 +03:00
vo_libmpv.c client API: fix potential deadlock problems by throwing more shit at it 2019-09-26 14:14:49 +02:00
vo_mediacodec_embed.c
vo_null.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_rpi.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_sdl.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_tct.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_vaapi.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_vdpau.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
vo_wlshm.c vo_drm, wo_wlshm: mention that it's software scaling 2020-02-11 21:45:16 +01:00
vo_x11.c vo_x11: don't call X11 "crap" 2020-02-11 21:43:53 +01:00
vo_xv.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
w32_common.c w32_common: support minimized and maximized properties 2020-01-26 15:36:12 +02:00
w32_common.h
wayland_common.c options: change option macros and all option declarations 2020-03-18 19:52:01 +01:00
wayland_common.h wayland: make resizing better 2020-02-13 20:28:59 +00:00
win_state.c win_state: silence a valgrind warning 2019-09-19 20:37:05 +02:00
win_state.h
x11_common.c x11: switch back to StaticGravity 2020-02-22 01:35:12 +01:00
x11_common.h x11: use new option stuff to implement fullscreen 2019-11-29 13:56:58 +01:00