Mercurial > libdvdnav.hg
annotate libdvdread/bitreader.h @ 372:7cf80b1cba5a src
fixed incorrect type cast; patch by Erik Hovland org
author | nicodvb |
---|---|
date | Thu, 05 Jun 2008 10:19:26 +0000 |
parents | 1274107d0eac |
children |
rev | line source |
---|---|
347
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
1 #ifndef BITREADER_H_INCLUDED |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
2 #define BITREADER_H_INCLUDED |
225 | 3 |
4 /* | |
5 * Copyright (C) 2000, 2001, 2002 Håkan Hjort <d95hjort@dtek.chalmers.se>. | |
6 * | |
7 * This program is free software; you can redistribute it and/or modify | |
8 * it under the terms of the GNU General Public License as published by | |
9 * the Free Software Foundation; either version 2 of the License, or | |
10 * (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, | |
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 * GNU General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU General Public License | |
18 * along with this program; if not, write to the Free Software | |
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
20 */ | |
21 | |
22 | |
23 #ifdef __cplusplus | |
24 extern "C" { | |
25 #endif | |
26 | |
347
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
27 typedef struct { |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
28 uint8_t *start; |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
29 uint32_t byte_position; |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
30 uint32_t bit_position; |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
31 uint8_t byte; |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
32 } getbits_state_t; |
225 | 33 |
347
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
34 int dvdread_getbits_init(getbits_state_t *state, uint8_t *start); |
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
35 uint32_t dvdread_getbits(getbits_state_t *state, uint32_t number_of_bits); |
225 | 36 |
37 #ifdef __cplusplus | |
38 }; | |
39 #endif | |
347
a5319a5c34f4
split bitstream reader functions in 2 separate files for reuse
nicodvb
parents:
225
diff
changeset
|
40 #endif /* BITREADER_H_INCLUDED */ |