AVFilter Struct Reference

Filter definition. More...

#include <avfilter.h>

Collaboration diagram for AVFilter:
Collaboration graph

Data Fields

const char * name
 filter name More...
 
const char * description
 A description for the filter. More...
 
const AVFilterPadinputs
 NULL terminated list of inputs. NULL if none. More...
 
const AVFilterPadoutputs
 NULL terminated list of outputs. NULL if none. More...
 
const AVClasspriv_class
 A class for the private data, used to access filter private AVOptions. More...
 
int flags
 A combination of AVFILTER_FLAG_*. More...
 
int(* init )(AVFilterContext *ctx)
 Filter initialization function. More...
 
int(* init_dict )(AVFilterContext *ctx, AVDictionary **options)
 Should be set instead of init by the filters that want to pass a dictionary of AVOptions to nested contexts that are allocated in init. More...
 
void(* uninit )(AVFilterContext *ctx)
 Filter uninitialization function. More...
 
int(* query_formats )(AVFilterContext *)
 Queries formats/layouts supported by the filter and its pads, and sets the in_formats/in_chlayouts for links connected to its output pads, and out_formats/out_chlayouts for links connected to its input pads. More...
 
int priv_size
 size of private data to allocate for the filter More...
 
struct AVFilternext
 
int(* process_command )(AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags)
 Make the filter instance process a command. More...
 
int(* init_opaque )(AVFilterContext *ctx, void *opaque)
 Filter initialization function, alternative to the init() callback. More...
 

Detailed Description

Filter definition.

This defines the pads a filter contains, and all the callback functions used to interact with the filter.

Definition at line 436 of file avfilter.h.

Field Documentation

const char* AVFilter::description

A description for the filter.

You should use the NULL_IF_CONFIG_SMALL() macro to define it.

Definition at line 443 of file avfilter.h.

Referenced by show_help_filter().

int AVFilter::flags

A combination of AVFILTER_FLAG_*.

Definition at line 457 of file avfilter.h.

Referenced by show_help_filter().

int(* AVFilter::init) (AVFilterContext *ctx)

Filter initialization function.

Called when all the options have been set.

Definition at line 471 of file avfilter.h.

Referenced by avfilter_init_dict().

int(* AVFilter::init_dict) (AVFilterContext *ctx, AVDictionary **options)

Should be set instead of init by the filters that want to pass a dictionary of AVOptions to nested contexts that are allocated in init.

Definition at line 478 of file avfilter.h.

Referenced by avfilter_init_dict().

int(* AVFilter::init_opaque) (AVFilterContext *ctx, void *opaque)

Filter initialization function, alternative to the init() callback.

Args contains the user-supplied parameters, opaque is used for providing binary data.

Definition at line 520 of file avfilter.h.

Referenced by avfilter_init_dict().

const AVFilterPad* AVFilter::inputs

NULL terminated list of inputs. NULL if none.

Definition at line 445 of file avfilter.h.

Referenced by avfilter_register(), ff_filter_alloc(), init(), main(), show_help_filter(), and split_init().

struct AVFilter* AVFilter::next

Definition at line 499 of file avfilter.h.

Referenced by avfilter_next(), and avfilter_register().

const AVFilterPad* AVFilter::outputs

NULL terminated list of outputs. NULL if none.

Definition at line 446 of file avfilter.h.

Referenced by ff_filter_alloc(), main(), and show_help_filter().

const AVClass* AVFilter::priv_class

A class for the private data, used to access filter private AVOptions.

Definition at line 452 of file avfilter.h.

Referenced by avfilter_free(), avfilter_init_dict(), avfilter_init_str(), ff_filter_alloc(), filter_child_class_next(), filter_child_next(), and show_help_filter().

int AVFilter::priv_size

size of private data to allocate for the filter

Definition at line 497 of file avfilter.h.

Referenced by ff_filter_alloc().

int(* AVFilter::process_command) (AVFilterContext *, const char *cmd, const char *arg, char *res, int res_len, int flags)

Make the filter instance process a command.

Parameters
cmdthe command to process, for handling simplicity all commands must be alphanumeric only
argthe argument for the command
resa buffer with size res_size where the filter(s) can return a response. This must not change when the command is not supported.
flagsif AVFILTER_CMD_FLAG_FAST is set and the command would be time consuming then a filter should treat it like an unsupported command
Returns
>=0 on success otherwise an error code. AVERROR(ENOSYS) on unsupported commands

Definition at line 513 of file avfilter.h.

Referenced by avfilter_process_command().

int(* AVFilter::query_formats) (AVFilterContext *)

Queries formats/layouts supported by the filter and its pads, and sets the in_formats/in_chlayouts for links connected to its output pads, and out_formats/out_chlayouts for links connected to its input pads.

Returns
zero on success, a negative value corresponding to an AVERROR code otherwise

Definition at line 495 of file avfilter.h.

Referenced by filter_query_formats(), main(), and query_formats().

void(* AVFilter::uninit) (AVFilterContext *ctx)

Filter uninitialization function.

Should deallocate any memory held by the filter, release any buffer references, etc. This does not need to deallocate the AVFilterContext->priv memory itself.

Definition at line 485 of file avfilter.h.

Referenced by avfilter_free().


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