From: dynaflash Date: Mon, 13 Aug 2007 19:46:41 +0000 (+0000) Subject: MacGui: Add detelecine parameter to Presets using key PictureDetelecine. X-Git-Tag: 0.9.0~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69fb84d55f36fdc4782a433f2f2038e6c4ffe85f;p=handbrake 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://svn.handbrake.fr/HandBrake/trunk@803 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/macosx/Controller.mm b/macosx/Controller.mm index 373177422..f59222117 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)