diff options
author | dynaflash <[email protected]> | 2011-04-15 22:42:31 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2011-04-15 22:42:31 +0000 |
commit | 61460ce74a948d7ba36240fbc9fb658168c2f834 (patch) | |
tree | 008edf65127bc4026546c7b835f5333bba807265 | |
parent | a264b3c24c8ef687cac5325753be29f1b0f1d9f9 (diff) |
MacGui: implement Frame Rate Mode as per the Lingui.
- Removes the current Peak Framerate checkbox and replaces it with appropriate Radio Buttons depending on if Same as Source or a specific framerate is chosen in the Frame Rate popup widget.
- Gets the macgui up to speed with https://trac.handbrake.fr/changeset/3770
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3930 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/Controller.h | 8 | ||||
-rw-r--r-- | macosx/Controller.m | 96 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.xib | 335 | ||||
-rw-r--r-- | macosx/HBQueueController.mm | 12 |
4 files changed, 364 insertions, 87 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 3695405ae..760dcf0de 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -117,8 +117,14 @@ BOOL fIsDragging; IBOutlet NSButton * fDstMp4iPodFileCheck; /* Video box */ - IBOutlet NSButton * fFrameratePfrCheck; + /* Framerate */ + /* Radio Button Framerate Controls */ + IBOutlet NSMatrix * fFramerateMatrix; + IBOutlet NSButtonCell * fFramerateVfrPfrCell; + IBOutlet NSButtonCell * fFramerateCfrCell; + + /* Video Encoder */ IBOutlet NSTextField * fVidRateField; IBOutlet NSPopUpButton * fVidRatePopUp; IBOutlet NSTextField * fVidEncoderField; diff --git a/macosx/Controller.m b/macosx/Controller.m index 6aef27a8e..d8b0b90d4 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -590,7 +590,7 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It fCreateChapterMarkers,fVidTurboPassCheck,fDstMp4LargeFileCheck,fSubForcedCheck,fPresetsOutlineView, fDstMp4HttpOptFileCheck,fDstMp4iPodFileCheck,fVidQualityRFField,fVidQualityRFLabel, fEncodeStartStopPopUp,fSrcTimeStartEncodingField,fSrcTimeEndEncodingField,fSrcFrameStartEncodingField, - fSrcFrameEndEncodingField, fLoadChaptersButton, fSaveChaptersButton, fFrameratePfrCheck}; + fSrcFrameEndEncodingField, fLoadChaptersButton, fSaveChaptersButton, fFramerateMatrix}; for( unsigned i = 0; i < sizeof( controls ) / sizeof( NSControl * ); i++ ) @@ -2331,7 +2331,24 @@ fWorkingCount = 0; [queueFileJob setObject:[NSNumber numberWithFloat:[fVidQualityRFField floatValue]] forKey:@"VideoQualitySlider"]; /* Framerate */ [queueFileJob setObject:[fVidRatePopUp titleOfSelectedItem] forKey:@"VideoFramerate"]; - [queueFileJob setObject:[NSNumber numberWithInt:[fFrameratePfrCheck state]] forKey:@"VideoFrameratePFR"]; + /* Frame Rate Mode */ + if ([fFramerateMatrix selectedRow] == 1) // if selected we are cfr regardless of the frame rate popup + { + [queueFileJob setObject:@"cfr" forKey:@"VideoframerateMode"]; + } + else + { + if ([fVidRatePopUp indexOfSelectedItem] == 0) // Same as source frame rate + { + [queueFileJob setObject:@"vfr" forKey:@"VideoframerateMode"]; + } + else + { + [queueFileJob setObject:@"pfr" forKey:@"VideoframerateMode"]; + } + + } + /* 2 Pass Encoding */ [queueFileJob setObject:[NSNumber numberWithInt:[fVidTwoPassCheck state]] forKey:@"VideoTwoPass"]; @@ -3022,7 +3039,7 @@ fWorkingCount = 0; } /* Video settings */ - /* Set vfr to 0 as it's only on if using same as source in the framerate popup + /* Set vfr to 0 as it's only on if using same as source in the framerate popup * and detelecine is on, so we handle that in the logic below */ job->vfr = 0; @@ -3034,7 +3051,7 @@ fWorkingCount = 0; /* We are not same as source so we set job->cfr to 1 * to enable constant frame rate since user has specified * a specific framerate*/ - if ([fFrameratePfrCheck state] == 1) + if ([fFramerateMatrix selectedRow] == 0) // we are pfr if a specific framerate is set { job->cfr = 2; } @@ -3051,12 +3068,10 @@ fWorkingCount = 0; /* We are same as source so we set job->cfr to 0 * to enable true same as source framerate */ job->cfr = 0; - /* If we are same as source and we have detelecine on, we need to turn on - * job->vfr - */ - if ([fPictureController detelecine] == 1) + /* If the user specifies cfr then ... */ + if ([fFramerateMatrix selectedRow] == 1) // we are cfr { - job->vfr = 1; + job->cfr = 1; } } @@ -3520,7 +3535,7 @@ bool one_burned = FALSE; /* Set vfr to 0 as it's only on if using same as source in the framerate popup * and detelecine is on, so we handle that in the logic below */ - job->vfr = 0; + if( [[queueToApply objectForKey:@"JobIndexVideoFramerate"] intValue] > 0 ) { /* a specific framerate has been chosen */ @@ -3530,7 +3545,7 @@ bool one_burned = FALSE; * to enable constant frame rate since user has specified * a specific framerate*/ - if ([[queueToApply objectForKey:@"VideoFrameratePFR"] intValue] == 1) + if ([[queueToApply objectForKey:@"VideoframerateMode"] isEqualToString:@"pfr"]) { job->cfr = 2; } @@ -3547,12 +3562,10 @@ bool one_burned = FALSE; /* We are same as source so we set job->cfr to 0 * to enable true same as source framerate */ job->cfr = 0; - /* If we are same as source and we have detelecine on, we need to turn on - * job->vfr - */ - if ([[queueToApply objectForKey:@"PictureDetelecine"] intValue] == 1) + /* If the user specifies cfr then ... */ + if ([[queueToApply objectForKey:@"VideoframerateMode"] isEqualToString:@"cfr"]) // we are cfr { - job->vfr = 1; + job->cfr = 1; } } @@ -4646,14 +4659,17 @@ the user is using "Custom" settings by determining the sender*/ - (IBAction ) videoFrameRateChanged: (id) sender { /* Hide and set the PFR Checkbox to OFF if we are set to Same as Source */ - if ([fVidRatePopUp indexOfSelectedItem] == 0) + /* Depending on whether or not Same as source is selected modify the title for + * fFramerateVfrPfrCell*/ + if ([fVidRatePopUp indexOfSelectedItem] == 0) // We are Same as Source { - [fFrameratePfrCheck setHidden:YES]; - [fFrameratePfrCheck setState:0]; + [fFramerateVfrPfrCell setTitle:@"Variable Framerate (VFR)"]; } else { - [fFrameratePfrCheck setHidden:NO]; + [fFramerateVfrPfrCell setTitle:@"Peak Framerate (PFR)"]; + + } /* We call method method to calculatePictureSizing to error check detelecine*/ @@ -5529,13 +5545,30 @@ return YES; if ([[chosenPreset objectForKey:@"VideoFramerate"] isEqualToString:@"Same as source"]) { [fVidRatePopUp selectItemAtIndex: 0]; + /* Now set the Video Frame Rate Mode to either vfr or cfr according to the preset */ + if (![chosenPreset objectForKey:@"VideoframerateMode"] || [[chosenPreset objectForKey:@"VideoframerateMode"] isEqualToString:@"vfr"]) + { + [fFramerateMatrix selectCellAtRow: 0 column: 0]; // we want vfr + } + else + { + [fFramerateMatrix selectCellAtRow: 1 column: 0]; // we want cfr + } } else { [fVidRatePopUp selectItemWithTitle:[chosenPreset objectForKey:@"VideoFramerate"]]; + /* Now set the Video Frame Rate Mode to either pfr or cfr according to the preset */ + if ([[chosenPreset objectForKey:@"VideoframerateMode"] isEqualToString:@"pfr"] || [[chosenPreset objectForKey:@"VideoFrameratePFR"] intValue] == 1) + { + [fFramerateMatrix selectCellAtRow: 0 column: 0]; // we want pfr + } + else + { + [fFramerateMatrix selectCellAtRow: 1 column: 0]; // we want cfr + } } - /* Set PFR */ - [fFrameratePfrCheck setState:[[chosenPreset objectForKey:@"VideoFrameratePFR"] intValue]]; + [self videoFrameRateChanged:nil]; /* 2 Pass Encoding */ @@ -5994,15 +6027,32 @@ return YES; [preset setObject:[NSNumber numberWithFloat:[fVidQualityRFField floatValue]] forKey:@"VideoQualitySlider"]; /* Video framerate */ + /* Set the Video Frame Rate Mode */ + if ([fFramerateMatrix selectedRow] == 1) + { + [preset setObject:@"cfr" forKey:@"VideoframerateMode"]; + } + /* Set the actual framerate from popup overriding the cfr setting as needed */ if ([fVidRatePopUp indexOfSelectedItem] == 0) // Same as source is selected { [preset setObject:@"Same as source" forKey:@"VideoFramerate"]; + + if ([fFramerateMatrix selectedRow] == 0) + { + [preset setObject:@"vfr" forKey:@"VideoframerateMode"]; + } } else // we can record the actual titleOfSelectedItem { [preset setObject:[fVidRatePopUp titleOfSelectedItem] forKey:@"VideoFramerate"]; + + if ([fFramerateMatrix selectedRow] == 0) + { + [preset setObject:@"pfr" forKey:@"VideoframerateMode"]; + } } - [preset setObject:[NSNumber numberWithInt:[fFrameratePfrCheck state]] forKey:@"VideoFrameratePFR"]; + + /* 2 Pass Encoding */ [preset setObject:[NSNumber numberWithInt:[fVidTwoPassCheck state]] forKey:@"VideoTwoPass"]; diff --git a/macosx/English.lproj/MainMenu.xib b/macosx/English.lproj/MainMenu.xib index b33e89d49..0af8a646e 100644 --- a/macosx/English.lproj/MainMenu.xib +++ b/macosx/English.lproj/MainMenu.xib @@ -2,10 +2,10 @@ <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10"> <data> <int key="IBDocument.SystemTarget">1050</int> - <string key="IBDocument.SystemVersion">10J567</string> + <string key="IBDocument.SystemVersion">10J869</string> <string key="IBDocument.InterfaceBuilderVersion">732</string> <string key="IBDocument.AppKitVersion">1038.35</string> - <string key="IBDocument.HIToolboxVersion">462.00</string> + <string key="IBDocument.HIToolboxVersion">461.00</string> <object class="NSMutableDictionary" key="IBDocument.PluginVersions"> <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string> <string key="NS.object.0">732</string> @@ -414,27 +414,6 @@ <int key="NSPeriodicInterval">25</int> </object> </object> - <object class="NSButton" id="852146403"> - <reference key="NSNextResponder" ref="1053078401"/> - <int key="NSvFlags">-2147483392</int> - <string key="NSFrame">{{536, 257}, {143, 18}}</string> - <reference key="NSSuperview" ref="1053078401"/> - <bool key="NSEnabled">YES</bool> - <object class="NSButtonCell" key="NSCell" id="409419177"> - <int key="NSCellFlags">67239424</int> - <int key="NSCellFlags2">131072</int> - <string key="NSContents">Peak Framerate (VFR)</string> - <reference key="NSSupport" ref="26"/> - <reference key="NSControlView" ref="852146403"/> - <int key="NSButtonFlags">1211912703</int> - <int key="NSButtonFlags2">2</int> - <reference key="NSAlternateImage" ref="624832340"/> - <string key="NSAlternateContents"/> - <string key="NSKeyEquivalent"/> - <int key="NSPeriodicDelay">200</int> - <int key="NSPeriodicInterval">25</int> - </object> - </object> <object class="NSButton" id="447003158"> <reference key="NSNextResponder" ref="1053078401"/> <int key="NSvFlags">256</int> @@ -741,6 +720,198 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference key="NSCellBackgroundColor" ref="809784795"/> <reference key="NSFont" ref="273283760"/> </object> + <object class="NSMatrix" id="888819828"> + <reference key="NSNextResponder" ref="1053078401"/> + <int key="NSvFlags">268</int> + <string key="NSFrame">{{540, 237}, {157, 38}}</string> + <reference key="NSSuperview" ref="1053078401"/> + <bool key="NSEnabled">YES</bool> + <int key="NSNumRows">2</int> + <int key="NSNumCols">1</int> + <object class="NSMutableArray" key="NSCells"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSButtonCell" id="329026312"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">131072</int> + <string key="NSContents">Variable Framerate (VFR)</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="888819828"/> + <int key="NSTag">1</int> + <int key="NSButtonFlags">1211912703</int> + <int key="NSButtonFlags2">0</int> + <reference key="NSAlternateImage" ref="860784734"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + <object class="NSButtonCell" id="995154792"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">131072</int> + <string key="NSContents">Constant Framerate (CFR)</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="888819828"/> + <int key="NSButtonFlags">1211912703</int> + <int key="NSButtonFlags2">0</int> + <object class="NSImage" key="NSNormalImage"> + <int key="NSImageFlags">549453824</int> + <string key="NSSize">{18, 18}</string> + <object class="NSMutableArray" key="NSReps"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="0"/> + <object class="NSBitmapImageRep"> + <object class="NSData" key="NSTIFFRepresentation"> + <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAADwRERGLJycnySsrK/A1NTXw +IyMjyRwcHIsJCQk8AAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFRUVdVBQUOCoqKj/ +29vb//n5+f/6+vr/2tra/6qqqv9UVFTgHx8fdQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUZGRl5 +dXV198PDw//8/Pz////////////////////////////U1NT/fHx89yUlJXkAAAAFAAAAAAAAAAAAAAAA +AAAAAxEREUZqamrmtbW1/+3t7f/+/v7//v7+//7+/v/9/f3//f39//39/f/39/f/xMTE/3d3d+YZGRlG +AAAAAwAAAAAAAAAAAAAACkJCQqGtra3/xsbG/+vr6//y8vL/9fX1//X19f/z8/P/9fX1//Ly8v/u7u7/ +0tLS/6+vr/9KSkqhAAAACgAAAAAAAAAAAAAAF3h4eN2/v7//z8/P/93d3f/q6ur/7+/v/+/v7//w8PD/ +7e3t/+3t7f/i4uL/zs7O/8XFxf98fHzdAAAAFwAAAAAAAAADAAAAJKSkpPjOzs7/2dnZ/+Dg4P/i4uL/ +5eXl/+bm5v/n5+f/5eXl/+Li4v/e3t7/2tra/9DQ0P+srKz4AAAAJAAAAAMAAAADAAAALrCwsPrW1tb/ +3t7e/+Tk5P/p6en/6+vr/+zs7P/p6en/6+vr/+fn5//k5OT/4ODg/9nZ2f+zs7P6AAAALgAAAAMAAAAD +AAAALp2dnezg4OD/5eXl/+rq6v/u7u7/8PDw//Dw8P/x8fH/8PDw/+7u7v/q6ur/5ubm/+Hh4f+ZmZns +AAAALgAAAAMAAAADAAAAJG5ubs/l5eX/6enp/+/v7//y8vL/9vb2//r6+v/5+fn/9/f3//b29v/x8fH/ +6+vr/+Tk5P9ra2vPAAAAJAAAAAMAAAAAAAAAFy4uLpPCwsL67Ozs//Pz8//5+fn//v7+//7+/v/+/v7/ +/v7+//v7+//19fX/8PDw/8LCwvosLCyTAAAAFwAAAAAAAAAAAAAACgAAAENfX1/S5OTk/vn5+f/+/v7/ +///////////////////////////8/Pz/5ubm/l9fX9IAAABDAAAACgAAAAAAAAAAAAAAAwAAABcAAABl +YmJi3NLS0v3////////////////////////////////V1dX9ZGRk3AAAAGUAAAAXAAAAAwAAAAAAAAAA +AAAAAAAAAAUAAAAfAAAAZTMzM8KAgIDwv7+//O3t7f/t7e3/v7+//ICAgPAzMzPCAAAAZQAAAB8AAAAF +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAFwAAAEMAAAB3AAAAnwAAALMAAACzAAAAnwAAAHcAAABD +AAAAFwAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAoAAAAXAAAAJAAAAC4AAAAu +AAAAJAAAABcAAAAKAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAwAAAAMAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgEAAAMAAAABABIAAAEB +AAMAAAABABIAAAECAAMAAAAEAAAFxgEDAAMAAAABAAEAAAEGAAMAAAABAAIAAAERAAQAAAABAAAACAES +AAMAAAABAAEAAAEVAAMAAAABAAQAAAEWAAMAAAABABIAAAEXAAQAAAABAAAFEAEcAAMAAAABAAEAAAFS +AAMAAAABAAEAAAFTAAMAAAAEAAAFzodzAAcAAAwYAAAF1gAAAAAACAAIAAgACAABAAEAAQABAAAMGGFw +cGwCAAAAbW50clJHQiBYWVogB9YABAADABMALAASYWNzcEFQUEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAPbWAAEAAAAA0y1hcHBsAA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JA+pEC8QuBFDEl0S7hOA +FBUUqxVDFnkXFxe2GFgY/BpIGvEbnBxJHPgdqB8PH8UgfSE3IfIjbyQwJPMltydGKBAo3Cp5K0osHC3H +LqAveTEzMhIy8zS5NaA2hzhcOUk6ODwaPQ4+Az/0QO5C6EPoROlG8Uf3SglLFEwhTkBPUlF7UpJUxVXh +Vv9ZP1phXKtd0mAlYVJjr2TgZhJofGm0au1tZG6ib+FxInJldO92Nnd/eMl6FXyyfgN/VYCpgf+Er4YJ +h2WIwoohi4GOR4+skRKSe5PklVCWvJgrmZubDJx/nfSfaqDholqj1aVRps+oTqnOq1Gs1K2Xrlqv4LFp +svK0frYLt5m5Kbnxurq8Tb3hv3fBDsHawqfEQcUPxd3He8hKyRnKusuKzFvN/87Rz6PQdtFK0vHTxtSb +1kXXG9fx2MjZn9tO3Cbc/93Y3rHfiuBk4hni9ePQ5KzliOZk50HoH+j86drqueuX7HbtVu427xbv9/DX +8bnymvN89F/1QvYl9wj37PjQ+bX6mvt//GX9S/4x//8AAGRlc2MAAAAAAAAACkNvbG9yIExDRAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABIAAAAcAEMAbwBsAG8AcgAgAEwAQwBE +AABtbW9kAAAAAAAABhAAAJxOAAAAAL5zkQAAAAAAAAAAAAAAAAAAAAAAdGV4dAAAAABDb3B5cmlnaHQg +QXBwbGUgQ29tcHV0ZXIsIEluYy4sIDIwMDUAAAAAA</bytes> + </object> + </object> + </object> + </object> + <reference key="NSColor" ref="936477564"/> + </object> + <reference key="NSAlternateImage" ref="860784734"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + </object> + <string key="NSCellSize">{157, 18}</string> + <string key="NSIntercellSpacing">{4, 2}</string> + <int key="NSMatrixFlags">1151868928</int> + <string key="NSCellClass">NSActionCell</string> + <object class="NSButtonCell" key="NSProtoCell" id="217044635"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Radio</string> + <reference key="NSSupport" ref="273283760"/> + <int key="NSButtonFlags">1211912703</int> + <int key="NSButtonFlags2">0</int> + <object class="NSImage" key="NSNormalImage"> + <int key="NSImageFlags">549453824</int> + <string key="NSSize">{18, 18}</string> + <object class="NSMutableArray" key="NSReps"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="0"/> + <object class="NSBitmapImageRep"> + <object class="NSData" key="NSTIFFRepresentation"> + <bytes key="NS.bytes">TU0AKgAABRgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAMAAAADAAAAAwAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAADwRERGLJycnySsrK/A1NTXw +IyMjyRwcHIsJCQk8AAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFRUVdVBQUOCoqKj/ +29vb//n5+f/6+vr/2tra/6qqqv9UVFTgHx8fdQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUZGRl5 +dXV198PDw//8/Pz////////////////////////////U1NT/fHx89yUlJXkAAAAFAAAAAAAAAAAAAAAA +AAAAAxEREUZqamrmtbW1/+3t7f/+/v7//v7+//7+/v/9/f3//f39//39/f/39/f/xMTE/3d3d+YZGRlG +AAAAAwAAAAAAAAAAAAAACkJCQqGtra3/xsbG/+vr6//y8vL/9fX1//X19f/z8/P/9fX1//Ly8v/u7u7/ +0tLS/6+vr/9KSkqhAAAACgAAAAAAAAAAAAAAF3h4eN2/v7//z8/P/93d3f/q6ur/7+/v/+/v7//w8PD/ +7e3t/+3t7f/i4uL/zs7O/8XFxf98fHzdAAAAFwAAAAAAAAADAAAA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ECAAMAAAAEAAAFugEDAAMAAAABAAEAAAEGAAMAAAABAAIAAAERAAQAAAABAAAACAES +AAMAAAABAAEAAAEVAAMAAAABAAQAAAEWAAMAAAABABIAAAEXAAQAAAABAAAFEAEcAAMAAAABAAEAAAFS +AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> + </object> + </object> + </object> + </object> + <reference key="NSColor" ref="936477564"/> + </object> + <reference key="NSAlternateImage" ref="860784734"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + </object> + <reference key="NSSelectedCell" ref="329026312"/> + <reference key="NSBackgroundColor" ref="242973447"/> + <reference key="NSCellBackgroundColor" ref="809784795"/> + <reference key="NSFont" ref="273283760"/> + </object> </object> <string key="NSFrame">{{10, 25}, {714, 305}}</string> <reference key="NSSuperview" ref="712502892"/> @@ -5671,14 +5842,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> - <string key="label">fFrameratePfrCheck</string> - <reference key="source" ref="2258723"/> - <reference key="destination" ref="852146403"/> - </object> - <int key="connectionID">5548</int> - </object> - <object class="IBConnectionRecord"> - <object class="IBOutletConnection" key="connection"> <string key="label">fPresetNewPicWidth</string> <reference key="source" ref="2258723"/> <reference key="destination" ref="522324466"/> @@ -6212,6 +6375,46 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> <int key="connectionID">5816</int> </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">videoMatrixChanged:</string> + <reference key="source" ref="2258723"/> + <reference key="destination" ref="329026312"/> + </object> + <int key="connectionID">5824</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBActionConnection" key="connection"> + <string key="label">videoMatrixChanged:</string> + <reference key="source" ref="2258723"/> + <reference key="destination" ref="995154792"/> + </object> + <int key="connectionID">5825</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">fFramerateMatrix</string> + <reference key="source" ref="2258723"/> + <reference key="destination" ref="888819828"/> + </object> + <int key="connectionID">5826</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">fFramerateVfrPfrCell</string> + <reference key="source" ref="2258723"/> + <reference key="destination" ref="329026312"/> + </object> + <int key="connectionID">5827</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBOutletConnection" key="connection"> + <string key="label">fFramerateCfrCell</string> + <reference key="source" ref="2258723"/> + <reference key="destination" ref="995154792"/> + </object> + <int key="connectionID">5828</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -6356,7 +6559,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="690364175"/> <reference ref="503933842"/> <reference ref="222980245"/> - <reference ref="852146403"/> <reference ref="783405221"/> <reference ref="690304958"/> <reference ref="323705695"/> @@ -6368,6 +6570,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference ref="1036976683"/> <reference ref="521019277"/> <reference ref="1064150725"/> + <reference ref="888819828"/> </object> <reference key="parent" ref="107038816"/> </object> @@ -8661,20 +8864,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference key="parent" ref="931485910"/> </object> <object class="IBObjectRecord"> - <int key="objectID">5545</int> - <reference key="object" ref="852146403"/> - <object class="NSMutableArray" key="children"> - <bool key="EncodedWithXMLCoder">YES</bool> - <reference ref="409419177"/> - </object> - <reference key="parent" ref="1053078401"/> - </object> - <object class="IBObjectRecord"> - <int key="objectID">5546</int> - <reference key="object" ref="409419177"/> - <reference key="parent" ref="852146403"/> - </object> - <object class="IBObjectRecord"> <int key="objectID">5670</int> <reference key="object" ref="277759901"/> <object class="NSMutableArray" key="children"> @@ -9024,6 +9213,32 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <reference key="object" ref="121093497"/> <reference key="parent" ref="1036976683"/> </object> + <object class="IBObjectRecord"> + <int key="objectID">5820</int> + <reference key="object" ref="888819828"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="217044635"/> + <reference ref="995154792"/> + <reference ref="329026312"/> + </object> + <reference key="parent" ref="1053078401"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5821</int> + <reference key="object" ref="217044635"/> + <reference key="parent" ref="888819828"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5822</int> + <reference key="object" ref="995154792"/> + <reference key="parent" ref="888819828"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5823</int> + <reference key="object" ref="329026312"/> + <reference key="parent" ref="888819828"/> + </object> </object> </object> <object class="NSMutableDictionary" key="flattenedProperties"> @@ -9596,9 +9811,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>5535.IBPluginDependency</string> <string>5536.IBPluginDependency</string> <string>5537.IBPluginDependency</string> - <string>5545.IBPluginDependency</string> - <string>5545.ImportedFromIB2</string> - <string>5546.IBPluginDependency</string> <string>5549.IBPluginDependency</string> <string>5549.ImportedFromIB2</string> <string>5550.IBPluginDependency</string> @@ -9660,6 +9872,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>5809.IBPluginDependency</string> <string>5810.IBPluginDependency</string> <string>5811.IBPluginDependency</string> + <string>5820.IBPluginDependency</string> + <string>5821.IBPluginDependency</string> + <string>5822.IBPluginDependency</string> + <string>5823.IBPluginDependency</string> <string>970.IBPluginDependency</string> <string>970.ImportedFromIB2</string> <string>971.IBPluginDependency</string> @@ -9938,10 +10154,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> - <string>{{-1188, 187}, {754, 556}}</string> + <string>{{-1006, 226}, {754, 556}}</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <boolean value="YES"/> - <string>{{-1188, 187}, {754, 556}}</string> + <string>{{-1006, 226}, {754, 556}}</string> <integer value="1"/> <string>{{65, 541}, {760, 550}}</string> <boolean value="NO"/> @@ -10276,9 +10492,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <integer value="1"/> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> - <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> @@ -10328,6 +10541,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <integer value="1"/> @@ -10351,7 +10568,7 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> </object> </object> <nil key="sourceID"/> - <int key="maxID">5816</int> + <int key="maxID">5828</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -10510,7 +10727,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>fDstMp4LargeFileCheck</string> <string>fDstMp4iPodFileCheck</string> <string>fEncodeStartStopPopUp</string> - <string>fFrameratePfrCheck</string> + <string>fFramerateCfrCell</string> + <string>fFramerateMatrix</string> + <string>fFramerateVfrPfrCell</string> <string>fLoadChaptersButton</string> <string>fPictureCroppingField</string> <string>fPictureSizeField</string> @@ -10593,7 +10812,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes> <string>NSButton</string> <string>NSButton</string> <string>NSPopUpButton</string> - <string>NSButton</string> + <string>NSButtonCell</string> + <string>NSMatrix</string> + <string>NSButtonCell</string> <string>NSButton</string> <string>NSTextField</string> <string>NSTextField</string> diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm index 738514622..6cfddf939 100644 --- a/macosx/HBQueueController.mm +++ b/macosx/HBQueueController.mm @@ -1246,27 +1246,27 @@ return ![(HBQueueOutlineView*)outlineView isDragging]; /* for framerate look to see if we are using vfr detelecine */ if ([[item objectForKey:@"JobIndexVideoFramerate"] intValue] == 0) { - if ([[item objectForKey:@"PictureDetelecine"] intValue] == 1) + if ([[item objectForKey:@"VideoframerateMode"] isEqualToString:@"vfr"]) { /* we are using same as source with vfr detelecine */ - videoInfo = [NSString stringWithFormat:@"%@ Framerate: Same as source (vfr detelecine)", videoInfo]; + videoInfo = [NSString stringWithFormat:@"%@ Framerate: Same as source (Variable Frame Rate)", videoInfo]; } else { /* we are using a variable framerate without dropping frames */ - videoInfo = [NSString stringWithFormat:@"%@ Framerate: Same as source (variable)", videoInfo]; + videoInfo = [NSString stringWithFormat:@"%@ Framerate: Same as source (Constant Frame Rate)", videoInfo]; } } else { /* we have a specified, constant framerate */ - if ([[item objectForKey:@"VideoFrameratePFR"] intValue] == 1) + if ([[item objectForKey:@"VideoframerateMode"] isEqualToString:@"pfr"]) { - videoInfo = [NSString stringWithFormat:@"%@ Framerate: %@ (peak framerate)", videoInfo ,[item objectForKey:@"VideoFramerate"]]; + videoInfo = [NSString stringWithFormat:@"%@ Framerate: %@ (Peak Frame Rate)", videoInfo ,[item objectForKey:@"VideoFramerate"]]; } else { - videoInfo = [NSString stringWithFormat:@"%@ Framerate: %@ (constant framerate)", videoInfo ,[item objectForKey:@"VideoFramerate"]]; + videoInfo = [NSString stringWithFormat:@"%@ Framerate: %@ (Constant Frame Rate)", videoInfo ,[item objectForKey:@"VideoFramerate"]]; } } |