47 #define OFFSET(x) offsetof(ANullContext, x) 48 #define FLAGS AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM 100 "sample_rate:%d channel_layout:'%s' nb_samples:%d\n",
116 samplesref->
pts = null->
pts;
146 .
outputs = avfilter_asrc_anullsrc_outputs,
147 .priv_class = &anullsrc_class,
This structure describes decoded (raw) audio or video data.
char * channel_layout_str
Main libavfilter public API header.
const char * name
Pad name.
int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
Send a frame of data to the next filter.
int64_t pts
Presentation timestamp in time_base units (time when frame should be shown to user).
#define AV_LOG_VERBOSE
Detailed information.
static int config_props(AVFilterLink *outlink)
A filter pad used for either input or output.
A link between two filters.
int sample_rate
samples per second
AVFrame * ff_get_audio_buffer(AVFilterLink *link, int nb_samples)
Request an audio samples buffer with a specific set of permissions.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
AVFilter ff_asrc_anullsrc
void * priv
private data for use by the filter
int nb_samples
number of samples per requested frame
uint64_t channel_layout
Channel layout of the audio data.
common internal API header
audio channel layout utility functions
AVFilterContext * src
source filter
static const AVFilterPad inputs[]
AVFrame * av_frame_clone(const AVFrame *src)
Create a new frame that references the same data as src.
static const AVFilterPad outputs[]
void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint64_t channel_layout)
Return a description of a channel layout.
static const AVFilterPad avfilter_asrc_anullsrc_outputs[]
static int query_formats(AVFilterContext *ctx)
Describe the class of an AVClass context structure.
int sample_rate
Sample rate of the audio data.
const char * name
Filter name.
static const AVOption anullsrc_options[]
static int request_frame(AVFilterLink *outlink)
AVFILTER_DEFINE_CLASS(anullsrc)
static av_cold int init(AVFilterContext *ctx)