diff options
author | clang-format <noreply@google.com> | 2016-07-26 16:52:55 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2016-08-02 18:27:07 -0700 |
commit | 8ff40f8beccf17234240acedb8966b5634fb0c6e (patch) | |
tree | a6dd4682c177ef072c11192c2e4a9f19b308ea33 /vp9/common/vp9_seg_common.h | |
parent | e0cc52db3fc9b09c99d7bbee35153cf82964a860 (diff) | |
download | libvpx-8ff40f8beccf17234240acedb8966b5634fb0c6e.tar libvpx-8ff40f8beccf17234240acedb8966b5634fb0c6e.tar.gz libvpx-8ff40f8beccf17234240acedb8966b5634fb0c6e.tar.bz2 libvpx-8ff40f8beccf17234240acedb8966b5634fb0c6e.zip |
vp9/common: apply clang-format
Change-Id: Ie0f150fdcfcbf7c4db52d3a08bc8238ed1c72e3b
Diffstat (limited to 'vp9/common/vp9_seg_common.h')
-rw-r--r-- | vp9/common/vp9_seg_common.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/vp9/common/vp9_seg_common.h b/vp9/common/vp9_seg_common.h index 99a9440c1..b9bf75d58 100644 --- a/vp9/common/vp9_seg_common.h +++ b/vp9/common/vp9_seg_common.h @@ -17,24 +17,23 @@ extern "C" { #endif -#define SEGMENT_DELTADATA 0 -#define SEGMENT_ABSDATA 1 +#define SEGMENT_DELTADATA 0 +#define SEGMENT_ABSDATA 1 -#define MAX_SEGMENTS 8 -#define SEG_TREE_PROBS (MAX_SEGMENTS-1) +#define MAX_SEGMENTS 8 +#define SEG_TREE_PROBS (MAX_SEGMENTS - 1) #define PREDICTION_PROBS 3 // Segment level features. typedef enum { - SEG_LVL_ALT_Q = 0, // Use alternate Quantizer .... - SEG_LVL_ALT_LF = 1, // Use alternate loop filter value... - SEG_LVL_REF_FRAME = 2, // Optional Segment reference frame - SEG_LVL_SKIP = 3, // Optional Segment (0,0) + skip mode - SEG_LVL_MAX = 4 // Number of features supported + SEG_LVL_ALT_Q = 0, // Use alternate Quantizer .... + SEG_LVL_ALT_LF = 1, // Use alternate loop filter value... + SEG_LVL_REF_FRAME = 2, // Optional Segment reference frame + SEG_LVL_SKIP = 3, // Optional Segment (0,0) + skip mode + SEG_LVL_MAX = 4 // Number of features supported } SEG_LVL_FEATURES; - struct segmentation { uint8_t enabled; uint8_t update_map; @@ -53,24 +52,20 @@ struct segmentation { static INLINE int segfeature_active(const struct segmentation *seg, int segment_id, SEG_LVL_FEATURES feature_id) { - return seg->enabled && - (seg->feature_mask[segment_id] & (1 << feature_id)); + return seg->enabled && (seg->feature_mask[segment_id] & (1 << feature_id)); } void vp9_clearall_segfeatures(struct segmentation *seg); -void vp9_enable_segfeature(struct segmentation *seg, - int segment_id, +void vp9_enable_segfeature(struct segmentation *seg, int segment_id, SEG_LVL_FEATURES feature_id); int vp9_seg_feature_data_max(SEG_LVL_FEATURES feature_id); int vp9_is_segfeature_signed(SEG_LVL_FEATURES feature_id); -void vp9_set_segdata(struct segmentation *seg, - int segment_id, - SEG_LVL_FEATURES feature_id, - int seg_data); +void vp9_set_segdata(struct segmentation *seg, int segment_id, + SEG_LVL_FEATURES feature_id, int seg_data); static INLINE int get_segdata(const struct segmentation *seg, int segment_id, SEG_LVL_FEATURES feature_id) { @@ -84,4 +79,3 @@ extern const vpx_tree_index vp9_segment_tree[TREE_SIZE(MAX_SEGMENTS)]; #endif #endif // VP9_COMMON_VP9_SEG_COMMON_H_ - |