X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bitstream.h;h=98937e89f2b98f126007d795f8070c0b33508598;hp=3bcd2759a703ab3d62567d9da4d5ae07dfdc1a71;hb=b3c68fd8519a426d6b6285dcb5a865670285e99a;hpb=ac0008f1cb23e38c71b1074390ea530393cc8269 diff --git a/bitstream.h b/bitstream.h index 3bcd2759..98937e89 100644 --- a/bitstream.h +++ b/bitstream.h @@ -3,8 +3,7 @@ * * copyright (c) 2004 Michael Niedermayer * - * Licensed under the GNU Lesser General Public License. - * For licencing details see COPYING.LIB. + * Licensed under the GNU Lesser General Public License, see file COPYING.LIB. */ /** \file bitstream.h Bitstream structures and inline functions. */ @@ -19,14 +18,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 +95,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);