summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-05-02 00:58:06 +0000
committerRodeo <[email protected]>2012-05-02 00:58:06 +0000
commite980894393c68dd3c0da293fee14c8b9753f379b (patch)
treeb209f0d3f0564225f305a53831f378ef8c4c642c
parentaaf1930fc6a5d5b945eef579099ad50572fc2b22 (diff)
MacGUI: add new "Bob" options in the decomb and deinterlace popup buttons.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4627 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.m38
-rw-r--r--macosx/PictureController.m4
2 files changed, 29 insertions, 13 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m
index 9029e9b5c..2eb0eb3f2 100644
--- a/macosx/Controller.m
+++ b/macosx/Controller.m
@@ -3342,20 +3342,24 @@ bool one_burned = FALSE;
/* use a custom decomb string */
hb_add_filter( job, filter, [[fPictureController decombCustomString] UTF8String] );
}
- if ([fPictureController decomb] == 2)
+ else if ([fPictureController decomb] == 2)
{
/* use libhb defaults */
hb_add_filter( job, filter, NULL );
}
- if ([fPictureController decomb] == 3)
+ else if ([fPictureController decomb] == 3)
{
/* use old defaults (decomb fast) */
hb_add_filter( job, filter, "7:2:6:9:1:80" );
}
+ else if ([fPictureController decomb] == 4)
+ {
+ /* decomb 3 with bobbing enabled */
+ hb_add_filter( job, filter, "455" );
+ }
}
else
{
-
/* Deinterlace */
filter = hb_filter_init( HB_FILTER_DEINTERLACE );
if ([fPictureController deinterlace] == 1)
@@ -3370,7 +3374,7 @@ bool one_burned = FALSE;
}
else if ([fPictureController deinterlace] == 3)
{
- /* Yadif mode 0 (without spatial deinterlacing.) */
+ /* Yadif mode 0 (without spatial deinterlacing) */
hb_add_filter( job, filter, "1" );
}
else if ([fPictureController deinterlace] == 4)
@@ -3378,7 +3382,11 @@ bool one_burned = FALSE;
/* Yadif (with spatial deinterlacing) */
hb_add_filter( job, filter, "3" );
}
-
+ else if ([fPictureController deinterlace] == 5)
+ {
+ /* Yadif (with spatial deinterlacing and bobbing) */
+ hb_add_filter( job, filter, "15" );
+ }
}
/* Denoise */
@@ -3860,21 +3868,24 @@ bool one_burned = FALSE;
/* use a custom decomb string */
hb_add_filter( job, filter, [[queueToApply objectForKey:@"PictureDecombCustom"] UTF8String] );
}
- if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 2)
+ else if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 2)
{
/* use libhb defaults */
hb_add_filter( job, filter, NULL );
}
- if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 3)
+ else if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 3)
{
/* use old defaults (decomb fast) */
hb_add_filter( job, filter, "7:2:6:9:1:80" );
}
-
+ else if ([[queueToApply objectForKey:@"PictureDecomb"] intValue] == 4)
+ {
+ /* decomb 3 with bobbing enabled */
+ hb_add_filter( job, filter, "455" );
+ }
}
else
{
-
/* Deinterlace */
filter = hb_filter_init( HB_FILTER_DEINTERLACE );
if ([[queueToApply objectForKey:@"PictureDeinterlace"] intValue] == 1)
@@ -3889,7 +3900,7 @@ bool one_burned = FALSE;
}
else if ([[queueToApply objectForKey:@"PictureDeinterlace"] intValue] == 3)
{
- /* Yadif mode 0 (without spatial deinterlacing.) */
+ /* Yadif mode 0 (without spatial deinterlacing) */
hb_add_filter( job, filter, "1" );
}
else if ([[queueToApply objectForKey:@"PictureDeinterlace"] intValue] == 4)
@@ -3897,8 +3908,11 @@ bool one_burned = FALSE;
/* Yadif (with spatial deinterlacing) */
hb_add_filter( job, filter, "3" );
}
-
-
+ else if ([[queueToApply objectForKey:@"PictureDeinterlace"] intValue] == 5)
+ {
+ /* Yadif (with spatial deinterlacing and bobbing) */
+ hb_add_filter( job, filter, "15" );
+ }
}
/* Denoise */
filter = hb_filter_init( HB_FILTER_DENOISE );
diff --git a/macosx/PictureController.m b/macosx/PictureController.m
index 36f693da0..027523f01 100644
--- a/macosx/PictureController.m
+++ b/macosx/PictureController.m
@@ -1137,6 +1137,7 @@ are maintained across different sources */
[fDecombPopUp addItemWithTitle: @"Custom"];
[fDecombPopUp addItemWithTitle: @"Default"];
[fDecombPopUp addItemWithTitle: @"Fast"];
+ [fDecombPopUp addItemWithTitle: @"Bob"];
[fDecombPopUp selectItemAtIndex: fPictureFilterSettings.decomb];
@@ -1146,7 +1147,8 @@ are maintained across different sources */
[fDeinterlacePopUp addItemWithTitle: @"Custom"];
[fDeinterlacePopUp addItemWithTitle: @"Fast"];
[fDeinterlacePopUp addItemWithTitle: @"Slow"];
- [fDeinterlacePopUp addItemWithTitle: @"Slower"];
+ [fDeinterlacePopUp addItemWithTitle: @"Slower"];
+ [fDeinterlacePopUp addItemWithTitle: @"Bob"];
/* Set deinterlaces level according to the integer in the main window */
[fDeinterlacePopUp selectItemAtIndex: fPictureFilterSettings.deinterlace];