# ACES Transform ID format for Output Transforms

**URL:** <https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474>\
**Category:** VWG – Output Transforms\
**Created:** [June 20, 2024, 1:49pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474 "2024-06-20T13:49:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 20, 2024, 1:49pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/1 "2024-06-20T13:49:49Z")

</div>

Following on from discussion in [meeting #157](https://paper.dropbox.com/doc/Meeting-Summaries--CRWFAWNQqGWCzhhUJjnHto4lAg-AmweeevBcufkcozYLHlG3#:uid=065789163329607826316462&h2=Meeting-Notes), this thread is for discussion of how much information should be included in the ACES Transform ID for output transforms.

Currently the ID includes:

- encoding\_primaries (and white point, if primaries may be paired with different whites)
- EOTF (omitted if implied by encoding primaries)
- limiting\_primaries (omitted if identical to encoding primaries)
- Peak luminance (omitted if the encoding always has the same peak luminance)
- Creative white point (D\*\*sim) if different to encoding white point

In one [special case](https://github.com/ampas/aces-output/blob/main/rec2020-hdr/Output.Academy.Rec2020_ST2084_Rec709limited_100nitsim.ctl) the peak luminance is described at `100nitsim` since this creates a “simulation” of the 100 nit Rec.709 transform on a PQ display.

So an ID could be as short as `Rec709` because “everybody knows” all the other values that go along with that. Or it could be as long as `P3D65_ST2084_Rec709limited_300nit_D60sim` (contrived example to use all attributes).

The alternative would be to include every aspect of the transform in all IDs, even if some may already be implicit. This would simplify automated parsing of IDs, for tasks such as automated generation of OCIO configs, without the necessity to create mapping lists or hard code “assumed” values.

File names and user names coulkd still use shortened forms.

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 20, 2024, 2:01pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/2 "2024-06-20T14:01:52Z")

</div>

I’ll start the discussion.

I think it is preferable for everything to be explicit, rather than implicit. For example, while the P3D65 transform is implicitly 2.6 gamma for theatrical, that can only really be confirmed by looking through the rest of list at the existence of the DisplayP3 and HDR P3 transforms, and deciding that this one must be 2.6 gamma theatrical because it is not any of the others. Indeed I was asked by people testing the candidate transforms for confirmation that the P3D65 one was 2.6 gamma, because they couldn’t be certain.

The sRGB transform is another example. Many people “know what sRGB is” but not all of them believe the same thing!

I would also suggest that saying “100nitsim” is unnecessary. All the HDR transforms, such as the 500 nit one, could be said to be simulations of a less capable display on a more capable one. If it is described as `Rec2020_ST2084_Rec709limited_100nit`, that says exactly what it is. I feel that a description of its intended use (which is what the addition of “sim” adds in this case) is more appropriate in the `<ACESuserName>` field, leaving the ID to be a purely technical description.

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 20, 2024, 6:13pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/3 "2024-06-20T18:13:40Z")

</div>

> [@nick](#):
>
> The alternative would be to include every aspect of the transform in all IDs, even if some may already be implicit.

Just some questions for further discussion and as I just try to imagine this:

- What happens for instances where creative white is the limiting white is the encoding white?  
Do we say `P3D65_P3D65limited_gamma-2pt6_D65sim_100nit`?  
Becasue that to me is way more confusing than `P3D65`…

- What is the preferred ordering?  
Let’s use an example of a Rec.709 limiting gamut, a P3D65 encoding, ST.2084, 500nit.  
We could state the intended appearance first as `Rec709_500nit_as_P3D65_ST2084` or state the encoding info first `P3D65_ST2084_Rec709_limited_500nit`.  
Which bit should go first? Should the value of the luminance roll-off go at the end or be kept with the “display set-up” info or the “limiting gamut” info?

- “…without the necessity to create mapping lists or hard code “assumed” values”  
Wouldn’t an implementation still need to build the logic to parse the options in a transform ID if they were trying to automate parsing? Wouldn’t they still need to make a mapping of text strings tied to the associated function? How exactly would this make it “easier”? (It very well might, I just want to understand better how we could make it useful)

- How explicit does our naming get? You’ve already posited this question by wondering how we’d encapsulate custom primaries that aren’t defined. But same goes for other EOTFs or ones with modified values from the default settings? For instance, i s calling the EOTFs, BT.1886 or sRGB sufficient? (Can we at least assume that people will know these mean BT.1886 with g=2.4, L\_w=1.0, L\_b=0.0 or IEC 61966-2-1:1999 with gamma=2.4 and offset=0.055?)

- How should we actually write the gamma value?  
Periods are not recommended to be used in the transform string because they are the separator between the TransformType, Namespace, Filename, and Extension.  
Which seems least problematic?

Perhaps we should add a few columns to the spreadsheet and prototype some options, as having examples should help the conversation.

---

<div class="post-metadata">

**Author:** ![Troy\_James\_Sobotka](https://community.acescentral.com/user_avatar/community.acescentral.com/troy_james_sobotka/32/2416_2.png) [@Troy\_James\_Sobotka](https://community.acescentral.com/u/Troy_James_Sobotka)\
**Post date:** [June 20, 2024, 6:32pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/4 "2024-06-20T18:32:54Z")

</div>

![image](https://acescentral.sfo3.cdn.digitaloceanspaces.com/original/2X/b/b9b412608c8f2137f9b9c28f8d56263229b6b9d3.png)

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 20, 2024, 6:54pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/5 "2024-06-20T18:54:47Z")

</div>

That’s as may be, but people have monitors calibrated both ways. So we need to cover both.

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 20, 2024, 6:59pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/6 "2024-06-20T18:59:37Z")

</div>

> [@sdyer](#):
>
> What happens for instances where creative white is the limiting white is the encoding white?  
> Do we say `P3D65_P3D65limited_gamma-2pt6_D65sim_100nit`?  
> Becasue that to me is way more confusing than `P3D65`…

My code dropped the “limited” and “sim” parts if they matched. So I would say `P3D65_gamma2pt6` for that one, because those are the two things that need specifying.

But I do realise that having a variable number of entries makes parsing more complex. I’m no RegEx expert, but if all the entries have to come from pre-defined lists, you could possibly use “zero or more from this list” type syntax, couldn’t you?

And for BT.1886, I am fine with just that implying exponent=2.4, L\_W=100 (or normalised 1.0), L\_B=0, since for encoding you should never use it any other way.

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 21, 2024, 6:20pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/7 "2024-06-21T18:20:02Z")

</div>

So if we use the general format

`Primaries/Type_EOTF_luminance_limiting_sim`

and

- omit `X00nits` if SDR (becasue of the complexity in concisely explaining 48-nit or 100-nit are essentially interchangeable)
- omit `D6Xlimited` if limiting matches encoding primaries
- omit `D6Xsim` if limiting white matches encoding white

Does is also make more sense to put the peak luminance with the display encoding rather than the limiting primaries?

I’ve added a few columns to the spreadsheet to see how this would look, with the revised transformIDs in purple text

This would also allow us to get rid of `displayP3/` and `displayP3-hdr/` subdirectories (because those now fit in regular the `p3/` and `p3-hdr/`, since we’re explicitly stating the EOTF differences. But the folder organization hasn’t been changed yet in the spreadsheet.

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 21, 2024, 6:21pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/8 "2024-06-21T18:21:14Z")

</div>

It seems the main thing is that the EOTF should always be explicitly stated with the primaries, then additional information only as necessary.

---

<div class="post-metadata">

**Author:** ![daniele](https://community.acescentral.com/user_avatar/community.acescentral.com/daniele/32/2563_2.png) [@daniele](https://community.acescentral.com/u/daniele)\
**Post date:** [June 22, 2024, 12:44am UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/9 "2024-06-22T00:44:08Z")

</div>

Please be as stringent as possible.  
Add mandatory strings at the beginning in the same order, so we have a maximum of sub strings we can reliably read. Add additional stuff at the end, ideally only have mandatory substrings.  
Nested parsing is much easier than 1:1 mappings.  
For example all P3 and Rec2020 flavours of PQ can be parsed efficiently if the only differences are the primaries.

In the end we are trying to recreate structured output from the IDs.

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 22, 2024, 2:23pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/10 "2024-06-22T14:23:04Z")

</div>

[Here](https://github.com/nick-shaw/aces-ot-vwg-experiments/blob/master/python/aces_id_gen_v2.py) is my hacky (and very inefficiently coded) ID generator if anybody wants to play with it.

 ![Screenshot 2024-06-22 at 20.14.56](https://acescentral.sfo3.cdn.digitaloceanspaces.com/original/2X/3/364f7eb26bf556972e62731c5fdfd3c3a43f4154.png)

Currently it permits every permutation. I will update it at some point so that it prevents meaningless combinations.

Update: the current version restricts the permutations somewhat. Exactly which permutations should be allowed is up for discussion.

In theory the script could then spit out the CTL for the selected transform. But since nobody would actually use it in CTL form, that would not be much use.

Note: The “copy to clipboard” button uses a hack that I think will only work on a Mac.

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 24, 2024, 10:07am UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/11 "2024-06-24T10:07:59Z")

</div>

And since I’m not sure the Tkinter UI version will work on everybody’s system, [here](https://github.com/nick-shaw/aces-ot-vwg-experiments/blob/master/python/aces_id_gen_cmd.py) is a simpler command line version.

And a [Google Colab](https://colab.research.google.com/drive/10zBxqbv-dQ1Z7eTAllZ_5qVmwNT3lSRQ?usp=sharing#scrollTo=N9ahWwWhOs-y) version (“run all” to make it interactive).

---

<div class="post-metadata">

**Author:** ![nick](https://community.acescentral.com/user_avatar/community.acescentral.com/nick/32/2837_2.png) [@nick](https://community.acescentral.com/u/nick)\
**Post date:** [June 25, 2024, 9:11am UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/12 "2024-06-25T09:11:02Z")

</div>

As per [this issue](https://github.com/ampas/aces-output/issues/9) I have updated my code to use e.g. `Gamma2pt2` rather than `Gamma_2pt2` in IDs, matching the spreadsheet rather than the current repo.

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 25, 2024, 5:24pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/13 "2024-06-25T17:24:46Z")

</div>

> [@daniele](#):
>
> Please be as stringent as possible.  
> Add mandatory strings at the beginning in the same order, so we have a maximum of sub strings we can reliably read. Add additional stuff at the end, ideally only have mandatory substrings.

That’s what we’re trying to do. A concern was raised that the transform IDs for the v2 code wasn’t structured enough nor easily extensible to additions. We are thus trying to figure out what could be done to get it right for the official final release because we don’t want to need to change them again.

What should be mandatory strings?  
What are the mandatory strings for additional stuff at the end?

> [@daniele](#):
>
> Nested parsing is much easier than 1:1 mappings.  
> For example all P3 and Rec2020 flavours of PQ can be parsed efficiently if the only differences are the primaries.
> 
> In the end we are trying to recreate structured output from the IDs.

Does the [spreadsheet](https://docs.google.com/spreadsheets/d/1ZttIFJKOE7WAgceFFSrDc34JegjD3loGZWIZGPCKzQs/edit?usp=sharing) match your concerns or can you point out examples where we are not doing something in a manner compatible with nested parsing?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mansencal](https://community.acescentral.com/user_avatar/community.acescentral.com/thomas_mansencal/32/144_2.png) [@Thomas\_Mansencal](https://community.acescentral.com/u/Thomas_Mansencal)\
**Post date:** [June 25, 2024, 7:22pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/14 "2024-06-25T19:22:00Z")

</div>

They ideally need to be programmatically generated with the least special cases/branching as possible so that they can be parsed easily.

Something inconsistent is that the **Input Transforms** are of the form `TransferFunction_Primaries` which is what OCIO now uses for the same spaces. We are are about to suggest using this form for _Nanocolor_ and in the _ColorInterop_ forum but here for the **Output Transform** , we are using `Primaries_TransferFunction`.

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 25, 2024, 10:38pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/15 "2024-06-25T22:38:35Z")

</div>

Thanks for the specific example and use case. That is helpful in trying to determine what we should consider changing to.

Are you requesting that Output transforms also adopt `TransferFunction_Primaries`?

As an experiment I tried changing it around in the spreadsheet (in new green text column) and it seems quite awkward to me.

On Input, the most first thing is the linearization, then the color encoding, whereas its the inverse when selecting an output, isn’t it usually the primaries and then the transfer function is always the last variable just to send it down the wire the right way?

---

<div class="post-metadata">

**Author:** ![Thomas\_Mansencal](https://community.acescentral.com/user_avatar/community.acescentral.com/thomas_mansencal/32/144_2.png) [@Thomas\_Mansencal](https://community.acescentral.com/u/Thomas_Mansencal)\
**Post date:** [June 26, 2024, 6:18am UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/16 "2024-06-26T06:18:11Z")

</div>

I’m not necessarily requesting for a change but pointing out to a naming inconsistency. If there is a rational behind it, this is by all means good but we need to document it properly somewhere. There was a doco describing how the `ACEStransformID` are built, are we planning to dust bust it and update it?

---

<div class="post-metadata">

**Author:** ![daniele](https://community.acescentral.com/user_avatar/community.acescentral.com/daniele/32/2563_2.png) [@daniele](https://community.acescentral.com/u/daniele)\
**Post date:** [June 26, 2024, 9:46am UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/17 "2024-06-26T09:46:01Z")

</div>

I agree with Thomas,  
the IDs should be generated programmatically.  
The new changes to the document go in the right direction.  
That would allow us to create a map of our tags programmatically.

ps.:  
Apple P3 is not compound function but plain 2.2 Gamma:

 ![Screenshot 2024-06-26 at 11.45.08](https://acescentral.sfo3.cdn.digitaloceanspaces.com/original/2X/0/08ceb9ebd526e81cc08fb82091d2abf973ab3b9b.png)

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 26, 2024, 4:30pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/18 "2024-06-26T16:30:02Z")

</div>

That’s not what it says in the [Apple Developer documentation](https://developer.apple.com/documentation/coregraphics/cgcolorspace/1408916-displayp3):

 ![Screenshot 2024-06-26 at 9.29.12 AM](https://acescentral.sfo3.cdn.digitaloceanspaces.com/original/2X/5/515c13e6bf00c7347aa279f98626a8bc493cee63.png)

And, in case we’re wondering what they think “sRGB” is:

 ![Screenshot 2024-06-26 at 9.30.29 AM](https://acescentral.sfo3.cdn.digitaloceanspaces.com/original/2X/e/e54b332b8055edf1bccf7c9ab7601c68c1c9bb0a.png)

---

<div class="post-metadata">

**Author:** ![sdyer](https://community.acescentral.com/user_avatar/community.acescentral.com/sdyer/32/10987_2.png) [@sdyer](https://community.acescentral.com/u/sdyer)\
**Post date:** [June 26, 2024, 6:24pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/19 "2024-06-26T18:24:38Z")

</div>

Yes, that is what I’m trying to get us to. What should be the specification for Transform IDs?

Here is a [draft version of the transform ID guidelines](https://draftdocs.acescentral.com/transform-ids/). Still very much in progress, feedback encouraged.

EDIT: I plan to incorporate more specifics about the “Name” component based on the outcome of this discussion.

---

<div class="post-metadata">

**Author:** ![Thomas\_Mansencal](https://community.acescentral.com/user_avatar/community.acescentral.com/thomas_mansencal/32/144_2.png) [@Thomas\_Mansencal](https://community.acescentral.com/u/Thomas_Mansencal)\
**Post date:** [June 26, 2024, 7:05pm UTC](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474/20 "2024-06-26T19:05:21Z")

</div>

The one that we are using at work and made a PR for (and was requested by other companies) is the one from Apple documentation with a piece-wise transfer function.

Edit: To make things even more complicated, we also use a pure 2.2 power variant but this predates the Apple one by at least half a decade.

[Next page](https://community.acescentral.com/t/aces-transform-id-format-for-output-transforms/5474.md?page=2)
