diff options
author | dynaflash <[email protected]> | 2010-08-25 15:16:07 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-08-25 15:16:07 +0000 |
commit | ec4077940685c8516263ae074299e970144d0261 (patch) | |
tree | 8510ff33efad99689a6b73b291974b9b07d5ac79 | |
parent | 6c94bfba0f05e0f8642c9bc444ef50784f0d922a (diff) |
MacGui: Allow trellis and psy-trellis with cavlc since as of svn 3492 its now possible in x264.
- Patch by Rodeo.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3493 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | macosx/HBAdvancedController.m | 44 |
1 files changed, 3 insertions, 41 deletions
diff --git a/macosx/HBAdvancedController.m b/macosx/HBAdvancedController.m index 6ce8ddcb1..9557ca20d 100644 --- a/macosx/HBAdvancedController.m +++ b/macosx/HBAdvancedController.m @@ -172,7 +172,7 @@ [fX264optTrellisPopUp addItemWithTitle:[NSString stringWithFormat:@"Always"]]; [fX264optTrellisPopUp setWantsLayer:YES]; toolTip = - @"Trellis fine-tunes the rounding of transform coefficients to squeeze out 3-5% more compression at the cost of some speed. \"Always\" uses trellis not only during the main encoding process, but also during analysis, which improves compression even more, albeit at great speed cost. Trellis costs more speed at higher bitrates and requires CABAC."; + @"Trellis fine-tunes the rounding of transform coefficients to squeeze out 3-5% more compression at the cost of some speed. \"Always\" uses trellis not only during the main encoding process, but also during analysis, which improves compression even more, albeit at great speed cost. Trellis costs more speed at higher bitrates."; [fX264optTrellisPopUp setToolTip: toolTip]; [fX264optTrellisLabel setToolTip: toolTip]; @@ -562,44 +562,6 @@ } } - if( sender == fX264optCabacSwitch || sender == nil || sender == fDisplayX264Options ) - { - if ( [fX264optCabacSwitch state] == false) - { - if( [fX264optTrellisPopUp isHidden] == false ) - { - /* Without CABAC entropy coding, trellis doesn't run. */ - [[fX264optTrellisPopUp animator] setHidden:YES]; - [[fX264optTrellisLabel animator] setHidden:YES]; - [fX264optTrellisPopUp selectItemAtIndex:0]; - [[fX264optTrellisPopUp cell] performClick:self]; - - if( [fX264optPsyTrellisSlider isHidden] == false) - { - [[fX264optPsyTrellisSlider animator] setHidden:YES]; - [[fX264optPsyTrellisLabel animator] setHidden:YES]; - if ( [fX264optPsyTrellisSlider floatValue] > 0.0 ) - { - [fX264optPsyTrellisSlider setFloatValue:0.0]; - [[fX264optPsyTrellisSlider cell] performClick:self]; - } - } - } - } - else if( [fX264optTrellisPopUp isHidden] == true) - { - [[fX264optTrellisPopUp animator] setHidden:NO]; - [[fX264optTrellisLabel animator] setHidden:NO]; - - if( [fX264optPsyTrellisSlider isHidden] == true) - { - [[fX264optPsyTrellisSlider animator] setHidden:NO]; - [[fX264optPsyTrellisLabel animator] setHidden:NO]; - } - } - } - - if( sender == fX264optMotionEstPopUp || sender == nil || sender == fDisplayX264Options ) { if ( [fX264optMotionEstPopUp indexOfSelectedItem] < 3 ) @@ -662,7 +624,7 @@ [[fX264optPsyRDLabel animator] setHidden:NO]; } - if( ( [fX264optTrellisPopUp indexOfSelectedItem] == 0 || [fX264optTrellisPopUp indexOfSelectedItem] >= 2 ) && [fX264optCabacSwitch state] == true && [fX264optPsyTrellisSlider isHidden] == true ) + if( ( [fX264optTrellisPopUp indexOfSelectedItem] == 0 || [fX264optTrellisPopUp indexOfSelectedItem] >= 2 ) && [fX264optPsyTrellisSlider isHidden] == true ) { [[fX264optPsyTrellisSlider animator] setHidden:NO]; [[fX264optPsyTrellisLabel animator] setHidden:NO]; @@ -685,7 +647,7 @@ } else { - if( ( [fX264optSubmePopUp indexOfSelectedItem] == 0 || [fX264optSubmePopUp indexOfSelectedItem] >= 7 ) && [fX264optCabacSwitch state] == true && [fX264optPsyTrellisSlider isHidden] == true ) + if( ( [fX264optSubmePopUp indexOfSelectedItem] == 0 || [fX264optSubmePopUp indexOfSelectedItem] >= 7 ) && [fX264optPsyTrellisSlider isHidden] == true ) { [[fX264optPsyTrellisSlider animator] setHidden:NO]; [[fX264optPsyTrellisLabel animator] setHidden:NO]; |