Parent Directory | Revision Log
Revision 851 - (view) (download)
1 : | Isibaar | 3 | #ifndef _MB_CODING_H_ |
2 : | #define _MB_CODING_H_ | ||
3 : | |||
4 : | #include "../portab.h" | ||
5 : | #include "../global.h" | ||
6 : | edgomez | 851 | #include "vlc_codes.h" |
7 : | Isibaar | 100 | #include "bitstream.h" |
8 : | Isibaar | 3 | |
9 : | Isibaar | 100 | void init_vlc_tables(void); |
10 : | Isibaar | 3 | |
11 : | suxen_drol | 248 | int check_resync_marker(Bitstream * bs, int addbits); |
12 : | |||
13 : | edgomez | 851 | void bs_put_spritetrajectory(Bitstream * bs, const int val); |
14 : | int bs_get_spritetrajectory(Bitstream * bs); | ||
15 : | |||
16 : | Isibaar | 3 | int get_mcbpc_intra(Bitstream * bs); |
17 : | int get_mcbpc_inter(Bitstream * bs); | ||
18 : | edgomez | 195 | int get_cbpy(Bitstream * bs, |
19 : | int intra); | ||
20 : | int get_mv(Bitstream * bs, | ||
21 : | int fcode); | ||
22 : | Isibaar | 3 | |
23 : | edgomez | 195 | int get_dc_dif(Bitstream * bs, |
24 : | uint32_t dc_size); | ||
25 : | Isibaar | 3 | int get_dc_size_lum(Bitstream * bs); |
26 : | int get_dc_size_chrom(Bitstream * bs); | ||
27 : | |||
28 : | edgomez | 195 | void get_intra_block(Bitstream * bs, |
29 : | int16_t * block, | ||
30 : | int direction, | ||
31 : | int coeff); | ||
32 : | void get_inter_block(Bitstream * bs, | ||
33 : | edgomez | 851 | int16_t * block, |
34 : | int direction); | ||
35 : | Isibaar | 3 | |
36 : | edgomez | 851 | |
37 : | void MBCodingBVOP(const MACROBLOCK * mb, | ||
38 : | const int16_t qcoeff[6 * 64], | ||
39 : | const int32_t fcode, | ||
40 : | const int32_t bcode, | ||
41 : | Bitstream * bs, | ||
42 : | Statistics * pStat, | ||
43 : | int alternate_scan); | ||
44 : | |||
45 : | |||
46 : | static __inline void | ||
47 : | MBSkip(Bitstream * bs) | ||
48 : | { | ||
49 : | BitstreamPutBit(bs, 1); // not coded | ||
50 : | } | ||
51 : | |||
52 : | |||
53 : | #ifdef BIGLUT | ||
54 : | extern VLC *intra_table; | ||
55 : | int CodeCoeff_CalcBits(const int16_t qcoeff[64], VLC * table, const uint16_t * zigzag, uint16_t intra); | ||
56 : | #else | ||
57 : | int CodeCoeffIntra_CalcBits(const int16_t qcoeff[64], const uint16_t * zigzag); | ||
58 : | #endif | ||
59 : | |||
60 : | #endif /* _MB_CODING_H_ */ |
No admin address has been configured | ViewVC Help |
Powered by ViewVC 1.0.4 |