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

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

#include <audio_data.h>

Data Fields

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

Detailed Description

Audio buffer used for intermediate storage between conversion phases.

Definition at line 37 of file audio_data.h.

Field Documentation

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

uint8_t * AudioData::data
uint8_t* AudioData::buffer

data buffer

Definition at line 40 of file audio_data.h.

Referenced by ff_audio_data_realloc().

unsigned int AudioData::buffer_size

allocated buffer size

Definition at line 41 of file audio_data.h.

Referenced by ff_audio_data_realloc().

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

int AudioData::nb_samples
enum AVSampleFormat AudioData::sample_fmt
int AudioData::channels
int AudioData::allocated_channels
int AudioData::is_planar
int AudioData::planes
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().

int AudioData::stride
int AudioData::read_only
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().

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

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

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

uint8_t* AudioData::ch[SWR_CH_MAX]
int AudioData::ch_count
int AudioData::bps
int AudioData::count

number of samples

Definition at line 50 of file swresample_internal.h.

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

int AudioData::planar
enum AVSampleFormat AudioData::fmt

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