FFmpeg
|
Audio buffer used for intermediate storage between conversion phases. More...
#include <audio_data.h>
Data Fields | |
AVClass * | class |
int | fd |
int | sample_rate |
int | channels |
channel count More... | |
int | frame_size |
enum AVCodecID | codec_id |
unsigned int | flip_left: 1 |
uint8_t | buffer [AUDIO_BLOCK_SIZE] |
int | buffer_ptr |
const AVClass * | class |
AVClass for logging. More... | |
uint8_t * | data [AVRESAMPLE_MAX_CHANNELS] |
data plane pointers More... | |
uint8_t * | buffer |
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 | 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_t * | ch [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 46 of file oss_audio.c.
Field Documentation
int AudioData::allocated_channels |
allocated channel count
Definition at line 44 of file audio_data.h.
Referenced by avresample_convert(), ff_audio_data_alloc(), ff_audio_data_init(), ff_audio_data_realloc(), and ff_audio_data_set_channels().
int AudioData::allocated_samples |
number of samples the buffer can hold
Definition at line 40 of file audio_data.h.
Referenced by ff_audio_data_init(), ff_audio_data_realloc(), ff_audio_resample(), and handle_buffered_output().
int AudioData::allow_realloc |
realloc is allowed
Definition at line 50 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::bps |
bytes per sample
Definition at line 47 of file swresample_internal.h.
Referenced by buf_set(), copy(), fill_audiodata(), for(), resample_flush(), set_audiodata_fmt(), swr_convert_internal(), swr_inject_silence(), swri_dither_init(), swri_realloc_audio(), and swri_rematrix().
uint8_t* AudioData::buffer |
data buffer
Definition at line 38 of file audio_data.h.
uint8_t AudioData::buffer[AUDIO_BLOCK_SIZE] |
Definition at line 54 of file oss_audio.c.
Referenced by audio_write_packet(), and ff_audio_data_realloc().
int AudioData::buffer_ptr |
Definition at line 55 of file oss_audio.c.
Referenced by audio_write_packet().
unsigned int AudioData::buffer_size |
allocated buffer size
Definition at line 39 of file audio_data.h.
Referenced by ff_audio_data_realloc().
uint8_t* AudioData::ch[SWR_CH_MAX] |
samples buffer per channel
Definition at line 44 of file swresample_internal.h.
Referenced by buf_set(), copy(), fill_audiodata(), for(), multiple_resample(), process(), resample_flush(), reversefill_audiodata(), swr_convert_internal(), swr_init(), swr_inject_silence(), swri_realloc_audio(), and swri_rematrix().
int AudioData::ch_count |
number of channels
Definition at line 46 of file swresample_internal.h.
Referenced by buf_set(), copy(), fill_audiodata(), for(), multiple_resample(), process(), resample(), resample_flush(), reversefill_audiodata(), swr_convert_internal(), swr_init(), swr_inject_silence(), swri_realloc_audio(), and swri_rematrix().
int AudioData::channels |
channel count
Definition at line 50 of file oss_audio.c.
Referenced by audio_open(), audio_read_header(), audio_read_packet(), audio_write_header(), ff_audio_data_alloc(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_init(), ff_audio_data_set_channels(), ff_audio_resample(), and ff_convert_dither().
const AVClass* AudioData::class |
AVClass for logging.
Definition at line 36 of file audio_data.h.
AVClass* AudioData::class |
Definition at line 47 of file oss_audio.c.
Referenced by ff_audio_data_alloc(), and ff_audio_data_init().
enum AVCodecID AudioData::codec_id |
Definition at line 52 of file oss_audio.c.
Referenced by audio_open(), and audio_read_header().
int AudioData::count |
number of samples
Definition at line 48 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_convert_internal(), swri_dither_init(), and swri_realloc_audio().
uint8_t * AudioData::data |
data plane pointers
samples buffer
Definition at line 37 of file audio_data.h.
Referenced by calc_ptr_alignment(), ff_audio_data_add_to_fifo(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_drain(), ff_audio_data_init(), ff_audio_data_read_from_fifo(), ff_audio_data_realloc(), ff_audio_mix(), ff_audio_resample(), ff_convert_dither(), free_temp(), if(), and swri_realloc_audio().
int AudioData::fd |
Definition at line 48 of file oss_audio.c.
Referenced by audio_close(), audio_open(), audio_read_packet(), and audio_write_packet().
unsigned int AudioData::flip_left |
Definition at line 53 of file oss_audio.c.
Referenced by audio_open(), and audio_read_packet().
enum AVSampleFormat AudioData::fmt |
sample format
Definition at line 50 of file swresample_internal.h.
Referenced by resample(), set_audiodata_fmt(), swr_convert_internal(), swri_dither_init(), and swri_rematrix_init().
int AudioData::frame_size |
Definition at line 51 of file oss_audio.c.
Referenced by audio_open(), and audio_read_packet().
int AudioData::is_planar |
sample format is planar
Definition at line 45 of file audio_data.h.
Referenced by ff_audio_data_alloc(), ff_audio_data_copy(), ff_audio_data_init(), ff_audio_data_realloc(), and ff_audio_data_set_channels().
const char* AudioData::name |
name for debug logging
Definition at line 53 of file audio_data.h.
Referenced by 7digital-python.lockerEndpoint.LockerArtist::__init__(), 7digital-python.lib.py7digital.Artist::__init__(), 7digital-python.lib.py7digital.Tag::__init__(), 7digital-python.lib.py7digital.Label::__init__(), avresample_convert(), ff_audio_data_alloc(), ff_audio_data_init(), 7digital-python.lib.py7digital.Artist::get_name(), 7digital-python.lib.py7digital.Tag::get_name(), 7digital-python.lib.py7digital.Label::get_name(), handle_buffered_output(), 7digital-python.lib.py7digital.Artist::set_name(), 7digital-python.lib.py7digital.Tag::set_name(), and 7digital-python.lib.py7digital.Label::set_name().
int AudioData::nb_samples |
current number of samples
Definition at line 41 of file audio_data.h.
Referenced by avresample_convert(), avresample_get_delay(), ff_audio_data_add_to_fifo(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_drain(), ff_audio_data_init(), ff_audio_data_read_from_fifo(), ff_audio_data_realloc(), ff_audio_mix(), ff_audio_resample(), ff_convert_dither(), and handle_buffered_output().
int AudioData::planar |
1 if planar audio, 0 otherwise
Definition at line 49 of file swresample_internal.h.
Referenced by buf_set(), copy(), fill_audiodata(), for(), resample(), resample_flush(), reversefill_audiodata(), set_audiodata_fmt(), swr_convert_internal(), swr_inject_silence(), and swri_realloc_audio().
int AudioData::planes |
number of data planes
Definition at line 46 of file audio_data.h.
Referenced by calc_ptr_alignment(), ff_audio_data_add_to_fifo(), ff_audio_data_alloc(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_drain(), ff_audio_data_init(), ff_audio_data_realloc(), and ff_audio_data_set_channels().
int AudioData::ptr_align |
minimum data pointer alignment
Definition at line 51 of file audio_data.h.
Referenced by calc_ptr_alignment(), ff_audio_mix(), ff_convert_dither(), and if().
int AudioData::read_only |
data is read-only
Definition at line 49 of file audio_data.h.
Referenced by ff_audio_data_alloc(), ff_audio_data_combine(), ff_audio_data_init(), ff_audio_data_read_from_fifo(), ff_audio_data_realloc(), and ff_audio_resample().
enum AVSampleFormat AudioData::sample_fmt |
sample format
Definition at line 42 of file audio_data.h.
Referenced by ff_audio_data_alloc(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_init(), ff_audio_data_realloc(), and ff_convert_dither().
int AudioData::sample_rate |
Definition at line 49 of file oss_audio.c.
Referenced by audio_open(), audio_read_header(), audio_read_packet(), and audio_write_header().
int AudioData::sample_size |
bytes per sample
Definition at line 47 of file audio_data.h.
Referenced by ff_audio_data_alloc(), and ff_audio_data_init().
int AudioData::samples_align |
allocated samples alignment
Definition at line 52 of file audio_data.h.
Referenced by ff_audio_data_init(), ff_audio_data_realloc(), ff_audio_mix(), ff_convert_dither(), and if().
int AudioData::stride |
sample byte offset within a plane
Definition at line 48 of file audio_data.h.
Referenced by ff_audio_data_add_to_fifo(), ff_audio_data_alloc(), ff_audio_data_combine(), ff_audio_data_copy(), ff_audio_data_drain(), ff_audio_data_init(), ff_audio_data_realloc(), and if().
The documentation for this struct was generated from the following files:
Generated on Mon Nov 18 2024 06:52:11 for FFmpeg by 1.8.11