summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorCheng Chen <chengchen@google.com>2022-06-06 15:46:41 -0700
committerCheng Chen <chengchen@google.com>2022-06-06 22:38:10 -0700
commit7bb4bd36122e55236148190625507efc90ec5b75 (patch)
treeeb118bc028bc2819de2ab8fc0b79648213ff87e1 /vp9
parentb21634073652cb7e73e52168dc2fa9c1b9a30adf (diff)
downloadlibvpx-7bb4bd36122e55236148190625507efc90ec5b75.tar
libvpx-7bb4bd36122e55236148190625507efc90ec5b75.tar.gz
libvpx-7bb4bd36122e55236148190625507efc90ec5b75.tar.bz2
libvpx-7bb4bd36122e55236148190625507efc90ec5b75.zip
L2E: rename 'gop_index' to 'gop_global_index'
'gop_index' has already been used in vpx_rc_encodeframe_info_t, which represents the frame index inside the current group of picture (gop). We therefore use 'gop_global_index' to represent the index of the current gop to avoid duplicate names. Change-Id: I3eb8987dd878f650649b013e0036e23d0846b5f0
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_firstpass.c6
-rw-r--r--vp9/encoder/vp9_ratectrl.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index 44a4cec0f..e121ac80e 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2714,9 +2714,9 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) {
// frame in which case it will already have been done.
if (is_key_frame == 0) {
vp9_zero(twopass->gf_group);
- ++rc->gop_index;
+ ++rc->gop_global_index;
} else {
- rc->gop_index = 0;
+ rc->gop_global_index = 0;
}
vpx_clear_system_state();
@@ -2772,7 +2772,7 @@ static void define_gf_group(VP9_COMP *cpi, int gf_start_show_idx) {
gop_info.lag_in_frames = cpi->oxcf.lag_in_frames;
gop_info.show_index = cm->current_video_frame;
gop_info.coding_index = cm->current_frame_coding_index;
- gop_info.gop_index = rc->gop_index;
+ gop_info.gop_global_index = rc->gop_global_index;
codec_status = vp9_extrc_get_gop_decision(&cpi->ext_ratectrl, &gop_info,
&gop_decision);
diff --git a/vp9/encoder/vp9_ratectrl.h b/vp9/encoder/vp9_ratectrl.h
index 48a21bd1c..96a8fd3f1 100644
--- a/vp9/encoder/vp9_ratectrl.h
+++ b/vp9/encoder/vp9_ratectrl.h
@@ -214,7 +214,7 @@ typedef struct {
// The index of the current GOP. Start from zero.
// When a key frame is inserted, it resets to zero.
- int gop_index;
+ int gop_global_index;
} RATE_CONTROL;
struct VP9_COMP;