libg722_1
0.1.0
Main Page
Related Pages
Classes
Files
File List
File Members
bitstream.h
1
/*
2
* broadvoice - a library for the BroadVoice 16 and 32 codecs
3
*
4
* bitstream.c -
5
*
6
* Copyright 2009 by Steve Underwood <steveu@coppice.org>
7
*
8
* All rights reserved.
9
*
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU Lesser General Public License version 2.1,
12
* as published by the Free Software Foundation.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU Lesser General Public License for more details.
18
*
19
* You should have received a copy of the GNU Lesser General Public
20
* License along with this program; if not, write to the Free Software
21
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22
*
23
* $Id: bitstream.h,v 1.1.1.1 2009/11/19 12:10:48 steveu Exp $
24
*/
25
26
#if !defined(_BITSTREAM_H_)
27
#define _BITSTREAM_H_
28
29
/*! Bitstream handler state */
30
typedef
struct
31
{
32
/*! The bit stream. */
33
uint32_t
bitstream
;
34
/*! The residual bits in bitstream. */
35
int
residue
;
36
}
bitstream_state_t
;
37
38
void
bitstream_put(
bitstream_state_t
*s, uint8_t **c, uint32_t value,
int
bits);
39
40
uint32_t bitstream_get(
bitstream_state_t
*s,
const
uint8_t **c,
int
bits);
41
42
void
bitstream_flush(
bitstream_state_t
*s, uint8_t **c);
43
44
bitstream_state_t
*bitstream_init(
bitstream_state_t
*s);
45
46
#endif
47
/*- End of file ------------------------------------------------------------*/
bitstream_state_t
Definition:
bitstream.h:30
bitstream_state_t::residue
int residue
Definition:
bitstream.h:35
bitstream_state_t::bitstream
uint32_t bitstream
Definition:
bitstream.h:33
src
bitstream.h
Generated by
1.8.5