Skip to content

Commit

Permalink
Added Output Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
RikshaDriver committed Oct 15, 2023
1 parent 29e92ba commit f9fa9c0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ODT/Rec.2020 Gamma 2.4 - CSC.dctl
@@ -1,7 +1,12 @@
//Rec.2020 Gamma 2.4 ACES ODT
#if (__RESOLVE_VER_MAJOR__ >= 17)
#if (((__RESOLVE_VER_MAJOR__ == 18) && (__RESOLVE_VER_MINOR__ >= 6)) || (__RESOLVE_VER_MAJOR__ >= 19))
DEFINE_ACES_PARAM(IS_PARAMETRIC_ACES_TRANSFORM: 0,
OUTPUT_COLORSPACE_TAG: Rec2020_100nits_dim)
#else
DEFINE_ACES_PARAM(IS_PARAMETRIC_ACES_TRANSFORM: 0)
#endif
#endif


//ACES to Rec.2020 using CAT02
Expand Down
17 changes: 16 additions & 1 deletion ODT/Rec.2020 Gamma 2.4 - ODT.dctl
@@ -1,4 +1,5 @@
//Rec.2020 Gamma 2.4 ACES ODT
#if (((__RESOLVE_VER_MAJOR__ == 18) && (__RESOLVE_VER_MINOR__ >= 6)) || (__RESOLVE_VER_MAJOR__ >= 19))
DEFINE_ACES_PARAM(Y_MIN: 0.02,
Y_MID: 8.6564,
Y_MAX: 48.0,
Expand All @@ -9,7 +10,21 @@ DEFINE_ACES_PARAM(Y_MIN: 0.02,
SURROUND: 0,
STRETCH_BLACK: 1,
D60_SIM: 0,
LEGAL_RANGE: 0)
LEGAL_RANGE: 0,
OUTPUT_COLORSPACE_TAG: Rec2020_100nits_dim)
#else
DEFINE_ACES_PARAM(Y_MIN: 0.02,
Y_MID: 8.6564,
Y_MAX: 48.0,
DISPLAY_PRI: { 0.708, 0.292, 0.292, 0.797, 0.131, 0.131, 0.31270, 0.32900 },
LIMITING_PRI: { 0.708, 0.292, 0.292, 0.797, 0.131, 0.131, 0.31270, 0.32900 },
EOTF: fwd_gamma,
INVERSE_EOTF: rev_gamma,
SURROUND: 0,
STRETCH_BLACK: 1,
D60_SIM: 0,
LEGAL_RANGE: 0)
#endif


__DEVICE__ float lin_to_gamma(float x) {
Expand Down
5 changes: 5 additions & 0 deletions ODT/sRGB IEC 61966-2-1 - CSC.dctl
@@ -1,7 +1,12 @@
//sRGB ACES ODT
#if (__RESOLVE_VER_MAJOR__ >= 17)
#if (((__RESOLVE_VER_MAJOR__ == 18) && (__RESOLVE_VER_MINOR__ >= 6)) || (__RESOLVE_VER_MAJOR__ >= 19))
DEFINE_ACES_PARAM(IS_PARAMETRIC_ACES_TRANSFORM: 0,
OUTPUT_COLORSPACE_TAG: sRGB_100nits_dim)
#else
DEFINE_ACES_PARAM(IS_PARAMETRIC_ACES_TRANSFORM: 0)
#endif
#endif


//ACES to sRGB using CAT02
Expand Down

0 comments on commit f9fa9c0

Please sign in to comment.