OSDN Git Service

MacGui: fix deinterlace setting for the Picture Preview window which as broken in...
authordynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 11 Sep 2007 17:50:26 +0000 (17:50 +0000)
committerdynaflash <dynaflash@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 11 Sep 2007 17:50:26 +0000 (17:50 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@952 b64f7644-9d1e-0410-96f1-a4d463321fa5

macosx/PictureController.mm

index 424e8e9..ba89789 100644 (file)
@@ -265,7 +265,19 @@ static int GetAlignedSize( int size )
     job->width       = [fWidthStepper  intValue];
     job->height      = [fHeightStepper intValue];
     job->keep_ratio  = ( [fRatioCheck state] == NSOnState );
+    
        fPictureFilterSettings.deinterlace = [fDeinterlacePopUp indexOfSelectedItem];
+    /* if the gui deinterlace settings are fast through slowest, the job->deinterlace
+       value needs to be set to one, for the job as well as the previews showing deinterlacing
+       otherwise set job->deinterlace to 0 or "off" */
+    if (fPictureFilterSettings.deinterlace > 0)
+    {
+    job->deinterlace  = 1;
+    }
+    else
+    {
+    job->deinterlace  = 0;
+    }
     fPictureFilterSettings.denoise     = [fDenoisePopUp indexOfSelectedItem];
     fPictureFilterSettings.detelecine  = [fDetelecineCheck state];
        job->pixel_ratio = ( [fPARCheck state] == NSOnState );