00001 /* 00002 * Copyright (C) 2000, 2001, 2002 HÃ¥kan Hjort <d95hjort@dtek.chalmers.se>. 00003 * 00004 * This file is part of libdvdread. 00005 * 00006 * libdvdread is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * libdvdread is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License along 00017 * with libdvdread; if not, write to the Free Software Foundation, Inc., 00018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00019 */ 00020 00021 #ifndef LIBDVDREAD_BITREADER_H 00022 #define LIBDVDREAD_BITREADER_H 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 typedef struct { 00029 uint8_t *start; 00030 uint32_t byte_position; 00031 uint32_t bit_position; 00032 uint8_t byte; 00033 } getbits_state_t; 00034 00035 int dvdread_getbits_init(getbits_state_t *state, uint8_t *start); 00036 uint32_t dvdread_getbits(getbits_state_t *state, uint32_t number_of_bits); 00037 00038 #ifdef __cplusplus 00039 }; 00040 #endif 00041 #endif /* LIBDVDREAD_BITREADER_H */
1.6.3