Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit a3cd287

Browse files
committed
Implement support for "Sony Venice" "S.Gamut3" and "S.Gamut3.Cine" IDTs.
1 parent 87484c2 commit a3cd287

File tree

2 files changed

+96
-3
lines changed

2 files changed

+96
-3
lines changed

aces_1.2/config.ocio

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,6 +1305,30 @@ colorspaces:
13051305
allocationvars: [-8, 5, 0.00390625]
13061306
to_reference: !<MatrixTransform> {matrix: [0.752983, 0.14337, 0.103647, 0, 0.0217077, 1.01532, -0.0370265, 0, -0.00941605, 0.00337042, 1.00605, 0, 0, 0, 0, 1]}
13071307

1308+
- !<ColorSpace>
1309+
name: Input - Sony - Linear - Venice S-Gamut3
1310+
family: Input/Sony
1311+
equalitygroup: ""
1312+
bitdepth: 32f
1313+
description: |
1314+
Linear - Venice S-Gamut3
1315+
isdata: false
1316+
allocation: lg2
1317+
allocationvars: [-8, 5, 0.00390625]
1318+
to_reference: !<MatrixTransform> {matrix: [0.79333, 0.0890786, 0.117592, 0, 0.0155811, 1.03271, -0.0482934, 0, -0.0188647, 0.0127694, 1.0061, 0, 0, 0, 0, 1]}
1319+
1320+
- !<ColorSpace>
1321+
name: Input - Sony - Linear - Venice S-Gamut3.Cine
1322+
family: Input/Sony
1323+
equalitygroup: ""
1324+
bitdepth: 32f
1325+
description: |
1326+
Linear - Venice S-Gamut3.Cine
1327+
isdata: false
1328+
allocation: lg2
1329+
allocationvars: [-8, 5, 0.00390625]
1330+
to_reference: !<MatrixTransform> {matrix: [0.674257, 0.220572, 0.105171, 0, -0.00931361, 1.10596, -0.0966453, 0, -0.0382091, -0.0179384, 1.05615, 0, 0, 0, 0, 1]}
1331+
13081332
- !<ColorSpace>
13091333
name: Output - DCDM
13101334
family: Output
@@ -3661,6 +3685,30 @@ colorspaces:
36613685
allocationvars: [-8, 5, 0.00390625]
36623686
to_reference: !<ColorSpaceTransform> {src: Input - Sony - Linear - S-Gamut3, dst: ACES - ACES2065-1}
36633687

3688+
- !<ColorSpace>
3689+
name: lin_venice_sgamut3
3690+
family: Utility/Aliases
3691+
equalitygroup: ""
3692+
bitdepth: 32f
3693+
description: |
3694+
Linear - Venice S-Gamut3
3695+
isdata: false
3696+
allocation: lg2
3697+
allocationvars: [-8, 5, 0.00390625]
3698+
to_reference: !<ColorSpaceTransform> {src: Input - Sony - Linear - Venice S-Gamut3, dst: ACES - ACES2065-1}
3699+
3700+
- !<ColorSpace>
3701+
name: lin_venice_sgamut3cine
3702+
family: Utility/Aliases
3703+
equalitygroup: ""
3704+
bitdepth: 32f
3705+
description: |
3706+
Linear - Venice S-Gamut3.Cine
3707+
isdata: false
3708+
allocation: lg2
3709+
allocationvars: [-8, 5, 0.00390625]
3710+
to_reference: !<ColorSpaceTransform> {src: Input - Sony - Linear - Venice S-Gamut3.Cine, dst: ACES - ACES2065-1}
3711+
36643712
- !<ColorSpace>
36653713
name: out_dcdm
36663714
family: Utility/Aliases

aces_1.2/python/aces_ocio/colorspaces/sony.py

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,32 @@ def SLog3_to_linear(code_value):
225225
'direction':
226226
'forward'
227227
})
228+
elif gamut == 'Venice S-Gamut3':
229+
cs.to_reference_transforms.append({
230+
'type':
231+
'matrix',
232+
'matrix':
233+
mat44_from_mat33([
234+
0.7933297411, 0.0890786256, 0.1175916333, 0.0155810585,
235+
1.0327123069, -0.0482933654, -0.0188647478, 0.0127694121,
236+
1.0060953358
237+
]),
238+
'direction':
239+
'forward'
240+
})
241+
elif gamut == 'Venice S-Gamut3.Cine':
242+
cs.to_reference_transforms.append({
243+
'type':
244+
'matrix',
245+
'matrix':
246+
mat44_from_mat33([
247+
0.6742570921, 0.2205717359, 0.1051711720, -0.0093136061,
248+
1.1059588614, -0.0966452553, -0.0382090673, -0.0179383766,
249+
1.0561474439
250+
]),
251+
'direction':
252+
'forward'
253+
})
228254

229255
cs.from_reference_transforms = []
230256
return cs
@@ -270,13 +296,23 @@ def create_colorspaces(lut_directory, lut_resolution_1D):
270296
colorspaces.append(s_log2_s_gamut_tungsten)
271297

272298
# *S-Log3*
299+
s_log3_s_gamut3 = create_SLog('S-Gamut3', 'S-Log3', lut_directory,
300+
lut_resolution_1D, ['slog3_sgamut3'])
301+
colorspaces.append(s_log3_s_gamut3)
302+
273303
s_log3_s_gamut3Cine = create_SLog('S-Gamut3.Cine', 'S-Log3', lut_directory,
274304
lut_resolution_1D, ['slog3_sgamutcine'])
275305
colorspaces.append(s_log3_s_gamut3Cine)
276306

277-
s_log3_s_gamut3 = create_SLog('S-Gamut3', 'S-Log3', lut_directory,
278-
lut_resolution_1D, ['slog3_sgamut3'])
279-
colorspaces.append(s_log3_s_gamut3)
307+
s_log3_venice_s_gamut3 = create_SLog('Venice S-Gamut3', 'S-Log3',
308+
lut_directory, lut_resolution_1D,
309+
['slog3_venice_sgamut3'])
310+
colorspaces.append(s_log3_venice_s_gamut3)
311+
312+
s_log3_venice_s_gamut3Cine = create_SLog('Venice S-Gamut3.Cine', 'S-Log3',
313+
lut_directory, lut_resolution_1D,
314+
['slog3_venice_sgamutcine'])
315+
colorspaces.append(s_log3_venice_s_gamut3Cine)
280316

281317
# Linearization Only
282318
s_log1 = create_SLog('', 'S-Log1', lut_directory, lut_resolution_1D,
@@ -312,4 +348,13 @@ def create_colorspaces(lut_directory, lut_resolution_1D):
312348
['lin_sgamut3'])
313349
colorspaces.append(s_gamut3)
314350

351+
venice_s_gamut3 = create_SLog('Venice S-Gamut3', '', lut_directory,
352+
lut_resolution_1D, ['lin_venice_sgamut3'])
353+
colorspaces.append(venice_s_gamut3)
354+
355+
venice_s_gamut3Cine = create_SLog('Venice S-Gamut3.Cine', '',
356+
lut_directory, lut_resolution_1D,
357+
['lin_venice_sgamut3cine'])
358+
colorspaces.append(venice_s_gamut3Cine)
359+
315360
return colorspaces

0 commit comments

Comments
 (0)