Merge "vp8 denoiser fix: Update denoised altref on key frame."
This commit is contained in:
commit
aa2ba46a61
@ -3232,17 +3232,9 @@ static void update_reference_frames(VP8_COMP *cpi)
|
|||||||
if (cm->frame_type == KEY_FRAME)
|
if (cm->frame_type == KEY_FRAME)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
vp8_yv12_copy_frame(
|
for (i = LAST_FRAME; i < MAX_REF_FRAMES; ++i)
|
||||||
cpi->Source,
|
vp8_yv12_copy_frame(cpi->Source,
|
||||||
&cpi->denoiser.yv12_running_avg[LAST_FRAME]);
|
&cpi->denoiser.yv12_running_avg[i]);
|
||||||
|
|
||||||
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]);
|
|
||||||
}
|
}
|
||||||
else /* For non key frames */
|
else /* For non key frames */
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user