diff options
author | Marco Paniconi <marpan@google.com> | 2014-07-21 09:58:54 -0700 |
---|---|---|
committer | Marco Paniconi <marpan@google.com> | 2014-07-22 10:14:03 -0700 |
commit | f909e43abc2cbb7bcb782246e7d3b640c9cf7536 (patch) | |
tree | 6a40f594917b5f50d6af9460870aa265f0e4a06c /vp8/encoder/onyx_if.c | |
parent | f932e15210820b806e7932f2ceb2e5f8758c8cc8 (diff) | |
download | libvpx-f909e43abc2cbb7bcb782246e7d3b640c9cf7536.tar libvpx-f909e43abc2cbb7bcb782246e7d3b640c9cf7536.tar.gz libvpx-f909e43abc2cbb7bcb782246e7d3b640c9cf7536.tar.bz2 libvpx-f909e43abc2cbb7bcb782246e7d3b640c9cf7536.zip |
vp8 denoiser fix: Update denoised altref on key frame.
On a key frame, the denoised-running_avg for all references
frames should be updated with the source.
The altref denoised-running_avg was not being updated on key frame,
this fixes that.
Change-Id: Ie02cd0ba5383e013af59240e6df7e185d11703f6
Diffstat (limited to 'vp8/encoder/onyx_if.c')
-rw-r--r-- | vp8/encoder/onyx_if.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/vp8/encoder/onyx_if.c b/vp8/encoder/onyx_if.c index 373dbebd9..f2eb2abd0 100644 --- a/vp8/encoder/onyx_if.c +++ b/vp8/encoder/onyx_if.c @@ -3232,17 +3232,9 @@ static void update_reference_frames(VP8_COMP *cpi) if (cm->frame_type == KEY_FRAME) { int i; - vp8_yv12_copy_frame( - cpi->Source, - &cpi->denoiser.yv12_running_avg[LAST_FRAME]); - - vp8_yv12_extend_frame_borders( - &cpi->denoiser.yv12_running_avg[LAST_FRAME]); - - for (i = 2; i < MAX_REF_FRAMES - 1; i++) - vp8_yv12_copy_frame( - &cpi->denoiser.yv12_running_avg[LAST_FRAME], - &cpi->denoiser.yv12_running_avg[i]); + for (i = LAST_FRAME; i < MAX_REF_FRAMES; ++i) + vp8_yv12_copy_frame(cpi->Source, + &cpi->denoiser.yv12_running_avg[i]); } else /* For non key frames */ { |