FFmpeg  4.0
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

◆ avctx

AVCodecContext* WmallDecodeCtx::avctx

◆ frame

AVFrame* WmallDecodeCtx::frame

◆ dsp

LLAudDSPContext WmallDecodeCtx::dsp

accelerated DSP functions

Definition at line 74 of file wmalosslessdec.c.

Referenced by decode_init().

◆ frame_data

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

◆ max_frame_size

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

◆ pb

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

◆ decode_flags

uint32_t WmallDecodeCtx::decode_flags

used compression features

Definition at line 80 of file wmalosslessdec.c.

Referenced by decode_init().

◆ len_prefix

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

◆ dynamic_range_compression

int WmallDecodeCtx::dynamic_range_compression

frame contains DRC data

Definition at line 82 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_init().

◆ bits_per_sample

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

◆ samples_per_frame

uint16_t WmallDecodeCtx::samples_per_frame

◆ log2_frame_size

uint16_t WmallDecodeCtx::log2_frame_size

Definition at line 85 of file wmalosslessdec.c.

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

◆ num_channels

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

◆ lfe_channel

int8_t WmallDecodeCtx::lfe_channel

lfe channel index

Definition at line 87 of file wmalosslessdec.c.

Referenced by decode_init().

◆ max_num_subframes

uint8_t WmallDecodeCtx::max_num_subframes

Definition at line 88 of file wmalosslessdec.c.

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

◆ subframe_len_bits

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

◆ max_subframe_len_bit

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

◆ min_samples_per_subframe

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

◆ pgb

GetBitContext WmallDecodeCtx::pgb

bitstream reader context for the packet

Definition at line 94 of file wmalosslessdec.c.

Referenced by decode_packet().

◆ next_packet_start

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

◆ packet_offset

uint8_t WmallDecodeCtx::packet_offset

offset to the frame in the packet

Definition at line 96 of file wmalosslessdec.c.

Referenced by decode_packet().

◆ packet_sequence_number

uint8_t WmallDecodeCtx::packet_sequence_number

current packet number

Definition at line 97 of file wmalosslessdec.c.

Referenced by decode_packet().

◆ num_saved_bits

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

◆ frame_offset

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

◆ subframe_offset

int WmallDecodeCtx::subframe_offset

subframe offset in the bit reservoir

Definition at line 100 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ packet_loss

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

◆ packet_done

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

◆ frame_num

uint32_t WmallDecodeCtx::frame_num

current frame number (not used for decoding)

Definition at line 105 of file wmalosslessdec.c.

Referenced by decode_frame().

◆ gb

GetBitContext WmallDecodeCtx::gb

◆ buf_bit_size

int WmallDecodeCtx::buf_bit_size

buffer size in bits

Definition at line 107 of file wmalosslessdec.c.

Referenced by decode_packet(), and remaining_bits().

◆ samples_16

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

◆ samples_32

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

◆ drc_gain

uint8_t WmallDecodeCtx::drc_gain

gain for the DRC tool

Definition at line 110 of file wmalosslessdec.c.

Referenced by decode_frame().

◆ skip_frame

int8_t WmallDecodeCtx::skip_frame

skip output step

Definition at line 111 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_init().

◆ parsed_all_subframes

int8_t WmallDecodeCtx::parsed_all_subframes

all subframes decoded?

Definition at line 112 of file wmalosslessdec.c.

Referenced by decode_frame(), and decode_subframe().

◆ subframe_len

int16_t WmallDecodeCtx::subframe_len

current subframe length

Definition at line 115 of file wmalosslessdec.c.

◆ channels_for_cur_subframe

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

◆ channel_indexes_for_cur_subframe

int8_t WmallDecodeCtx::channel_indexes_for_cur_subframe[WMALL_MAX_CHANNELS]

Definition at line 117 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ channel

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

◆ do_arith_coding

uint8_t WmallDecodeCtx::do_arith_coding

Definition at line 123 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ do_ac_filter

uint8_t WmallDecodeCtx::do_ac_filter

Definition at line 124 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ do_inter_ch_decorr

uint8_t WmallDecodeCtx::do_inter_ch_decorr

Definition at line 125 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

◆ do_mclms

uint8_t WmallDecodeCtx::do_mclms

Definition at line 126 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ do_lpc

