Mercurial > libavcodec.hg
comparison cabac.h @ 2024:f65d87bfdd5a libavcodec
some of the warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)
author | michael |
---|---|
date | Tue, 18 May 2004 17:09:46 +0000 |
parents | 752b51a3c8ed |
children | 48d9f86fb047 |
comparison
equal
deleted
inserted
replaced
2023:50e92cec1b84 | 2024:f65d87bfdd5a |
---|---|
35 int symCount; | 35 int symCount; |
36 #endif | 36 #endif |
37 uint8_t lps_range[2*64][4]; ///< rangeTabLPS | 37 uint8_t lps_range[2*64][4]; ///< rangeTabLPS |
38 uint8_t lps_state[2*64]; ///< transIdxLPS | 38 uint8_t lps_state[2*64]; ///< transIdxLPS |
39 uint8_t mps_state[2*64]; ///< transIdxMPS | 39 uint8_t mps_state[2*64]; ///< transIdxMPS |
40 uint8_t *bytestream_start; | 40 const uint8_t *bytestream_start; |
41 uint8_t *bytestream; | 41 const uint8_t *bytestream; |
42 int bits_left; ///< | 42 int bits_left; ///< |
43 PutBitContext pb; | 43 PutBitContext pb; |
44 }CABACContext; | 44 }CABACContext; |
45 | 45 |
46 extern const uint8_t ff_h264_lps_range[64][4]; | 46 extern const uint8_t ff_h264_lps_range[64][4]; |
47 extern const uint8_t ff_h264_mps_state[64]; | 47 extern const uint8_t ff_h264_mps_state[64]; |
48 extern const uint8_t ff_h264_lps_state[64]; | 48 extern const uint8_t ff_h264_lps_state[64]; |
49 | 49 |
50 void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); | 50 void ff_init_cabac_encoder(CABACContext *c, uint8_t *buf, int buf_size); |
51 void ff_init_cabac_decoder(CABACContext *c, uint8_t *buf, int buf_size); | 51 void ff_init_cabac_decoder(CABACContext *c, const uint8_t *buf, int buf_size); |
52 void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4], | 52 void ff_init_cabac_states(CABACContext *c, uint8_t const (*lps_range)[4], |
53 uint8_t const *mps_state, uint8_t const *lps_state, int state_count); | 53 uint8_t const *mps_state, uint8_t const *lps_state, int state_count); |
54 | 54 |
55 | 55 |
56 static inline void put_cabac_bit(CABACContext *c, int b){ | 56 static inline void put_cabac_bit(CABACContext *c, int b){ |