ref: fb58a84c683c9b2ade526c9a22727e378a34db03
parent: 42c2c6bf33e7780f4ca427fb6778505df625ede4
author: James Zern <[email protected]>
date: Tue Jan 26 15:09:36 EST 2016
vp9_noise_estimate: protect copy_frame w/CONFIG check This is only used with CONFIG_VP9_TEMPORAL_DENOISING Change-Id: I61a1814d43d71235077a2426f7bfce141677a79a
--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -66,6 +66,7 @@
return 0;
}
+#if CONFIG_VP9_TEMPORAL_DENOISING
static void copy_frame(YV12_BUFFER_CONFIG * const dest,
const YV12_BUFFER_CONFIG * const src) {
int r;
@@ -81,6 +82,7 @@
srcbuf += src->y_stride;
}
}
+#endif // CONFIG_VP9_TEMPORAL_DENOISING
NOISE_LEVEL vp9_noise_estimate_extract_level(NOISE_ESTIMATE *const ne) {
int noise_level = kLowLow;