summaryrefslogtreecommitdiffstats
path: root/macosx/PictureController.mm
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-08-14 01:37:12 +0000
committerdynaflash <[email protected]>2007-08-14 01:37:12 +0000
commit43f8e6b14e1507c1bb5baebddd14f0d7c5ad5976 (patch)
treeba53639521d026bdfdb6ed867871486a3ae6a82d /macosx/PictureController.mm
parentb8dba94a337fbea63d55fe1f1f19f48aab61c718 (diff)
MacGui: Denoise filter initial implementation
- Add Denoise NSPopUp to Picture Window - Contains None, Weak, Medium, Strong. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@805 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r--macosx/PictureController.mm17
1 files changed, 13 insertions, 4 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm
index 0cf80da05..aa3bcadff 100644
--- a/macosx/PictureController.mm
+++ b/macosx/PictureController.mm
@@ -94,8 +94,8 @@ static int GetAlignedSize( int size )
[fDeinterlacePopUp addItemWithTitle: @"Slow"];
[fDeinterlacePopUp addItemWithTitle: @"Slower"];
[fDeinterlacePopUp addItemWithTitle: @"Slowest"];
- /* we need a conditional to figure out how to set deinterlace */
-
+
+ /* Set deinterlaces level according to the integer in the main window */
[fDeinterlacePopUp selectItemAtIndex: [fDeinterlaceLevelMainWindow intValue]];
@@ -141,6 +141,14 @@ static int GetAlignedSize( int size )
}
+ /* we use a popup to show the denoise settings */
+ [fDenoisePopUp removeAllItems];
+ [fDenoisePopUp addItemWithTitle: @"None"];
+ [fDenoisePopUp addItemWithTitle: @"Weak"];
+ [fDenoisePopUp addItemWithTitle: @"Medium"];
+ [fDenoisePopUp addItemWithTitle: @"Strong"];
+ /* Set deinterlaces level according to the integer in the main window */
+ [fDenoisePopUp selectItemAtIndex: [fDenoiseMainWindow intValue]];
MaxOutputWidth = job->width;
MaxOutputHeight = job->height;
@@ -259,7 +267,7 @@ static int GetAlignedSize( int size )
job->height = [fHeightStepper intValue];
job->keep_ratio = ( [fRatioCheck state] == NSOnState );
- /* new multilevel deinterlacing popup */
+ /* multilevel deinterlacing popup */
[fDeinterlaceLevelMainWindow setStringValue: [NSString stringWithFormat: @"%d",[fDeinterlacePopUp indexOfSelectedItem]]];
if ([fDeinterlacePopUp indexOfSelectedItem] == 0)
{
@@ -280,7 +288,8 @@ static int GetAlignedSize( int size )
[fDetelecineMainWindow setStringValue: @"No"];
}
-
+ /* new multilevel deinterlacing popup */
+ [fDenoiseMainWindow setStringValue: [NSString stringWithFormat: @"%d",[fDenoisePopUp indexOfSelectedItem]]];
job->pixel_ratio = ( [fPARCheck state] == NSOnState );