FFmpeg
Loading...
Searching...
No Matches
Data Fields
AVAudioFifo Struct Reference

Context for an Audio FIFO Buffer. More...

Data Fields

AVFifo **  buf
  single buffer for interleaved, per-channel buffers for planar
 
int  nb_buffers
  number of buffers
 
int  nb_samples
  number of samples currently in the FIFO
 
  current allocated size, in samples
 
int  channels
  number of channels
 
  sample format
 
int  sample_size
  size, in bytes, of one sample in a buffer
 

Detailed Description

Context for an Audio FIFO Buffer.

  • Operates at the sample level rather than the byte level.
  • Supports multiple channels with either planar or packed sample format.
  • Automatic reallocation when writing to a full buffer.
Examples
transcode_aac.c.

Definition at line 37 of file audio_fifo.c.

Field Documentation

◆  buf

AVFifo** AVAudioFifo::buf

single buffer for interleaved, per-channel buffers for planar

Definition at line 38 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_drain(), av_audio_fifo_free(), av_audio_fifo_peek_at(), av_audio_fifo_read(), av_audio_fifo_realloc(), av_audio_fifo_reset(), and av_audio_fifo_write().

◆  nb_buffers

int AVAudioFifo::nb_buffers

number of buffers

Definition at line 39 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_drain(), av_audio_fifo_free(), av_audio_fifo_peek_at(), av_audio_fifo_read(), av_audio_fifo_realloc(), av_audio_fifo_reset(), av_audio_fifo_write(), free_data_planes(), read_samples_from_audio_fifo(), and write_samples_to_audio_fifo().

◆  nb_samples

int AVAudioFifo::nb_samples

number of samples currently in the FIFO

Definition at line 40 of file audio_fifo.c.

Referenced by av_audio_fifo_drain(), av_audio_fifo_peek_at(), av_audio_fifo_read(), av_audio_fifo_reset(), av_audio_fifo_size(), av_audio_fifo_space(), av_audio_fifo_write(), read_samples_from_audio_fifo(), and test_function().

◆  allocated_samples

int AVAudioFifo::allocated_samples

current allocated size, in samples

Definition at line 41 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_realloc(), and av_audio_fifo_space().

◆  channels

int AVAudioFifo::channels

number of channels

Definition at line 43 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_realloc(), and read_samples_from_audio_fifo().

◆  sample_fmt

enum AVSampleFormat AVAudioFifo::sample_fmt

sample format

Definition at line 44 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_realloc(), and read_samples_from_audio_fifo().

◆  sample_size

int AVAudioFifo::sample_size

size, in bytes, of one sample in a buffer

Definition at line 45 of file audio_fifo.c.

Referenced by av_audio_fifo_alloc(), av_audio_fifo_drain(), av_audio_fifo_peek_at(), av_audio_fifo_read(), av_audio_fifo_write(), read_samples_from_audio_fifo(), and write_samples_to_audio_fifo().


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

Generated on Sun Sep 6 2026 19:21:24 for FFmpeg by doxygen 1.13.2

AltStyle によって変換されたページ (->オリジナル) /