mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Disable trskip SAD calcultation when trskip is not enabled.
This commit is contained in:
parent
3253ba4812
commit
30f8640380
|
@ -1891,7 +1891,7 @@ static double get_cost(encoder_state_t * const state,
|
|||
int width)
|
||||
{
|
||||
double satd_cost = satd_func(pred, orig_block);
|
||||
if (TRSKIP_RATIO != 0 && width == 4) {
|
||||
if (TRSKIP_RATIO != 0 && width == 4 && state->encoder_control->trskip_enable) {
|
||||
// If the mode looks better with SAD than SATD it might be a good
|
||||
// candidate for transform skip. How much better SAD has to be is
|
||||
// controlled by TRSKIP_RATIO.
|
||||
|
|
Loading…
Reference in a new issue