Preliminary support of the colr atom.
This commit is contained in:
1 parent
658a12fc4c
commit
7d17c00d80
2 files changed
+159
-32
No files matched your search
@@ -1,14 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11535.1" systemVersion="16B2553a" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="11761" systemVersion="16C48b" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<deployment identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11535.1"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="11761"/>
|
||||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBVideoViewController">
|
||||
<connections>
|
||||
<outlet property="alternateGroup" destination="8uz-fA-OM4" id="Tpr-cp-mwO"/>
|
||||
<outlet property="colorHeight" destination="bGo-Zw-z0j" id="noF-0q-Gwe"/>
|
||||
<outlet property="colorProfilePopUp" destination="RpH-28-y5s" id="ecx-nk-92S"/>
|
||||
<outlet property="colorView" destination="fPE-Ll-kGD" id="ec6-fh-MPn"/>
|
||||
<outlet property="forced" destination="UUe-4D-UhO" id="f8Y-mL-CMN"/>
|
||||
<outlet property="forcedHeight" destination="gQ7-R1-40g" id="9Ih-8D-njV"/>
|
||||
<outlet property="forcedSubs" destination="ERY-K2-cCj" id="cb8-KR-brh"/>
|
||||
@@ -33,22 +36,22 @@
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
|
||||
<customView id="1">
|
||||
<rect key="frame" x="0.0" y="0.0" width="611" height="379"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="611" height="478"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<tabView controlSize="small" translatesAutoresizingMaskIntoConstraints="NO" id="5">
|
||||
<rect key="frame" x="-11" y="-10" width="629" height="384"/>
|
||||
<rect key="frame" x="-11" y="-10" width="629" height="483"/>
|
||||
<tabViewItems>
|
||||
<tabViewItem label="Visual Settings" identifier="1" id="6">
|
||||
<view key="view" id="9">
|
||||
<rect key="frame" x="10" y="29" width="609" height="342"/>
|
||||
<rect key="frame" x="10" y="29" width="609" height="441"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="Drh-uk-1vk">
|
||||
<rect key="frame" x="87" y="24" width="436" height="306"/>
|
||||
<rect key="frame" x="87" y="62" width="436" height="329"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="ifV-jn-Kjv">
|
||||
<rect key="frame" x="234" y="208" width="50" height="19"/>
|
||||
<rect key="frame" x="234" y="231" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="Iwt-Cm-ugd"/>
|
||||
</constraints>
|
||||
@@ -67,7 +70,7 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="hz3-IH-Nfw">
|
||||
<rect key="frame" x="18" y="282" width="141" height="14"/>
|
||||
<rect key="frame" x="18" y="305" width="141" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" alignment="right" title="Normal Size:" id="soD-gL-b4G">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -75,7 +78,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="aqN-Ac-8cl">
|
||||
<rect key="frame" x="289" y="282" width="35" height="14"/>
|
||||
<rect key="frame" x="289" y="305" width="35" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="6I1-7O-uon">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -83,7 +86,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="wlV-Oh-ui5">
|
||||
<rect key="frame" x="234" y="172" width="50" height="19"/>
|
||||
<rect key="frame" x="234" y="195" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="sti-gZ-KkW"/>
|
||||
</constraints>
|
||||
@@ -102,14 +105,14 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<button translatesAutoresizingMaskIntoConstraints="NO" id="TpJ-5s-UzF">
|
||||
<rect key="frame" x="161" y="233" width="138" height="18"/>
|
||||
<rect key="frame" x="161" y="256" width="138" height="18"/>
|
||||
<buttonCell key="cell" type="check" title="Preserve Aspect Ratio" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="nr0-Jc-cUj">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
</button>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="j7N-eK-BGR">
|
||||
<rect key="frame" x="219" y="211" width="10" height="14"/>
|
||||
<rect key="frame" x="219" y="234" width="10" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="GfY-OY-SWL">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -117,7 +120,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="n9M-HO-S4Z">
|
||||
<rect key="frame" x="234" y="255" width="50" height="19"/>
|
||||
<rect key="frame" x="234" y="278" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="xBH-Oy-fCg"/>
|
||||
</constraints>
|
||||
@@ -136,7 +139,7 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Hh2-MV-toy">
|
||||
<rect key="frame" x="164" y="282" width="50" height="14"/>
|
||||
<rect key="frame" x="164" y="305" width="50" height="14"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="46" id="PGv-gZ-TCI"/>
|
||||
</constraints>
|
||||
@@ -147,7 +150,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="ciI-zB-M6i">
|
||||
<rect key="frame" x="289" y="175" width="35" height="14"/>
|
||||
<rect key="frame" x="289" y="198" width="35" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="EQ0-oQ-E9J">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -155,7 +158,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="IBC-4P-DBN">
|
||||
<rect key="frame" x="35" y="211" width="124" height="14"/>
|
||||
<rect key="frame" x="35" y="234" width="124" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Aspect Ratio:" id="Q8w-0e-NRr">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -163,7 +166,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="lQe-jX-iRS">
|
||||
<rect key="frame" x="69" y="175" width="90" height="14"/>
|
||||
<rect key="frame" x="69" y="198" width="90" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Offset:" id="ubI-H1-utj">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -171,7 +174,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="YOz-mZ-420">
|
||||
<rect key="frame" x="234" y="282" width="50" height="14"/>
|
||||
<rect key="frame" x="234" y="305" width="50" height="14"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="46" id="oX0-WH-XwB"/>
|
||||
</constraints>
|
||||
@@ -182,7 +185,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="qFL-0W-Ye6">
|
||||
<rect key="frame" x="164" y="172" width="50" height="19"/>
|
||||
<rect key="frame" x="164" y="195" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="KTL-ae-uEZ"/>
|
||||
</constraints>
|
||||
@@ -201,7 +204,7 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="drr-hJ-0St">
|
||||
<rect key="frame" x="219" y="175" width="10" height="14"/>
|
||||
<rect key="frame" x="219" y="198" width="10" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="7Ug-k7-d7I">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -209,7 +212,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="jJB-Ty-mki">
|
||||
<rect key="frame" x="219" y="258" width="10" height="14"/>
|
||||
<rect key="frame" x="219" y="281" width="10" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="lgq-Fj-LB5">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -217,7 +220,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Q0D-6k-Hgx">
|
||||
<rect key="frame" x="164" y="208" width="50" height="19"/>
|
||||
<rect key="frame" x="164" y="231" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="aRN-pI-KPe"/>
|
||||
</constraints>
|
||||
@@ -236,7 +239,7 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="r90-c5-7PH">
|
||||
<rect key="frame" x="164" y="255" width="50" height="19"/>
|
||||
<rect key="frame" x="164" y="278" width="50" height="19"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="50" id="03n-DI-SjQ"/>
|
||||
</constraints>
|
||||
@@ -255,7 +258,7 @@
|
||||
</connections>
|
||||
</textField>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8uz-fA-OM4">
|
||||
<rect key="frame" x="161" y="143" width="62" height="22"/>
|
||||
<rect key="frame" x="161" y="166" width="62" height="22"/>
|
||||
<popUpButtonCell key="cell" type="push" title="None" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="vVg-S9-JUk" id="1Lt-yX-9cP">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
@@ -277,7 +280,7 @@
|
||||
</connections>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="QID-3k-PHK">
|
||||
<rect key="frame" x="219" y="282" width="10" height="14"/>
|
||||
<rect key="frame" x="219" y="305" width="10" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="x" id="ILN-KP-l0z">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -285,7 +288,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="AEE-SG-UWs">
|
||||
<rect key="frame" x="41" y="258" width="118" height="14"/>
|
||||
<rect key="frame" x="41" y="281" width="118" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Scaled Size:" id="1O9-J3-Plk">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -293,7 +296,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="100" translatesAutoresizingMaskIntoConstraints="NO" id="BeZ-s7-H0q">
|
||||
<rect key="frame" x="289" y="258" width="35" height="14"/>
|
||||
<rect key="frame" x="289" y="281" width="35" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="pixels" id="7as-HC-onR">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -301,7 +304,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="HtH-F7-8Bv">
|
||||
<rect key="frame" x="18" y="148" width="141" height="14"/>
|
||||
<rect key="frame" x="18" y="171" width="141" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Alternate Group:" id="Fye-Hi-zqu">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
@@ -309,7 +312,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="z7f-vJ-7sb" userLabel="Forced">
|
||||
<rect key="frame" x="0.0" y="93" width="436" height="46"/>
|
||||
<rect key="frame" x="0.0" y="116" width="436" height="46"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="cbR-yR-H9l">
|
||||
<rect key="frame" x="18" y="28" width="141" height="14"/>
|
||||
@@ -444,12 +447,56 @@
|
||||
<constraint firstItem="oWm-9L-JdB" firstAttribute="top" secondItem="b24-td-FnZ" secondAttribute="bottom" constant="7" id="x2E-Ba-97B"/>
|
||||
</constraints>
|
||||
</customView>
|
||||
<customView translatesAutoresizingMaskIntoConstraints="NO" id="fPE-Ll-kGD" userLabel="Color">
|
||||
<rect key="frame" x="0.0" y="92" width="436" height="24"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" preferredMaxLayoutWidth="300" translatesAutoresizingMaskIntoConstraints="NO" id="xfb-DL-1Pr">
|
||||
<rect key="frame" x="18" y="6" width="141" height="14"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="right" title="Color Profile:" id="BZv-h3-OMk">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="RpH-28-y5s">
|
||||
<rect key="frame" x="161" y="1" width="196" height="22"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="190" id="8ks-py-KoB"/>
|
||||
</constraints>
|
||||
<popUpButtonCell key="cell" type="push" title="Implicit" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" tag="1" imageScaling="proportionallyDown" inset="2" selectedItem="6PY-Np-Y3s" id="G6U-LQ-v4b">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<menu key="menu" title="OtherViews" id="7qj-VS-hv7">
|
||||
<items>
|
||||
<menuItem title="Implicit" state="on" tag="1" id="6PY-Np-Y3s"/>
|
||||
<menuItem title="Rec. 601 (5-1-6)" tag="2" id="X7B-de-Yur"/>
|
||||
<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"/>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
<connections>
|
||||
<accessibilityConnection property="title" destination="xfb-DL-1Pr" id="OIM-4J-sWM"/>
|
||||
<action selector="setColorProfile:" target="-2" id="xtd-k4-x1K"/>
|
||||
</connections>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="xfb-DL-1Pr" firstAttribute="baseline" secondItem="RpH-28-y5s" secondAttribute="baseline" id="Iju-gY-9gk"/>
|
||||
<constraint firstItem="xfb-DL-1Pr" firstAttribute="leading" secondItem="fPE-Ll-kGD" secondAttribute="leading" constant="20" id="VxC-5Y-lig"/>
|
||||
<constraint firstItem="RpH-28-y5s" firstAttribute="leading" secondItem="xfb-DL-1Pr" secondAttribute="trailing" constant="7" id="X4k-a1-rWN"/>
|
||||
<constraint firstAttribute="height" constant="24" id="bGo-Zw-z0j"/>
|
||||
<constraint firstItem="RpH-28-y5s" firstAttribute="top" secondItem="fPE-Ll-kGD" secondAttribute="top" constant="2" id="e4p-EI-tyE"/>
|
||||
</constraints>
|
||||
</customView>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="aqN-Ac-8cl" firstAttribute="leading" secondItem="YOz-mZ-420" secondAttribute="trailing" constant="9" id="11h-n5-htr"/>
|
||||
<constraint firstItem="BeZ-s7-H0q" firstAttribute="baseline" secondItem="n9M-HO-S4Z" secondAttribute="baseline" id="21C-5s-3qE"/>
|
||||
<constraint firstItem="lQe-jX-iRS" firstAttribute="leading" secondItem="Drh-uk-1vk" secondAttribute="leading" constant="71" id="2s0-ZE-Lu8"/>
|
||||
<constraint firstItem="7i2-3m-yRg" firstAttribute="leading" secondItem="Drh-uk-1vk" secondAttribute="leading" id="2vi-c5-9Ze"/>
|
||||
<constraint firstAttribute="trailing" secondItem="fPE-Ll-kGD" secondAttribute="trailing" id="3Dm-Du-lOV"/>
|
||||
<constraint firstItem="jJB-Ty-mki" firstAttribute="leading" secondItem="r90-c5-7PH" secondAttribute="trailing" constant="7" id="3zC-ex-UEf"/>
|
||||
<constraint firstItem="r90-c5-7PH" firstAttribute="top" secondItem="Hh2-MV-toy" secondAttribute="bottom" constant="8" id="4kX-8f-fIz"/>
|
||||
<constraint firstItem="qFL-0W-Ye6" firstAttribute="top" secondItem="Q0D-6k-Hgx" secondAttribute="bottom" constant="17" id="4sj-hR-Npm"/>
|
||||
@@ -459,6 +506,7 @@
|
||||
<constraint firstItem="AEE-SG-UWs" firstAttribute="trailing" secondItem="IBC-4P-DBN" secondAttribute="trailing" id="BED-wv-Dxr"/>
|
||||
<constraint firstItem="AEE-SG-UWs" firstAttribute="leading" secondItem="Drh-uk-1vk" secondAttribute="leading" constant="43" id="C88-AU-0o0"/>
|
||||
<constraint firstItem="Q0D-6k-Hgx" firstAttribute="top" secondItem="TpJ-5s-UzF" secondAttribute="bottom" constant="9" id="DFa-gF-uv5"/>
|
||||
<constraint firstItem="xfb-DL-1Pr" firstAttribute="width" secondItem="hz3-IH-Nfw" secondAttribute="width" id="Eef-qR-Apl"/>
|
||||
<constraint firstItem="z7f-vJ-7sb" firstAttribute="leading" secondItem="Drh-uk-1vk" secondAttribute="leading" id="Ekx-Yn-I8N"/>
|
||||
<constraint firstItem="r90-c5-7PH" firstAttribute="baseline" secondItem="jJB-Ty-mki" secondAttribute="baseline" id="FKg-hq-zjy"/>
|
||||
<constraint firstItem="YOz-mZ-420" firstAttribute="leading" secondItem="QID-3k-PHK" secondAttribute="trailing" constant="9" id="JWh-AO-xMm"/>
|
||||
@@ -478,15 +526,18 @@
|
||||
<constraint firstItem="aqN-Ac-8cl" firstAttribute="baseline" secondItem="YOz-mZ-420" secondAttribute="baseline" id="Yws-gG-b4c"/>
|
||||
<constraint firstItem="YOz-mZ-420" firstAttribute="baseline" secondItem="QID-3k-PHK" secondAttribute="baseline" id="Zdl-Kt-0H2"/>
|
||||
<constraint firstItem="Hh2-MV-toy" firstAttribute="baseline" secondItem="QID-3k-PHK" secondAttribute="baseline" id="Zu2-EL-FZI"/>
|
||||
<constraint firstItem="fPE-Ll-kGD" firstAttribute="top" secondItem="z7f-vJ-7sb" secondAttribute="bottom" id="a2q-Gc-roY"/>
|
||||
<constraint firstItem="wlV-Oh-ui5" firstAttribute="baseline" secondItem="drr-hJ-0St" secondAttribute="baseline" id="bvl-9H-o7s"/>
|
||||
<constraint firstItem="qFL-0W-Ye6" firstAttribute="leading" secondItem="lQe-jX-iRS" secondAttribute="trailing" constant="7" id="cG9-bo-JZs"/>
|
||||
<constraint firstItem="7i2-3m-yRg" firstAttribute="top" secondItem="z7f-vJ-7sb" secondAttribute="bottom" constant="2" id="e0H-UO-ZH6"/>
|
||||
<constraint firstItem="8uz-fA-OM4" firstAttribute="baseline" secondItem="HtH-F7-8Bv" secondAttribute="baseline" id="eHj-Dk-6A4"/>
|
||||
<constraint firstItem="fPE-Ll-kGD" firstAttribute="leading" secondItem="Drh-uk-1vk" secondAttribute="leading" id="fCn-M4-mt8"/>
|
||||
<constraint firstItem="Hh2-MV-toy" firstAttribute="leading" secondItem="hz3-IH-Nfw" secondAttribute="trailing" constant="9" id="fRq-pV-4k0"/>
|
||||
<constraint firstItem="xfb-DL-1Pr" firstAttribute="trailing" secondItem="hz3-IH-Nfw" secondAttribute="trailing" id="fbX-g7-hjE"/>
|
||||
<constraint firstItem="hz3-IH-Nfw" firstAttribute="top" secondItem="Drh-uk-1vk" secondAttribute="top" constant="10" id="fiz-oE-I7x"/>
|
||||
<constraint firstItem="z7f-vJ-7sb" firstAttribute="top" secondItem="8uz-fA-OM4" secondAttribute="bottom" constant="7" id="gqd-cE-CIb"/>
|
||||
<constraint firstItem="lQe-jX-iRS" firstAttribute="trailing" secondItem="HtH-F7-8Bv" secondAttribute="trailing" id="hFu-gA-2ND"/>
|
||||
<constraint firstItem="r90-c5-7PH" firstAttribute="leading" secondItem="AEE-SG-UWs" secondAttribute="trailing" constant="7" id="heD-Oy-4wk"/>
|
||||
<constraint firstItem="7i2-3m-yRg" firstAttribute="top" secondItem="xfb-DL-1Pr" secondAttribute="bottom" constant="7" id="lMQ-xI-YMJ"/>
|
||||
<constraint firstItem="TpJ-5s-UzF" firstAttribute="leading" secondItem="r90-c5-7PH" secondAttribute="leading" id="lXn-63-WEe"/>
|
||||
<constraint firstAttribute="trailing" secondItem="7i2-3m-yRg" secondAttribute="trailing" id="lZk-Vr-4f6"/>
|
||||
<constraint firstItem="cbR-yR-H9l" firstAttribute="width" secondItem="hz3-IH-Nfw" secondAttribute="width" id="lsF-Sp-XDj"/>
|
||||
@@ -527,7 +578,7 @@
|
||||
<constraint firstAttribute="bottom" secondItem="5" secondAttribute="bottom" id="M7k-35-lBC"/>
|
||||
<constraint firstItem="5" firstAttribute="top" secondItem="1" secondAttribute="top" constant="8" id="ZMa-a5-UJy"/>
|
||||
</constraints>
|
||||
<point key="canvasLocation" x="-451.5" y="-842.5"/>
|
||||
<point key="canvasLocation" x="-451.5" y="-793"/>
|
||||
</customView>
|
||||
<userDefaultsController representsSharedInstance="YES" id="D8b-lE-U3e"/>
|
||||
</objects>
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
@property (nonatomic, strong) IBOutlet NSView *profileView;
|
||||
@property (nonatomic, weak) IBOutlet NSLayoutConstraint *profileHeight;
|
||||
|
||||
@property (nonatomic, strong) IBOutlet NSView *colorView;
|
||||
@property (nonatomic, weak) IBOutlet NSLayoutConstraint *colorHeight;
|
||||
|
||||
@property (nonatomic, weak) IBOutlet NSPopUpButton *colorProfilePopUp;
|
||||
|
||||
@end
|
||||
|
||||
@implementation SBVideoViewController
|
||||
@@ -102,6 +107,27 @@ static NSString *getLevelName(uint8_t level) {
|
||||
}
|
||||
}
|
||||
|
||||
static NSString *getColorProfileName(uint16_t colorPrimaries,
|
||||
uint16_t transferCharacteristics,
|
||||
uint16_t matrixCoefficients) {
|
||||
if (colorPrimaries == 0 && transferCharacteristics == 0 && matrixCoefficients == 0) {
|
||||
return NSLocalizedString(@"Implicit", @"Implicit color profile");
|
||||
}
|
||||
else if (colorPrimaries == 1 && transferCharacteristics == 1 && matrixCoefficients == 1) {
|
||||
return NSLocalizedString(@"Rec. 709 (1-1-1)", @"Implicit color profile");
|
||||
}
|
||||
else if (colorPrimaries == 9 && transferCharacteristics == 1 && matrixCoefficients == 9) {
|
||||
return NSLocalizedString(@"Rec. 2020 (9-1-9)", @"color profile");
|
||||
}
|
||||
if (colorPrimaries == 5 && transferCharacteristics == 1 && matrixCoefficients == 6) {
|
||||
return NSLocalizedString(@"Rec. 601 (5-1-6)", @"color profile");
|
||||
}
|
||||
if (colorPrimaries == 6 && transferCharacteristics == 1 && matrixCoefficients == 6) {
|
||||
return NSLocalizedString(@"Rec. 601 (6-1-6)", @"color profile");
|
||||
}
|
||||
return [NSString stringWithFormat:@"%d-%d-%d", colorPrimaries, transferCharacteristics, matrixCoefficients];
|
||||
}
|
||||
|
||||
- (void)loadView
|
||||
{
|
||||
[super loadView];
|
||||
@@ -148,6 +174,21 @@ static NSString *getLevelName(uint8_t level) {
|
||||
self.profileHeight.constant = 0;
|
||||
}
|
||||
|
||||
if (track.format == kMP42VideoCodecType_H264 || track.format == kMP42VideoCodecType_MPEG4Video ||
|
||||
track.format == kMP42VideoCodecType_HEVC || track.format == kMP42VideoCodecType_HEVC_2) {
|
||||
NSString *colorProfile = getColorProfileName(track.colorPrimaries, track.transferCharacteristics, track.matrixCoefficients);
|
||||
[self.colorProfilePopUp selectItemWithTitle:colorProfile];
|
||||
|
||||
if (self.colorProfilePopUp.indexOfSelectedItem == -1) {
|
||||
[self.colorProfilePopUp addItemWithTitle:colorProfile];
|
||||
[self.colorProfilePopUp selectItemWithTitle:colorProfile];
|
||||
}
|
||||
}
|
||||
else {
|
||||
self.colorView.hidden = YES;
|
||||
self.colorHeight.constant = 0;
|
||||
}
|
||||
|
||||
if ([track isKindOfClass:[MP42SubtitleTrack class]]) {
|
||||
MP42SubtitleTrack * subTrack = (MP42SubtitleTrack*)track;
|
||||
|
||||
@@ -263,7 +304,6 @@ static NSString *getLevelName(uint8_t level) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
- (IBAction)setAltenateGroup:(id)sender
|
||||
{
|
||||
NSInteger tagName = [sender selectedItem].tag;
|
||||
@@ -274,6 +314,42 @@ static NSString *getLevelName(uint8_t level) {
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)setColorProfile:(id)sender
|
||||
{
|
||||
NSInteger tagName = [sender selectedItem].tag;
|
||||
switch (tagName) {
|
||||
case 1:
|
||||
track.colorPrimaries = 0;
|
||||
track.transferCharacteristics = 0;
|
||||
track.matrixCoefficients = 0;
|
||||
break;
|
||||
case 2:
|
||||
track.colorPrimaries = 5;
|
||||
track.transferCharacteristics = 1;
|
||||
track.matrixCoefficients = 6;
|
||||
break;
|
||||
case 3:
|
||||
track.colorPrimaries = 6;
|
||||
track.transferCharacteristics = 1;
|
||||
track.matrixCoefficients = 6;
|
||||
break;
|
||||
case 4:
|
||||
track.colorPrimaries = 1;
|
||||
track.transferCharacteristics = 1;
|
||||
track.matrixCoefficients = 1;
|
||||
break;
|
||||
case 5:
|
||||
track.colorPrimaries = 9;
|
||||
track.transferCharacteristics = 1;
|
||||
track.matrixCoefficients = 9;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
[self.view.window.windowController.document updateChangeCount:NSChangeDone];
|
||||
}
|
||||
|
||||
- (IBAction)setProfileLevel:(id)sender
|
||||
{
|
||||
NSInteger tagName = [sender selectedItem].tag;
|
||||
|
||||
Reference in new issue
Block a user