summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-08-13 19:46:41 +0000
committerdynaflash <[email protected]>2007-08-13 19:46:41 +0000
commit69fb84d55f36fdc4782a433f2f2038e6c4ffe85f (patch)
tree59fb384b36a302c60be3db92f2515d5e7fc8e28a /macosx
parente644b0ef1d8f7323f801547a40e5921381c00440 (diff)
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
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm9
1 files changed, 8 insertions, 1 deletions
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)