diff options
author | dynaflash <[email protected]> | 2008-09-23 17:33:40 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2008-09-23 17:33:40 +0000 |
commit | d94f2d4248d1a69ef3219cbb6e14b74507558cf8 (patch) | |
tree | 7d15b96a3f8c2b76bd0468af775a06bc6210cabc /macosx/PictureController.mm | |
parent | c971f5957209b6be5816b73c9fa65b322440d3d1 (diff) |
MacGui: implement a slider for deblock.
- Slider goes from "Off" and then ranges from 5-15.
- Update preset code to handle the old bool for deblock where we convert "yes" to a value of 5.
- Note: though the deblock filter actually has a setting of 0, for the macgui we use an integer of 0, which shows up in the interface as "Off" to indicate not to load the filter at all. Made presets etc, easier to modify.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1750 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/PictureController.mm')
-rw-r--r-- | macosx/PictureController.mm | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 149571ad9..34d034d63 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -218,6 +218,19 @@ are maintained across different sources */ [fNextButton setEnabled: ( fPicture < 9 )]; } +- (IBAction) deblockSliderChanged: (id) sender +{ + if ([fDeblockSlider floatValue] == 4.0) + { + [fDeblockField setStringValue: [NSString stringWithFormat: @"Off"]]; + } + else + { + [fDeblockField setStringValue: [NSString stringWithFormat: @"%.0f", [fDeblockSlider floatValue]]]; + } + [self SettingsChanged: sender]; +} + - (IBAction) SettingsChanged: (id) sender { hb_job_t * job = fTitle->job; @@ -333,7 +346,15 @@ are maintained across different sources */ [fDetelecineCheck setEnabled: YES]; } fPictureFilterSettings.detelecine = [fDetelecineCheck state]; - fPictureFilterSettings.deblock = [fDeblockCheck state]; + + if ([fDeblockField stringValue] == @"Off") + { + fPictureFilterSettings.deblock = 0; + } + else + { + fPictureFilterSettings.deblock = [fDeblockField intValue]; + } fPictureFilterSettings.decomb = [fDecombPopUp indexOfSelectedItem]; |