bitstream.c File Reference


Detailed Description

bitstream api.

Definition in file bitstream.c.

Go to the source code of this file.

Functions

attribute_deprecated void * ff_realloc_static (void *ptr, unsigned int size)
 Same as av_mallocz_static(), but does a realloc.
void align_put_bits (PutBitContext *s)
void ff_put_string (PutBitContext *pbc, char *s, int put_zero)
void ff_copy_bits (PutBitContext *pb, uint8_t *src, int length)
static int alloc_table (VLC *vlc, int size, int use_static)
static int build_table (VLC *vlc, int table_nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, const void *symbols, int symbols_wrap, int symbols_size, uint32_t code_prefix, int n_prefix, int flags)
int init_vlc_sparse (VLC *vlc, int nb_bits, int nb_codes, const void *bits, int bits_wrap, int bits_size, const void *codes, int codes_wrap, int codes_size, const void *symbols, int symbols_wrap, int symbols_size, int flags)
void free_vlc (VLC *vlc)


Function Documentation

attribute_deprecated void* ff_realloc_static ( void *  ptr,
unsigned int  size 
)

Same as av_mallocz_static(), but does a realloc.

Parameters:
[in] ptr The block of memory to reallocate.
[in] size The requested size.
Returns:
Block of memory of requested size.
Deprecated:
. Code which uses ff_realloc_static is broken/misdesigned and should correctly use static arrays

Definition at line 90 of file libavcodec/utils.c.

Referenced by alloc_table().

void align_put_bits ( PutBitContext s  ) 

void ff_put_string ( PutBitContext pbc,
char *  s,
int  put_zero 
)

Definition at line 53 of file bitstream.c.

Referenced by jpeg_put_comments(), and mpeg4_encode_vol_header().

void ff_copy_bits ( PutBitContext pb,
uint8_t *  src,
int  length 
)

static int alloc_table ( VLC vlc,
int  size,
int  use_static 
) [static]

Definition at line 106 of file bitstream.c.

Referenced by build_table(), and mp_decode_layer2().

static int build_table ( VLC vlc,
int  table_nb_bits,
int  nb_codes,
const void *  bits,
int  bits_wrap,
int  bits_size,
const void *  codes,
int  codes_wrap,
int  codes_size,
const void *  symbols,
int  symbols_wrap,
int  symbols_size,
uint32_t  code_prefix,
int  n_prefix,
int  flags 
) [static]

Definition at line 127 of file bitstream.c.

Referenced by init_vlc_sparse().

int init_vlc_sparse ( VLC vlc,
int  nb_bits,
int  nb_codes,
const void *  bits,
int  bits_wrap,
int  bits_size,
const void *  codes,
int  codes_wrap,
int  codes_size,
const void *  symbols,
int  symbols_wrap,
int  symbols_size,
int  flags 
)

Definition at line 261 of file bitstream.c.

Referenced by build_huff_tree(), generate_joint_tables(), and mpc8_decode_init().

void free_vlc ( VLC vlc  ) 


Generated on Sat Dec 18 05:15:51 2010 for MythTV by  doxygen 1.5.5