FFmpeg
Data Fields
FFEBUR128StateInternal Struct Reference

Data Fields

doubleaudio_data
 Filtered audio data (used as ring buffer). More...
 
size_t audio_data_frames
 Size of audio_data array. More...
 
size_t audio_data_index
 Current index for audio_data. More...
 
unsigned long needed_frames
 How many frames are needed for a gating block. More...
 
intchannel_map
 The channel map. More...
 
unsigned long samples_in_100ms
 How many samples fit in 100ms (rounded). More...
 
double b [5]
 BS.1770 filter coefficients (nominator). More...
 
double a [5]
 BS.1770 filter coefficients (denominator). More...
 
double v [5][5]
 BS.1770 filter state. More...
 
unsigned long * block_energy_histogram
 Histograms, used to calculate LRA. More...
 
unsigned long * short_term_block_energy_histogram
 
size_t short_term_frame_counter
 Keeps track of when a new short term block is needed. More...
 
doublesample_peak
 Maximum sample peak, one per channel. More...
 
unsigned long window
 The maximum window duration in ms. More...
 
void ** data_ptrs
 Data pointer array for interleaved data. More...
 

Detailed Description

Definition at line 68 of file ebur128.c.

Field Documentation

◆ audio_data

double* FFEBUR128StateInternal::audio_data

Filtered audio data (used as ring buffer).

Definition at line 70 of file ebur128.c.

Referenced by ebur128_calc_gating_block(), and ff_ebur128_init().

◆ audio_data_frames

size_t FFEBUR128StateInternal::audio_data_frames

Size of audio_data array.

Definition at line 72 of file ebur128.c.

Referenced by ebur128_calc_gating_block(), ebur128_energy_in_interval(), and ff_ebur128_init().

◆ audio_data_index

size_t FFEBUR128StateInternal::audio_data_index

Current index for audio_data.

Definition at line 74 of file ebur128.c.

Referenced by ebur128_calc_gating_block(), and ff_ebur128_init().

◆ needed_frames

unsigned long FFEBUR128StateInternal::needed_frames

How many frames are needed for a gating block.

Will correspond to 400ms of audio at initialization, and 100ms after the first block (75% overlap as specified in the 2011 revision of BS1770).

Definition at line 78 of file ebur128.c.

Referenced by ff_ebur128_init().

◆ channel_map

int* FFEBUR128StateInternal::channel_map

The channel map.

Has as many elements as there are channels.

Definition at line 80 of file ebur128.c.

Referenced by ebur128_calc_gating_block(), ebur128_init_channel_map(), ff_ebur128_init(), and ff_ebur128_set_channel().

◆ samples_in_100ms

unsigned long FFEBUR128StateInternal::samples_in_100ms

How many samples fit in 100ms (rounded).

Definition at line 82 of file ebur128.c.

Referenced by ebur128_energy_shortterm(), and ff_ebur128_init().

◆ b

double FFEBUR128StateInternal::b[5]

BS.1770 filter coefficients (nominator).

Definition at line 84 of file ebur128.c.

Referenced by ebur128_init_filter().

◆ a

double FFEBUR128StateInternal::a[5]

BS.1770 filter coefficients (denominator).

Definition at line 86 of file ebur128.c.

Referenced by ebur128_init_filter().

◆ v

double FFEBUR128StateInternal::v[5][5]

BS.1770 filter state.

Definition at line 88 of file ebur128.c.

Referenced by ebur128_init_filter().

◆ block_energy_histogram

unsigned long* FFEBUR128StateInternal::block_energy_histogram

Histograms, used to calculate LRA.

Definition at line 90 of file ebur128.c.

Referenced by ebur128_calc_gating_block(), ebur128_calc_relative_threshold(), ebur128_gated_loudness(), and ff_ebur128_init().

◆ short_term_block_energy_histogram

unsigned long* FFEBUR128StateInternal::short_term_block_energy_histogram

Definition at line 91 of file ebur128.c.

Referenced by ff_ebur128_init(), and ff_ebur128_loudness_range_multiple().

◆ short_term_frame_counter

size_t FFEBUR128StateInternal::short_term_frame_counter

Keeps track of when a new short term block is needed.

Definition at line 93 of file ebur128.c.

Referenced by ff_ebur128_init().

◆ sample_peak

double* FFEBUR128StateInternal::sample_peak

Maximum sample peak, one per channel.

Definition at line 95 of file ebur128.c.

Referenced by ff_ebur128_init(), and ff_ebur128_sample_peak().

◆ window

unsigned long FFEBUR128StateInternal::window

The maximum window duration in ms.

Definition at line 97 of file ebur128.c.

Referenced by ff_ebur128_init().

◆ data_ptrs

void** FFEBUR128StateInternal::data_ptrs

Data pointer array for interleaved data.

Definition at line 99 of file ebur128.c.

Referenced by ff_ebur128_init().


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