ref: 75441e1e0844647b099a41cff804b3854acd3817
parent: f0f428e9ba3d3ecf09916aa3b562e90e5d5eec1a
parent: 1fe18acb920417792a6d2dba8f185b9c508aa4dc
author: Tim Kopp <[email protected]>
date: Tue Jul 22 10:48:42 EDT 2014
Merge "VP9 denoiser bugfix in debugging code."
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -2226,15 +2226,6 @@
set_speed_features(cpi);
-#if CONFIG_DENOISING
-#ifdef OUTPUT_YUV_DENOISED
- if (cpi->oxcf.noise_sensitivity > 0) {
- vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME],
- yuv_denoised_file);
- }
-#endif
-#endif
-
// Decide q and q bounds.
q = vp9_rc_pick_q_and_bounds(cpi, &bottom_index, &top_index);
@@ -2249,6 +2240,16 @@
} else {
encode_with_recode_loop(cpi, size, dest, q, bottom_index, top_index);
}
+
+#if CONFIG_DENOISING
+#ifdef OUTPUT_YUV_DENOISED
+ if (cpi->oxcf.noise_sensitivity > 0) {
+ vp9_write_yuv_frame_420(&cpi->denoiser.running_avg_y[INTRA_FRAME],
+ yuv_denoised_file);
+ }
+#endif
+#endif
+
// Special case code to reduce pulsing when key frames are forced at a
// fixed interval. Note the reconstruction error if it is the frame before