ref: c66f612c4bf527401701b7b95e0d3886a660fd74
parent: 597ce31ff81e23129f5e76705634c4d5c9c72ef2
author: Tim Kopp <[email protected]>
date: Fri Jul 18 10:15:30 EDT 2014
VP9 denoiser fix: ref frames now updated properly The ALT_REF_FRAME is now updated in the case of a KEY_FRAME in the VP9 denoiser. Change-Id: Idf9a9772706f50e774fb240afcc01db38841043c
--- a/vp9/encoder/vp9_denoiser.c
+++ b/vp9/encoder/vp9_denoiser.c
@@ -345,10 +345,9 @@
int refresh_last_frame) {
if (frame_type == KEY_FRAME) {
int i;
- copy_frame(denoiser->running_avg_y[LAST_FRAME], src);
- for (i = 2; i < MAX_REF_FRAMES - 1; i++) {
- copy_frame(denoiser->running_avg_y[i],
- denoiser->running_avg_y[LAST_FRAME]);
+ // Start at 1 so as not to overwrite the INTRA_FRAME
+ for (i = 1; i < MAX_REF_FRAMES; ++i) {
+ copy_frame(denoiser->running_avg_y[i], src);
}
} else { /* For non key frames */
if (refresh_alt_ref_frame) {