summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-11-07 18:48:21 +0000
committerdynaflash <[email protected]>2007-11-07 18:48:21 +0000
commit6040af9fa6de9988ad8daa57c3e28bc72323fb0a (patch)
treecfe7f5fe49e336072247d13c197f7a7305257846
parent52e53ff19c6a8ab6d69490f3104ac083dbf8860e (diff)
MacGui: Add Deblock to the presets system
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1047 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm10
1 files changed, 9 insertions, 1 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 1ae602f30..408e75162 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -3061,6 +3061,8 @@ the user is using "Custom" settings by determining the sender*/
}
}
job->pixel_ratio = [[chosenPreset objectForKey:@"PicturePAR"] intValue];
+
+ /* Filters */
[fPictureController setDeinterlace:[[chosenPreset objectForKey:@"PictureDeinterlace"] intValue]];
if ([chosenPreset objectForKey:@"PictureDetelecine"])
@@ -3071,6 +3073,10 @@ the user is using "Custom" settings by determining the sender*/
{
[fPictureController setDenoise:[[chosenPreset objectForKey:@"PictureDenoise"] intValue]];
}
+ if ([chosenPreset objectForKey:@"PictureDeblock"])
+ {
+ [fPictureController setDeblock:[[chosenPreset objectForKey:@"PictureDeblock"] intValue]];
+ }
/* 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)
@@ -3387,7 +3393,9 @@ id theRecord, theValue;
[preset setObject:[NSNumber numberWithInt:[fPictureController deinterlace]] forKey:@"PictureDeinterlace"];
[preset setObject:[NSNumber numberWithInt:fTitle->job->pixel_ratio] forKey:@"PicturePAR"];
[preset setObject:[NSNumber numberWithInt:[fPictureController detelecine]] forKey:@"PictureDetelecine"];
- [preset setObject:[NSNumber numberWithInt:[fPictureController denoise]] forKey:@"PictureDenoise"];
+ [preset setObject:[NSNumber numberWithInt:[fPictureController denoise]] forKey:@"PictureDenoise"];
+ [preset setObject:[NSNumber numberWithInt:[fPictureController deblock]] forKey:@"PictureDeblock"];
+
/* Set crop settings here */
/* The Auto Crop Matrix in the Picture Window autodetects differences in crop settings */
[preset setObject:[NSNumber numberWithInt:[fPictureController autoCrop]] forKey:@"PictureAutoCrop"];