Changed defaults & range checking for AltRef params
Modified the range checking of parameters used in the AltRef temporal filter (arnr-max-frames, arnr-strength, arnr-type) and default values for each of them. Change-Id: Ib261028d501b9523f6e44cb4790cc52167b6e92b
This commit is contained in:
@@ -64,8 +64,8 @@ static const struct extraconfig_map extracfg_map[] =
|
|||||||
0, /* static_thresh */
|
0, /* static_thresh */
|
||||||
VP8_ONE_TOKENPARTITION, /* token_partitions */
|
VP8_ONE_TOKENPARTITION, /* token_partitions */
|
||||||
0, /* arnr_max_frames */
|
0, /* arnr_max_frames */
|
||||||
0, /* arnr_strength */
|
3, /* arnr_strength */
|
||||||
0, /* arnr_type*/
|
3, /* arnr_type*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -183,9 +183,9 @@ static vpx_codec_err_t validate_config(vpx_codec_alg_priv_t *ctx,
|
|||||||
|
|
||||||
RANGE_CHECK(vp8_cfg, token_partitions, VP8_ONE_TOKENPARTITION, VP8_EIGHT_TOKENPARTITION);
|
RANGE_CHECK(vp8_cfg, token_partitions, VP8_ONE_TOKENPARTITION, VP8_EIGHT_TOKENPARTITION);
|
||||||
RANGE_CHECK_HI(vp8_cfg, Sharpness, 7);
|
RANGE_CHECK_HI(vp8_cfg, Sharpness, 7);
|
||||||
RANGE_CHECK_HI(vp8_cfg, arnr_max_frames, 15);
|
RANGE_CHECK(vp8_cfg, arnr_max_frames, 0, 15);
|
||||||
RANGE_CHECK_HI(vp8_cfg, arnr_strength, 6);
|
RANGE_CHECK(vp8_cfg, arnr_strength, 1, 6);
|
||||||
RANGE_CHECK_HI(vp8_cfg, arnr_type, 0xffffffff);
|
RANGE_CHECK(vp8_cfg, arnr_type, 1, 3);
|
||||||
|
|
||||||
if (cfg->g_pass == VPX_RC_LAST_PASS)
|
if (cfg->g_pass == VPX_RC_LAST_PASS)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user