FFmpeg
Data Fields
TwinVQContext Struct Reference

#include <twinvq.h>

Data Fields

AVCodecContextavctx
 
AVFloatDSPContextfdsp
 
FFTContext mdct_ctx [3]
 
const TwinVQModeTabmtab
 
int is_6kbps
 
float lsp_hist [2][20]
 LSP coefficients of the last frame. More...
 
float bark_hist [3][2][40]
 BSE coefficients of last frame. More...
 
int16_t permut [4][4096]
 
uint8_t length [4][2]
 main codebook stride More...
 
uint8_t length_change [4]
 
uint8_t bits_main_spec [2][4][2]
 bits for the main codebook More...
 
int bits_main_spec_change [4]
 
int n_div [4]
 
float * spectrum
 
float * curr_frame
 non-interleaved output More...
 
float * prev_frame
 non-interleaved previous frame More...
 
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)
 

Detailed Description

Definition at line 137 of file twinvq.h.

Field Documentation

AVCodecContext* TwinVQContext::avctx
AVFloatDSPContext* TwinVQContext::fdsp
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
int TwinVQContext::is_6kbps
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]
float* TwinVQContext::spectrum
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]
float* TwinVQContext::tmp_buf
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
int TwinVQContext::cur_frame
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().


The documentation for this struct was generated from the following file: