FFmpeg
|
G723.1 compatible decoder data tables. More...
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | G723_1_Subframe |
G723.1 unpacked data subframe. More... | |
struct | PPFParam |
Pitch postfilter parameters. More... | |
struct | HFParam |
Harmonic filter parameters. More... | |
struct | FCBParam |
Optimized fixed codebook excitation parameters. More... | |
Macros | |
#define | SUBFRAMES 4 |
#define | SUBFRAME_LEN 60 |
#define | FRAME_LEN (SUBFRAME_LEN << 2) |
#define | HALF_FRAME_LEN (FRAME_LEN / 2) |
#define | LPC_FRAME (HALF_FRAME_LEN + SUBFRAME_LEN) |
#define | LPC_ORDER 10 |
#define | LSP_BANDS 3 |
#define | LSP_CB_SIZE 256 |
#define | PITCH_MIN 18 |
#define | PITCH_MAX (PITCH_MIN + 127) |
#define | PITCH_ORDER 5 |
#define | GRID_SIZE 2 |
#define | PULSE_MAX 6 |
#define | GAIN_LEVELS 24 |
#define | COS_TBL_SIZE 512 |
Enumerations | |
enum | FrameType { ACTIVE_FRAME, SID_FRAME, UNTRANSMITTED_FRAME, INTRA_FRAME = 0, INTER_FRAME, SKIP_FRAME, FT_SHORT = 0, FT_MEDIUM, FT_LONG, FT_PPC } |
G723.1 frame types. More... | |
enum | Rate { RATE_6300, RATE_5300 } |
Variables | |
static const uint8_t | frame_size [4] = { 24, 20, 4, 1 } |
static const int16_t | ppf_gain_weight [2] = {0x1800, 0x2000} |
Postfilter gain weighting factors scaled by 2^15. | |
static const int16_t | dc_lsp [LPC_ORDER] |
LSP DC component. | |
static const int16_t | cos_tab [COS_TBL_SIZE+1] |
Cosine table scaled by 2^14. | |
static const int16_t | lsp_band0 [LSP_CB_SIZE][3] |
LSP VQ tables. | |
static const int16_t | lsp_band1 [LSP_CB_SIZE][3] |
static const int16_t | lsp_band2 [LSP_CB_SIZE][4] |
static const int32_t | combinatorial_table [PULSE_MAX][SUBFRAME_LEN/GRID_SIZE] |
Used for the coding/decoding of the pulses positions for the MP-MLQ codebook. | |
static const int16_t | pitch_contrib [340] |
static const int8_t | pulses [4] = {6, 5, 6, 5} |
Number of non-zero pulses in the MP-MLQ excitation. | |
static const int32_t | max_pos [4] = {593775, 142506, 593775, 142506} |
Size of the MP-MLQ fixed excitation codebooks. | |
static const int16_t | fixed_cb_gain [GAIN_LEVELS] |
static const int16_t | adaptive_cb_gain85 [85 *20] |
static const int16_t | adaptive_cb_gain170 [170 *20] |
static const int16_t | postfilter_tbl [2][LPC_ORDER] |
0.65^i (Zero part) and 0.75^i (Pole part) scaled by 2^15 | |
static const int16_t | hamming_window [LPC_FRAME] |
Hamming window coefficients scaled by 2^15. | |
static const int16_t | binomial_window [LPC_ORDER] |
Binomial window coefficients scaled by 2^15. | |
static const int16_t | bandwidth_expand [LPC_ORDER] |
0.994^i scaled by 2^15 | |
static const int16_t | percept_flt_tbl [2][LPC_ORDER] |
0.5^i scaled by 2^15 | |
static const int | cng_adaptive_cb_lag [4] = { 1, 0, 1, 3 } |
static const int | cng_filt [4] = { 273, 998, 499, 333 } |
static const int | cng_bseg [3] = { 2048, 18432, 231233 } |
G723.1 compatible decoder data tables.
Definition in file g723_1_data.h.
#define SUBFRAMES 4 |
Definition at line 33 of file g723_1_data.h.
#define SUBFRAME_LEN 60 |
Definition at line 34 of file g723_1_data.h.
Referenced by comp_interp_index(), comp_ppf_coeff(), formant_postfilter(), g723_1_decode_frame(), gain_scale(), gen_acb_excitation(), gen_dirac_train(), gen_fcb_excitation(), generate_noise(), get_residual(), and unpack_bitstream().
#define FRAME_LEN (SUBFRAME_LEN << 2) |
Definition at line 35 of file g723_1_data.h.
Referenced by autocorr_max(), comp_interp_index(), formant_postfilter(), g723_1_decode_frame(), generate_noise(), and residual_interp().
#define HALF_FRAME_LEN (FRAME_LEN / 2) |
Definition at line 36 of file g723_1_data.h.
#define LPC_FRAME (HALF_FRAME_LEN + SUBFRAME_LEN) |
Definition at line 37 of file g723_1_data.h.
#define LPC_ORDER 10 |
Definition at line 38 of file g723_1_data.h.
Referenced by adaptive_cb_search(), comp_interp_index(), comp_ppf_coeff(), ff_eval_coefs(), ff_eval_refl(), ff_int_to_int16(), ff_interp(), ff_rms(), ff_subblock_synthesis(), fixed_cb_search(), formant_postfilter(), g723_1_decode_frame(), g723_1_decode_init(), generate_noise(), get_match_score(), inverse_quant(), lsp2lpc(), lsp_interpolate(), ra144_decode_frame(), ra144_encode_frame(), ra144_encode_init(), and ra144_encode_subblock().
#define LSP_BANDS 3 |
Definition at line 39 of file g723_1_data.h.
#define LSP_CB_SIZE 256 |
Definition at line 40 of file g723_1_data.h.
#define PITCH_MIN 18 |
Definition at line 41 of file g723_1_data.h.
Referenced by ff_sipr_decode_frame_16k(), and unpack_bitstream().
#define PITCH_MAX (PITCH_MIN + 127) |
Definition at line 42 of file g723_1_data.h.
Referenced by autocorr_max(), comp_interp_index(), ff_sipr_decode_frame_16k(), g723_1_decode_frame(), generate_noise(), get_residual(), and residual_interp().
#define PITCH_ORDER 5 |
Definition at line 43 of file g723_1_data.h.
Referenced by gen_acb_excitation(), and get_residual().
#define GRID_SIZE 2 |
Definition at line 44 of file g723_1_data.h.
Referenced by gen_fcb_excitation().
#define PULSE_MAX 6 |
Definition at line 45 of file g723_1_data.h.
Referenced by gen_fcb_excitation().
#define GAIN_LEVELS 24 |
Definition at line 46 of file g723_1_data.h.
Referenced by unpack_bitstream().
#define COS_TBL_SIZE 512 |
Definition at line 47 of file g723_1_data.h.
enum FrameType |
G723.1 frame types.
Definition at line 52 of file g723_1_data.h.
enum Rate |
Definition at line 60 of file g723_1_data.h.
|
static |
Definition at line 58 of file g723_1_data.h.
Referenced by alac_entropy_coder(), alac_linear_predictor(), amr_handle_packet(), av_buffersink_set_frame_size(), avpriv_mpegaudio_decode_header(), build_feed_streams(), build_frame_code(), celt_header(), compute_pkt_fields2(), CustomSource::CustomSource(), decode_frame(), decode_packet(), dfa_read_packet(), do_video_out(), encode_frame(), escape124_decode_frame(), ff_compute_frame_duration(), ff_get_audio_frame_size(), ff_psy_preprocess(), ff_sipr_decode_frame_16k(), ff_vbv_update(), find_expected_header(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), g723_1_decode_frame(), get_audio_frame(), libopus_encode_init(), lmlm4_read_packet(), mp3_header_decompress(), mpegaudio_parse(), msrle_decode_pal4(), mxf_parse_dnxhd_frame(), mxf_parse_dv_frame(), mxf_write_d10_audio_packet(), new_subtitle_stream(), new_video_stream(), opus_packet(), prores_encode_frame(), qdm2_decode(), read_packet(), return_stored_frame(), rpl_read_packet(), rtp_send_ilbc(), rtp_write_header(), s302m_decode_frame(), s302m_parse_frame_header(), sdl_audio_callback(), smacker_read_packet(), source_init(), store_packet(), str_probe(), str_read_packet(), swf_write_video(), vc1t_read_packet(), wavpack_decode_frame(), xan_wc3_copy_pixel_run(), xan_wc3_output_pixel_run(), and xmv_fetch_video_packet().
|
static |
Postfilter gain weighting factors scaled by 2^15.
Definition at line 110 of file g723_1_data.h.
Referenced by comp_ppf_gains().
|
static |
LSP DC component.
Definition at line 115 of file g723_1_data.h.
Referenced by g723_1_decode_init(), and inverse_quant().
|
static |
Cosine table scaled by 2^14.
Definition at line 131 of file g723_1_data.h.
Referenced by eval_lpcenv_or_interp(), and lsp2lpc().
|
static |
|
static |
Definition at line 291 of file g723_1_data.h.
Referenced by inverse_quant().
|
static |
Definition at line 380 of file g723_1_data.h.
Referenced by inverse_quant().
|
static |
Used for the coding/decoding of the pulses positions for the MP-MLQ codebook.
Definition at line 515 of file g723_1_data.h.
Referenced by gen_fcb_excitation().
|
static |
Definition at line 559 of file g723_1_data.h.
Referenced by gen_fcb_excitation().
|
static |
Number of non-zero pulses in the MP-MLQ excitation.
Definition at line 608 of file g723_1_data.h.
Referenced by gen_fcb_excitation(), generate_noise(), and synth_block_fcb_acb().
|
static |
Size of the MP-MLQ fixed excitation codebooks.
Definition at line 613 of file g723_1_data.h.
Referenced by gen_fcb_excitation().
|
static |
Definition at line 615 of file g723_1_data.h.
Referenced by g723_1_decode_frame(), and gen_fcb_excitation().
|
static |
Definition at line 621 of file g723_1_data.h.
Referenced by gen_acb_excitation().
|
static |
Definition at line 837 of file g723_1_data.h.
Referenced by gen_acb_excitation().
|
static |
0.65^i (Zero part) and 0.75^i (Pole part) scaled by 2^15
Definition at line 1268 of file g723_1_data.h.
Referenced by formant_postfilter().
|
static |
Hamming window coefficients scaled by 2^15.
Definition at line 1278 of file g723_1_data.h.
|
static |
Binomial window coefficients scaled by 2^15.
Definition at line 1302 of file g723_1_data.h.
|
static |
0.994^i scaled by 2^15
Definition at line 1309 of file g723_1_data.h.
|
static |
0.5^i scaled by 2^15
Definition at line 1316 of file g723_1_data.h.
|
static |
Definition at line 1323 of file g723_1_data.h.
Referenced by generate_noise().
|
static |
Definition at line 1325 of file g723_1_data.h.
Referenced by estimate_sid_gain().
|
static |
Definition at line 1327 of file g723_1_data.h.
Referenced by estimate_sid_gain().