FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
WMACodecContext Struct Reference

#include <wma.h>

Data Fields

AVCodecContextavctx
 
GetBitContext gb
 
PutBitContext pb
 
int version
 1 = 0x160 (WMAV1), 2 = 0x161 (WMAV2)
 
int use_bit_reservoir
 
int use_variable_block_len
 
int use_exp_vlc
 exponent coding: 0 = lsp, 1 = vlc + delta
 
int use_noise_coding
 true if perceptual noise is added
 
int byte_offset_bits
 
VLC exp_vlc
 
int exponent_sizes [BLOCK_NB_SIZES]
 
uint16_t exponent_bands [BLOCK_NB_SIZES][25]
 
int high_band_start [BLOCK_NB_SIZES]
 index of first coef in high band
 
int coefs_start
 first coded coef
 
int coefs_end [BLOCK_NB_SIZES]
 max number of coded coefficients
 
int exponent_high_sizes [BLOCK_NB_SIZES]
 
int exponent_high_bands [BLOCK_NB_SIZES][HIGH_BAND_MAX_SIZE]
 
VLC hgain_vlc
 
int high_band_coded [MAX_CHANNELS][HIGH_BAND_MAX_SIZE]
 
int high_band_values [MAX_CHANNELS][HIGH_BAND_MAX_SIZE]
 
VLC coef_vlc [2]
 
uint16_t * run_table [2]
 
float * level_table [2]
 
uint16_t * int_table [2]
 
const CoefVLCTablecoef_vlcs [2]
 
int frame_len
 frame length in samples
 
int frame_len_bits
 frame_len = 1 << frame_len_bits
 
int nb_block_sizes
 number of block sizes
 
int reset_block_lengths
 
int block_len_bits
 log2 of current block length
 
int next_block_len_bits
 log2 of next block length
 
int prev_block_len_bits
 log2 of prev block length
 
int block_len
 block length in samples
 
int block_num
 block number in current frame
 
int block_pos
 current position in frame
 
uint8_t ms_stereo
 true if mid/side stereo mode
 
uint8_t channel_coded [MAX_CHANNELS]
 true if channel is coded
 
int exponents_bsize [MAX_CHANNELS]
 log2 ratio frame/exp. length
 
float exponents [MAX_CHANNELS][BLOCK_MAX_SIZE]
 
float max_exponent [MAX_CHANNELS]
 
WMACoef coefs1 [MAX_CHANNELS][BLOCK_MAX_SIZE]
 
float coefs [MAX_CHANNELS][BLOCK_MAX_SIZE]
 
FFTSample output [BLOCK_MAX_SIZE *2]
 
FFTContext mdct_ctx [BLOCK_NB_SIZES]
 
float * windows [BLOCK_NB_SIZES]
 
float frame_out [MAX_CHANNELS][BLOCK_MAX_SIZE *2]
 
uint8_t last_superframe [MAX_CODED_SUPERFRAME_SIZE+FF_INPUT_BUFFER_PADDING_SIZE]
 
int last_bitoffset
 
int last_superframe_len
 
float noise_table [NOISE_TAB_SIZE]
 
int noise_index
 
float noise_mult
 
float lsp_cos_table [BLOCK_MAX_SIZE]
 
float lsp_pow_e_table [256]
 
float lsp_pow_m_table1 [(1<< LSP_POW_BITS)]
 
float lsp_pow_m_table2 [(1<< LSP_POW_BITS)]
 
FmtConvertContext fmt_conv
 
AVFloatDSPContext fdsp
 

Detailed Description

Definition at line 66 of file wma.h.

Field Documentation

AVCodecContext* WMACodecContext::avctx
GetBitContext WMACodecContext::gb

Definition at line 68 of file wma.h.

Referenced by decode_exp_lsp(), decode_exp_vlc(), wma_decode_block(), and wma_decode_superframe().

PutBitContext WMACodecContext::pb

Definition at line 69 of file wma.h.

Referenced by encode_block(), encode_exp_vlc(), encode_frame(), and encode_superframe().

int WMACodecContext::version

1 = 0x160 (WMAV1), 2 = 0x161 (WMAV2)

Definition at line 70 of file wma.h.

Referenced by decode_exp_vlc(), encode_block(), encode_exp_vlc(), ff_wma_init(), and wma_decode_block().

int WMACodecContext::use_bit_reservoir

Definition at line 71 of file wma.h.

Referenced by encode_frame(), encode_init(), wma_decode_init(), and wma_decode_superframe().

int WMACodecContext::use_variable_block_len

Definition at line 72 of file wma.h.

Referenced by encode_block(), encode_init(), ff_wma_init(), wma_decode_block(), and wma_decode_init().

int WMACodecContext::use_exp_vlc

exponent coding: 0 = lsp, 1 = vlc + delta

Definition at line 73 of file wma.h.

Referenced by encode_block(), encode_init(), ff_wma_end(), ff_wma_init(), wma_decode_block(), and wma_decode_init().

int WMACodecContext::use_noise_coding

true if perceptual noise is added

Definition at line 74 of file wma.h.

Referenced by encode_block(), ff_wma_end(), ff_wma_init(), wma_decode_block(), and wma_decode_init().

int WMACodecContext::byte_offset_bits

Definition at line 75 of file wma.h.

Referenced by ff_wma_init(), and wma_decode_superframe().

VLC WMACodecContext::exp_vlc

Definition at line 76 of file wma.h.

Referenced by decode_exp_vlc(), ff_wma_end(), and wma_decode_init().

int WMACodecContext::exponent_sizes[BLOCK_NB_SIZES]

Definition at line 77 of file wma.h.

Referenced by ff_wma_init().

uint16_t WMACodecContext::exponent_bands[BLOCK_NB_SIZES][25]

Definition at line 78 of file wma.h.

Referenced by decode_exp_vlc(), encode_exp_vlc(), ff_wma_init(), and init_exp().

int WMACodecContext::high_band_start[BLOCK_NB_SIZES]

index of first coef in high band

Definition at line 79 of file wma.h.

Referenced by ff_wma_init(), and wma_decode_block().

int WMACodecContext::coefs_start

first coded coef

Definition at line 80 of file wma.h.

Referenced by encode_block(), ff_wma_init(), and wma_decode_block().

int WMACodecContext::coefs_end[BLOCK_NB_SIZES]

max number of coded coefficients

Definition at line 81 of file wma.h.

Referenced by encode_block(), ff_wma_init(), and wma_decode_block().

int WMACodecContext::exponent_high_sizes[BLOCK_NB_SIZES]

Definition at line 82 of file wma.h.

Referenced by encode_block(), ff_wma_init(), and wma_decode_block().

int WMACodecContext::exponent_high_bands[BLOCK_NB_SIZES][HIGH_BAND_MAX_SIZE]

Definition at line 83 of file wma.h.

Referenced by encode_block(), ff_wma_init(), and wma_decode_block().

VLC WMACodecContext::hgain_vlc

Definition at line 84 of file wma.h.

Referenced by ff_wma_end(), wma_decode_block(), and wma_decode_init().

int WMACodecContext::high_band_coded[MAX_CHANNELS][HIGH_BAND_MAX_SIZE]

Definition at line 87 of file wma.h.

Referenced by encode_block(), and wma_decode_block().

int WMACodecContext::high_band_values[MAX_CHANNELS][HIGH_BAND_MAX_SIZE]

Definition at line 88 of file wma.h.

Referenced by wma_decode_block().

VLC WMACodecContext::coef_vlc[2]

Definition at line 92 of file wma.h.

Referenced by ff_wma_end(), and wma_decode_block().

uint16_t* WMACodecContext::run_table[2]

Definition at line 93 of file wma.h.

Referenced by ff_wma_end(), and wma_decode_block().

float* WMACodecContext::level_table[2]

Definition at line 94 of file wma.h.

Referenced by ff_wma_end(), and wma_decode_block().

uint16_t* WMACodecContext::int_table[2]

Definition at line 95 of file wma.h.

Referenced by encode_block(), and ff_wma_end().

const CoefVLCTable* WMACodecContext::coef_vlcs[2]

Definition at line 96 of file wma.h.

Referenced by encode_block().

int WMACodecContext::frame_len

frame length in samples

Definition at line 98 of file wma.h.

Referenced by encode_init(), ff_wma_init(), wma_decode_block(), wma_decode_frame(), wma_decode_init(), and wma_decode_superframe().

int WMACodecContext::frame_len_bits
int WMACodecContext::nb_block_sizes

number of block sizes

Definition at line 100 of file wma.h.

Referenced by encode_init(), ff_wma_end(), ff_wma_init(), wma_decode_block(), and wma_decode_init().

int WMACodecContext::reset_block_lengths

Definition at line 102 of file wma.h.

Referenced by ff_wma_init(), wma_decode_block(), and wma_decode_superframe().

int WMACodecContext::block_len_bits
int WMACodecContext::next_block_len_bits

log2 of next block length

Definition at line 104 of file wma.h.

Referenced by encode_block(), ff_wma_init(), wma_decode_block(), and wma_window().

