diff options
author | dynaflash <[email protected]> | 2007-11-10 02:00:46 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-11-10 02:00:46 +0000 |
commit | e1c1cc4c11c79b2341c8eecd9a2dabac5a58a785 (patch) | |
tree | 61620ba50aeb0509a2e46c705f46a8ea376dc29d /macosx/PictureController.mm | |
parent | d95e8d52105a29a03750232c47949b37dc3075dc (diff) |
MacGui: VFR controls initial implementation
- Adds a vfr checkbox next to the detelecine filter in the Picture Settings Window
- Tuns on detelecine and disables its checkbox
- Sets Framerate in the main window to 29.967 and disables it
- Sets job->vfr = 1 if vfr is checked in -prepareJob
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1052 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 640479b65..80952edf6 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -305,6 +305,16 @@ static int GetAlignedSize( int size ) job->deinterlace = 0; } fPictureFilterSettings.denoise = [fDenoisePopUp indexOfSelectedItem]; + fPictureFilterSettings.vfr = [fVFRCheck state]; + if (fPictureFilterSettings.vfr > 0) + { + [fDetelecineCheck setState:NSOnState]; + [fDetelecineCheck setEnabled: NO]; + } + else + { + [fDetelecineCheck setEnabled: YES]; + } fPictureFilterSettings.detelecine = [fDetelecineCheck state]; fPictureFilterSettings.deblock = [fDeblockCheck state]; job->pixel_ratio = ( [fPARCheck state] == NSOnState ); @@ -420,6 +430,16 @@ static int GetAlignedSize( int size ) fPictureFilterSettings.detelecine = setting; } +- (int) vfr +{ + return fPictureFilterSettings.vfr; +} + +- (void) setVFR: (int) setting +{ + fPictureFilterSettings.vfr = setting; +} + - (int) deinterlace { return fPictureFilterSettings.deinterlace; |