Skip to content

Commit 791f77d

Browse files
committed
Use OETF variants for now
1 parent dbe9a56 commit 791f77d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

coloraide/spaces/ycbcr2020.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@
1515
class YPbPr2020(YPbPr):
1616
"""YPbPr color class using Rec. 709."""
1717

18-
BASE = 'rec2020'
18+
BASE = 'rec2020-oetf'
1919
NAME = "ypbpr2020"
2020
SERIALIZE = ("--ypbpr2020",)
2121
WHITE = WHITES['2deg']['D65']
2222
ENV = Environment(k=BT2020)
23-
GAMUT_CHECK = 'rec2020'
23+
GAMUT_CHECK = 'rec2020-oetf'
2424

2525

2626
class YCbCr2020Bit10(YCbCr):
2727
"""Y'CbCr color class using Rec. 2020 (10 bit)."""
2828

29-
BASE = 'rec2020'
29+
BASE = 'rec2020-oetf'
3030
NAME = "ycbcr2020-10bit"
3131
SERIALIZE = ("--ycbcr2020-10bit",)
3232
WHITE = WHITES['2deg']['D65']
@@ -36,13 +36,13 @@ class YCbCr2020Bit10(YCbCr):
3636
Channel("cb", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round),
3737
Channel("cr", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round)
3838
)
39-
GAMUT_CHECK = 'rec2020'
39+
GAMUT_CHECK = 'rec2020-oetf'
4040

4141

4242
class YCbCr2020Bit12(YCbCr):
4343
"""Y'CbCr color class using Rec. 2020 (12 bit)."""
4444

45-
BASE = 'rec2020'
45+
BASE = 'rec2020-oetf'
4646
NAME = "ycbcr2020-12bit"
4747
SERIALIZE = ("--ycbcr2020-12bit",)
4848
WHITE = WHITES['2deg']['D65']
@@ -52,4 +52,4 @@ class YCbCr2020Bit12(YCbCr):
5252
Channel("cb", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round),
5353
Channel("cr", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round)
5454
)
55-
GAMUT_CHECK = 'rec2020'
55+
GAMUT_CHECK = 'rec2020-oetf'

coloraide/spaces/ycbcr709.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ def from_base(self, coords: Vector) -> Vector:
166166
class YPbPr709(YPbPr):
167167
"""YPbPr color class using Rec. 709."""
168168

169-
BASE = 'rec709'
169+
BASE = 'rec709-oetf'
170170
NAME = "ypbpr709"
171171
SERIALIZE = ("--ypbpr709",)
172172
WHITE = WHITES['2deg']['D65']
173173
ENV = Environment(k=BT709)
174-
GAMUT_CHECK = 'rec709'
174+
GAMUT_CHECK = 'rec709-oetf'
175175

176176

177177
class YCbCr709Bit8(YCbCr):
178178
"""YCbCr color class using Rec. 709 (8 bit)."""
179179

180-
BASE = 'rec709'
180+
BASE = 'rec709-oetf'
181181
NAME = "ycbcr709-8bit"
182182
SERIALIZE = ("--ycbcr709-8bit",)
183183
WHITE = WHITES['2deg']['D65']
@@ -188,13 +188,13 @@ class YCbCr709Bit8(YCbCr):
188188
Channel("cb", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round),
189189
Channel("cr", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round)
190190
)
191-
GAMUT_CHECK = 'rec709'
191+
GAMUT_CHECK = 'rec709-oetf'
192192

193193

194194
class YCbCr709Bit10(YCbCr):
195195
"""YCbCr color class using Rec. 709 (10 bit)."""
196196

197-
BASE = 'rec709'
197+
BASE = 'rec709-oetf'
198198
NAME = "ycbcr709-10bit"
199199
SERIALIZE = ("--ycbcr709-10bit",)
200200
WHITE = WHITES['2deg']['D65']
@@ -205,5 +205,5 @@ class YCbCr709Bit10(YCbCr):
205205
Channel("cb", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round),
206206
Channel("cr", ENV.c_range[0], ENV.c_range[1], nans=ENV.c_range[0], bound=True, limit=ENV.digital_round)
207207
)
208-
GAMUT_CHECK = 'rec709'
208+
GAMUT_CHECK = 'rec709-oetf'
209209

0 commit comments

Comments
 (0)