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

◆ avctx

AVCodecContext* TwinVQContext::avctx

◆ fdsp

AVFloatDSPContext* TwinVQContext::fdsp

◆ mdct_ctx

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().

◆ mtab

const TwinVQModeTab* TwinVQContext::mtab

◆ is_6kbps

int TwinVQContext::is_6kbps

◆ lsp_hist

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().

◆ bark_hist

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().

◆ permut

int16_t TwinVQContext::permut[4][4096]

Definition at line 151 of file twinvq.h.

Referenced by construct_perm_table(), and dequant().

◆ length

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().

◆ length_change

uint8_t TwinVQContext::length_change[4]

Definition at line 153 of file twinvq.h.

Referenced by construct_perm_table(), dequant(), and init_bitstream_params().

◆ bits_main_spec

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().

◆ bits_main_spec_change

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().

◆ n_div

int TwinVQContext::n_div[4]

◆ spectrum

float* TwinVQContext::spectrum

◆ curr_frame

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().

◆ prev_frame

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().

◆ last_block_pos

int TwinVQContext::last_block_pos[2]

Definition at line 161 of file twinvq.h.

Referenced by imdct_and_window(), and imdct_output().

◆ discarded_packets

int TwinVQContext::discarded_packets

Definition at line 162 of file twinvq.h.

Referenced by ff_twinvq_decode_frame().

◆ cos_tabs

float* TwinVQContext::cos_tabs[3]

◆ tmp_buf

float* TwinVQContext::tmp_buf

◆ frame_size

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().

◆ frames_per_packet

int TwinVQContext::frames_per_packet

◆ cur_frame

int TwinVQContext::cur_frame

◆ bits

◆ codec

enum TwinVQCodec TwinVQContext::codec

Definition at line 172 of file twinvq.h.

Referenced by init_bitstream_params(), metasound_decode_init(), and twinvq_decode_init().

◆ read_bitstream

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().

◆ dec_bark_env

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().

◆ decode_ppc

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: