X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bitstream.h;h=4d81fa3b25521053c8cafcf49a4b14542b83e74a;hp=3bcd2759a703ab3d62567d9da4d5ae07dfdc1a71;hb=b77844da491b8d41c2937f37108d041f937c124e;hpb=ac0008f1cb23e38c71b1074390ea530393cc8269 diff --git a/bitstream.h b/bitstream.h index 3bcd2759..4d81fa3b 100644 --- a/bitstream.h +++ b/bitstream.h @@ -19,14 +19,12 @@ struct getbit_context { int index; }; -#define VLC_TYPE int16_t - /** A variable length code table. */ struct vlc { /** Number of bits of the table. */ int bits; /** The code and the bits table. */ - VLC_TYPE(*table)[2]; + int16_t (*table)[2]; /** The size of the table. */ int table_size; /** Amount of memory allocated so far. */ @@ -98,4 +96,4 @@ static inline void init_get_bits(struct getbit_context *gbc, void init_vlc(struct vlc *vlc, int nb_bits, int nb_codes, const void *bits, const void *codes, int codes_size); void free_vlc(struct vlc *vlc); -int get_vlc(struct getbit_context *gbc, VLC_TYPE(*table)[2], int bits); +int get_vlc(struct getbit_context *gbc, const struct vlc *vlc);