Commit e34971a
committed
Add kOfxParamPropColourManaged for colour-managed RGB/RGBA params (#158)
Add kOfxParamPropColourManaged, a boolean parameter property a plug-in can
set on an RGB or RGBA parameter to declare that the parameter's values —
including its default — are in the ACES2065-1 (AP0) reference colourspace
rather than an unmanaged, display-referred encoding. The values are
scene-linear and not constrained to [0..1], so a colour-managed host (or any
host that supports wide-gamut colours) can interpret and convert them
correctly. Plug-ins must check the set status: if the host does not implement
the property, they should fall back to old-style colour values. It defaults to
0, so existing plug-ins are unaffected.
- include/ofxParam.h: the property with its @propdef metadata (bool, dim 1),
plus new ParamsRGB and ParamsRGBA property sets (the colour param types were
not previously modelled in the property metadata).
- Documentation/sources/Reference/ofxParameter.rst: describe the property in
the Colour Parameters section.
- release-notes.md: note the addition under 1.5.1.
- openfx-cpp/include/openfx/*: regenerated metadata, property sets, and typed
accessors (scripts/gen-props.py).
Signed-off-by: Gary Oberbrunner <garyo@darkstarsystems.com>1 parent 9943cdf commit e34971a
7 files changed
Lines changed: 1131 additions & 65 deletions
File tree
- Documentation/sources/Reference
- include
- openfx-cpp/include/openfx
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
156 | 172 | | |
157 | 173 | | |
158 | 174 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
424 | 454 | | |
425 | 455 | | |
426 | 456 | | |
| |||
1453 | 1483 | | |
1454 | 1484 | | |
1455 | 1485 | | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1456 | 1506 | | |
1457 | 1507 | | |
1458 | 1508 | | |
| |||
0 commit comments