FFmpeg
|
exp golomb vlc stuff More...
Go to the source code of this file.
Macros | |
#define | INVALID_VLC 0x80000000 |
Functions | |
static int | get_ue_golomb (GetBitContext *gb) |
Read an unsigned Exp-Golomb code in the range 0 to 8190. More... | |
static unsigned | get_ue_golomb_long (GetBitContext *gb) |
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1. More... | |
static int | get_ue_golomb_31 (GetBitContext *gb) |
read unsigned exp golomb code, constraint to a max of 31. More... | |
static unsigned | get_interleaved_ue_golomb (GetBitContext *gb) |
static int | get_te0_golomb (GetBitContext *gb, int range) |
read unsigned truncated exp golomb code. More... | |
static int | get_te_golomb (GetBitContext *gb, int range) |
read unsigned truncated exp golomb code. More... | |
static int | get_se_golomb (GetBitContext *gb) |
read signed exp golomb code. More... | |
static int | get_se_golomb_long (GetBitContext *gb) |
static int | get_interleaved_se_golomb (GetBitContext *gb) |
static int | dirac_get_se_golomb (GetBitContext *gb) |
static int | get_ur_golomb (GetBitContext *gb, int k, int limit, int esc_len) |
read unsigned golomb rice code (ffv1). More... | |
static int | get_ur_golomb_jpegls (GetBitContext *gb, int k, int limit, int esc_len) |
read unsigned golomb rice code (jpegls). More... | |
static int | get_sr_golomb (GetBitContext *gb, int k, int limit, int esc_len) |
read signed golomb rice code (ffv1). More... | |
static int | get_sr_golomb_flac (GetBitContext *gb, int k, int limit, int esc_len) |
read signed golomb rice code (flac). More... | |
static unsigned int | get_ur_golomb_shorten (GetBitContext *gb, int k) |
read unsigned golomb rice code (shorten). More... | |
static int | get_sr_golomb_shorten (GetBitContext *gb, int k) |
read signed golomb rice code (shorten). More... | |
static void | set_ue_golomb (PutBitContext *pb, int i) |
write unsigned exp golomb code. More... | |
static void | set_ue_golomb_long (PutBitContext *pb, uint32_t i) |
write unsigned exp golomb code. More... | |
static void | set_te_golomb (PutBitContext *pb, int i, int range) |
write truncated unsigned exp golomb code. More... | |
static void | set_se_golomb (PutBitContext *pb, int i) |
write signed exp golomb code. More... | |
static void | set_ur_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write unsigned golomb rice code (ffv1). More... | |
static void | set_ur_golomb_jpegls (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write unsigned golomb rice code (jpegls). More... | |
static void | set_sr_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write signed golomb rice code (ffv1). More... | |
static void | set_sr_golomb_flac (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write signed golomb rice code (flac). More... | |
Variables | |
const uint8_t | ff_golomb_vlc_len [512] |
const uint8_t | ff_ue_golomb_vlc_code [512] |
const int8_t | ff_se_golomb_vlc_code [512] |
const uint8_t | ff_ue_golomb_len [256] |
const uint8_t | ff_interleaved_golomb_vlc_len [256] |
const uint8_t | ff_interleaved_ue_golomb_vlc_code [256] |
const int8_t | ff_interleaved_se_golomb_vlc_code [256] |
const uint8_t | ff_interleaved_dirac_golomb_vlc_code [256] |
exp golomb vlc stuff
Definition in file golomb.h.
|
inlinestatic |
Read an unsigned Exp-Golomb code in the range 0 to 8190.
Definition at line 55 of file golomb.h.
Referenced by decode_macroblock(), decode_mb_i(), decode_pic(), decode_residual_inter(), extend_code(), ff_h264_decode_mb_cavlc(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), ff_h264_parse_ref_count(), ff_hevc_decode_nal_pps(), get_te0_golomb(), get_te_golomb(), get_ue_code(), h264_slice_header_parse(), hevc_parse_slice_header(), main(), mobiclip_decode(), parse_nal_units(), and scan_mmco_reset().
|
inlinestatic |
Read an unsigned Exp-Golomb code in the range 0 to UINT32_MAX-1.
Definition at line 106 of file golomb.h.
Referenced by decode_display_orientation(), decode_frame_packing_arrangement(), decode_hrd(), decode_hrd_parameters(), decode_lt_rps(), decode_nal_sei_active_parameter_sets(), decode_nal_sei_frame_packing_arrangement(), decode_recovery_point(), decode_sublayer_hrd(), decode_vui(), ff_h264_decode_mb_cavlc(), ff_h264_decode_ref_pic_list_reordering(), ff_h264_decode_ref_pic_marking(), ff_hevc_decode_nal_pps(), ff_hevc_decode_nal_vps(), ff_hevc_decode_short_term_rps(), ff_hevc_parse_sps(), get_last_needed_nal(), get_se_golomb_long(), h264_find_frame_end(), h264_probe(), h264_slice_header_parse(), hls_slice_header(), hvcc_parse_pps(), hvcc_parse_sps(), hvcc_parse_vui(), main(), mxf_parse_h264_frame(), parse_nal_units(), parse_rps(), pps_range_extensions(), pred_weight_table(), scaling_list_data(), scan_mmco_reset(), skip_hrd_parameters(), skip_scaling_list_data(), skip_sub_layer_hrd_parameters(), skip_sub_layer_ordering_info(), and skip_timing_info().
|
inlinestatic |
read unsigned exp golomb code, constraint to a max of 31.
If the value encountered is not in 0..31, the return value is outside the range 0..30.
Definition at line 122 of file golomb.h.
Referenced by add_pframe_coefficients(), decode_buffering_period(), decode_hrd_parameters(), decode_mb_i(), decode_vui_parameters(), ff_h264_decode_mb_cavlc(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_ref_pic_list_reordering(), ff_h264_decode_ref_pic_marking(), ff_h264_decode_seq_parameter_set(), ff_h264_pred_weight_table(), h264_slice_header_parse(), hevc_parse_slice_header(), mxf_parse_h264_frame(), parse_nal_units(), process_block(), and scan_mmco_reset().
|
inlinestatic |
Definition at line 145 of file golomb.h.
Referenced by decode_component(), dirac_get_se_golomb(), dirac_unpack_block_motion_data(), dirac_unpack_idwt_params(), dirac_unpack_prediction_parameters(), rv30_decode_intra_types(), rv30_decode_mb_info(), rv40_decode_mb_info(), send_picture(), svq3_decode_block(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), and svq3_decode_slice_header().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
read signed exp golomb code.
Definition at line 241 of file golomb.h.
Referenced by decode_mb_i(), decode_pic(), decode_residual_inter(), decode_scaling_list(), ff_cavs_mv(), ff_h264_decode_mb_cavlc(), ff_h264_decode_picture_parameter_set(), ff_h264_pred_weight_table(), ff_hevc_decode_nal_pps(), fic_decode_block(), h264_slice_header_parse(), hls_slice_header(), main(), mobiclip_decode(), parse_nal_units(), pred_weight_table(), predict_intra(), predict_motion(), and scaling_list_data().
|
inlinestatic |
Definition at line 296 of file golomb.h.
Referenced by ff_h264_decode_seq_parameter_set(), hvcc_parse_pps(), pps_range_extensions(), and skip_scaling_list_data().
|
inlinestatic |
Definition at line 303 of file golomb.h.
Referenced by rv34_decode_mv(), svq3_decode_mb(), and svq3_mc_dir().
|
inlinestatic |
Definition at line 361 of file golomb.h.
Referenced by codeblock(), coeff_unpack_golomb(), dirac_decode_picture_header(), and dirac_unpack_prediction_parameters().
|
inlinestatic |
read unsigned golomb rice code (ffv1).
Definition at line 376 of file golomb.h.
Referenced by get_sr_golomb().
|
inlinestatic |
read unsigned golomb rice code (jpegls).
Definition at line 430 of file golomb.h.
Referenced by get_sr_golomb_dst(), get_sr_golomb_flac(), get_sr_golomb_shorten(), get_ur_golomb_shorten(), loco_get_rice(), ls_get_code_regular(), and ls_get_code_runterm().
|
inlinestatic |
read signed golomb rice code (ffv1).
Definition at line 531 of file golomb.h.
Referenced by get_vlc_symbol().
|
inlinestatic |
read signed golomb rice code (flac).
Definition at line 541 of file golomb.h.
Referenced by decode_residuals().
|
inlinestatic |
read unsigned golomb rice code (shorten).
Definition at line 551 of file golomb.h.
Referenced by decode_subframe_lpc(), get_uint(), read_header(), shn_probe(), and shorten_decode_frame().
|
inlinestatic |
read signed golomb rice code (shorten).
Definition at line 559 of file golomb.h.
Referenced by decode_subframe_lpc().
|
inlinestatic |
write unsigned exp golomb code.
2^16 - 2 at most
Definition at line 622 of file golomb.h.
Referenced by ff_hevc_encode_nal_vps(), main(), set_se_golomb(), and set_te_golomb().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
write unsigned golomb rice code (ffv1).
Definition at line 678 of file golomb.h.
Referenced by set_sr_golomb().
|
inlinestatic |
write unsigned golomb rice code (jpegls).
Definition at line 695 of file golomb.h.
Referenced by ls_encode_regular(), ls_encode_runterm(), and set_sr_golomb_flac().
|
inlinestatic |
write signed golomb rice code (ffv1).
Definition at line 724 of file golomb.h.
Referenced by put_vlc_symbol().
|
inlinestatic |
write signed golomb rice code (flac).
Definition at line 738 of file golomb.h.
Referenced by write_subframes().
const uint8_t ff_golomb_vlc_len[512] |
Definition at line 31 of file golomb.c.
Referenced by get_se_golomb(), get_ue_golomb(), and get_ue_golomb_31().
const uint8_t ff_ue_golomb_vlc_code[512] |
Definition at line 50 of file golomb.c.
Referenced by get_ue_golomb(), and get_ue_golomb_31().
const int8_t ff_se_golomb_vlc_code[512] |
Definition at line 69 of file golomb.c.
Referenced by get_se_golomb().
const uint8_t ff_ue_golomb_len[256] |
Definition at line 89 of file golomb.c.
Referenced by set_ue_golomb(), and set_ue_golomb_long().
const uint8_t ff_interleaved_golomb_vlc_len[256] |
Definition at line 100 of file golomb.c.
Referenced by get_interleaved_se_golomb(), and get_interleaved_ue_golomb().
const uint8_t ff_interleaved_ue_golomb_vlc_code[256] |
Definition at line 119 of file golomb.c.
Referenced by get_interleaved_ue_golomb().
const int8_t ff_interleaved_se_golomb_vlc_code[256] |
Definition at line 138 of file golomb.c.
Referenced by get_interleaved_se_golomb().
const uint8_t ff_interleaved_dirac_golomb_vlc_code[256] |
Definition at line 157 of file golomb.c.
Referenced by get_interleaved_ue_golomb().