FFmpeg
|
#include <twinvq.h>
Data Fields | |
AVCodecContext * | avctx |
AVFloatDSPContext | fdsp |
FFTContext | mdct_ctx [3] |
const TwinVQModeTab * | mtab |
int | is_6kbps |
float | lsp_hist [2][20] |
LSP coefficients of the last frame. | |
float | bark_hist [3][2][40] |
BSE coefficients of last frame. | |
int16_t | permut [4][4096] |
uint8_t | length [4][2] |
main codebook stride | |
uint8_t | length_change [4] |
uint8_t | bits_main_spec [2][4][2] |
bits for the main codebook | |
int | bits_main_spec_change [4] |
int | n_div [4] |
float * | spectrum |
float * | curr_frame |
non-interleaved output | |
float * | prev_frame |
non-interleaved previous frame | |
int | last_block_pos [2] |
int | discarded_packets |
float * | cos_tabs [3] |
float * | tmp_buf |
int | frame_size |
int | frames_per_packet |
int | cur_frame |
TwinVQFrameData | bits [TWINVQ_MAX_FRAMES_PER_PACKET] |
enum TwinVQCodec | codec |
int(* | read_bitstream )(AVCodecContext *avctx, struct TwinVQContext *tctx, const uint8_t *buf, int buf_size) |
void(* | dec_bark_env )(struct TwinVQContext *tctx, const uint8_t *in, int use_hist, int ch, float *out, float gain, enum TwinVQFrameType ftype) |
void(* | decode_ppc )(struct TwinVQContext *tctx, int period_coef, int g_coef, const float *shape, float *speech) |
AVCodecContext* TwinVQContext::avctx |
Definition at line 138 of file twinvq.h.
Referenced by construct_perm_table(), dec_bark_env(), dec_gain(), decode_ppc(), ff_twinvq_decode_init(), imdct_output(), init_bitstream_params(), init_mdct_win(), metasound_read_bitstream(), read_and_decode_spectrum(), and twinvq_read_bitstream().
AVFloatDSPContext TwinVQContext::fdsp |
Definition at line 139 of file twinvq.h.
Referenced by ff_twinvq_decode_init(), imdct_and_window(), imdct_output(), and read_and_decode_spectrum().
FFTContext TwinVQContext::mdct_ctx[3] |
Definition at line 140 of file twinvq.h.
Referenced by ff_twinvq_decode_close(), imdct_and_window(), and init_mdct_win().
const TwinVQModeTab* TwinVQContext::mtab |
Definition at line 142 of file twinvq.h.
Referenced by construct_perm_table(), dec_bark_env(), dec_gain(), dec_lpc_spectrum_inv(), decode_lsp(), decode_ppc(), eval_lpcenv(), eval_lpcenv_or_interp(), ff_twinvq_decode_frame(), imdct_and_window(), imdct_output(), init_bitstream_params(), init_mdct_win(), metasound_decode_init(), metasound_read_bitstream(), read_and_decode_spectrum(), twinvq_decode_init(), and twinvq_read_bitstream().
int TwinVQContext::is_6kbps |
Definition at line 144 of file twinvq.h.
Referenced by init_bitstream_params(), metasound_decode_init(), metasound_read_bitstream(), and twinvq_decode_init().
float TwinVQContext::lsp_hist[2][20] |
LSP coefficients of the last frame.
Definition at line 147 of file twinvq.h.
Referenced by read_and_decode_spectrum().
float TwinVQContext::bark_hist[3][2][40] |
BSE coefficients of last frame.
Definition at line 148 of file twinvq.h.
Referenced by dec_bark_env(), and ff_twinvq_decode_init().
int16_t TwinVQContext::permut[4][4096] |
Definition at line 151 of file twinvq.h.
Referenced by construct_perm_table(), and dequant().
uint8_t TwinVQContext::length[4][2] |
main codebook stride
Definition at line 152 of file twinvq.h.
Referenced by construct_perm_table(), dequant(), and init_bitstream_params().
uint8_t TwinVQContext::length_change[4] |
Definition at line 153 of file twinvq.h.
Referenced by construct_perm_table(), dequant(), and init_bitstream_params().
uint8_t TwinVQContext::bits_main_spec[2][4][2] |
bits for the main codebook
Definition at line 154 of file twinvq.h.
Referenced by dequant(), init_bitstream_params(), and read_cb_data().
int TwinVQContext::bits_main_spec_change[4] |
Definition at line 155 of file twinvq.h.
Referenced by dequant(), init_bitstream_params(), and read_cb_data().
int TwinVQContext::n_div[4] |
Definition at line 156 of file twinvq.h.
Referenced by construct_perm_table(), dequant(), init_bitstream_params(), read_and_decode_spectrum(), and read_cb_data().
float* TwinVQContext::spectrum |
Definition at line 158 of file twinvq.h.
Referenced by ff_twinvq_decode_close(), ff_twinvq_decode_frame(), imdct_output(), and init_mdct_win().
float* TwinVQContext::curr_frame |
non-interleaved output
Definition at line 159 of file twinvq.h.
Referenced by ff_twinvq_decode_close(), ff_twinvq_decode_frame(), imdct_and_window(), imdct_output(), and init_mdct_win().
float* TwinVQContext::prev_frame |
non-interleaved previous frame
Definition at line 160 of file twinvq.h.
Referenced by ff_twinvq_decode_close(), ff_twinvq_decode_frame(), imdct_output(), and init_mdct_win().
int TwinVQContext::last_block_pos[2] |
Definition at line 161 of file twinvq.h.
Referenced by imdct_and_window(), and imdct_output().
int TwinVQContext::discarded_packets |
Definition at line 162 of file twinvq.h.
Referenced by ff_twinvq_decode_frame().
float* TwinVQContext::cos_tabs[3] |
Definition at line 164 of file twinvq.h.
Referenced by eval_lpcenv(), eval_lpcenv_or_interp(), ff_twinvq_decode_close(), and init_mdct_win().
float* TwinVQContext::tmp_buf |
Definition at line 167 of file twinvq.h.
Referenced by construct_perm_table(), ff_twinvq_decode_close(), imdct_and_window(), init_mdct_win(), and read_and_decode_spectrum().
int TwinVQContext::frame_size |
Definition at line 169 of file twinvq.h.
Referenced by ff_twinvq_decode_init(), metasound_decode_init(), and twinvq_decode_init().
int TwinVQContext::frames_per_packet |
Definition at line 169 of file twinvq.h.
Referenced by ff_twinvq_decode_frame(), ff_twinvq_decode_init(), and metasound_read_bitstream().
int TwinVQContext::cur_frame |
Definition at line 169 of file twinvq.h.
Referenced by dec_gain(), ff_twinvq_decode_frame(), metasound_read_bitstream(), and read_and_decode_spectrum().
TwinVQFrameData TwinVQContext::bits[TWINVQ_MAX_FRAMES_PER_PACKET] |
Definition at line 170 of file twinvq.h.
Referenced by dec_gain(), ff_twinvq_decode_frame(), metasound_read_bitstream(), read_and_decode_spectrum(), and twinvq_read_bitstream().
enum TwinVQCodec TwinVQContext::codec |
Definition at line 172 of file twinvq.h.
Referenced by init_bitstream_params(), metasound_decode_init(), and twinvq_decode_init().
int(* TwinVQContext::read_bitstream)(AVCodecContext *avctx, struct TwinVQContext *tctx, const uint8_t *buf, int buf_size) |
Definition at line 174 of file twinvq.h.
Referenced by ff_twinvq_decode_frame(), metasound_decode_init(), and twinvq_decode_init().
void(* TwinVQContext::dec_bark_env)(struct TwinVQContext *tctx, const uint8_t *in, int use_hist, int ch, float *out, float gain, enum TwinVQFrameType ftype) |
Definition at line 176 of file twinvq.h.
Referenced by metasound_decode_init(), read_and_decode_spectrum(), and twinvq_decode_init().
void(* TwinVQContext::decode_ppc)(struct TwinVQContext *tctx, int period_coef, int g_coef, const float *shape, float *speech) |
Definition at line 179 of file twinvq.h.
Referenced by metasound_decode_init(), read_and_decode_spectrum(), and twinvq_decode_init().