shithub: libvpx

Download patch

ref: 7a3c9b578d88c857207d5bc76b139ea6db5cc4be
parent: c87895b14495d199738bc2368f15a2cff6bb6463
author: Jingning Han <[email protected]>
date: Tue Aug 21 08:25:43 EDT 2018

Control reference frame refresh flags for USE_BUF_FRAME

The enum USE_BUF_FRAME makes the use of show_existing_frame. In
this setting, all the reference frame buffer condition will stay
unchanged.

Change-Id: I5b7b28488dbd94982f721667128f004e4e6a00d8

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1446,6 +1446,12 @@
       cpi->refresh_alt_ref_frame = 0;
       cpi->rc.is_src_frame_alt_ref = 1;
       break;
+    case USE_BUF_FRAME:
+      cpi->refresh_last_frame = 0;
+      cpi->refresh_golden_frame = 0;
+      cpi->refresh_alt_ref_frame = 0;
+      cpi->rc.is_src_frame_alt_ref = 1;
+      break;
     default:
       assert(twopass->gf_group.update_type[gf_group_index] == ARF_UPDATE);
       cpi->refresh_last_frame = 0;