FFmpeg
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | VLC |
struct | RL_VLC_ELEM |
Macros | |
#define | VLC_TYPE int16_t |
#define | init_vlc(vlc, nb_bits, nb_codes, bits, bits_wrap, bits_size, codes, codes_wrap, codes_size, flags) |
#define | INIT_VLC_INPUT_LE 2 |
#define | INIT_VLC_OUTPUT_LE 8 |
#define | INIT_VLC_LE (INIT_VLC_INPUT_LE | INIT_VLC_OUTPUT_LE) |
#define | INIT_VLC_USE_NEW_STATIC 4 |
#define | INIT_VLC_STATIC_OVERLONG (1 | INIT_VLC_USE_NEW_STATIC) |
#define | INIT_CUSTOM_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, h, i, j, flags, static_size) |
#define | INIT_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, h, i, j, static_size) |
#define | INIT_LE_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, h, i, j, static_size) |
#define | INIT_CUSTOM_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, flags, static_size) |
#define | INIT_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size) INIT_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) |
#define | INIT_LE_VLC_STATIC(vlc, bits, a, b, c, d, e, f, g, static_size) INIT_LE_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) |
#define | INIT_VLC_STATIC_FROM_LENGTHS(vlc, bits, nb_codes, lens, len_wrap, symbols, symbols_wrap, symbols_size, offset, flags, static_size) |
Functions | |
int | ff_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) |
int | ff_init_vlc_from_lengths (VLC *vlc, int nb_bits, int nb_codes, const int8_t *lens, int lens_wrap, const void *symbols, int symbols_wrap, int symbols_size, int offset, int flags, void *logctx) |
Build VLC decoding tables suitable for use with get_vlc2() More... | |
void | ff_free_vlc (VLC *vlc) |
#define VLC_TYPE int16_t |
Definition at line 24 of file vlc.h.
Referenced by aac_static_table_init(), alloc_table(), atrac3_init_static_data(), atrac9_init_vlc(), build_table(), build_vlc(), ccitt_unpack_init(), decode_init(), decode_spectrum_and_dequant(), ff_dca_init_vlcs(), ff_init_2d_vlc_rl(), ff_rl_init_vlc(), init_static(), init_vlcs(), ivi_init_static_vlc(), main(), mobiclip_init_static(), mpc7_init_static(), mpeg4_init_static(), mss4_init_vlc(), qdmc_init_static_data(), read_sbr_envelope(), read_sbr_noise(), rv10_init_static(), rv40_init_table(), rv40_init_tables(), svq1_static_init(), tscc2_init_vlc(), unpack_vlcs(), vc1_init_static(), write_VLC_TYPE_array(), and x8_init_vlc().
#define init_vlc | ( | vlc, | |
nb_bits, | |||
nb_codes, | |||
bits, | |||
bits_wrap, | |||
bits_size, | |||
codes, | |||
codes_wrap, | |||
codes_size, | |||
flags | |||
) |
Definition at line 38 of file vlc.h.
Referenced by decode_init(), decode_rle(), dnxhd_init_vlc(), ff_cfhd_init_vlcs(), ff_dvvideo_init(), ff_h264_decode_init_vlc(), ff_hq_init_vlcs(), ff_hqx_init_vlcs(), ff_init_2d_vlc_rl(), ff_rl_init_vlc(), generate_joint_tables(), huff_reader_build_canonical(), init_coef_vlc(), init_static(), init_vlcs(), ivi_create_huff_from_desc(), mpegaudiodec_common_init_static(), read_huffman_tables(), read_old_huffman_tables(), svq1_static_init(), vc1_init_static(), vorbis_parse_setup_hdr_codebooks(), vp3_decode_init(), and wma_decode_init().
#define INIT_VLC_OUTPUT_LE 8 |
Definition at line 93 of file vlc.h.
Referenced by build_table(), huff_reader_build_canonical(), ir2_init_static(), ivi_create_huff_from_desc(), smacker_decode_header_tree(), smka_decode_frame(), tscc2_init_vlc(), and wnv1_init_static().
#define INIT_VLC_LE (INIT_VLC_INPUT_LE | INIT_VLC_OUTPUT_LE) |
Definition at line 94 of file vlc.h.
Referenced by build_huff(), build_vlc(), decode_init(), qdmc_init_static_data(), and vorbis_parse_setup_hdr_codebooks().
#define INIT_VLC_USE_NEW_STATIC 4 |
Definition at line 95 of file vlc.h.
Referenced by atrac3_init_static_data(), build_canonical_huff(), build_table(), ccitt_unpack_init(), decode_init(), ff_h264_decode_init_vlc(), ff_init_2d_vlc_rl(), ff_rl_init_vlc(), init_static(), init_vlcs(), ivi_create_huff_from_desc(), mobiclip_init_static(), mpegaudiodec_common_init_static(), rv40_init_table(), svq1_static_init(), vc1_init_static(), vlc_common_end(), and vlc_common_init().
#define INIT_VLC_STATIC_OVERLONG (1 | INIT_VLC_USE_NEW_STATIC) |
Definition at line 96 of file vlc.h.
Referenced by aac_static_table_init(), atrac9_init_vlc(), build_vlc(), clv_init_static(), imc_init_static(), mpc7_init_static(), mpeg4_init_static(), mpegaudiodec_common_init_static(), mss4_init_vlc(), qdmc_init_static_data(), rv10_build_vlc(), rv34_gen_vlc(), rv40_init_tables(), tscc2_init_vlc(), vlc_common_end(), and x8_init_vlc().
#define INIT_CUSTOM_VLC_SPARSE_STATIC | ( | vlc, | |
bits, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i, | |||
j, | |||
flags, | |||
static_size | |||
) |
Definition at line 108 of file vlc.h.
Referenced by imm4_init_static_data().
#define INIT_VLC_STATIC | ( | vlc, | |
bits, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
static_size | |||
) | INIT_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) |
Definition at line 120 of file vlc.h.
Referenced by aac_static_table_init(), ccitt_unpack_init(), decode_init(), ff_h263_decode_init_vlc(), ff_mpeg4videodec_static_init(), ff_msmpeg4_decode_init(), h261_decode_init_static(), init_vlcs(), mpeg12_init_vlcs(), svq1_static_init(), vc1_init_static(), and wmavoice_init_static_data().
#define INIT_LE_VLC_STATIC | ( | vlc, | |
bits, | |||
a, | |||
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
static_size | |||
) | INIT_LE_VLC_SPARSE_STATIC(vlc, bits, a, b, c, d, e, f, g, NULL, 0, 0, static_size) |
Definition at line 123 of file vlc.h.
Referenced by init_vlcs().
#define INIT_VLC_STATIC_FROM_LENGTHS | ( | vlc, | |
bits, | |||
nb_codes, | |||
lens, | |||
len_wrap, | |||
symbols, | |||
symbols_wrap, | |||
symbols_size, | |||
offset, | |||
flags, | |||
static_size | |||
) |
Definition at line 126 of file vlc.h.
Referenced by clv_init_static(), ff_mpeg4videodec_static_init(), imm4_init_static_data(), init_static_data(), ir2_init_static(), mimic_init_static(), mobiclip_init_static(), mpc7_init_static(), mpeg4_init_static(), and wnv1_init_static().
int ff_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 323 of file bitstream.c.
Referenced by aac_static_table_init(), build_huff(), build_huff_tree(), build_vlc(), ccitt_unpack_init(), generate_joint_tables(), huf_build_dec_table(), init_ralf_vlc(), read_hufftable(), and rv34_gen_vlc().
int ff_init_vlc_from_lengths | ( | VLC * | vlc, |
int | nb_bits, | ||
int | nb_codes, | ||
const int8_t * | lens, | ||
int | lens_wrap, | ||
const void * | symbols, | ||
int | symbols_wrap, | ||
int | symbols_size, | ||
int | offset, | ||
int | flags, | ||
void * | logctx | ||
) |
Build VLC decoding tables suitable for use with get_vlc2()
This function takes lengths and symbols and calculates the codes from them. For this the input lengths and symbols have to be sorted according to "left nodes in the corresponding tree first".
[in,out] | vlc | The VLC to be initialized; table and table_allocated must have been set when initializing a static VLC, otherwise this will be treated as uninitialized. |
[in] | nb_bits | The number of bits to use for the VLC table; higher values take up more memory and cache, but allow to read codes with fewer reads. |
[in] | nb_codes | The number of provided length and (if supplied) symbol entries. |
[in] | lens | The lengths of the codes. Entries > 0 correspond to valid codes; entries == 0 will be skipped and entries with len < 0 indicate that the tree is incomplete and has an open end of length -len at this position. |
[in] | lens_wrap | Stride (in bytes) of the lengths. |
[in] | symbols | The symbols, i.e. what is returned from get_vlc2() when the corresponding code is encountered. May be NULL, then 0, 1, 2, 3, 4,... will be used. |
[in] | symbols_wrap | Stride (in bytes) of the symbols. |
[in] | symbols_size | Size of the symbols. 1 and 2 are supported. |
[in] | offset | An offset to apply to all the valid symbols. |
[in] | flags | A combination of the INIT_VLC_* flags; notice that INIT_VLC_INPUT_LE is pointless and ignored. |
Definition at line 381 of file bitstream.c.
Referenced by atrac3_init_static_data(), atrac9_init_vlc(), build_canonical_huff(), build_huff(), build_vlc(), clv_init_static(), ff_mjpeg_build_vlc(), huff_build(), imc_init_static(), mobiclip_init_static(), mp_decode_frame(), mpc7_init_static(), mpeg4_init_static(), mpegaudiodec_common_init_static(), mss4_init_vlc(), on2avc_decode_init(), qdmc_init_static_data(), read_code_table(), rv10_build_vlc(), rv40_init_table(), rv40_init_tables(), smacker_decode_header_tree(), smka_decode_frame(), tm2_build_huff_table(), tscc2_init_vlc(), vp3_decode_init(), wma_decode_init(), and x8_init_vlc().
Definition at line 431 of file bitstream.c.
Referenced by build_huff(), build_vlc(), cfhd_close(), cook_decode_close(), decode_argb_frame(), decode_close(), decode_end(), decode_plane(), decode_plane10(), decode_rgb24_frame(), decode_rle(), decode_yuv_frame(), dnxhd_decode_close(), dnxhd_init_vlc(), ff_dvvideo_init(), ff_ivi_dec_huff_desc(), ff_ivi_decode_close(), ff_mjpeg_decode_dht(), ff_mjpeg_decode_end(), ff_wma_end(), fraps2_decode_plane(), generate_joint_tables(), hq_hqa_decode_close(), hqx_decode_close(), huf_build_dec_table(), huff_build(), image_ctx_free(), init_default_huffman_tables(), ivi_free_buffers(), jpg_free_context(), magy_decode_end(), mp_decode_frame(), on2avc_free_vlcs(), photocd_decode_close(), read_huffman_code_normal(), read_huffman_tables(), read_hufftable(), read_old_huffman_tables(), smacker_decode_header_tree(), smka_decode_frame(), tm2_free_codes(), vorbis_free(), vp3_decode_end(), vp6_build_huff_tree(), and vp6_decode_free_context().