vo_gpu_next: add chroma location and HDR metadata to shader parameters

This commit is contained in:
Kacper Michajłow
2024-11-01 19:49:35 +01:00
parent 89e608e169
commit 42ff6f92c3
3 changed files with 65 additions and 4 deletions

View File

@@ -0,0 +1 @@
``glsl-shader-opts`` now has predefined parameters that can be used. See the documentation for available values.

View File

@@ -6327,6 +6327,48 @@ them.
The shader name is the base part of the shader filename, without the
extension. (``--vo=gpu-next`` only)
Some parameters are filled automatically if the shader requests them.
Currently following parameters are available:
``PTS``
PTS of the current frame in seconds.
``chroma_offset_x``
chroma offset to the reference plane in x direction.
``chroma_offset_y``
chroma offset to the reference plane in y direction.
``min_luma``
Minimum luminance value (in cd/m²).
``max_luma``
Maximum luminance value (in cd/m²).
``max_cll``
Maximum Content Light Level (in cd/m²).
``max_fall``
Maximum Frame Average Light Level (in cd/m²).
``scene_max_r``
Maximum scene light level of the red channel (in cd/m²).
``scene_max_g``
Maximum scene light level of the green channel (in cd/m²).
``scene_max_b``
Maximum scene light level of the blue channel (in cd/m²).
``scene_avg``
Average scene light level (in cd/m²).
``max_pq_y``
Maximum PQ luminance (in PQ, 0-1).
``avg_pq_y``
Average PQ luminance (in PQ, 0-1).
``--deband``
Enable the debanding algorithm. This greatly reduces the amount of visible
banding, blocking and other quantization artifacts, at the expense of