--- mbcoding.h 2002/09/26 01:54:54 1.8.2.2 +++ mbcoding.h 2003/02/15 15:22:18 1.11 @@ -3,12 +3,16 @@ #include "../portab.h" #include "../global.h" +#include "vlc_codes.h" #include "bitstream.h" void init_vlc_tables(void); int check_resync_marker(Bitstream * bs, int addbits); +void bs_put_spritetrajectory(Bitstream * bs, const int val); +int bs_get_spritetrajectory(Bitstream * bs); + int get_mcbpc_intra(Bitstream * bs); int get_mcbpc_inter(Bitstream * bs); int get_cbpy(Bitstream * bs, @@ -21,12 +25,6 @@ int get_dc_size_lum(Bitstream * bs); int get_dc_size_chrom(Bitstream * bs); -static int get_coeff(Bitstream * bs, - int *run, - int *last, - int intra, - int short_video_header); - void get_intra_block(Bitstream * bs, int16_t * block, int direction, @@ -51,4 +49,12 @@ BitstreamPutBit(bs, 1); // not coded } + +#ifdef BIGLUT +extern VLC *intra_table; +int CodeCoeff_CalcBits(const int16_t qcoeff[64], VLC * table, const uint16_t * zigzag, uint16_t intra); +#else +int CodeCoeffIntra_CalcBits(const int16_t qcoeff[64], const uint16_t * zigzag); +#endif + #endif /* _MB_CODING_H_ */