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

main decoder context More...

Data Fields

AVCodecContextavctx
 
AVFrameframe
 
LLAudDSPContext dsp
 accelerated DSP functions More...
 
uint8_tframe_data
 compressed frame data More...
 
int max_frame_size
 max bitstream size More...
 
PutBitContext pb
 context for filling the frame_data buffer More...
 
uint32_t decode_flags
 used compression features More...
 
int len_prefix
 frame is prefixed with its length More...
 
int dynamic_range_compression
 frame contains DRC data More...
 
uint8_t bits_per_sample
 integer audio sample size for the unscaled IMDCT output (used to scale to [-1.0, 1.0]) More...
 
uint16_t samples_per_frame
 number of samples to output More...
 
uint16_t log2_frame_size
 
int8_t num_channels
 number of channels in the stream (same as AVCodecContext.num_channels) More...
 
int8_t lfe_channel
 lfe channel index More...
 
uint8_t max_num_subframes
 
uint8_t subframe_len_bits
 number of bits used for the subframe length More...
 
uint8_t max_subframe_len_bit
 flag indicating that the subframe is of maximum size when the first subframe length bit is 1 More...
 
uint16_t min_samples_per_subframe
 
GetBitContext pgb
 bitstream reader context for the packet More...
 
int next_packet_start
 start offset of the next WMA packet in the demuxer packet More...
 
uint8_t packet_offset
 offset to the frame in the packet More...
 
uint8_t packet_sequence_number
 current packet number More...
 
int num_saved_bits
 saved number of bits More...
 
int frame_offset
 frame offset in the bit reservoir More...
 
int subframe_offset
 subframe offset in the bit reservoir More...
 
uint8_t packet_loss
 set in case of bitstream error More...
 
uint8_t packet_done
 set when a packet is fully decoded More...
 
uint32_t frame_num
 current frame number (not used for decoding) More...
 
GetBitContext gb
 bitstream reader context More...
 
int buf_bit_size
 buffer size in bits More...
 
int16_t * samples_16 [WMALL_MAX_CHANNELS]
 current sample buffer pointer (16-bit) More...
 
int32_tsamples_32 [WMALL_MAX_CHANNELS]
 current sample buffer pointer (24-bit) More...
 
uint8_t drc_gain
 gain for the DRC tool More...
 
int8_t skip_frame
 skip output step More...
 
int8_t parsed_all_subframes
 all subframes decoded? More...
 
int16_t subframe_len
 current subframe length More...
 
int8_t channels_for_cur_subframe
 number of channels that contain the subframe More...
 
int8_t channel_indexes_for_cur_subframe [WMALL_MAX_CHANNELS]
 
WmallChannelCtx channel [WMALL_MAX_CHANNELS]
 per channel data More...
 
uint8_t do_arith_coding
 
uint8_t do_ac_filter
 
uint8_t do_inter_ch_decorr
 
uint8_t do_mclms
 
uint8_t do_lpc
 
int8_t acfilter_order
 
int8_t acfilter_scaling
 
int16_t acfilter_coeffs [16]
 
int acfilter_prevvalues [WMALL_MAX_CHANNELS][16]
 
int8_t mclms_order
 
int8_t mclms_scaling
 
int16_t mclms_coeffs [WMALL_MAX_CHANNELS *WMALL_MAX_CHANNELS *32]
 
int16_t mclms_coeffs_cur [WMALL_MAX_CHANNELS *WMALL_MAX_CHANNELS]
 
int32_t mclms_prevvalues [WMALL_MAX_CHANNELS *2 *32]
 
int32_t mclms_updates [WMALL_MAX_CHANNELS *2 *32]
 
int mclms_recent
 
int movave_scaling
 
int quant_stepsize
 
struct {
   int   order
 
   int   scaling
 
   int   coefsend
 
   int   bitsend
 
   int16_t   coefs [MAX_ORDER+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]
 
   int32_t   lms_prevvalues [MAX_ORDER
      *2+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]
 
   int16_t   lms_updates [MAX_ORDER
      *2+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]
 
   int   recent
 
cdlms [WMALL_MAX_CHANNELS][9]
 
int cdlms_ttl [WMALL_MAX_CHANNELS]
 
int bV3RTM
 
int is_channel_coded [WMALL_MAX_CHANNELS]
 
int update_speed [WMALL_MAX_CHANNELS]
 
int transient [WMALL_MAX_CHANNELS]
 
int transient_pos [WMALL_MAX_CHANNELS]
 
int seekable_tile
 
int ave_sum [WMALL_MAX_CHANNELS]
 
int channel_residues [WMALL_MAX_CHANNELS][WMALL_BLOCK_MAX_SIZE]
 
int lpc_coefs [WMALL_MAX_CHANNELS][40]
 
int lpc_order
 
int lpc_scaling
 
int lpc_intbits
 

Detailed Description

main decoder context

Definition at line 70 of file wmalosslessdec.c.

Field Documentation

AVCodecContext* WmallDecodeCtx::avctx
AVFrame* WmallDecodeCtx::frame
LLAudDSPContext WmallDecodeCtx::dsp

accelerated DSP functions

Definition at line 74 of file wmalosslessdec.c.

Referenced by decode_init().

uint8_t* WmallDecodeCtx::frame_data

compressed frame data

Definition at line 75 of file wmalosslessdec.c.

Referenced by decode_close(), decode_init(), decode_packet(), flush(), and save_bits().

int WmallDecodeCtx::max_frame_size

max bitstream size

Definition at line 76 of file wmalosslessdec.c.

Referenced by decode_init(), decode_packet(), flush(), and save_bits().

PutBitContext WmallDecodeCtx::pb

context for filling the frame_data buffer

Definition at line 77 of file wmalosslessdec.c.

Referenced by decode_init(), decode_packet(), flush(), and save_bits().

uint32_t WmallDecodeCtx::decode_flags

used compression features

Definition at line 80 of file wmalosslessdec.c.

Referenced by decode_init().

int WmallDecodeCtx::len_prefix

frame is prefixed with its length

Definition at line 81 of file wmalosslessdec.c.

Referenced by decode_frame(), decode_init(), and decode_packet().

int WmallDecodeCtx::dynamic_range_compression

frame contains DRC data

Definition at line 82 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_init().

uint8_t WmallDecodeCtx::bits_per_sample

integer audio sample size for the unscaled IMDCT output (used to scale to [-1.0, 1.0])

Definition at line 83 of file wmalosslessdec.c.

Referenced by decode_cdlms(), decode_channel_residues(), decode_init(), decode_subframe(), and mclms_update().

uint16_t WmallDecodeCtx::samples_per_frame
uint16_t WmallDecodeCtx::log2_frame_size

Definition at line 85 of file wmalosslessdec.c.

Referenced by decode_frame(), decode_init(), and decode_packet().

int8_t WmallDecodeCtx::num_channels

number of channels in the stream (same as AVCodecContext.num_channels)

Definition at line 86 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), decode_cdlms(), decode_frame(), decode_init(), decode_lpc(), decode_mclms(), decode_subframe(), decode_tilehdr(), mclms_predict(), mclms_update(), reset_codec(), and revert_acfilter().

int8_t WmallDecodeCtx::lfe_channel

lfe channel index

Definition at line 87 of file wmalosslessdec.c.

Referenced by decode_init().

uint8_t WmallDecodeCtx::max_num_subframes

Definition at line 88 of file wmalosslessdec.c.

Referenced by decode_init(), decode_subframe_length(), and decode_tilehdr().

uint8_t WmallDecodeCtx::subframe_len_bits

number of bits used for the subframe length

Definition at line 89 of file wmalosslessdec.c.

Referenced by decode_init().

uint8_t WmallDecodeCtx::max_subframe_len_bit

flag indicating that the subframe is of maximum size when the first subframe length bit is 1

Definition at line 90 of file wmalosslessdec.c.

Referenced by decode_init().

uint16_t WmallDecodeCtx::min_samples_per_subframe

Definition at line 91 of file wmalosslessdec.c.

Referenced by decode_init(), decode_subframe_length(), and decode_tilehdr().

GetBitContext WmallDecodeCtx::pgb

bitstream reader context for the packet

Definition at line 94 of file wmalosslessdec.c.

Referenced by decode_packet().

int WmallDecodeCtx::next_packet_start

start offset of the next WMA packet in the demuxer packet

Definition at line 95 of file wmalosslessdec.c.

Referenced by decode_packet(), and flush().

uint8_t WmallDecodeCtx::packet_offset

offset to the frame in the packet

Definition at line 96 of file wmalosslessdec.c.

Referenced by decode_packet().

uint8_t WmallDecodeCtx::packet_sequence_number

