From f62f11ca92889e4627a1fc061d53613aec2d06a9 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Mon, 13 Aug 2007 19:46:41 +0000 Subject: [PATCH] MacGui: Add detelecine parameter to Presets using key PictureDetelecine. - note, this is currently only observed is use current picture settings is specified at the time of preset creation. git-svn-id: svn://localhost/HandBrake/trunk@803 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/Controller.mm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 37317742..f5922211 100644 --- a/macosx/Controller.mm +++ b/macosx/Controller.mm @@ -3677,6 +3677,7 @@ the user is using "Custom" settings by determining the sender*/ [preset setObject:[NSNumber numberWithInt:fTitle->job->keep_ratio] forKey:@"PictureKeepRatio"]; [preset setObject:[NSNumber numberWithInt:[fPicSettingDeinterlace intValue]] forKey:@"PictureDeinterlace"]; [preset setObject:[NSNumber numberWithInt:fTitle->job->pixel_ratio] forKey:@"PicturePAR"]; + [preset setObject:[fPicSettingDetelecine stringValue] forKey:@"PictureDetelecine"]; /* Set crop settings here */ /* The Auto Crop Matrix in the Picture Window autodetects differences in crop settings */ [preset setObject:[NSNumber numberWithInt:[fPicSettingAutoCrop intValue]] forKey:@"PictureAutoCrop"]; @@ -5063,7 +5064,7 @@ the user is using "Custom" settings by determining the sender*/ } job->pixel_ratio = [[chosenPreset objectForKey:@"PicturePAR"] intValue]; } - else + else // Apply picture settings that were in effect at the time the preset was saved { job->width = [[chosenPreset objectForKey:@"PictureWidth"] intValue]; job->height = [[chosenPreset objectForKey:@"PictureHeight"] intValue]; @@ -5074,6 +5075,12 @@ the user is using "Custom" settings by determining the sender*/ } job->pixel_ratio = [[chosenPreset objectForKey:@"PicturePAR"] intValue]; [fPicSettingDeinterlace setStringValue: [NSString stringWithFormat: @"%d",[[chosenPreset objectForKey:@"PictureDeinterlace"] intValue]]]; + + if ([chosenPreset objectForKey:@"PictureDetelecine"]) + { + [fPicSettingDetelecine setStringValue: [NSString stringWithFormat: @"%@",[chosenPreset valueForKey:@"PictureDetelecine"]]]; + } + /* If Cropping is set to custom, then recall all four crop values from when the preset was created and apply them */ if ([[chosenPreset objectForKey:@"PictureAutoCrop"] intValue] == 0) -- 2.11.0