Add an additional color tag.

This commit is contained in:
Damiano Galassi committed 2018-07-10 19:32:28 +02:00
1 parent bebcd14cdf
commit 25de091684
4 files changed
+24 -13

No files matched your search

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14105" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="14269.14" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14105"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="14269.14"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
@@ -61,7 +61,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Aspect Ratio Denominator"/>
@@ -96,7 +96,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Offset Y"/>
@@ -130,7 +130,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Scaled Size Height"/>
@@ -195,7 +195,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Offset X"/>
@@ -230,7 +230,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Aspect Ratio Numerator"/>
@@ -249,7 +249,7 @@
<nil key="positiveInfinitySymbol"/>
</numberFormatter>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
<accessibility description="Scaled Size Width"/>
@@ -408,6 +408,7 @@
<menuItem title="Rec. 601 (6-1-6)" tag="3" id="XQd-tC-sVM"/>
<menuItem title="Rec. 709 (1-1-1)" tag="4" id="bc1-gr-6m9"/>
<menuItem title="Rec. 2020 (9-1-9)" tag="5" id="8V9-Sh-Mnu"/>
<menuItem title="Rec. 2100 PQ (9-16-9)" tag="5" id="d2S-Qf-ltk"/>
</items>
</menu>
</popUpButtonCell>
@@ -127,6 +127,8 @@ class VideoViewController: NSViewController {
return NSLocalizedString("Implicit", comment: "Implicit color profile")
case (1, 1, 1):
return NSLocalizedString("Rec. 709 (1-1-1)", comment: "color profile")
case (9, 16, 9):
return NSLocalizedString("Rec. 2100 PQ (9-16-9)", comment: "color profile")
case (9, 1, 9):
return NSLocalizedString("Rec. 2020 (9-1-9)", comment: "color profile")
case (5, 1, 6):
@@ -308,6 +310,8 @@ class VideoViewController: NSViewController {
colorTag = (1, 1, 1)
case 5:
colorTag = (9, 1, 9)
case 6:
colorTag = (9, 16, 9)
default:
return
}
+5
View File
@@ -447,6 +447,7 @@ extension Array where Element == Artwork {
case SBQueueColorSpaceActionTagRec601SMPTEC
case SBQueueColorSpaceActionTagRec709
case SBQueueColorSpaceActionTagRec2020
case SBQueueColorSpaceActionTagRec2100PQ
}
/// An action that set the video track color space.
@@ -482,6 +483,10 @@ extension Array where Element == Artwork {
self.colorPrimaries = 9
self.transferCharacteristics = 1
self.matrixCoefficients = 9
case .SBQueueColorSpaceActionTagRec2100PQ:
self.colorPrimaries = 9
self.transferCharacteristics = 16
self.matrixCoefficients = 9
}
}