current packet number

Definition at line 97 of file wmalosslessdec.c.

Referenced by decode_packet().

int WmallDecodeCtx::num_saved_bits

saved number of bits

Definition at line 98 of file wmalosslessdec.c.

Referenced by decode_packet(), flush(), and save_bits().

int WmallDecodeCtx::frame_offset

frame offset in the bit reservoir

Definition at line 99 of file wmalosslessdec.c.

Referenced by decode_frame(), decode_packet(), flush(), and save_bits().

int WmallDecodeCtx::subframe_offset

subframe offset in the bit reservoir

Definition at line 100 of file wmalosslessdec.c.

Referenced by decode_subframe().

uint8_t WmallDecodeCtx::packet_loss

set in case of bitstream error

Definition at line 101 of file wmalosslessdec.c.

Referenced by decode_frame(), decode_init(), decode_packet(), flush(), and save_bits().

uint8_t WmallDecodeCtx::packet_done

set when a packet is fully decoded

Definition at line 102 of file wmalosslessdec.c.

Referenced by decode_packet(), and flush().

uint32_t WmallDecodeCtx::frame_num

current frame number (not used for decoding)

Definition at line 105 of file wmalosslessdec.c.

Referenced by decode_frame().

GetBitContext WmallDecodeCtx::gb
int WmallDecodeCtx::buf_bit_size

buffer size in bits

Definition at line 107 of file wmalosslessdec.c.

Referenced by decode_packet(), and remaining_bits().

int16_t* WmallDecodeCtx::samples_16[WMALL_MAX_CHANNELS]

current sample buffer pointer (16-bit)

Definition at line 108 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_subframe().

int32_t* WmallDecodeCtx::samples_32[WMALL_MAX_CHANNELS]

current sample buffer pointer (24-bit)

Definition at line 109 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_subframe().

uint8_t WmallDecodeCtx::drc_gain

gain for the DRC tool

Definition at line 110 of file wmalosslessdec.c.

Referenced by decode_frame().

int8_t WmallDecodeCtx::skip_frame

skip output step

Definition at line 111 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_init().

int8_t WmallDecodeCtx::parsed_all_subframes

all subframes decoded?

Definition at line 112 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_subframe().

int16_t WmallDecodeCtx::subframe_len

current subframe length

Definition at line 115 of file wmalosslessdec.c.

int8_t WmallDecodeCtx::channels_for_cur_subframe

number of channels that contain the subframe

Definition at line 116 of file wmalosslessdec.c.

Referenced by decode_subframe().

int8_t WmallDecodeCtx::channel_indexes_for_cur_subframe[WMALL_MAX_CHANNELS]

Definition at line 117 of file wmalosslessdec.c.

Referenced by decode_subframe().

WmallChannelCtx WmallDecodeCtx::channel[WMALL_MAX_CHANNELS]

per channel data

Definition at line 119 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), decode_frame(), decode_init(), decode_subframe(), decode_tilehdr(), and reset_codec().

uint8_t WmallDecodeCtx::do_arith_coding

Definition at line 123 of file wmalosslessdec.c.

Referenced by decode_subframe().

uint8_t WmallDecodeCtx::do_ac_filter

Definition at line 124 of file wmalosslessdec.c.

Referenced by decode_subframe().

uint8_t WmallDecodeCtx::do_inter_ch_decorr

Definition at line 125 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

uint8_t WmallDecodeCtx::do_mclms

Definition at line 126 of file wmalosslessdec.c.

Referenced by decode_subframe().

uint8_t WmallDecodeCtx::do_lpc

Definition at line 127 of file wmalosslessdec.c.

Referenced by decode_subframe().

int8_t WmallDecodeCtx::acfilter_order

Definition at line 129 of file wmalosslessdec.c.

Referenced by decode_ac_filter(), and revert_acfilter().

int8_t WmallDecodeCtx::acfilter_scaling

Definition at line 130 of file wmalosslessdec.c.

Referenced by decode_ac_filter(), and revert_acfilter().

int16_t WmallDecodeCtx::acfilter_coeffs[16]

Definition at line 131 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), decode_ac_filter(), and revert_acfilter().

int WmallDecodeCtx::acfilter_prevvalues[WMALL_MAX_CHANNELS][16]

Definition at line 132 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and revert_acfilter().

int8_t WmallDecodeCtx::mclms_order

Definition at line 134 of file wmalosslessdec.c.