uint8_t WmallDecodeCtx::do_lpc

Definition at line 127 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ acfilter_order

int8_t WmallDecodeCtx::acfilter_order

Definition at line 129 of file wmalosslessdec.c.

Referenced by decode_ac_filter(), and revert_acfilter().

◆ acfilter_scaling

int8_t WmallDecodeCtx::acfilter_scaling

Definition at line 130 of file wmalosslessdec.c.

Referenced by decode_ac_filter(), and revert_acfilter().

◆ acfilter_coeffs

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

◆ acfilter_prevvalues

int WmallDecodeCtx::acfilter_prevvalues[WMALL_MAX_CHANNELS][16]

Definition at line 132 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and revert_acfilter().

◆ mclms_order

int8_t WmallDecodeCtx::mclms_order

Definition at line 134 of file wmalosslessdec.c.

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

◆ mclms_scaling

int8_t WmallDecodeCtx::mclms_scaling

Definition at line 135 of file wmalosslessdec.c.

Referenced by decode_mclms(), and mclms_predict().

◆ mclms_coeffs

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

◆ mclms_coeffs_cur

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

◆ mclms_prevvalues

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

◆ mclms_updates

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

◆ mclms_recent

int WmallDecodeCtx::mclms_recent

Definition at line 140 of file wmalosslessdec.c.

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

◆ movave_scaling

int WmallDecodeCtx::movave_scaling

Definition at line 142 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

◆ quant_stepsize

int WmallDecodeCtx::quant_stepsize

Definition at line 143 of file wmalosslessdec.c.

Referenced by decode_subframe().

◆ order

int WmallDecodeCtx::order

◆ scaling

int WmallDecodeCtx::scaling

Definition at line 147 of file wmalosslessdec.c.

Referenced by decode_cdlms().

◆ coefsend

int WmallDecodeCtx::coefsend

Definition at line 148 of file wmalosslessdec.c.

Referenced by decode_cdlms().

◆ bitsend

int WmallDecodeCtx::bitsend

Definition at line 149 of file wmalosslessdec.c.

Referenced by decode_cdlms().

◆ coefs

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

◆ lms_prevvalues

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

◆ lms_updates

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

◆ recent

int WmallDecodeCtx::recent

Definition at line 153 of file wmalosslessdec.c.

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

◆ cdlms

struct { ... } WmallDecodeCtx::cdlms[WMALL_MAX_CHANNELS][9]

◆ cdlms_ttl

int WmallDecodeCtx::cdlms_ttl[WMALL_MAX_CHANNELS]

◆ bV3RTM

int WmallDecodeCtx::bV3RTM

◆ is_channel_coded

int WmallDecodeCtx::is_channel_coded[WMALL_MAX_CHANNELS]

Definition at line 160 of file wmalosslessdec.c.

Referenced by decode_subframe(), and mclms_predict().

◆ update_speed

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

◆ transient

int WmallDecodeCtx::transient[WMALL_MAX_CHANNELS]

Definition at line 163 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and reset_codec().

◆ transient_pos

int WmallDecodeCtx::transient_pos[WMALL_MAX_CHANNELS]

Definition at line 164 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and reset_codec().

◆ seekable_tile

int WmallDecodeCtx::seekable_tile

Definition at line 165 of file wmalosslessdec.c.

Referenced by decode_channel_residues(), and decode_subframe().

◆ ave_sum

int WmallDecodeCtx::ave_sum[WMALL_MAX_CHANNELS]

Definition at line 167 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and decode_channel_residues().

◆ channel_residues

int WmallDecodeCtx::channel_residues[WMALL_MAX_CHANNELS][WMALL_BLOCK_MAX_SIZE]

◆ lpc_coefs

int WmallDecodeCtx::lpc_coefs[WMALL_MAX_CHANNELS][40]

Definition at line 171 of file wmalosslessdec.c.

Referenced by clear_codec_buffers(), and decode_lpc().

◆ lpc_order

int WmallDecodeCtx::lpc_order

Definition at line 172 of file wmalosslessdec.c.

Referenced by decode_lpc().

◆ lpc_scaling

int WmallDecodeCtx::lpc_scaling

Definition at line 173 of file wmalosslessdec.c.

Referenced by decode_lpc().

◆ lpc_intbits

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: