xine-lib 1.2.13-20230125hg15249
Data Structures | Functions
vdec_hw_bits_reader.h File Reference
#include <sys/types.h>
#include <inttypes.h>
#include <stdio.h>

Go to the source code of this file.

Data Structures

struct  bits_reader_t
 

Functions

static void bits_set_buf (bits_reader_t *br, const uint8_t *buf, uint32_t len)
 
static uint32_t bits_tell (bits_reader_t *br)
 
static uint32_t _bits_read_slow (bits_reader_t *br, uint32_t bits)
 
static uint32_t bits_read (bits_reader_t *br, const uint32_t bits)
 
static void _bits_skip_slow (bits_reader_t *br, uint32_t bits)
 
static void bits_skip (bits_reader_t *br, const uint32_t bits)
 
static uint32_t bits_valid_left (bits_reader_t *br)
 
static uint32_t bits_exp_ue (bits_reader_t *br)
 
static int32_t bits_exp_se (bits_reader_t *br)
 

Function Documentation

◆ _bits_read_slow()

static uint32_t _bits_read_slow ( bits_reader_t * br,
uint32_t bits )
static

NOTE: old code bailed out when end of bitstream was reached exactly.

References bits, bits_reader_t::bits, bits_reader_t::end, bits_reader_t::oflow, bits_reader_t::read, and bits_reader_t::val.

Referenced by bits_read().

◆ _bits_skip_slow()

static void _bits_skip_slow ( bits_reader_t * br,
uint32_t bits )
static

◆ bits_exp_se()

static int32_t bits_exp_se ( bits_reader_t * br)
inlinestatic

◆ bits_exp_ue()

static uint32_t bits_exp_ue ( bits_reader_t * br)
static

◆ bits_read()

static uint32_t bits_read ( bits_reader_t * br,
const uint32_t bits )
inlinestatic

◆ bits_set_buf()

static void bits_set_buf ( bits_reader_t * br,
const uint8_t * buf,
uint32_t len )
static

◆ bits_skip()

static void bits_skip ( bits_reader_t * br,
const uint32_t bits )
inlinestatic

◆ bits_tell()

static uint32_t bits_tell ( bits_reader_t * br)
inlinestatic

◆ bits_valid_left()

static uint32_t bits_valid_left ( bits_reader_t * br)
static

how many bits are left from here to the last "1"? NOTE: old code was off by -1.

References bits_reader_t::bits, bits_reader_t::end, bits_reader_t::read, v, and bits_reader_t::val.

Referenced by _vdec_hw_h264_read_pps().