annotate bitreader.h @ 32:6698620c1477 src

Because of ARM memory alignment issues the struct app_info has to be packed. Patch by Erik Hovland /erik ^ hovland * org \
author rathann
date Sat, 13 Dec 2008 14:27:51 +0000
parents ac07d427fbc6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
1 /*
22
447c5319a522 Convert all ISO8859-1 sequences to proper UTF-8.
diego
parents: 21
diff changeset
2 * Copyright (C) 2000, 2001, 2002 HÃ¥kan Hjort <d95hjort@dtek.chalmers.se>.
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
3 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 3
diff changeset
4 * This file is part of libdvdread.
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 3
diff changeset
5 *
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 3
diff changeset
6 * libdvdread is free software; you can redistribute it and/or modify
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
7 * it under the terms of the GNU General Public License as published by
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
8 * the Free Software Foundation; either version 2 of the License, or
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
9 * (at your option) any later version.
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
10 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 3
diff changeset
11 * libdvdread is distributed in the hope that it will be useful,
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
14 * GNU General Public License for more details.
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
15 *
21
4aa618ae094f Use consistent license headers everywhere: Fix FSF address and boilerplate.
diego
parents: 3
diff changeset
16 * 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
17 * 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
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
19 */
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
20
23
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
21 #ifndef LIBDVDREAD_BITREADER_H
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
22 #define LIBDVDREAD_BITREADER_H
3
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
23
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
24 #ifdef __cplusplus
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
25 extern "C" {
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
26 #endif
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
27
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
28 typedef struct {
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
29 uint8_t *start;
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
30 uint32_t byte_position;
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
31 uint32_t bit_position;
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
32 uint8_t byte;
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
33 } getbits_state_t;
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
34
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
35 int dvdread_getbits_init(getbits_state_t *state, uint8_t *start);
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
36 uint32_t dvdread_getbits(getbits_state_t *state, uint32_t number_of_bits);
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
37
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
38 #ifdef __cplusplus
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
39 };
fdbae45c30fc moved to src/ the sources files
nicodvb
parents:
diff changeset
40 #endif
23
ac07d427fbc6 Use consistent multiple inclusion guards everywhere:
diego
parents: 22
diff changeset
41 #endif /* LIBDVDREAD_BITREADER_H */