FFmpeg  4.0
Data Fields
AudioData Struct Reference

Audio buffer used for intermediate storage between conversion phases. More...

#include <libavresample/audio_data.h>

Data Fields

const AVClassclass
 AVClass for logging. More...
 
uint8_tdata [AVRESAMPLE_MAX_CHANNELS]
 data plane pointers More...
 
uint8_tbuffer
 data buffer More...
 
unsigned int buffer_size
 allocated buffer size More...
 
int allocated_samples
 number of samples the buffer can hold More...
 
int nb_samples
 current number of samples More...
 
enum AVSampleFormat sample_fmt
 sample format More...
 
int channels
 channel count More...
 
int allocated_channels
 allocated channel count More...
 
int is_planar
 sample format is planar More...
 
int planes
 number of data planes More...
 
int sample_size
 bytes per sample More...
 
int stride
 sample byte offset within a plane More...
 
int read_only
 data is read-only More...
 
int allow_realloc
 realloc is allowed More...
 
int ptr_align
 minimum data pointer alignment More...
 
int samples_align
 allocated samples alignment More...
 
const char * name
 name for debug logging More...
 
uint8_tch [SWR_CH_MAX]
 samples buffer per channel More...
 
int ch_count
 number of channels More...
 
int bps
 bytes per sample More...
 
int count
 number of samples More...
 
int planar
 1 if planar audio, 0 otherwise More...
 
enum AVSampleFormat fmt
 sample format More...
 

Detailed Description

Audio buffer used for intermediate storage between conversion phases.

Definition at line 37 of file audio_data.h.

Field Documentation

◆ class

const AVClass* AudioData::class

AVClass for logging.

Definition at line 38 of file audio_data.h.

Referenced by ff_audio_data_alloc(), and ff_audio_data_init().

◆ data

uint8_t * AudioData::data

◆ buffer

uint8_t* AudioData::buffer

data buffer

Definition at line 40 of file audio_data.h.

Referenced by ff_audio_data_realloc().

◆ buffer_size

unsigned int AudioData::buffer_size

allocated buffer size

Definition at line 41 of file audio_data.h.

Referenced by ff_audio_data_realloc().

◆ allocated_samples

int AudioData::allocated_samples

number of samples the buffer can hold

Definition at line 42 of file audio_data.h.

Referenced by ff_audio_data_init(), ff_audio_data_realloc(), ff_audio_resample(), and handle_buffered_output().

◆ nb_samples

int AudioData::nb_samples

◆ sample_fmt

enum AVSampleFormat AudioData::sample_fmt

◆ channels

int AudioData::channels

◆ allocated_channels

int AudioData::allocated_channels

◆ is_planar

int AudioData::is_planar

◆ planes

int AudioData::planes

◆ sample_size

int AudioData::sample_size

bytes per sample

Definition at line 49 of file audio_data.h.

Referenced by ff_audio_data_alloc(), and ff_audio_data_init().

◆ stride

int AudioData::stride

◆ read_only

int AudioData::read_only

◆ allow_realloc

int AudioData::allow_realloc

realloc is allowed

Definition at line 52 of file audio_data.h.

Referenced by ff_audio_data_alloc(), ff_audio_data_init(), ff_audio_data_realloc(), and ff_audio_resample().

◆ ptr_align

int AudioData::ptr_align

minimum data pointer alignment

Definition at line 53 of file audio_data.h.

Referenced by calc_ptr_alignment(), ff_audio_mix(), ff_convert_dither(), and if().

◆ samples_align

int AudioData::samples_align

allocated samples alignment

Definition at line 54 of file audio_data.h.

Referenced by ff_audio_data_init(), ff_audio_data_realloc(), ff_audio_mix(), ff_convert_dither(), and if().

◆ name

const char* AudioData::name

name for debug logging

Definition at line 55 of file audio_data.h.

Referenced by avresample_convert(), ff_audio_data_alloc(), ff_audio_data_init(), and handle_buffered_output().

◆ ch

uint8_t* AudioData::ch[SWR_CH_MAX]

◆ ch_count

int AudioData::ch_count

◆ bps

int AudioData::bps

◆ count

int AudioData::count

number of samples

Definition at line 50 of file swresample_internal.h.

Referenced by resample(), swr_convert(), swr_convert_internal(), swr_init(), and swri_realloc_audio().

◆ planar

int AudioData::planar

◆ fmt

enum AVSampleFormat AudioData::fmt

sample format

Definition at line 52 of file swresample_internal.h.

Referenced by D(), resample(), set_audiodata_fmt(), swr_convert_internal(), swr_init(), and swri_rematrix_init().


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