Skip to content

Commit bd10bf0

Browse files
ledyba-zdreampiggy
authored andcommitted
これもDeprecatedらしい
1 parent e6800c4 commit bd10bf0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

SDWebImageAVIFCoder/Classes/ColorSpace.m

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -428,21 +428,6 @@ void SDAVIFCalcColorSpaceRGB(avifImage * avif, CGColorSpaceRef* ref, BOOL* shoul
428428
*shouldRelease = FALSE;
429429
return;
430430
}
431-
if(colorPrimaries == AVIF_NCLX_COLOUR_PRIMARIES_BT2020 &&
432-
transferCharacteristics == AVIF_NCLX_TRANSFER_CHARACTERISTICS_HLG) {
433-
static CGColorSpaceRef bt2020hlg = NULL;
434-
static dispatch_once_t onceToken;
435-
dispatch_once(&onceToken, ^{
436-
if (@available(macOS 10.14.6, iOS 13.0, tvOS 13.0, *)) {
437-
bt2020hlg = CGColorSpaceCreateWithName(kCGColorSpaceITUR_2020_HLG);
438-
} else {
439-
bt2020hlg = defaultColorSpace;
440-
}
441-
});
442-
*ref = bt2020hlg;
443-
*shouldRelease = FALSE;
444-
return;
445-
}
446431
if(colorPrimaries == AVIF_NCLX_COLOUR_PRIMARIES_SMPTE432 /* Display P3 */ &&
447432
transferCharacteristics == AVIF_NCLX_TRANSFER_CHARACTERISTICS_SRGB) {
448433
static CGColorSpaceRef p3 = NULL;

0 commit comments

Comments
 (0)