shithub: libvpx

Download patch

ref: f1e3f340ef699ed1335ae6244eceebdf474c4c41
parent: 4d3275f865488bb6dc4c7a25e12cc6efa358ef7b
author: Jingning Han <jingning@google.com>
date: Mon Oct 15 11:21:23 EDT 2018

Record gop size

Keep the frame operations needed within a group of picture.

Change-Id: Iece2e855f21860c930b34a3c586f084f7c61db00

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2281,6 +2281,8 @@
   // Define the GF structure and specify
   int gop_frames = define_gf_group_structure(cpi);
 
+  gf_group->gf_group_size = gop_frames;
+
   key_frame = cpi->common.frame_type == KEY_FRAME;
 
   // For key frames the frame target rate is already set and it
--- a/vp9/encoder/vp9_firstpass.h
+++ b/vp9/encoder/vp9_firstpass.h
@@ -139,6 +139,7 @@
   int arf_index_stack[MAX_LAG_BUFFERS * 2];
   int top_arf_idx;
   int stack_size;
+  int gf_group_size;
 } GF_GROUP;
 
 typedef struct {