summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorRodeo <[email protected]>2011-12-08 10:40:10 +0000
committerRodeo <[email protected]>2011-12-08 10:40:10 +0000
commitfa05b1b7b3dc53d32d98bfe00c265a6349b7d1ab (patch)
tree7b34f5c2554b8321ac452eef88ee2654921d75a9 /macosx
parent79ad1250c3d2dd81a2325c1ca9e9a2afb1d9b8b2 (diff)
MacGUI: add "Fast" decomb option.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4374 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.m33
-rw-r--r--macosx/HBQueueController.mm6
-rw-r--r--macosx/PictureController.m1
3 files changed, 29 insertions, 11 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index df7770c32..2d0c1c688 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -3289,18 +3289,22 @@ bool one_burned = FALSE;
if ([fPictureController useDecomb] == 1)
{
/* Decomb */
- /* we add the custom string if present */
- hb_filter_decomb.settings = NULL;
if ([fPictureController decomb] == 1)
{
/* use a custom decomb string */
- hb_filter_decomb.settings = (char *) [[fPictureController decombCustomString] UTF8String];
+ hb_filter_decomb.settings = [[fPictureController decombCustomString] UTF8String];
hb_list_add( job->filters, &hb_filter_decomb );
}
if ([fPictureController decomb] == 2)
{
- /* Run old deinterlacer fd by default */
- //hb_filter_decomb.settings = (char *) [[fPicSettingDecomb stringValue] UTF8String];
+ /* use libhb defaults */
+ hb_filter_decomb.settings = NULL;
+ hb_list_add( job->filters, &hb_filter_decomb );
+ }
+ if ([fPictureController decomb] == 3)
+ {
+ /* use old defaults (decomb fast) */
+ hb_filter_decomb.settings = "7:2:6:9:1:80";
hb_list_add( job->filters, &hb_filter_decomb );
}
}
@@ -3814,17 +3818,22 @@ bool one_burned = FALSE;
if ([[queueToApply objectForKey:@"PictureDecombDeinterlace"] intValue] == 1)
{
/* Decomb */
- /* we add the custom string if present */
- hb_filter_decomb.settings = NULL;
if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 1)
{
/* use a custom decomb string */
- hb_filter_decomb.settings = (char *) [[queueToApply objectForKey:@"PictureDecombCustom"] UTF8String];
+ hb_filter_decomb.settings = [[queueToApply objectForKey:@"PictureDecombCustom"] UTF8String];
hb_list_add( job->filters, &hb_filter_decomb );
}
if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 2)
{
- /* Use libhb default */
+ /* use libhb defaults */
+ hb_filter_decomb.settings = NULL;
+ hb_list_add( job->filters, &hb_filter_decomb );
+ }
+ if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 3)
+ {
+ /* use old defaults (decomb fast) */
+ hb_filter_decomb.settings = "7:2:6:9:1:80";
hb_list_add( job->filters, &hb_filter_decomb );
}
@@ -4979,7 +4988,11 @@ the user is using "Custom" settings by determining the sender*/
if ([fPictureController useDecomb] == 1)
{
/* Decomb */
- if ([fPictureController decomb] == 2)
+ if ([fPictureController decomb] == 3)
+ {
+ videoFilters = [videoFilters stringByAppendingString:@" - Decomb (Fast)"];
+ }
+ else if ([fPictureController decomb] == 2)
{
videoFilters = [videoFilters stringByAppendingString:@" - Decomb (Default)"];
}
diff --git a/macosx/HBQueueController.mm b/macosx/HBQueueController.mm
index 2a0cefeb5..c0336581a 100644
--- a/macosx/HBQueueController.mm
+++ b/macosx/HBQueueController.mm
@@ -1166,7 +1166,6 @@ return ![(HBQueueOutlineView*)outlineView isDragging];
{
if ([[item objectForKey:@"PictureDecomb"] intValue] != 0)
{
- pictureFiltersPresent = YES;
if( [[item objectForKey:@"PictureDecomb"] intValue] == 1)
{
pictureFiltersPresent = YES;
@@ -1177,6 +1176,11 @@ return ![(HBQueueOutlineView*)outlineView isDragging];
pictureFiltersPresent = YES;
pictureFilters = [pictureFilters stringByAppendingString:@" - Decomb (Default)"];
}
+ else if( [[item objectForKey:@"PictureDecomb"] intValue] == 3)
+ {
+ pictureFiltersPresent = YES;
+ pictureFilters = [pictureFilters stringByAppendingString:@" - Decomb (Fast)"];
+ }
}
}
else
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index d85113123..36f693da0 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -1136,6 +1136,7 @@ are maintained across different sources */
[fDecombPopUp addItemWithTitle: @"Off"];
[fDecombPopUp addItemWithTitle: @"Custom"];
[fDecombPopUp addItemWithTitle: @"Default"];
+ [fDecombPopUp addItemWithTitle: @"Fast"];
[fDecombPopUp selectItemAtIndex: fPictureFilterSettings.decomb];