1 #ifndef vl_bitstream_parser_h
2 #define vl_bitstream_parser_h
4 #include "pipe/p_compiler.h"
6 struct vl_bitstream_parser
8 unsigned num_bitstreams
;
9 const unsigned **bitstreams
;
10 const unsigned *sizes
;
11 unsigned cur_bitstream
;
15 bool vl_bitstream_parser_init(struct vl_bitstream_parser
*parser
,
16 unsigned num_bitstreams
,
17 const void **bitstreams
,
18 const unsigned *sizes
);
20 void vl_bitstream_parser_cleanup(struct vl_bitstream_parser
*parser
);
23 vl_bitstream_parser_get_bits(struct vl_bitstream_parser
*parser
,
24 unsigned how_many_bits
);
27 vl_bitstream_parser_show_bits(struct vl_bitstream_parser
*parser
,
28 unsigned how_many_bits
);
30 void vl_bitstream_parser_forward(struct vl_bitstream_parser
*parser
,
31 unsigned how_many_bits
);
33 void vl_bitstream_parser_rewind(struct vl_bitstream_parser
*parser
,
34 unsigned how_many_bits
);
36 #endif /* vl_bitstream_parser_h */