Path: blob/master/thirdparty/libwebp/src/dec/common_dec.h
9912 views
// Copyright 2015 Google Inc. All Rights Reserved.1//2// Use of this source code is governed by a BSD-style license3// that can be found in the COPYING file in the root of the source4// tree. An additional intellectual property rights grant can be found5// in the file PATENTS. All contributing project authors may6// be found in the AUTHORS file in the root of the source tree.7// -----------------------------------------------------------------------------8//9// Definitions and macros common to encoding and decoding10//11// Author: Skal ([email protected])1213#ifndef WEBP_DEC_COMMON_DEC_H_14#define WEBP_DEC_COMMON_DEC_H_1516// intra prediction modes17enum { B_DC_PRED = 0, // 4x4 modes18B_TM_PRED = 1,19B_VE_PRED = 2,20B_HE_PRED = 3,21B_RD_PRED = 4,22B_VR_PRED = 5,23B_LD_PRED = 6,24B_VL_PRED = 7,25B_HD_PRED = 8,26B_HU_PRED = 9,27NUM_BMODES = B_HU_PRED + 1 - B_DC_PRED, // = 102829// Luma16 or UV modes30DC_PRED = B_DC_PRED, V_PRED = B_VE_PRED,31H_PRED = B_HE_PRED, TM_PRED = B_TM_PRED,32B_PRED = NUM_BMODES, // refined I4x4 mode33NUM_PRED_MODES = 4,3435// special modes36B_DC_PRED_NOTOP = 4,37B_DC_PRED_NOLEFT = 5,38B_DC_PRED_NOTOPLEFT = 6,39NUM_B_DC_MODES = 7 };4041enum { MB_FEATURE_TREE_PROBS = 3,42NUM_MB_SEGMENTS = 4,43NUM_REF_LF_DELTAS = 4,44NUM_MODE_LF_DELTAS = 4, // I4x4, ZERO, *, SPLIT45MAX_NUM_PARTITIONS = 8,46// Probabilities47NUM_TYPES = 4, // 0: i16-AC, 1: i16-DC, 2:chroma-AC, 3:i4-AC48NUM_BANDS = 8,49NUM_CTX = 3,50NUM_PROBAS = 1151};5253#endif // WEBP_DEC_COMMON_DEC_H_545556