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
This commit is contained in:
parent
597ce31ff8
commit
c66f612c4b
@ -345,10 +345,9 @@ void vp9_denoiser_update_frame_info(VP9_DENOISER *denoiser,
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user