forked from piratfm/fmstick
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitstream.h
More file actions
42 lines (31 loc) · 752 Bytes
/
bitstream.h
File metadata and controls
42 lines (31 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* FILE: bitstream.h
* PROGRAM: RAT
* AUTHOR: Orion Hodson
*
* Copyright (c) 1998-2001 University College London
* All rights reserved.
*
* $Id$
*/
#ifndef BITSTREAM_H
#define BITSTREAM_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct s_bitstream bitstream_t;
int bs_create (bitstream_t **b);
int bs_destroy (bitstream_t **b);
int bs_attach (bitstream_t *b,
uint8_t *buf,
int blen);
int bs_put (bitstream_t *b,
uint8_t bits,
uint8_t nbits);
uint8_t bs_get (bitstream_t *b,
uint8_t nbits);
int bs_bytes_used (bitstream_t *b);
#ifdef __cplusplus
}
#endif
#endif /* BITSTREAM_H */