annotate bitreader.h @ 3:fdbae45c30fc src

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