From 841c030fab66e9e5dc917679e139179221385acf Mon Sep 17 00:00:00 2001 From: Sebastien Alaiwan Date: Wed, 13 Dec 2017 09:32:59 +0100 Subject: [PATCH] Remove dead globals, members and structs Change-Id: Ic92db272a4cd2f507dc1c8d682030c801abf2793 --- av1/common/onyxc_int.h | 4 ---- av1/encoder/context_tree.h | 6 +----- av1/encoder/encoder.c | 3 --- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/av1/common/onyxc_int.h b/av1/common/onyxc_int.h index 2eabfdbc8..879ea15fd 100644 --- a/av1/common/onyxc_int.h +++ b/av1/common/onyxc_int.h @@ -344,10 +344,6 @@ typedef struct AV1Common { qm_val_t *v_iqmatrix[MAX_SEGMENTS][TX_SIZES_ALL]; // Encoder - qm_val_t *y_qmatrix[MAX_SEGMENTS][TX_SIZES_ALL]; - qm_val_t *u_qmatrix[MAX_SEGMENTS][TX_SIZES_ALL]; - qm_val_t *v_qmatrix[MAX_SEGMENTS][TX_SIZES_ALL]; - int using_qmatrix; int min_qmlevel; int max_qmlevel; diff --git a/av1/encoder/context_tree.h b/av1/encoder/context_tree.h index 212a6a984..385225185 100644 --- a/av1/encoder/context_tree.h +++ b/av1/encoder/context_tree.h @@ -77,11 +77,7 @@ typedef struct PC_TREE { PICK_MODE_CONTEXT horizontal4[4]; PICK_MODE_CONTEXT vertical4[4]; #endif - // TODO(jingning): remove leaf_split[] when cb4x4 experiment flag is removed. - union { - struct PC_TREE *split[4]; - PICK_MODE_CONTEXT *leaf_split[4]; - }; + struct PC_TREE *split[4]; } PC_TREE; void av1_setup_pc_tree(struct AV1Common *cm, struct ThreadData *td); diff --git a/av1/encoder/encoder.c b/av1/encoder/encoder.c index fbfc94c37..0ef2e02bf 100644 --- a/av1/encoder/encoder.c +++ b/av1/encoder/encoder.c @@ -91,9 +91,6 @@ FRAME_COUNTS aggregate_fc_per_type[FRAME_CONTEXTS]; // chosen. // #define OUTPUT_YUV_REC -#ifdef OUTPUT_YUV_DENOISED -FILE *yuv_denoised_file = NULL; -#endif #ifdef OUTPUT_YUV_SKINMAP FILE *yuv_skinmap_file = NULL; #endif -- GitLab