ref: fc83fcb7c405ec9369c9f6ea2c83339d74fa034e
parent: 32b3d2f174f69f1484e024b276aff9226a751d4f
author: Marco <[email protected]>
date: Wed Mar 29 10:01:57 EDT 2017
vp9: SVC: fix to allow output of denoised result. Change-Id: Iaf55cfb5e9621d074eb33d6a32f184e4777968f8
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -21,6 +21,8 @@
#include "vp9/encoder/vp9_denoiser.h"
#include "vp9/encoder/vp9_encoder.h"
+// OUTPUT_YUV_DENOISED
+
#ifdef OUTPUT_YUV_DENOISED
static void make_grayscale(YV12_BUFFER_CONFIG *yuv);
#endif
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4052,7 +4052,7 @@
#if CONFIG_VP9_TEMPORAL_DENOISING
#ifdef OUTPUT_YUV_DENOISED
- if (oxcf->noise_sensitivity > 0) {
+ if (oxcf->noise_sensitivity > 0 && denoise_svc(cpi)) {
vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME],
yuv_denoised_file);
}