]> granicus.if.org Git - libvpx/commitdiff
Remove some deprecated FRAME_UPDATE_TYPE elements.
authorPaul Wilkins <paulwilkins@google.com>
Wed, 12 Sep 2018 11:53:10 +0000 (12:53 +0100)
committerPaul Wilkins <paulwilkins@google.com>
Wed, 12 Sep 2018 12:16:15 +0000 (13:16 +0100)
Removal of some frame types relating to deprecated multi-arf work.

Added a dummy value for the USE_BUF_FRAME frame type in the
declaration of the rd_frame_type_factor[FRAME_UPDATE_TYPES] structure.

Change-Id: I7173f2fe33a53117e1bde6f9621efc1a5951240b

vp9/encoder/vp9_firstpass.h
vp9/encoder/vp9_rd.c

index c12ef9cf2428d9fd7b07e523dd5caf40a921487b..8d0f335af3ba1719d5e4b8ba234eb92063aee47c 100644 (file)
@@ -117,13 +117,8 @@ typedef enum {
   GF_UPDATE = 2,
   ARF_UPDATE = 3,
   OVERLAY_UPDATE = 4,
-  USE_BUF_FRAME = 5,         // Use show existing frame, no ref buffer update
-  BRF_UPDATE = 6,            // Backward Reference Frame
-  LAST_BIPRED_UPDATE = 7,    // Last Bi-predictive Frame
-  BIPRED_UPDATE = 8,         // Bi-predictive Frame, but not the last one
-  INTNL_OVERLAY_UPDATE = 9,  // Internal Overlay Frame
-  INTNL_ARF_UPDATE = 10,     // Internal Altref Frame (candidate for ALTREF2)
-  FRAME_UPDATE_TYPES = 11
+  USE_BUF_FRAME = 5,  // Use show existing frame, no ref buffer update
+  FRAME_UPDATE_TYPES = 6
 } FRAME_UPDATE_TYPE;
 
 #define FC_ANIMATION_THRESH 0.15
index 9048499da13025b718d656d7fb6289b2a8616354..2e4a4fe9fa285703854db9330698ee3530c7d0b8 100644 (file)
@@ -164,8 +164,14 @@ void vp9_init_me_luts(void) {
 
 static const int rd_boost_factor[16] = { 64, 32, 32, 32, 24, 16, 12, 12,
                                          8,  8,  4,  4,  2,  2,  1,  0 };
+
+// Note that the element below for frame type "USE_BUF_FRAME", which indicates
+// that the show frame flag is set, should not be used as no real frame
+// is encoded so we should not reach here. However, a dummy value
+// is inserted here to make sure the data structure has the right number
+// of values assigned.
 static const int rd_frame_type_factor[FRAME_UPDATE_TYPES] = { 128, 144, 128,
-                                                              128, 144 };
+                                                              128, 144, 144 };
 
 int64_t vp9_compute_rd_mult_based_on_qindex(const VP9_COMP *cpi, int qindex) {
   const int64_t q = vp9_dc_quant(qindex, 0, cpi->common.bit_depth);