1
0
Fork 0
forked from wry/wry

color-management: use more consistent naming

This commit is contained in:
Julian Orth 2025-09-05 13:45:09 +02:00
parent 32db933242
commit 83e79b68e6
65 changed files with 439 additions and 510 deletions

View file

@ -1141,6 +1141,14 @@
}
]
},
"Eotf": {
"type": "string",
"description": "The EOTF of an output.\n",
"enum": [
"default",
"pq"
]
},
"Exec": {
"description": "Describes how to execute a program.\n\n- Example 1:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = \"alacritty\" }\n ```\n\n- Example 2:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = [\"notify-send\", \"hello world\"] }\n ```\n\n- Example 3:\n\n ```toml\n [shortcuts]\n ctrl-a = { type = \"exec\", exec = { prog = \"notify-send\", args = [\"hello world\"], env.WAYLAND_DISPLAY = \"2\" } }\n ```\n",
"anyOf": [
@ -1641,8 +1649,8 @@
"$ref": "#/$defs/ColorSpace"
},
"transfer-function": {
"description": "The transfer function of the output.\n",
"$ref": "#/$defs/TransferFunction"
"description": "The EOTF of the output.\n",
"$ref": "#/$defs/Eotf"
},
"brightness": {
"description": "The brightness of the output.\n\nThis setting has no effect unless the vulkan renderer is used.\n",
@ -1902,14 +1910,6 @@
"floating"
]
},
"TransferFunction": {
"type": "string",
"description": "The transfer function of an output.\n",
"enum": [
"default",
"pq"
]
},
"Transform": {
"type": "string",
"description": "An output transformation.",

View file

@ -814,7 +814,7 @@ The string should have one of the following values:
The default brightness setting.
The behavior depends on the transfer function:
The behavior depends on the EOTF:
- `default`: The maximum brightness of the output.
- `PQ`: 203 cd/m^2
@ -2303,6 +2303,25 @@ The table has the following fields:
The numbers should be integers.
<a name="types-Eotf"></a>
### `Eotf`
The EOTF of an output.
Values of this type should be strings.
The string should have one of the following values:
- `default`:
The default EOTF (usually gamma22).
- `pq`:
The PQ EOTF.
<a name="types-Exec"></a>
### `Exec`
@ -3517,9 +3536,9 @@ The table has the following fields:
- `transfer-function` (optional):
The transfer function of the output.
The EOTF of the output.
The value of this field should be a [TransferFunction](#types-TransferFunction).
The value of this field should be a [Eotf](#types-Eotf).
- `brightness` (optional):
@ -4215,25 +4234,6 @@ The string should have one of the following values:
<a name="types-TransferFunction"></a>
### `TransferFunction`
The transfer function of an output.
Values of this type should be strings.
The string should have one of the following values:
- `default`:
The default transfer function (usually sRGB).
- `pq`:
The PQ transfer function.
<a name="types-Transform"></a>
### `Transform`

View file

@ -1956,10 +1956,10 @@ Output:
description: |
The color space of the output.
transfer-function:
ref: TransferFunction
ref: Eotf
required: false
description: |
The transfer function of the output.
The EOTF of the output.
brightness:
ref: Brightness
required: false
@ -3293,15 +3293,15 @@ ColorSpace:
description: The BT.2020 color space.
TransferFunction:
Eotf:
description: |
The transfer function of an output.
The EOTF of an output.
kind: string
values:
- value: default
description: The default transfer function (usually sRGB).
description: The default EOTF (usually gamma22).
- value: pq
description: The PQ transfer function.
description: The PQ EOTF.
Brightness:
@ -3317,7 +3317,7 @@ Brightness:
description: |
The default brightness setting.
The behavior depends on the transfer function:
The behavior depends on the EOTF:
- `default`: The maximum brightness of the output.
- `PQ`: 203 cd/m^2