- #ifndef _BITSTREAM_H
- #define _BITSTREAM_H
-
-
- typedef struct
- {
- uint32 data[32];
- uint8 cur_byte;
- uint8 cur_bit;
-
- } bitstream;
-
- void bitstream_init(bitstream* stream);
-
- void bitstream_put(bitstream* stream, uint32* data, uint8 bits);
-
- void bitstream_align(bitstream* stream);
-
- void bitstream_flush(bitstream* stream);
-
- #endif
-