mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Fix --rd=0 actually work.
This commit is contained in:
parent
73762062b6
commit
870171e6ad
|
@ -1884,8 +1884,8 @@ static double search_cu(encoder_state * const encoder_state, int x, int y, int d
|
||||||
// This can be quite severe on bdrate. It might be better to do this
|
// This can be quite severe on bdrate. It might be better to do this
|
||||||
// decision after reconstructing the inter frame.
|
// decision after reconstructing the inter frame.
|
||||||
bool skip_intra = encoder_state->encoder_control->rdo == 0
|
bool skip_intra = encoder_state->encoder_control->rdo == 0
|
||||||
&& cur_cu->type == CU_NOTSET
|
&& cur_cu->type != CU_NOTSET
|
||||||
&& cost / (cu_width * cu_width) >= INTRA_TRESHOLD;
|
&& cost / (cu_width * cu_width) < INTRA_TRESHOLD;
|
||||||
if (!skip_intra
|
if (!skip_intra
|
||||||
&& WITHIN(depth, ctrl->pu_depth_intra.min, ctrl->pu_depth_intra.max))
|
&& WITHIN(depth, ctrl->pu_depth_intra.min, ctrl->pu_depth_intra.max))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue