From 01993f7d4a4f2232939dcbaef9d5c07be6040b2a Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Wed, 16 Oct 2013 18:01:48 -0700 Subject: [PATCH] Removing last_kf_gf_q member from VP9Common structure. It looks like we don't actually use this value. Change-Id: If21d52b597337e7755f7ea817824fc2b1e477a14 --- vp9/common/vp9_onyxc_int.h | 2 -- vp9/encoder/vp9_onyx_if.c | 5 ----- 2 files changed, 7 deletions(-) diff --git a/vp9/common/vp9_onyxc_int.h b/vp9/common/vp9_onyxc_int.h index 5c8c03e51..3111852ee 100644 --- a/vp9/common/vp9_onyxc_int.h +++ b/vp9/common/vp9_onyxc_int.h @@ -146,8 +146,6 @@ typedef struct VP9Common { TX_MODE tx_mode; int base_qindex; - int last_kf_gf_q; /* Q used on the last GF or KF */ - int y_dc_delta_q; int uv_dc_delta_q; int uv_ac_delta_q; diff --git a/vp9/encoder/vp9_onyx_if.c b/vp9/encoder/vp9_onyx_if.c index 2b1caf4b7..54b3d4392 100644 --- a/vp9/encoder/vp9_onyx_if.c +++ b/vp9/encoder/vp9_onyx_if.c @@ -3386,11 +3386,6 @@ static void encode_frame_to_data_rate(VP9_COMP *cpi, #if 0 output_frame_level_debug_stats(cpi); #endif - // If this was a kf or Gf note the Q - if ((cm->frame_type == KEY_FRAME) - || cpi->refresh_golden_frame || cpi->refresh_alt_ref_frame) - cm->last_kf_gf_q = cm->base_qindex; - if (cpi->refresh_golden_frame == 1) cm->frame_flags = cm->frame_flags | FRAMEFLAGS_GOLDEN; else -- 2.40.0