From 98400c1bc48939441b409b5c04c3ac93a56842cd Mon Sep 17 00:00:00 2001 From: Dmitry Kovalev Date: Thu, 10 Oct 2013 17:16:20 -0700 Subject: [PATCH] Removing vp9_tree_p typedef. It is used only two times and it is more clear to use real type instead of typedef. Change-Id: Idc25c16504c3da4d040e0cdb33a2987631bb6a5b --- vp9/common/vp9_entropy.h | 2 +- vp9/common/vp9_treecoder.h | 2 +- vp9/encoder/vp9_modecosts.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vp9/common/vp9_entropy.h b/vp9/common/vp9_entropy.h index 6d8edec22..3cf508e05 100644 --- a/vp9/common/vp9_entropy.h +++ b/vp9/common/vp9_entropy.h @@ -49,7 +49,7 @@ extern const vp9_tree_index vp9_coefmodel_tree[]; extern struct vp9_token vp9_coef_encodings[MAX_ENTROPY_TOKENS]; typedef struct { - vp9_tree_p tree; + vp9_tree_index *tree; const vp9_prob *prob; int len; int base_val; diff --git a/vp9/common/vp9_treecoder.h b/vp9/common/vp9_treecoder.h index 31182c35c..24e6fa295 100644 --- a/vp9/common/vp9_treecoder.h +++ b/vp9/common/vp9_treecoder.h @@ -30,7 +30,7 @@ typedef int8_t vp9_tree_index; Index > 0 means need another bit, specification at index. Nonnegative indices are always even; processing begins at node 0. */ -typedef const vp9_tree_index vp9_tree[], *vp9_tree_p; +typedef const vp9_tree_index vp9_tree[]; struct vp9_token { int value; diff --git a/vp9/encoder/vp9_modecosts.c b/vp9/encoder/vp9_modecosts.c index a5dfaed0c..b867d8b71 100644 --- a/vp9/encoder/vp9_modecosts.c +++ b/vp9/encoder/vp9_modecosts.c @@ -17,7 +17,7 @@ void vp9_init_mode_costs(VP9_COMP *c) { VP9_COMMON *const cm = &c->common; - const vp9_tree_p KT = vp9_intra_mode_tree; + const vp9_tree_index *KT = vp9_intra_mode_tree; int i, j; for (i = 0; i < INTRA_MODES; i++) { -- 2.40.0