mpv/video/out/gpu
wm4 419c44ccf6 vo_gpu, options: don't return NaN through API
Internally, vo_gpu uses NaN for some options to indicate a default value
that is different depending on the context (e.g. different scalers).
There are 2 problems with this:

1. you couldn't reset the options to their defaults
2. NaN is a damn mess and shouldn't be part of the API

The option parser already rejected NaN explicitly, which is why 1.
didn't work. Regarding 2., JSON might be a good example, and actually
caused a bug report.

Fix this by mapping NaN to the special value "default". I think I'd
prefer other mechanisms (maybe just having every scaler expose separate
options?), but for now this will do. See you in a future commit, which
painfully deprecates this and replaces it with something else.

I refrained from using "no" (my favorite magic value for "unset" etc.)
because then I'd have e.g. make --no-scale-param1 work, which in
addition to a lot of effort looks dumb and nobody will use it.

Here's also an apology for the shitty added test script.

Fixes: #6691
2019-10-25 15:06:04 +02:00
..
context.c vo_gpu: vulkan: add Android context 2019-09-27 00:05:06 +03:00
context.h vo: make swapchain-depth option generic for all VOs 2019-09-28 14:10:01 +03:00
d3d11_helpers.c vo_gpu/d3d11: fix memleak of the adapter description string 2019-10-15 22:12:48 +03:00
d3d11_helpers.h vo_gpu/d3d11: fixup adapter selection by switching it all to bstr 2019-10-15 22:12:48 +03: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 vo_gpu: hwdec_d3d11eglrgb: remove this 2019-10-16 23:41:06 +02:00
hwdec.h
lcms.c video: add pure gamma TRC curves for 2.0, 2.4 and 2.6. 2019-09-27 13:21:41 +02: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
osd.c vo_gpu: fix segfault when OSD tex creation fails 2019-04-21 23:55:22 +03:00
osd.h
ra.c
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
spirv.c spirv: remove --spirv-compiler=nvidia 2018-12-01 15:50:23 +02:00
spirv.h
spirv_shaderc.c vo_gpu: switch to optimization level performance 2018-09-01 16:14:22 +02:00
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 video/out/gpu: Add a `storable` flag to ra_format 2019-07-08 00:59:28 +02:00
utils.h
video.c vo_gpu, options: don't return NaN through API 2019-10-25 15:06:04 +02:00
video.h vo_gpu: implement error diffusion for dithering 2019-06-16 11:19:44 +02:00
video_shaders.c video: add pure gamma TRC curves for 2.0, 2.4 and 2.6. 2019-09-27 13:21:41 +02:00
video_shaders.h vo_gpu: improve tone mapping desaturation 2019-02-18 01:54:06 +02:00