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

+6 -5
View File
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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> <dependencies>
<deployment identifier="macosx"/> <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"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -14,8 +14,8 @@
</customObject> </customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/> <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customView id="UlG-O3-eNc" userLabel="OptionsView"> <customView misplaced="YES" id="UlG-O3-eNc" userLabel="OptionsView">
<rect key="frame" x="0.0" y="0.0" width="370" height="488"/> <rect key="frame" x="0.0" y="0.0" width="380" height="488"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<subviews> <subviews>
<button translatesAutoresizingMaskIntoConstraints="NO" id="zEH-aV-Tl7"> <button translatesAutoresizingMaskIntoConstraints="NO" id="zEH-aV-Tl7">
@@ -514,7 +514,7 @@
</connections> </connections>
</textField> </textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="s2g-Iz-52P"> <popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="s2g-Iz-52P">
<rect key="frame" x="216" y="173" width="120" height="17"/> <rect key="frame" x="216" y="173" width="144" height="17"/>
<constraints> <constraints>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="111" id="57c-cZ-60x"/> <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="111" id="57c-cZ-60x"/>
</constraints> </constraints>
@@ -528,6 +528,7 @@
<menuItem title="Rec. 601 (6-1-6)" tag="3" id="AZx-uM-CmZ"/> <menuItem title="Rec. 601 (6-1-6)" tag="3" id="AZx-uM-CmZ"/>
<menuItem title="Rec. 709 (1-1-1)" tag="4" id="1uU-j6-SSj"/> <menuItem title="Rec. 709 (1-1-1)" tag="4" id="1uU-j6-SSj"/>
<menuItem title="Rec. 2020 (9-1-9)" tag="5" id="Tjn-8g-7PM"/> <menuItem title="Rec. 2020 (9-1-9)" tag="5" id="Tjn-8g-7PM"/>
<menuItem title="Rec. 2100 PQ (9-16-9)" tag="5" id="kyg-my-fCL"/>
</items> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-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> <dependencies>
<deployment identifier="macosx"/> <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"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
@@ -61,7 +61,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Aspect Ratio Denominator"/> <accessibility description="Aspect Ratio Denominator"/>
@@ -96,7 +96,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Offset Y"/> <accessibility description="Offset Y"/>
@@ -130,7 +130,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Scaled Size Height"/> <accessibility description="Scaled Size Height"/>
@@ -195,7 +195,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Offset X"/> <accessibility description="Offset X"/>
@@ -230,7 +230,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Aspect Ratio Numerator"/> <accessibility description="Aspect Ratio Numerator"/>
@@ -249,7 +249,7 @@
<nil key="positiveInfinitySymbol"/> <nil key="positiveInfinitySymbol"/>
</numberFormatter> </numberFormatter>
<font key="font" metaFont="smallSystem"/> <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"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell> </textFieldCell>
<accessibility description="Scaled Size Width"/> <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. 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. 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. 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> </items>
</menu> </menu>
</popUpButtonCell> </popUpButtonCell>
@@ -127,6 +127,8 @@ class VideoViewController: NSViewController {
return NSLocalizedString("Implicit", comment: "Implicit color profile") return NSLocalizedString("Implicit", comment: "Implicit color profile")
case (1, 1, 1): case (1, 1, 1):
return NSLocalizedString("Rec. 709 (1-1-1)", comment: "color profile") 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): case (9, 1, 9):
return NSLocalizedString("Rec. 2020 (9-1-9)", comment: "color profile") return NSLocalizedString("Rec. 2020 (9-1-9)", comment: "color profile")
case (5, 1, 6): case (5, 1, 6):
@@ -308,6 +310,8 @@ class VideoViewController: NSViewController {
colorTag = (1, 1, 1) colorTag = (1, 1, 1)
case 5: case 5:
colorTag = (9, 1, 9) colorTag = (9, 1, 9)
case 6:
colorTag = (9, 16, 9)
default: default:
return return
} }
+5
View File
@@ -447,6 +447,7 @@ extension Array where Element == Artwork {
case SBQueueColorSpaceActionTagRec601SMPTEC case SBQueueColorSpaceActionTagRec601SMPTEC
case SBQueueColorSpaceActionTagRec709 case SBQueueColorSpaceActionTagRec709
case SBQueueColorSpaceActionTagRec2020 case SBQueueColorSpaceActionTagRec2020
case SBQueueColorSpaceActionTagRec2100PQ
} }
/// An action that set the video track color space. /// An action that set the video track color space.
@@ -482,6 +483,10 @@ extension Array where Element == Artwork {
self.colorPrimaries = 9 self.colorPrimaries = 9
self.transferCharacteristics = 1 self.transferCharacteristics = 1
self.matrixCoefficients = 9 self.matrixCoefficients = 9
case .SBQueueColorSpaceActionTagRec2100PQ:
self.colorPrimaries = 9
self.transferCharacteristics = 16
self.matrixCoefficients = 9
} }
} }