Mercurial > libdvdread4.hg
annotate bitreader.h @ 22:447c5319a522 src
Convert all ISO8859-1 sequences to proper UTF-8.
author | diego |
---|---|
date | Sun, 14 Sep 2008 16:00:48 +0000 |
parents | 4aa618ae094f |
children | ac07d427fbc6 |
rev | line source |
---|---|
3 | 1 #ifndef BITREADER_H_INCLUDED |
2 #define BITREADER_H_INCLUDED | |
3 | |
4 /* | |
22 | 5 * Copyright (C) 2000, 2001, 2002 HÃ¥kan Hjort <d95hjort@dtek.chalmers.se>. |
3 | 6 * |
21
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
7 * This file is part of libdvdread. |
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
8 * |
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
9 * libdvdread is free software; you can redistribute it and/or modify |
3 | 10 * it under the terms of the GNU General Public License as published by |
11 * the Free Software Foundation; either version 2 of the License, or | |
12 * (at your option) any later version. | |
13 * | |
21
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
14 * libdvdread is distributed in the hope that it will be useful, |
3 | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 * GNU General Public License for more details. | |
18 * | |
21
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
19 * You should have received a copy of the GNU General Public License along |
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
20 * with libdvdread; if not, write to the Free Software Foundation, Inc., |
4aa618ae094f
Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents:
3
diff
changeset
|
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
3 | 22 */ |
23 | |
24 | |
25 #ifdef __cplusplus | |
26 extern "C" { | |
27 #endif | |
28 | |
29 typedef struct { | |
30 uint8_t *start; | |
31 uint32_t byte_position; | |
32 uint32_t bit_position; | |
33 uint8_t byte; | |
34 } getbits_state_t; | |
35 | |
36 int dvdread_getbits_init(getbits_state_t *state, uint8_t *start); | |
37 uint32_t dvdread_getbits(getbits_state_t *state, uint32_t number_of_bits); | |
38 | |
39 #ifdef __cplusplus | |
40 }; | |
41 #endif | |
42 #endif /* BITREADER_H_INCLUDED */ |