-
Notifications
You must be signed in to change notification settings - Fork 16
/
ACES.dctl
executable file
·178 lines (163 loc) · 6.76 KB
/
ACES.dctl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
// ACES 1.3 DCTL
#include "ACES_LIB.h"
__DEVICE__ float3 transform(int p_Width, int p_Height, int p_X, int p_Y, float p_R, float p_G, float p_B)
{
float3 aces = make_float3(p_R, p_G, p_B);
//aces = ACEScc_to_ACES(aces);
//aces = ACEScct_to_ACES(aces);
//aces = ACEScg_to_ACES(aces);
//aces = ADX_to_ACES(aces);
//aces = ICpCt_to_ACES(aces);
//aces = LogC_EI800_AWG_to_ACES(aces);
//aces = Log3G10_RWG_to_ACES(aces);
//aces = SLog3_SG3_to_ACES(aces);
//aces = SLog3_SG3C_to_ACES(aces);
//aces = Venice_SLog3_SG3_to_ACES(aces);
//aces = Venice_SLog3_SG3C_to_ACES(aces);
//aces = VLog_VGamut_to_ACES(aces);
//aces = IDT_sRGB(aces);
//aces = IDT_Rec709(aces);
//aces = IDT_Alexa_v3_logC_EI800(aces);
//aces = IDT_Alexa_v3_raw_EI800_CCT6500(aces);
//aces = IDT_Panasonic_V35(aces);
//aces = IDT_REDWideGamutRGB_Log3G10(aces);
//aces = IDT_Canon_C100_A_D55(aces);
//aces = IDT_Canon_C100_A_Tng(aces);
//aces = IDT_Canon_C100mk2_A_D55(aces);
//aces = IDT_Canon_C100mk2_A_Tng(aces);
//aces = IDT_Canon_C300_A_D55(aces);
//aces = IDT_Canon_C300_A_Tng(aces);
//aces = IDT_Canon_C500_A_D55(aces);
//aces = IDT_Canon_C500_A_Tng(aces);
//aces = IDT_Canon_C500_B_D55(aces);
//aces = IDT_Canon_C500_B_Tng(aces);
//aces = IDT_Canon_C500_CinemaGamut_A_D55(aces);
//aces = IDT_Canon_C500_CinemaGamut_A_Tng(aces);
//aces = IDT_Canon_C500_DCI_P3_A_D55(aces);
//aces = IDT_Canon_C500_DCI_P3_A_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog_BT2020_D_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog_BT2020_D_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog_CinemaGamut_C_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog_CinemaGamut_C_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog2_BT2020_B_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog2_BT2020_B_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog2_CinemaGamut_A_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog2_CinemaGamut_A_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog3_BT2020_F_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog3_BT2020_F_Tng(aces);
//aces = IDT_Canon_C300mk2_CanonLog3_CinemaGamut_E_D55(aces);
//aces = IDT_Canon_C300mk2_CanonLog3_CinemaGamut_E_Tng(aces);
//aces = IDT_Sony_SLog1_SGamut(aces);
//aces = IDT_Sony_SLog2_SGamut_Daylight(aces);
//aces = IDT_Sony_SLog2_SGamut_Tungsten(aces);
//aces = IDT_Sony_SLog3_SGamut3(aces);
//aces = IDT_Sony_SLog3_SGamut3Cine(aces);
//aces = IDT_Sony_Venice_SGamut3(aces);
//aces = IDT_Sony_Venice_SGamut3Cine(aces);
//aces = LMT_PFE(aces);
//aces = LMT_Bleach(aces);
//aces = LMT_BlueLightArtifactFix(aces);
//aces = LMT_GamutCompress(aces);
// Custom LMT
/*
aces = scale_C( aces, 1.0f);
float3 SLOPE = make_float3(1.0f, 1.0f, 1.0f);
float3 OFFSET = make_float3(0.0f, 0.0f, 0.0f);
float3 POWER = make_float3(1.0f, 1.0f, 1.0f);
float SAT = 1.0f;
aces = ASCCDL_inACEScct( aces, SLOPE, OFFSET, POWER, SAT);
aces = gamma_adjust_linear( aces, 1.0f, 0.18f);
aces = rotate_H_in_H( aces, 30.0f, 60.0f, 0.0f);
aces = rotate_H_in_H( aces, 180.0f, 60.0f, 0.0f);
aces = rotate_H_in_H( aces, 120.0f, 60.0f, 0.0f);
aces = scale_C_at_H( aces, 30.0f, 60.0f, 1.0f);
aces = rotate_H_in_H( aces, 0.0f, 60.0f, 0.0f);
aces = scale_C_at_H( aces, 180.0f, 60.0f, 1.0f);
*/
//aces = ACES_to_ACEScc(aces);
//aces = ACES_to_ACEScct(aces);
//aces = ACES_to_ACEScg(aces);
//aces = ACES_to_ADX(aces);
//aces = ACES_to_ICpCt(aces);
//aces = ACES_to_LogC_EI800_AWG(aces);
//aces = ACES_to_Log3G10_RWG(aces);
//aces = ACES_to_SLog3_SG3(aces);
//aces = ACES_to_SLog3_SG3C(aces);
//aces = ACES_to_Venice_SLog3_SG3(aces);
//aces = ACES_to_Venice_SLog3_SG3C(aces);
//aces = ACES_to_VLog_VGamut(aces);
//aces = RRT(aces);
//aces = InvRRT(aces);
//aces = ODT_Rec709_100nits_dim(aces);
//aces = ODT_Rec709_D60sim_100nits_dim(aces);
//aces = ODT_Rec2020_100nits_dim(aces);
//aces = ODT_Rec2020_ST2084_1000nits(aces);
//aces = ODT_Rec2020_Rec709limited_100nits_dim(aces);
//aces = ODT_Rec2020_P3D65limited_100nits_dim(aces);
//aces = ODT_sRGB_100nits_dim(aces);
//aces = ODT_sRGB_D60sim_100nits_dim(aces);
//aces = ODT_P3DCI_48nits(aces);
//aces = ODT_P3DCI_D60sim_48nits(aces);
//aces = ODT_P3DCI_D65sim_48nits(aces);
//aces = ODT_P3D60_48nits(aces);
//aces = ODT_P3D65_48nits(aces);
//aces = ODT_P3D65_D60sim_48nits(aces);
//aces = ODT_P3D65_Rec709limited_48nits(aces);
//aces = ODT_DCDM(aces);
//aces = ODT_DCDM_P3D60limited(aces);
//aces = ODT_DCDM_P3D65limited(aces);
//aces = ODT_RGBmonitor_100nits_dim(aces);
//aces = ODT_RGBmonitor_D60sim_100nits_dim(aces);
//aces = InvODT_Rec709_100nits_dim(aces);
//aces = InvODT_Rec709_D60sim_100nits_dim(aces);
//aces = InvODT_Rec2020_100nits_dim(aces);
//aces = InvODT_Rec2020_ST2084_1000nits(aces);
//aces = InvODT_sRGB_100nits_dim(aces);
//aces = InvODT_sRGB_D60sim_100nits_dim(aces);
//aces = InvODT_P3DCI_48nits(aces);
//aces = InvODT_P3DCI_D60sim_48nits(aces);
//aces = InvODT_P3DCI_D65sim_48nits(aces);
//aces = InvODT_P3D60_48nits(aces);
//aces = InvODT_P3D65_48nits(aces);
//aces = InvODT_P3D65_D60sim_48nits(aces);
//aces = InvODT_DCDM(aces);
//aces = InvODT_DCDM_P3D65limited(aces);
//aces = InvODT_RGBmonitor_100nits_dim(aces);
//aces = InvODT_RGBmonitor_D60sim_100nits_dim(aces);
// Custom Output Transform
/*
float Y_MIN = 0.0001f;
float Y_MID = 15.0f;
float Y_MAX = 1000.0f;
Chromaticities DISPLAY_PRI = REC2020_PRI;
Chromaticities LIMITING_PRI = REC2020_PRI;
int EOTF = 2; // 0: ST-2084 (PQ), 1: BT.1886 (Rec.709/2020 settings), 2: sRGB (mon_curve w/ presets), 3: gamma 2.6, 4: linear (no EOTF), 5: HLG
int SURROUND = 0; // 0: dark, 1: dim, 2: normal
bool STRETCH_BLACK = true;
bool D60_SIM = false;
bool LEGAL_RANGE = false;
aces = outputTransform( aces, Y_MIN, Y_MID, Y_MAX, DISPLAY_PRI, LIMITING_PRI, EOTF, SURROUND, STRETCH_BLACK, D60_SIM, LEGAL_RANGE );
//aces = invOutputTransform( aces, Y_MIN, Y_MID, Y_MAX, DISPLAY_PRI, LIMITING_PRI, EOTF, SURROUND, STRETCH_BLACK, D60_SIM, LEGAL_RANGE );
*/
//aces = RRTODT_P3D65_108nits_7_2nits_ST2084(aces);
//aces = RRTODT_P3D65_1000nits_15nits_ST2084(aces);
//aces = RRTODT_P3D65_2000nits_15nits_ST2084(aces);
//aces = RRTODT_P3D65_4000nits_15nits_ST2084(aces);
//aces = RRTODT_Rec2020_1000nits_15nits_HLG(aces);
//aces = RRTODT_Rec2020_1000nits_15nits_ST2084(aces);
//aces = RRTODT_Rec2020_2000nits_15nits_ST2084(aces);
//aces = RRTODT_Rec2020_4000nits_15nits_ST2084(aces);
//aces = RRTODT_Rec709_100nits_10nits_BT1886(aces);
//aces = RRTODT_Rec709_100nits_10nits_sRGB(aces);
//aces = InvRRTODT_P3D65_108nits_7_2nits_ST2084(aces);
//aces = InvRRTODT_P3D65_1000nits_15nits_ST2084(aces);
//aces = InvRRTODT_P3D65_2000nits_15nits_ST2084(aces);
//aces = InvRRTODT_P3D65_4000nits_15nits_ST2084(aces);
//aces = InvRRTODT_Rec2020_1000nits_15nits_HLG(aces);
//aces = InvRRTODT_Rec2020_1000nits_15nits_ST2084(aces);
//aces = InvRRTODT_Rec2020_2000nits_15nits_ST2084(aces);
//aces = InvRRTODT_Rec2020_4000nits_15nits_ST2084(aces);
//aces = InvRRTODT_Rec709_100nits_10nits_BT1886(aces);
//aces = InvRRTODT_Rec709_100nits_10nits_sRGB(aces);
return aces;
}