VLC  2.1.0-git
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions
vlc_bits.h File Reference

This file defines functions, structures for handling streams of bits in vlc. More...

Include dependency graph for vlc_bits.h:

Go to the source code of this file.

Data Structures

struct  bs_s

Typedefs

typedef struct bs_s bs_t

Functions

static void bs_init (bs_t *s, const void *p_data, size_t i_data)
static int bs_pos (const bs_t *s)
static int bs_eof (const bs_t *s)
static uint32_t bs_read (bs_t *s, int i_count)
static uint32_t bs_read1 (bs_t *s)
static uint32_t bs_show (bs_t *s, int i_count)
static void bs_skip (bs_t *s, ssize_t i_count)
static void bs_write (bs_t *s, int i_count, uint32_t i_bits)
static void bs_align (bs_t *s)
static void bs_align_0 (bs_t *s)
static void bs_align_1 (bs_t *s)

Detailed Description

This file defines functions, structures for handling streams of bits in vlc.

Typedef Documentation

typedef struct bs_s bs_t

Function Documentation

static void bs_align ( bs_t s)
inlinestatic

References bs_s::i_left, and bs_s::p.

static void bs_align_0 ( bs_t s)
inlinestatic

References bs_write(), and bs_s::i_left.

static void bs_align_1 ( bs_t s)
inlinestatic

References bs_write(), and bs_s::i_left.

static int bs_eof ( const bs_t s)
inlinestatic

References bs_s::p, and bs_s::p_end.

static void bs_init ( bs_t s,
const void *  p_data,
size_t  i_data 
)
inlinestatic
static int bs_pos ( const bs_t s)
inlinestatic

References bs_s::i_left, bs_s::p, and bs_s::p_start.

static uint32_t bs_read ( bs_t s,
int  i_count 
)
inlinestatic

References bs_s::i_left, bs_s::p, and bs_s::p_end.

Referenced by bs_show().

static uint32_t bs_read1 ( bs_t s)
inlinestatic

References bs_s::i_left, bs_s::p, and bs_s::p_end.

static uint32_t bs_show ( bs_t s,
int  i_count 
)
inlinestatic

References bs_read().

static void bs_skip ( bs_t s,
ssize_t  i_count 
)
inlinestatic

References bs_s::i_left, and bs_s::p.

static void bs_write ( bs_t s,
int  i_count,
uint32_t  i_bits 
)
inlinestatic

References bs_s::i_left, bs_s::p, and bs_s::p_end.

Referenced by bs_align_0(), and bs_align_1().