UltraGrid
UltraGrid Low-Latency High-Resolution Transmission System
Loading...
Searching...
No Matches
bitstream.h
Go to the documentation of this file.
1/*
2 * FILE: bitstream.h
3 * PROGRAM: RAT
4 * AUTHOR: Orion Hodson
5 *
6 * Copyright (c) 2003 University of Southern California
7 * Copyright (c) 1998-2001 University College London
8 * All rights reserved.
9 *
10 * $Revision: 1.1 $
11 * $Date: 2007/11/08 09:48:59 $
12 *
13 */
14
15#ifdef HAVE_CONFIG_H
16#include "config.h"
17#include "config_unix.h"
18#include "config_win32.h"
19#endif // HAVE_CONFIG_H
20
21#ifndef RAT_BITSTREAM_H
22#define RAT_BITSTREAM_H
23
24typedef struct s_bitstream bitstream_t;
25
26int bs_create (bitstream_t **b);
27int bs_destroy (bitstream_t **b);
28int bs_attach (bitstream_t *b, u_char *buf, int blen);
29int bs_put (bitstream_t *b, u_char bits, uint8_t nbits);
30u_char bs_get (bitstream_t *b, uint8_t nbits);
32
33#endif /* RAT_BITSTREAM_H */
34
int bs_create(bitstream_t **b)
Definition bitstream.c:23
u_char bs_get(bitstream_t *b, uint8_t nbits)
Definition bitstream.c:74
int bs_put(bitstream_t *b, u_char bits, uint8_t nbits)
Definition bitstream.c:50
int bs_attach(bitstream_t *b, u_char *buf, int blen)
Definition bitstream.c:41
int bs_destroy(bitstream_t **b)
Definition bitstream.c:35
int bs_bytes_used(bitstream_t *b)
Definition bitstream.c:102
u_char * buf
Definition bitstream.c:17