shithub: libvpx

Download patch

ref: fe6ae7d53cc5a6911cd1045280c7d02bb5dc697f
parent: 503cbe35ed4ecae404410432dc21c4fef1392790
parent: 1ec8fc9da72931ea30881e81cb969ecd1c9b38eb
author: Jingning Han <jingning@google.com>
date: Tue Aug 21 19:44:10 EDT 2018

Merge "Point show frame buffer towards existing frame buffer"

--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4829,6 +4829,13 @@
     encode_with_recode_loop(cpi, size, dest);
   }
 
+  // TODO(jingning): When using show existing frame mode, we assume that the
+  // current ARF will be directly used as the final reconstructed frame. This is
+  // an encoder control scheme. One could in principle explore other
+  // possibilities to arrange the reference frame buffer and their coding order.
+  if (cm->show_existing_frame)
+    cm->new_fb_idx = cm->ref_frame_map[cpi->alt_fb_idx];
+
   cpi->last_frame_dropped = 0;
   cpi->svc.last_layer_dropped[cpi->svc.spatial_layer_id] = 0;
   // Keep track of the frame buffer index updated/refreshed for the