g3dvl: Fix MSVC build.
[mesa.git] / src / gallium / auxiliary / vl / vl_bitstream_parser.h
1 #ifndef vl_bitstream_parser_h
2 #define vl_bitstream_parser_h
3
4 #include "pipe/p_compiler.h"
5
6 struct vl_bitstream_parser
7 {
8 unsigned num_bitstreams;
9 const unsigned **bitstreams;
10 const unsigned *sizes;
11 unsigned cur_bitstream;
12 unsigned cursor;
13 };
14
15 bool vl_bitstream_parser_init(struct vl_bitstream_parser *parser,
16 unsigned num_bitstreams,
17 const void **bitstreams,
18 const unsigned *sizes);
19
20 void vl_bitstream_parser_cleanup(struct vl_bitstream_parser *parser);
21
22 unsigned
23 vl_bitstream_parser_get_bits(struct vl_bitstream_parser *parser,
24 unsigned how_many_bits);
25
26 unsigned
27 vl_bitstream_parser_show_bits(struct vl_bitstream_parser *parser,
28 unsigned how_many_bits);
29
30 void vl_bitstream_parser_forward(struct vl_bitstream_parser *parser,
31 unsigned how_many_bits);
32
33 void vl_bitstream_parser_rewind(struct vl_bitstream_parser *parser,
34 unsigned how_many_bits);
35
36 #endif /* vl_bitstream_parser_h */