Revision 8e624c1c libavcodec/vp8data.h

View differences:

libavcodec/vp8data.h
21 21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 22
 */
23 23

  
24
// TODO: move these #define and enum to a better header...
25

  
26
#define VP8_MAX_QUANT 127
27

  
28
enum dct_token {
29
    DCT_0,
30
    DCT_1,
31
    DCT_2,
32
    DCT_3,
33
    DCT_4,
34
    DCT_CAT1,
35
    DCT_CAT2,
36
    DCT_CAT3,
37
    DCT_CAT4,
38
    DCT_CAT5,
39
    DCT_CAT6,
40
    DCT_EOB,
41

  
42
    NUM_DCT_TOKENS
43
};
24
#ifndef AVCODEC_VP8DATA_H
25
#define AVCODEC_VP8DATA_H
44 26

  
27
#include "vp8.h"
45 28
#include "h264pred.h"
46 29

  
47
// used to signal 4x4 intra pred in luma MBs
48
#define MODE_I4x4 4
49

  
50
enum inter_mvmode {
51
    VP8_MVMODE_ZERO = MODE_I4x4 + 1,
52
    VP8_MVMODE_MV,
53
    VP8_MVMODE_SPLIT
54
};
55

  
56
enum inter_splitmvmode {
57
    VP8_SPLITMVMODE_16x8 = 0,    ///< 2 16x8 blocks (vertical)
58
    VP8_SPLITMVMODE_8x16,        ///< 2 8x16 blocks (horizontal)
59
    VP8_SPLITMVMODE_8x8,         ///< 2x2 blocks of 8x8px each
60
    VP8_SPLITMVMODE_4x4,         ///< 4x4 blocks of 4x4px each
61
    VP8_SPLITMVMODE_NONE,        ///< (only used in prediction) no split MVs
62
};
63

  
64 30
static const uint8_t vp8_pred4x4_mode[] =
65 31
{
66 32
    [DC_PRED8x8]    = DC_PRED,
......
718 684
      204, 170, 119, 235, 140, 230, 228,
719 685
      128, 130, 130,  74, 148, 180, 203, 236, 254, 254 }
720 686
};
687

  
688
#endif

Also available in: Unified diff