FFmpeg
Functions | Variables
audio.h File Reference
#include "avfilter.h"
#include "filters.h"

Go to the source code of this file.

Functions

  default handler for get_audio_buffer() for audio inputs More...
 
  get_audio_buffer() handler for filters which simply pass audio along More...
 
  Request an audio samples buffer with a specific set of permissions. More...
 
av_warn_unused_result int  ff_parse_sample_rate (int *ret, const char *arg, void *log_ctx)
  Parse a sample rate. More...
 
av_warn_unused_result int  ff_parse_channel_layout (AVChannelLayout *ret, int *nret, const char *arg, void *log_ctx)
  Parse a channel layout or a corresponding integer representation. More...
 

Variables

  An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO. More...
 

Function Documentation

ff_default_get_audio_buffer()

AVFrame* ff_default_get_audio_buffer ( AVFilterLinklink,
int  nb_samples 
)

default handler for get_audio_buffer() for audio inputs

Definition at line 46 of file audio.c.

Referenced by ff_get_audio_buffer(), and get_buffer().

ff_null_get_audio_buffer()

AVFrame* ff_null_get_audio_buffer ( AVFilterLinklink,
int  nb_samples 
)

get_audio_buffer() handler for filters which simply pass audio along

Definition at line 41 of file audio.c.

Referenced by init().

ff_get_audio_buffer()

AVFrame* ff_get_audio_buffer ( AVFilterLinklink,
int  nb_samples 
)

Request an audio samples buffer with a specific set of permissions.

Parameters
link the output link to the filter from which the buffer will be requested
nb_samples the number of samples per channel
Returns
on success an AVFrame owned by the caller, NULL on error

Definition at line 98 of file audio.c.

Referenced by activate(), analyze_frame(), audio_frame(), compand_delay(), compand_drain(), compand_nodelay(), config_filter(), config_input(), config_output(), convert_coeffs(), ff_inlink_make_frame_writable(), ff_null_get_audio_buffer(), filter_frame(), fir_frame(), flush_buffer(), flush_frame(), get_audio_buffer(), headphone_frame(), init_segment(), output_frame(), push_frame(), push_last_frame(), request_frame(), send_silence(), spatial_activate(), take_samples(), and try_push_frame().

ff_parse_sample_rate()

av_warn_unused_result int ff_parse_sample_rate ( int *  ret,
const char *  arg,
void *  log_ctx 
)

Parse a sample rate.

Parameters
ret unsigned integer pointer to where the value should be written
arg string to parse
log_ctx log context
Returns
>= 0 in case of success, a negative AVERROR code on error

Definition at line 111 of file audio.c.

Referenced by init().

ff_parse_channel_layout()

av_warn_unused_result int ff_parse_channel_layout ( AVChannelLayoutret,
int *  nret,
const char *  arg,
void *  log_ctx 
)

Parse a channel layout or a corresponding integer representation.

Parameters
ret 64bit integer pointer to where the value should be written.
nret integer pointer to the number of channels; if not NULL, then unknown channel layouts are accepted
arg string to parse
log_ctx log context
Returns
>= 0 in case of success, a negative AVERROR code on error

Definition at line 123 of file audio.c.

Referenced by init(), and main().

Variable Documentation

ff_audio_default_filterpad

const AVFilterPad ff_audio_default_filterpad[1]

An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_AUDIO.

Definition at line 34 of file audio.c.


Generated on Sat Oct 18 2025 19:24:05 for FFmpeg by   doxygen 1.8.17

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