FFmpeg
Functions
unary.h File Reference
#include "get_bits.h"

Go to the source code of this file.

Functions

static int get_unary (GetBitContext *gb, int stop, int len)
 Get unary code of limited length. More...
 
static int get_unary_0_33 (GetBitContext *gb)
 Get unary code terminated by a 0 with a maximum length of 33. More...
 
static int get_unary_0_9 (GetBitContext *gb)
 

Function Documentation

◆ get_unary()

static int get_unary ( GetBitContext gb,
int  stop,
int  len 
)
inlinestatic

Get unary code of limited length.

Parameters
gbGetBitContext
[in]stopThe bitstop value (unary code of 1's or 0's)
[in]lenMaximum length
Returns
unary 0 based code index. This is also the length in bits of the code excluding the stop bit. (in case len=1) 1 0 0 1 (in case len=2) 1 0 01 1 00 2 (in case len=3) 1 0 01 1 001 2 000 3

Definition at line 46 of file unary.h.

Referenced by ape_decode_value_3860(), decode_block(), decode_frame(), decode_gain_info(), decode_residues(), decode_rice(), decode_segment(), decode_subframe(), decode_sym(), decode_sym_565(), ff_vc1_parse_frame_header(), ff_vc1_parse_frame_header_adv(), get_rice_ook(), get_rice_un(), get_unary_0_33(), get_unary_0_9(), h263_get_modb(), mpc8_parse_seektable(), mpeg4_decode_dpcm_macroblock(), mss4_decode_image_block(), read_high_coeffs(), read_low_coeffs(), read_var_block_data(), tta_decode_frame(), and vc1_decode_ac_coeff().

◆ get_unary_0_33()

static int get_unary_0_33 ( GetBitContext gb)
inlinestatic

Get unary code terminated by a 0 with a maximum length of 33.

Parameters
gbGetBitContext
Returns
Unary length/index

Definition at line 59 of file unary.h.

Referenced by wv_get_value().

◆ get_unary_0_9()

static int get_unary_0_9 ( GetBitContext gb)
inlinestatic

Definition at line 64 of file unary.h.

Referenced by decode_scalar().