Add new_mv_count to ext rate control interface
authorJerome Jiang <jianj@google.com>
Mon, 24 Jul 2023 22:04:58 +0000 (18:04 -0400)
committerJerome Jiang <jianj@google.com>
Mon, 24 Jul 2023 22:04:58 +0000 (18:04 -0400)
Bug: b/290385227
Change-Id: Ia87c4bf1e9315bf1134c998f88e9d5548c497777

vp9/encoder/vp9_ext_ratectrl.c
vpx/vpx_ext_ratectrl.h

index b08fd63..0925340 100644 (file)
@@ -92,6 +92,7 @@ static void gen_rc_firstpass_stats(const FIRSTPASS_STATS *stats,
   rc_frame_stats->mv_in_out_count = stats->mv_in_out_count;
   rc_frame_stats->duration = stats->duration;
   rc_frame_stats->count = stats->count;
+  rc_frame_stats->new_mv_count = stats->new_mv_count;
 }
 
 vpx_codec_err_t vp9_extrc_send_firstpass_stats(
index 4381645..2c31285 100644 (file)
@@ -271,6 +271,10 @@ typedef struct vpx_rc_frame_stats {
    * number of frames whose stats are accumulated.
    */
   double count;
+  /*!
+   * Number of new mv in a frame.
+   */
+  double new_mv_count;
 } vpx_rc_frame_stats_t;
 
 /*!\brief Collection of first pass frame stats