FFmpeg
Data Fields
AVFilterPad Struct Reference

A filter pad used for either input or output. More...

#include <internal.h>

Data Fields

const char * name
 Pad name. More...
 
enum AVMediaType type
 AVFilterPad type. More...
 
AVFrame *(* get_video_buffer )(AVFilterLink *link, int w, int h)
 Callback function to get a video buffer. More...
 
AVFrame *(* get_audio_buffer )(AVFilterLink *link, int nb_samples)
 Callback function to get an audio buffer. More...
 
int(* filter_frame )(AVFilterLink *link, AVFrame *frame)
 Filtering callback. More...
 
int(* request_frame )(AVFilterLink *link)
 Frame request callback. More...
 
int(* config_props )(AVFilterLink *link)
 Link configuration callback. More...
 
int needs_fifo
 The filter expects a fifo to be inserted on its input link, typically because it has a delay. More...
 
int needs_writable
 The filter expects writable frames from its input link, duplicating data buffers if needed. More...
 

Detailed Description

A filter pad used for either input or output.

Definition at line 54 of file internal.h.

Field Documentation

◆ name

const char* AVFilterPad::name

Pad name.

The name is unique among inputs and among outputs, but an input may have the same name as an output. This may be NULL if this pad has no need to ever be referenced by name.

Examples
filtering_audio.c, filtering_video.c, and transcoding.c.

Definition at line 60 of file internal.h.

Referenced by convert_from_tensorflow.Operand::__str__(), avfilter_graph_dump_to_buf(), avfilter_graph_parse(), avfilter_graph_request_oldest(), avfilter_pad_count(), avfilter_pad_get_name(), decimate_init(), fieldmatch_init(), graph_check_validity(), init(), init_filter(), init_filters(), join_init(), movie_common_init(), parse_definition(), program_opencl_uninit(), split_init(), and xfade_opencl_config_output().

◆ type

enum AVMediaType AVFilterPad::type

◆ get_video_buffer

AVFrame*(* AVFilterPad::get_video_buffer) (AVFilterLink *link, int w, int h)

Callback function to get a video buffer.

If NULL, the filter system will use ff_default_get_video_buffer().

Input video pads only.

Definition at line 73 of file internal.h.

Referenced by init().

◆ get_audio_buffer

AVFrame*(* AVFilterPad::get_audio_buffer) (AVFilterLink *link, int nb_samples)

Callback function to get an audio buffer.

If NULL, the filter system will use ff_default_get_audio_buffer().

Input audio pads only.

Definition at line 81 of file internal.h.

Referenced by init().

◆ filter_frame

int(* AVFilterPad::filter_frame) (AVFilterLink *link, AVFrame *frame)

Filtering callback.

This is where a filter receives a frame with audio/video data and should do its processing.

Input pads only.

Returns
>= 0 on success, a negative AVERROR on error. This function must ensure that frame is properly unreferenced on error if it hasn't been passed on to another filter.

Definition at line 93 of file internal.h.

Referenced by ff_filter_frame_framed(), and init().

◆ request_frame

int(* AVFilterPad::request_frame) (AVFilterLink *link)

Frame request callback.

A call to this should result in some progress towards producing output over the given link. This should return zero on success, and another value on error.

Output pads only.

Definition at line 102 of file internal.h.

Referenced by init(), and movie_common_init().

◆ config_props

int(* AVFilterPad::config_props) (AVFilterLink *link)

Link configuration callback.

For output pads, this should set the link properties such as width/height. This should NOT set the format property - that is negotiated between filters by the filter system using the query_formats() callback before this function is called.

For input pads, this should check the properties of the link, and update the filter's internal state as necessary.

For both input and output filters, this should return zero on success, and another value on error.

Definition at line 118 of file internal.h.

Referenced by decimate_init(), fieldmatch_init(), init(), movie_common_init(), and parse_definition().

◆ needs_fifo

int AVFilterPad::needs_fifo

The filter expects a fifo to be inserted on its input link, typically because it has a delay.

input pads only.

Definition at line 126 of file internal.h.

◆ needs_writable

int AVFilterPad::needs_writable

The filter expects writable frames from its input link, duplicating data buffers if needed.

input pads only.

Definition at line 134 of file internal.h.

Referenced by ff_filter_frame_framed().


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