vp9: SVC: fix to allow output of denoised result.
Change-Id: Iaf55cfb5e9621d074eb33d6a32f184e4777968f8
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
#include "vp9/encoder/vp9_denoiser.h"
|
#include "vp9/encoder/vp9_denoiser.h"
|
||||||
#include "vp9/encoder/vp9_encoder.h"
|
#include "vp9/encoder/vp9_encoder.h"
|
||||||
|
|
||||||
|
// OUTPUT_YUV_DENOISED
|
||||||
|
|
||||||
#ifdef OUTPUT_YUV_DENOISED
|
#ifdef OUTPUT_YUV_DENOISED
|
||||||
static void make_grayscale(YV12_BUFFER_CONFIG *yuv);
|
static void make_grayscale(YV12_BUFFER_CONFIG *yuv);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -4052,7 +4052,7 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, size_t *size,
|
|||||||
|
|
||||||
#if CONFIG_VP9_TEMPORAL_DENOISING
|
#if CONFIG_VP9_TEMPORAL_DENOISING
|
||||||
#ifdef OUTPUT_YUV_DENOISED
|
#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],
|
vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME],
|
||||||
yuv_denoised_file);
|
yuv_denoised_file);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user