Main Page | Data Structures | File List | Data Fields | Globals

bs.c File Reference

#include <stdint.h>
#include "bs.h"

Include dependency graph for bs.c:

Go to the source code of this file.

Functions

void bs_init (bs_t *b, uint8_t *buf, int size)
uint32_t bs_byte_aligned (bs_t *b)
uint32_t bs_eof (bs_t *b)
int bs_pos (bs_t *b)
uint32_t bs_read_u1 (bs_t *b)
uint32_t bs_read_u (bs_t *b, int n)
uint32_t bs_read_f (bs_t *b, int n)
uint32_t bs_read_u8 (bs_t *b)
uint32_t bs_read_ue (bs_t *b)
int32_t bs_read_se (bs_t *b)
void bs_write_u1 (bs_t *b, uint32_t v)
void bs_write_u (bs_t *b, int n, uint32_t v)
void bs_write_f (bs_t *b, int n, uint32_t v)
void bs_write_u8 (bs_t *b, uint32_t v)
void bs_write_ue (bs_t *b, uint32_t v)
void bs_write_se (bs_t *b, int32_t v)


Function Documentation

uint32_t bs_byte_aligned bs_t b  ) 
 

Definition at line 36 of file bs.c.

References bs_t::bits_left.

Referenced by read_rbsp_trailing_bits(), and write_rbsp_trailing_bits().

uint32_t bs_eof bs_t b  ) 
 

Definition at line 38 of file bs.c.

References bs_t::end, and bs_t::p.

Referenced by bs_read_u1(), bs_read_ue(), bs_write_u1(), more_rbsp_data(), more_rbsp_trailing_data(), read_dec_ref_pic_marking(), and read_ref_pic_list_reordering().

void bs_init bs_t b,
uint8_t *  buf,
int  size
 

Definition at line 28 of file bs.c.

References bs_t::bits_left, bs_t::end, bs_t::p, and bs_t::start.

Referenced by debug_bs(), read_nal_unit(), and write_nal_unit().

int bs_pos bs_t b  ) 
 

Definition at line 40 of file bs.c.

References bs_t::p, and bs_t::start.

Referenced by write_nal_unit().

uint32_t bs_read_f bs_t b,
int  n
 

Definition at line 66 of file bs.c.

References bs_read_u().

Referenced by read_filler_data_rbsp(), read_nal_unit(), read_rbsp_slice_trailing_bits(), and read_rbsp_trailing_bits().

Here is the call graph for this function:

int32_t bs_read_se bs_t b  ) 
 

Definition at line 84 of file bs.c.

References bs_read_ue().

Referenced by read_pic_parameter_set_rbsp(), read_pred_weight_table(), read_scaling_list(), read_seq_parameter_set_rbsp(), and read_slice_header().

Here is the call graph for this function:

uint32_t bs_read_u bs_t b,
int  n
 

Definition at line 55 of file bs.c.

References bs_read_u1().

Referenced by bs_read_f(), bs_read_u8(), bs_read_ue(), read_access_unit_delimiter_rbsp(), read_hrd_parameters(), read_nal_unit(), read_pic_parameter_set_rbsp(), read_seq_parameter_set_rbsp(), read_slice_header(), and read_vui_parameters().

Here is the call graph for this function:

uint32_t bs_read_u1 bs_t b  ) 
 

Definition at line 42 of file bs.c.

References bs_t::bits_left, bs_eof(), and bs_t::p.

Referenced by bs_read_u(), bs_read_ue(), debug_bs(), read_dec_ref_pic_marking(), read_hrd_parameters(), read_pic_parameter_set_rbsp(), read_pred_weight_table(), read_ref_pic_list_reordering(), read_seq_parameter_set_rbsp(), read_slice_header(), and read_vui_parameters().

Here is the call graph for this function:

uint32_t bs_read_u8 bs_t b  ) 
 

Definition at line 68 of file bs.c.

References bs_read_u().

Referenced by read_seq_parameter_set_rbsp(), and read_vui_parameters().

Here is the call graph for this function:

uint32_t bs_read_ue bs_t b  ) 
 

Definition at line 70 of file bs.c.

References bs_eof(), bs_read_u(), and bs_read_u1().

Referenced by bs_read_se(), read_dec_ref_pic_marking(), read_hrd_parameters(), read_pic_parameter_set_rbsp(), read_pred_weight_table(), read_ref_pic_list_reordering(), read_seq_parameter_set_rbsp(), read_slice_header(), and read_vui_parameters().

Here is the call graph for this function:

void bs_write_f bs_t b,
int  n,
uint32_t  v
 

Definition at line 118 of file bs.c.

References bs_write_u().

Referenced by write_filler_data_rbsp(), write_nal_unit(), write_rbsp_slice_trailing_bits(), and write_rbsp_trailing_bits().

Here is the call graph for this function:

void bs_write_se bs_t b,
int32_t  v
 

Definition at line 179 of file bs.c.

References bs_write_ue().

Referenced by write_pic_parameter_set_rbsp(), write_pred_weight_table(), write_scaling_list(), write_seq_parameter_set_rbsp(), and write_slice_header().

Here is the call graph for this function:

void bs_write_u bs_t b,
int  n,
uint32_t  v
 

Definition at line 109 of file bs.c.

References bs_write_u1().

Referenced by bs_write_f(), bs_write_u8(), bs_write_ue(), write_access_unit_delimiter_rbsp(), write_hrd_parameters(), write_nal_unit(), write_pic_parameter_set_rbsp(), write_seq_parameter_set_rbsp(), write_slice_header(), and write_vui_parameters().

Here is the call graph for this function:

void bs_write_u1 bs_t b,
uint32_t  v
 

Definition at line 99 of file bs.c.

References bs_t::bits_left, bs_eof(), and bs_t::p.

Referenced by bs_write_u(), bs_write_ue(), write_dec_ref_pic_marking(), write_hrd_parameters(), write_pic_parameter_set_rbsp(), write_pred_weight_table(), write_ref_pic_list_reordering(), write_seq_parameter_set_rbsp(), write_slice_header(), and write_vui_parameters().

Here is the call graph for this function:

void bs_write_u8 bs_t b,
uint32_t  v
 

Definition at line 120 of file bs.c.

References bs_write_u().

Referenced by write_seq_parameter_set_rbsp(), and write_vui_parameters().

Here is the call graph for this function:

void bs_write_ue bs_t b,
uint32_t  v
 

Definition at line 122 of file bs.c.

References bs_write_u(), and bs_write_u1().

Referenced by bs_write_se(), write_dec_ref_pic_marking(), write_hrd_parameters(), write_pic_parameter_set_rbsp(), write_pred_weight_table(), write_ref_pic_list_reordering(), write_seq_parameter_set_rbsp(), write_slice_header(), and write_vui_parameters().

Here is the call graph for this function:


Generated on Sat Jul 22 22:05:04 2006 by  doxygen 1.4.4