diff options
-rw-r--r-- | macosx/Controller.h | 9 | ||||
-rw-r--r-- | macosx/Controller.mm | 26 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/classes.nib | 8 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/info.nib | 2 | ||||
-rw-r--r-- | macosx/English.lproj/MainMenu.nib/keyedobjects.nib | bin | 81293 -> 91491 bytes |
5 files changed, 38 insertions, 7 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 1a40bad13..1d64bc3c3 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -138,15 +138,21 @@ IBOutlet NSTextField * fAudLang2Field; IBOutlet NSPopUpButton * fAudLang2PopUp; /* New Audio Mix PopUps */ - IBOutlet NSTextField * fAudTrack1MixLabel; + /* Track info */ + IBOutlet NSTextField * fAudTrack1MixLabel; IBOutlet NSPopUpButton * fAudTrack1MixPopUp; IBOutlet NSTextField * fAudTrack2MixLabel; IBOutlet NSPopUpButton * fAudTrack2MixPopUp; + /* Quality info */ IBOutlet NSTextField * fAudRateField; IBOutlet NSPopUpButton * fAudRatePopUp; IBOutlet NSTextField * fAudBitrateField; IBOutlet NSPopUpButton * fAudBitratePopUp; + /*Dynamic Range Compression */ + IBOutlet NSSlider * fAudDrcSlider; + IBOutlet NSTextField * fAudDrcField; + IBOutlet NSTextField * fAudDrcLabel; /* Chapters box */ IBOutlet NSButton * fCreateChapterMarkers; @@ -232,6 +238,7 @@ - (IBAction) videoMatrixChanged: (id) sender; - (IBAction) qualitySliderChanged: (id) sender; +- (IBAction) audioDRCSliderChanged: (id) sender; - (IBAction) showPicturePanel: (id) sender; - (IBAction) calculatePictureSizing: (id) sender; diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 9ed653769..6bbdb7b9c 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -392,7 +392,8 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It fPicSettingPAR,fPicLabelAnamorphic,fPresetsAdd,fPresetsDelete, fCreateChapterMarkers,fVidTurboPassCheck,fDstMpgLargeFileCheck,fPicLabelAutoCrop, fPicSettingAutoCrop,fPicSettingDetelecine,fPicLabelDetelecine,fPicLabelDenoise,fPicSettingDenoise, - fSubForcedCheck,fPicSettingDeblock,fPicLabelDeblock,fPresetsOutlineView,}; + fSubForcedCheck,fPicSettingDeblock,fPicLabelDeblock,fPresetsOutlineView,fAudDrcSlider, + fAudDrcField,fAudDrcLabel}; for( unsigned i = 0; i < sizeof( controls ) / sizeof( NSControl * ); i++ ) @@ -1525,6 +1526,10 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It indexOfSelectedItem]].rate; job->abitrate = [[fAudBitratePopUp selectedItem] tag]; + /* Dynamic Range Compression */ + job->dynamic_range_compression = [fAudDrcSlider floatValue]; + + /* set vfr according to the Picture Window */ if ([fPictureController vfr]) { @@ -2455,6 +2460,12 @@ the user is using "Custom" settings by determining the sender*/ [self customSettingUsed: sender]; } +- (IBAction) audioDRCSliderChanged: (id) sender +{ + [fAudDrcField setStringValue: [NSString stringWithFormat: @"%f", [fAudDrcSlider floatValue]]]; + //[self customSettingUsed: sender]; +} + - (void) controlTextDidChange: (NSNotification *) notification { [self calculateBitrate: NULL]; @@ -3276,9 +3287,9 @@ if (item == nil) [fVidTargetSizeField setStringValue: [NSString stringWithFormat:[chosenPreset valueForKey:@"VideoTargetSize"]]]; [fVidBitrateField setStringValue: [NSString stringWithFormat:[chosenPreset valueForKey:@"VideoAvgBitrate"]]]; - [fVidQualitySlider setFloatValue: [[chosenPreset valueForKey:@"VideoQualitySlider"] floatValue]]; - [self videoMatrixChanged: NULL]; + + [self videoMatrixChanged: NULL]; /* Video framerate */ /* For video preset video framerate, we want to make sure that Same as source does not conflict with the @@ -3309,7 +3320,10 @@ if (item == nil) [fAudBitratePopUp selectItemWithTitle: [NSString stringWithFormat:[chosenPreset valueForKey:@"AudioBitRate"]]]; /*Subtitles*/ [fSubPopUp selectItemWithTitle: [NSString stringWithFormat:[chosenPreset valueForKey:@"Subtitles"]]]; - + /* Dynamic Range Control Slider */ + [fAudDrcSlider setFloatValue: [[chosenPreset valueForKey:@"AudioDRCSlider"] floatValue]]; + [self audioDRCSliderChanged: NULL]; + /* Picture Settings */ /* Note: objectForKey:@"UsesPictureSettings" now refers to picture size, this encompasses: * height, width, keep ar, anamorphic and crop settings. @@ -3521,7 +3535,7 @@ if (item == nil) UserPresets = [[NSMutableArray alloc] init]; [self addFactoryPresets:NULL]; } - + [fPresetsOutlineView reloadData]; } @@ -3675,6 +3689,8 @@ if (item == nil) [preset setObject:[fAudBitratePopUp titleOfSelectedItem] forKey:@"AudioBitRate"]; /* Subtitles*/ [preset setObject:[fSubPopUp titleOfSelectedItem] forKey:@"Subtitles"]; + /* Dynamic Range Control Slider */ + [preset setObject:[NSNumber numberWithFloat:[fAudDrcSlider floatValue]] forKey:@"AudioDRCSlider"]; [preset autorelease]; diff --git a/macosx/English.lproj/MainMenu.nib/classes.nib b/macosx/English.lproj/MainMenu.nib/classes.nib index d7eca5f01..8ecb1f92c 100644 --- a/macosx/English.lproj/MainMenu.nib/classes.nib +++ b/macosx/English.lproj/MainMenu.nib/classes.nib @@ -21,6 +21,8 @@ <string>id</string> <key>addUserPreset</key> <string>id</string> + <key>audioDRCSliderChanged</key> + <string>id</string> <key>audioTrackMixdownChanged</key> <string>id</string> <key>audioTrackPopUpChanged</key> @@ -120,6 +122,12 @@ <string>NSTextField</string> <key>fAudBitratePopUp</key> <string>NSPopUpButton</string> + <key>fAudDrcField</key> + <string>NSTextField</string> + <key>fAudDrcLabel</key> + <string>NSTextField</string> + <key>fAudDrcSlider</key> + <string>NSSlider</string> <key>fAudLang1Field</key> <string>NSTextField</string> <key>fAudLang1PopUp</key> diff --git a/macosx/English.lproj/MainMenu.nib/info.nib b/macosx/English.lproj/MainMenu.nib/info.nib index f2b16dd0b..2c679cd24 100644 --- a/macosx/English.lproj/MainMenu.nib/info.nib +++ b/macosx/English.lproj/MainMenu.nib/info.nib @@ -10,7 +10,7 @@ <integer>5</integer> <key>IBOpenObjects</key> <array> - <integer>1843</integer> + <integer>2</integer> </array> <key>IBSystem Version</key> <string>9B18</string> diff --git a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib Binary files differindex d298b1279..b03f6cf06 100644 --- a/macosx/English.lproj/MainMenu.nib/keyedobjects.nib +++ b/macosx/English.lproj/MainMenu.nib/keyedobjects.nib |