mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 10:34:05 +00:00
21 lines
354 B
C
21 lines
354 B
C
|
#ifndef _BITSTREAM_H
|
||
|
#define _BITSTREAM_H
|
||
|
|
||
|
|
||
|
typedef struct
|
||
|
{
|
||
|
uint32_t data[32];
|
||
|
uint8_t cur_byte;
|
||
|
uint8_t cur_bit;
|
||
|
|
||
|
} bitstream;
|
||
|
|
||
|
void bitstream_init(bitstream* stream);
|
||
|
|
||
|
void bitstream_put(bitstream* stream, uint32_t* data, uint8_t bits);
|
||
|
|
||
|
void bitstream_align(bitstream* stream);
|
||
|
|
||
|
void bitstream_flush(bitstream* stream);
|
||
|
|
||
|
#endif
|