Bugfix for vp8 aggressive denoiser mode.
Change-Id: I6c1ccd88df7c39377d5f98f8533c0cabd53cf86f
This commit is contained in:
Родитель
611a45fb0e
Коммит
d2274ed354
|
@ -3380,13 +3380,13 @@ static void process_denoiser_mode_change(VP8_COMP *cpi) {
|
||||||
// num_mode_change.
|
// num_mode_change.
|
||||||
if (cpi->denoiser.nmse_source_diff_count == num_mode_change) {
|
if (cpi->denoiser.nmse_source_diff_count == num_mode_change) {
|
||||||
// Check for going up: from normal to aggressive mode.
|
// Check for going up: from normal to aggressive mode.
|
||||||
if ((cpi->denoiser.denoiser_mode = kDenoiserOnYUV) &&
|
if ((cpi->denoiser.denoiser_mode == kDenoiserOnYUV) &&
|
||||||
(cpi->denoiser.nmse_source_diff >
|
(cpi->denoiser.nmse_source_diff >
|
||||||
cpi->denoiser.threshold_aggressive_mode)) {
|
cpi->denoiser.threshold_aggressive_mode)) {
|
||||||
vp8_denoiser_set_parameters(&cpi->denoiser, kDenoiserOnYUVAggressive);
|
vp8_denoiser_set_parameters(&cpi->denoiser, kDenoiserOnYUVAggressive);
|
||||||
} else {
|
} else {
|
||||||
// Check for going down: from aggressive to normal mode.
|
// Check for going down: from aggressive to normal mode.
|
||||||
if ((cpi->denoiser.denoiser_mode = kDenoiserOnYUVAggressive) &&
|
if ((cpi->denoiser.denoiser_mode == kDenoiserOnYUVAggressive) &&
|
||||||
(cpi->denoiser.nmse_source_diff <
|
(cpi->denoiser.nmse_source_diff <
|
||||||
cpi->denoiser.threshold_aggressive_mode)) {
|
cpi->denoiser.threshold_aggressive_mode)) {
|
||||||
vp8_denoiser_set_parameters(&cpi->denoiser, kDenoiserOnYUV);
|
vp8_denoiser_set_parameters(&cpi->denoiser, kDenoiserOnYUV);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче