summaryrefslogtreecommitdiff
path: root/vp9/common/vp9_seg_common.h
diff options
context:
space:
mode:
authorScott LaVarnway <slavarnway@google.com>2015-06-11 09:52:00 -0700
committerScott LaVarnway <slavarnway@google.com>2015-06-11 09:52:00 -0700
commitcca866f578191c9d1ea381642e53c12c76dbaa15 (patch)
tree2d4978b373a04676886ea28ff9598c92e44d929e /vp9/common/vp9_seg_common.h
parenta49c7015298911f903d740c09d34b609e2be1a9b (diff)
downloadlibvpx-cca866f578191c9d1ea381642e53c12c76dbaa15.tar
libvpx-cca866f578191c9d1ea381642e53c12c76dbaa15.tar.gz
libvpx-cca866f578191c9d1ea381642e53c12c76dbaa15.tar.bz2
libvpx-cca866f578191c9d1ea381642e53c12c76dbaa15.zip
inline vp9_get_segdata()
and change name. Change-Id: I706645cf9d9dc04f1b3b6ac80df80edb7f101854
Diffstat (limited to 'vp9/common/vp9_seg_common.h')
-rw-r--r--vp9/common/vp9_seg_common.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/vp9/common/vp9_seg_common.h b/vp9/common/vp9_seg_common.h
index 679476388..95c991830 100644
--- a/vp9/common/vp9_seg_common.h
+++ b/vp9/common/vp9_seg_common.h
@@ -71,9 +71,10 @@ void vp9_set_segdata(struct segmentation *seg,
SEG_LVL_FEATURES feature_id,
int seg_data);
-int vp9_get_segdata(const struct segmentation *seg,
- int segment_id,
- SEG_LVL_FEATURES feature_id);
+static INLINE int get_segdata(const struct segmentation *seg, int segment_id,
+ SEG_LVL_FEATURES feature_id) {
+ return seg->feature_data[segment_id][feature_id];
+}
extern const vp9_tree_index vp9_segment_tree[TREE_SIZE(MAX_SEGMENTS)];