#include <stdint.h>
#include "get_bits.h"
#include "put_bits.h"
Go to the source code of this file.
Defines | |
#define | INVALID_VLC 0x80000000 |
Functions | |
static int | get_ue_golomb (GetBitContext *gb) |
read unsigned exp golomb code. | |
static int | get_ue_golomb_31 (GetBitContext *gb) |
read unsigned exp golomb code, constraint to a max of 31. | |
static int | svq3_get_ue_golomb (GetBitContext *gb) |
static int | get_te0_golomb (GetBitContext *gb, int range) |
read unsigned truncated exp golomb code. | |
static int | get_te_golomb (GetBitContext *gb, int range) |
read unsigned truncated exp golomb code. | |
static int | get_se_golomb (GetBitContext *gb) |
read signed exp golomb code. | |
static int | svq3_get_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). | |
static int | get_ur_golomb_jpegls (GetBitContext *gb, int k, int limit, int esc_len) |
read unsigned golomb rice code (jpegls). | |
static int | get_sr_golomb (GetBitContext *gb, int k, int limit, int esc_len) |
read signed golomb rice code (ffv1). | |
static int | get_sr_golomb_flac (GetBitContext *gb, int k, int limit, int esc_len) |
read signed golomb rice code (flac). | |
static unsigned int | get_ur_golomb_shorten (GetBitContext *gb, int k) |
read unsigned golomb rice code (shorten). | |
static int | get_sr_golomb_shorten (GetBitContext *gb, int k) |
read signed golomb rice code (shorten). | |
static void | set_ue_golomb (PutBitContext *pb, int i) |
write unsigned exp golomb code. | |
static void | set_te_golomb (PutBitContext *pb, int i, int range) |
write truncated unsigned exp golomb code. | |
static void | set_se_golomb (PutBitContext *pb, int i) |
write signed exp golomb code. | |
static void | set_ur_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write unsigned golomb rice code (ffv1). | |
static void | set_ur_golomb_jpegls (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write unsigned golomb rice code (jpegls). | |
static void | set_sr_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write signed golomb rice code (ffv1). | |
static void | set_sr_golomb_flac (PutBitContext *pb, int i, int k, int limit, int esc_len) |
write signed golomb rice code (flac). | |
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] |
Definition in file golomb.h.
#define INVALID_VLC 0x80000000 |
Definition at line 37 of file golomb.h.
Referenced by svq3_decode_block(), svq3_decode_slice_header(), svq3_get_se_golomb(), and svq3_mc_dir().
static int dirac_get_se_golomb | ( | GetBitContext * | gb | ) | [inline, static] |
static int get_se_golomb | ( | GetBitContext * | gb | ) | [inline, static] |
read signed exp golomb code.
Definition at line 156 of file golomb.h.
Referenced by decode_mb_i(), decode_pic(), decode_residual_inter(), decode_scaling_list(), decode_slice_header(), ff_cavs_mv(), ff_h264_decode_mb_cavlc(), ff_h264_decode_picture_parameter_set(), ff_h264_decode_seq_parameter_set(), intlist_read(), and pred_weight_table().
static int get_sr_golomb | ( | GetBitContext * | gb, | |
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
read signed golomb rice code (ffv1).
Definition at line 320 of file golomb.h.
Referenced by get_vlc_symbol().
static int get_sr_golomb_flac | ( | GetBitContext * | gb, | |
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
read signed golomb rice code (flac).
Definition at line 333 of file golomb.h.
Referenced by decode_residuals().
static int get_sr_golomb_shorten | ( | GetBitContext * | gb, | |
int | k | |||
) | [inline, static] |
read signed golomb rice code (shorten).
Definition at line 348 of file golomb.h.
Referenced by decode_subframe_lpc(), and shorten_decode_frame().
static int get_te0_golomb | ( | GetBitContext * | gb, | |
int | range | |||
) | [inline, static] |
static int get_te_golomb | ( | GetBitContext * | gb, | |
int | range | |||
) | [inline, static] |
static int get_ue_golomb | ( | GetBitContext * | gb | ) | [inline, static] |
read unsigned exp golomb code.
Definition at line 53 of file golomb.h.
Referenced by decode_hrd_parameters(), decode_mb_i(), decode_pic(), decode_recovery_point(), decode_residual_inter(), decode_slice_header(), 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(), get_te0_golomb(), get_te_golomb(), get_ue_code(), parse_nal_units(), and pred_weight_table().
static int get_ue_golomb_31 | ( | GetBitContext * | gb | ) | [inline, static] |
read unsigned exp golomb code, constraint to a max of 31.
the return value is undefined if the stored value exceeds 31.
Definition at line 82 of file golomb.h.
Referenced by decode_buffering_period(), decode_hrd_parameters(), decode_slice_header(), 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(), and parse_nal_units().
static int get_ur_golomb | ( | GetBitContext * | gb, | |
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
read unsigned golomb rice code (ffv1).
Definition at line 238 of file golomb.h.
Referenced by get_sr_golomb().
static int get_ur_golomb_jpegls | ( | GetBitContext * | gb, | |
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
read unsigned golomb rice code (jpegls).
Definition at line 271 of file golomb.h.
Referenced by get_sr_golomb_flac(), get_sr_golomb_shorten(), get_ur_golomb_shorten(), loco_get_rice(), ls_get_code_regular(), and ls_get_code_runterm().
static unsigned int get_ur_golomb_shorten | ( | GetBitContext * | gb, | |
int | k | |||
) | [inline, static] |
read unsigned golomb rice code (shorten).
Definition at line 341 of file golomb.h.
Referenced by get_uint(), and shorten_decode_frame().
static void set_se_golomb | ( | PutBitContext * | pb, | |
int | i | |||
) | [inline, static] |
write signed exp golomb code.
16 bits at most.
Definition at line 447 of file golomb.h.
Referenced by intlist_write().
static void set_sr_golomb | ( | PutBitContext * | pb, | |
int | i, | |||
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
write signed golomb rice code (ffv1).
Definition at line 509 of file golomb.h.
Referenced by put_vlc_symbol().
static void set_sr_golomb_flac | ( | PutBitContext * | pb, | |
int | i, | |||
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
write signed golomb rice code (flac).
Definition at line 521 of file golomb.h.
Referenced by output_residual().
static void set_te_golomb | ( | PutBitContext * | pb, | |
int | i, | |||
int | range | |||
) | [inline, static] |
static void set_ue_golomb | ( | PutBitContext * | pb, | |
int | i | |||
) | [inline, static] |
write unsigned exp golomb code.
Definition at line 413 of file golomb.h.
Referenced by set_se_golomb(), and set_te_golomb().
static void set_ur_golomb | ( | PutBitContext * | pb, | |
int | i, | |||
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
write unsigned golomb rice code (ffv1).
Definition at line 466 of file golomb.h.
Referenced by set_sr_golomb().
static void set_ur_golomb_jpegls | ( | PutBitContext * | pb, | |
int | i, | |||
int | k, | |||
int | limit, | |||
int | esc_len | |||
) | [inline, static] |
write unsigned golomb rice code (jpegls).
Definition at line 482 of file golomb.h.
Referenced by ls_encode_regular(), ls_encode_runterm(), and set_sr_golomb_flac().
static int svq3_get_se_golomb | ( | GetBitContext * | gb | ) | [inline, static] |
Definition at line 184 of file golomb.h.
Referenced by rv34_decode_mv(), svq3_decode_mb(), and svq3_mc_dir().
static int svq3_get_ue_golomb | ( | GetBitContext * | gb | ) | [inline, static] |
Definition at line 96 of file golomb.h.
Referenced by dirac_get_se_golomb(), ff_dirac_parse_sequence_header(), parse_source_parameters(), rv30_decode_intra_types(), rv30_decode_mb_info(), rv40_decode_mb_info(), svq3_decode_block(), svq3_decode_frame(), svq3_decode_init(), svq3_decode_mb(), and svq3_decode_slice_header().
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_interleaved_dirac_golomb_vlc_code[256] |
const uint8_t ff_interleaved_golomb_vlc_len[256] |
Definition at line 100 of file golomb.c.
Referenced by svq3_get_se_golomb(), and svq3_get_ue_golomb().
const int8_t ff_interleaved_se_golomb_vlc_code[256] |
const uint8_t ff_interleaved_ue_golomb_vlc_code[256] |
const int8_t ff_se_golomb_vlc_code[512] |
const uint8_t ff_ue_golomb_len[256] |
const uint8_t ff_ue_golomb_vlc_code[512] |