int WMACodecContext::prev_block_len_bits

log2 of prev block length

Definition at line 105 of file wma.h.

Referenced by encode_block(), ff_wma_init(), wma_decode_block(), and wma_window().

int WMACodecContext::block_len
int WMACodecContext::block_num

block number in current frame

Definition at line 107 of file wma.h.

Referenced by wma_decode_block(), and wma_decode_frame().

int WMACodecContext::block_pos

current position in frame

Definition at line 108 of file wma.h.

Referenced by wma_decode_block(), and wma_decode_frame().

uint8_t WMACodecContext::ms_stereo

true if mid/side stereo mode

Definition at line 109 of file wma.h.

Referenced by encode_block(), encode_init(), encode_superframe(), and wma_decode_block().

uint8_t WMACodecContext::channel_coded[MAX_CHANNELS]

true if channel is coded

Definition at line 110 of file wma.h.

Referenced by encode_block(), and wma_decode_block().

int WMACodecContext::exponents_bsize[MAX_CHANNELS]

log2 ratio frame/exp. length

Definition at line 111 of file wma.h.

Referenced by wma_decode_block().

float WMACodecContext::exponents[MAX_CHANNELS][BLOCK_MAX_SIZE]
float WMACodecContext::max_exponent[MAX_CHANNELS]

Definition at line 113 of file wma.h.

Referenced by decode_exp_lsp(), decode_exp_vlc(), encode_block(), init_exp(), and wma_decode_block().

WMACoef WMACodecContext::coefs1[MAX_CHANNELS][BLOCK_MAX_SIZE]

Definition at line 114 of file wma.h.

Referenced by encode_block(), and wma_decode_block().

float WMACodecContext::coefs[MAX_CHANNELS][BLOCK_MAX_SIZE]

Definition at line 115 of file wma.h.

Referenced by apply_window_and_mdct(), encode_superframe(), and wma_decode_block().

FFTSample WMACodecContext::output[BLOCK_MAX_SIZE *2]

Definition at line 116 of file wma.h.

Referenced by apply_window_and_mdct(), wma_decode_block(), and wma_window().

FFTContext WMACodecContext::mdct_ctx[BLOCK_NB_SIZES]
float* WMACodecContext::windows[BLOCK_NB_SIZES]

Definition at line 118 of file wma.h.

Referenced by apply_window_and_mdct(), ff_wma_init(), and wma_window().

float WMACodecContext::frame_out[MAX_CHANNELS][BLOCK_MAX_SIZE *2]

Definition at line 120 of file wma.h.

Referenced by apply_window_and_mdct(), wma_decode_block(), and wma_decode_frame().

Definition at line 122 of file wma.h.

Referenced by wma_decode_superframe().

int WMACodecContext::last_bitoffset

Definition at line 123 of file wma.h.

Referenced by flush(), and wma_decode_superframe().

int WMACodecContext::last_superframe_len

Definition at line 124 of file wma.h.

Referenced by flush(), and wma_decode_superframe().

float WMACodecContext::noise_table[NOISE_TAB_SIZE]

Definition at line 125 of file wma.h.

Referenced by ff_wma_init(), and wma_decode_block().

int WMACodecContext::noise_index

Definition at line 126 of file wma.h.

Referenced by wma_decode_block().

float WMACodecContext::noise_mult

Definition at line 127 of file wma.h.

Referenced by ff_wma_init(), and wma_decode_block().

float WMACodecContext::lsp_cos_table[BLOCK_MAX_SIZE]

Definition at line 129 of file wma.h.

Referenced by wma_lsp_to_curve(), and wma_lsp_to_curve_init().

float WMACodecContext::lsp_pow_e_table[256]

Definition at line 130 of file wma.h.

Referenced by pow_m1_4(), and wma_lsp_to_curve_init().

float WMACodecContext::lsp_pow_m_table1[(1<< LSP_POW_BITS)]

Definition at line 131 of file wma.h.

Referenced by pow_m1_4(), and wma_lsp_to_curve_init().

float WMACodecContext::lsp_pow_m_table2[(1<< LSP_POW_BITS)]

Definition at line 132 of file wma.h.

Referenced by pow_m1_4(), and wma_lsp_to_curve_init().

FmtConvertContext WMACodecContext::fmt_conv

Definition at line 133 of file wma.h.

Referenced by ff_wma_init().

AVFloatDSPContext WMACodecContext::fdsp

Definition at line 134 of file wma.h.

Referenced by apply_window_and_mdct(), ff_wma_init(), wma_decode_block(), and wma_window().


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