|
FFmpeg 7.1.2
|
Typedefs | |
| typedef struct AVAudioFifo | AVAudioFifo |
| Context for an Audio FIFO Buffer. | |
Functions | |
| void | av_audio_fifo_free (AVAudioFifo *af) |
| Free an AVAudioFifo. | |
| AVAudioFifo * | av_audio_fifo_alloc (enum AVSampleFormat sample_fmt, int channels, int nb_samples) |
| Allocate an AVAudioFifo. | |
| av_warn_unused_result int | av_audio_fifo_realloc (AVAudioFifo *af, int nb_samples) |
| Reallocate an AVAudioFifo. | |
| int | av_audio_fifo_write (AVAudioFifo *af, void *const *data, int nb_samples) |
| Write data to an AVAudioFifo. | |
| int | av_audio_fifo_peek (const AVAudioFifo *af, void *const *data, int nb_samples) |
| Peek data from an AVAudioFifo. | |
| int | av_audio_fifo_peek_at (const AVAudioFifo *af, void *const *data, int nb_samples, int offset) |
| Peek data from an AVAudioFifo. | |
| int | av_audio_fifo_read (AVAudioFifo *af, void *const *data, int nb_samples) |
| Read data from an AVAudioFifo. | |
| int | av_audio_fifo_drain (AVAudioFifo *af, int nb_samples) |
| Drain data from an AVAudioFifo. | |
| void | av_audio_fifo_reset (AVAudioFifo *af) |
| Reset the AVAudioFifo buffer. | |
| int | av_audio_fifo_size (AVAudioFifo *af) |
| Get the current number of samples in the AVAudioFifo available for reading. | |
| int | av_audio_fifo_space (AVAudioFifo *af) |
| Get the current number of samples in the AVAudioFifo available for writing. | |
| typedef struct AVAudioFifo AVAudioFifo |
Context for an Audio FIFO Buffer.
Definition at line 48 of file audio_fifo.h.
| void av_audio_fifo_free | ( | AVAudioFifo * | af | ) |
Free an AVAudioFifo.
| af | AVAudioFifo to free |
Referenced by main().
| AVAudioFifo * av_audio_fifo_alloc | ( | enum AVSampleFormat | sample_fmt, |
| int | channels, | ||
| int | nb_samples | ||
| ) |
Allocate an AVAudioFifo.
| sample_fmt | sample format |
| channels | number of channels |
| nb_samples | initial allocation size, in samples |
Referenced by init_fifo().
| av_warn_unused_result int av_audio_fifo_realloc | ( | AVAudioFifo * | af, |
| int | nb_samples | ||
| ) |
Reallocate an AVAudioFifo.
| af | AVAudioFifo to reallocate |
| nb_samples | new allocation size, in samples |
Referenced by add_samples_to_fifo().
| int av_audio_fifo_write | ( | AVAudioFifo * | af, |
| void *const * | data, | ||
| int | nb_samples | ||
| ) |
Write data to an AVAudioFifo.
The AVAudioFifo will be reallocated automatically if the available space is less than nb_samples.
| af | AVAudioFifo to write to |
| data | audio data plane pointers |
| nb_samples | number of samples to write |
Referenced by add_samples_to_fifo().
| int av_audio_fifo_peek | ( | const AVAudioFifo * | af, |
| void *const * | data, | ||
| int | nb_samples | ||
| ) |
Peek data from an AVAudioFifo.
| af | AVAudioFifo to read from |
| data | audio data plane pointers |
| nb_samples | number of samples to peek |
| int av_audio_fifo_peek_at | ( | const AVAudioFifo * | af, |
| void *const * | data, | ||
| int | nb_samples, | ||
| int | offset | ||
| ) |
Peek data from an AVAudioFifo.
| af | AVAudioFifo to read from |
| data | audio data plane pointers |
| nb_samples | number of samples to peek |
| offset | offset from current read position |
| int av_audio_fifo_read | ( | AVAudioFifo * | af, |
| void *const * | data, | ||
| int | nb_samples | ||
| ) |
Read data from an AVAudioFifo.
| af | AVAudioFifo to read from |
| data | audio data plane pointers |
| nb_samples | number of samples to read |
Referenced by load_encode_and_write().
| int av_audio_fifo_drain | ( | AVAudioFifo * | af, |
| int | nb_samples | ||
| ) |
Drain data from an AVAudioFifo.
Removes the data without reading it.
| af | AVAudioFifo to drain |
| nb_samples | number of samples to drain |
| void av_audio_fifo_reset | ( | AVAudioFifo * | af | ) |
Reset the AVAudioFifo buffer.
This empties all data in the buffer.
| af | AVAudioFifo to reset |
| int av_audio_fifo_size | ( | AVAudioFifo * | af | ) |
Get the current number of samples in the AVAudioFifo available for reading.
| af | the AVAudioFifo to query |
Referenced by add_samples_to_fifo(), load_encode_and_write(), and main().
| int av_audio_fifo_space | ( | AVAudioFifo * | af | ) |
Get the current number of samples in the AVAudioFifo available for writing.
| af | the AVAudioFifo to query |