Referenced by decode_mclms(), mclms_predict(), mclms_update(), and reset_codec().

int8_t WmallDecodeCtx::mclms_scaling

Definition at line 135 of file wmalosslessdec.c.

Referenced by decode_mclms(), and mclms_predict().

int16_t WmallDecodeCtx::mclms_coeffs[WMALL_MAX_CHANNELS *WMALL_MAX_CHANNELS *32]

Definition at line 136 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), decode_mclms(), mclms_predict(), and mclms_update().

int16_t WmallDecodeCtx::mclms_coeffs_cur[WMALL_MAX_CHANNELS *WMALL_MAX_CHANNELS]

Definition at line 137 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), decode_mclms(), mclms_predict(), and mclms_update().

int32_t WmallDecodeCtx::mclms_prevvalues[WMALL_MAX_CHANNELS *2 *32]

Definition at line 138 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), mclms_predict(), and mclms_update().

int32_t WmallDecodeCtx::mclms_updates[WMALL_MAX_CHANNELS *2 *32]

Definition at line 139 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and mclms_update().

int WmallDecodeCtx::mclms_recent

Definition at line 140 of file wmalosslessdec.c.

Referenced by mclms_predict(), mclms_update(), and reset_codec().

int WmallDecodeCtx::movave_scaling

Definition at line 142 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

int WmallDecodeCtx::quant_stepsize

Definition at line 143 of file wmalosslessdec.c.

Referenced by decode_subframe().

int WmallDecodeCtx::order
int WmallDecodeCtx::scaling

Definition at line 147 of file wmalosslessdec.c.

Referenced by decode_cdlms().

int WmallDecodeCtx::coefsend

Definition at line 148 of file wmalosslessdec.c.

Referenced by decode_cdlms().

int WmallDecodeCtx::bitsend

Definition at line 149 of file wmalosslessdec.c.

Referenced by decode_cdlms().

int16_t WmallDecodeCtx::coefs[MAX_ORDER+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]

Definition at line 150 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and decode_cdlms().

int32_t WmallDecodeCtx::lms_prevvalues[MAX_ORDER *2+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]

Definition at line 151 of file wmalosslessdec.c.

Referenced by clear_codec_buffers().

int16_t WmallDecodeCtx::lms_updates[MAX_ORDER *2+WMALL_COEFF_PAD_SIZE/sizeof(int16_t)]
int WmallDecodeCtx::recent

Definition at line 153 of file wmalosslessdec.c.

Referenced by reset_codec(), use_high_update_speed(), and use_normal_update_speed().

struct { ... } WmallDecodeCtx::cdlms[WMALL_MAX_CHANNELS][9]
int WmallDecodeCtx::cdlms_ttl[WMALL_MAX_CHANNELS]
int WmallDecodeCtx::bV3RTM
int WmallDecodeCtx::is_channel_coded[WMALL_MAX_CHANNELS]

Definition at line 160 of file wmalosslessdec.c.

Referenced by decode_subframe(), and mclms_predict().

int WmallDecodeCtx::update_speed[WMALL_MAX_CHANNELS]

Definition at line 161 of file wmalosslessdec.c.

Referenced by use_high_update_speed(), and use_normal_update_speed().

int WmallDecodeCtx::transient[WMALL_MAX_CHANNELS]

Definition at line 163 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and reset_codec().

int WmallDecodeCtx::transient_pos[WMALL_MAX_CHANNELS]

Definition at line 164 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and reset_codec().

int WmallDecodeCtx::seekable_tile

Definition at line 165 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

int WmallDecodeCtx::ave_sum[WMALL_MAX_CHANNELS]

Definition at line 167 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and decode_channel_residues().

int WmallDecodeCtx::channel_residues[WMALL_MAX_CHANNELS][WMALL_BLOCK_MAX_SIZE]
int WmallDecodeCtx::lpc_coefs[WMALL_MAX_CHANNELS][40]

Definition at line 171 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and decode_lpc().

int WmallDecodeCtx::lpc_order

Definition at line 172 of file wmalosslessdec.c.

Referenced by decode_lpc().

int WmallDecodeCtx::lpc_scaling

Definition at line 173 of file wmalosslessdec.c.

Referenced by decode_lpc().

int WmallDecodeCtx::lpc_intbits

Definition at line 174 of file wmalosslessdec.c.

Referenced by decode_lpc().


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