ffmpeg.libavfilter.avfilter

Undocumented in source.

Members

Aliases

avfilter_action_func
alias avfilter_action_func = int function(AVFilterContext* ctx, void* arg, int jobnr, int nb_jobs)

A function pointer passed to the @ref AVFilterGraph.execute callback to be executed multiple times, possibly in parallel.

avfilter_execute_func
alias avfilter_execute_func = int function(AVFilterContext* ctx, avfilter_action_func* func, void* arg, int* ret, int nb_jobs)

A function executing multiple jobs, possibly in parallel.

Enums

AVFILTER_AUTO_CONVERT_ALL
anonymousenum AVFILTER_AUTO_CONVERT_ALL
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

av_filter_next
deprecated AVFilter** av_filter_next(AVFilter** filter)

If filter is NULL, returns a pointer to the first registered filter pointer, if filter is non-NULL, returns the next pointer after filter. If the returned pointer points to NULL, the last registered filter was already reached. @deprecated use avfilter_next()

avfilter_config_links
int avfilter_config_links(AVFilterContext* filter)

Negotiate the media format, dimensions, etc of all inputs to a filter.

avfilter_configuration
char* avfilter_configuration()

Return the libavfilter build-time configuration.

avfilter_free
void avfilter_free(AVFilterContext* filter)

Free a filter context. This will also remove the filter from its filtergraph's list of filters.

avfilter_get_by_name
AVFilter* avfilter_get_by_name(char* name)

Get a filter definition matching the given name.

avfilter_get_class
AVClass* avfilter_get_class()

@return AVClass for AVFilterContext.

avfilter_graph_add_filter
deprecated int avfilter_graph_add_filter(AVFilterGraph* graphctx, AVFilterContext* filter)

Add an existing filter instance to a filter graph.

avfilter_graph_alloc
AVFilterGraph* avfilter_graph_alloc()

Allocate a filter graph.

avfilter_graph_alloc_filter
AVFilterContext* avfilter_graph_alloc_filter(AVFilterGraph* graph, AVFilter* filter, char* name)

Create a new filter instance in a filter graph.

avfilter_graph_config
int avfilter_graph_config(AVFilterGraph* graphctx, void* log_ctx)

Check validity and configure all the links and formats in the graph.

avfilter_graph_create_filter
int avfilter_graph_create_filter(AVFilterContext** filt_ctx, AVFilter* filt, char* name, char* args, void* opaque, AVFilterGraph* graph_ctx)

Create and add a filter instance into an existing graph. The filter instance is created from the filter filt and inited with the parameters args and opaque.

avfilter_graph_dump
char* avfilter_graph_dump(AVFilterGraph* graph, char* options)

Dump a graph into a human-readable string representation.

avfilter_graph_free
void avfilter_graph_free(AVFilterGraph** graph)

Free a graph, destroy its links, and set *graph to NULL. If *graph is NULL, do nothing.

avfilter_graph_get_filter
AVFilterContext* avfilter_graph_get_filter(AVFilterGraph* graph, char* name)

Get a filter instance identified by instance name from graph.

avfilter_graph_parse
int avfilter_graph_parse(AVFilterGraph* graph, char* filters, AVFilterInOut* inputs, AVFilterInOut* outputs, void* log_ctx)

Add a graph described by a string to a graph.

avfilter_graph_parse2
int avfilter_graph_parse2(AVFilterGraph* graph, char* filters, AVFilterInOut** inputs, AVFilterInOut** outputs)

Add a graph described by a string to a graph.

avfilter_graph_parse_ptr
int avfilter_graph_parse_ptr(AVFilterGraph* graph, char* filters, AVFilterInOut** inputs, AVFilterInOut** outputs, void* log_ctx)

Add a graph described by a string to a graph.

avfilter_graph_queue_command
int avfilter_graph_queue_command(AVFilterGraph* graph, char* target, char* cmd, char* arg, int flags, double ts)

Queue a command for one or more filter instances.

avfilter_graph_request_oldest
int avfilter_graph_request_oldest(AVFilterGraph* graph)

Request a frame on the oldest sink link.

avfilter_graph_send_command
int avfilter_graph_send_command(AVFilterGraph* graph, char* target, char* cmd, char* arg, char* res, int res_len, int flags)

Send a command to one or more filter instances.

avfilter_graph_set_auto_convert
void avfilter_graph_set_auto_convert(AVFilterGraph* graph, uint flags)

Enable or disable automatic format conversion inside the graph.

avfilter_init_dict
int avfilter_init_dict(AVFilterContext* ctx, AVDictionary** options)

Initialize a filter with the supplied dictionary of options.

avfilter_init_filter
deprecated int avfilter_init_filter(AVFilterContext* filter, char* args, void* opaque)

Initialize a filter.

avfilter_init_str
int avfilter_init_str(AVFilterContext* ctx, char* args)

Initialize a filter with the supplied parameters.

avfilter_inout_alloc
AVFilterInOut* avfilter_inout_alloc()

Allocate a single AVFilterInOut entry. Must be freed with avfilter_inout_free(). @return allocated AVFilterInOut on success, NULL on failure.

avfilter_inout_free
void avfilter_inout_free(AVFilterInOut** _inout)

Free the supplied list of AVFilterInOut and set *inout to NULL. If *inout is NULL, do nothing.

avfilter_insert_filter
int avfilter_insert_filter(AVFilterLink* link, AVFilterContext* filt, uint filt_srcpad_idx, uint filt_dstpad_idx)

Insert a filter in the middle of an existing link.

avfilter_license
char* avfilter_license()

Return the libavfilter license.

avfilter_link
int avfilter_link(AVFilterContext* src, uint srcpad, AVFilterContext* dst, uint dstpad)

Link two filters together.

avfilter_link_free
void avfilter_link_free(AVFilterLink** link)

Free the link in *link, and set its pointer to NULL.

avfilter_link_get_channels
int avfilter_link_get_channels(AVFilterLink* link)

Get the number of channels of a link.

avfilter_link_set_closed
deprecated void avfilter_link_set_closed(AVFilterLink* link, int closed)

Set the closed field of a link. @deprecated applications are not supposed to mess with links, they should close the sinks.

avfilter_next
AVFilter* avfilter_next(AVFilter* prev)

Iterate over all registered filters. @return If prev is non-NULL, next registered filter after prev or NULL if prev is the last filter. If prev is NULL, return the first registered filter.

avfilter_open
deprecated int avfilter_open(AVFilterContext** filter_ctx, AVFilter* filter, char* inst_name)

Create a filter instance.

avfilter_pad_count
int avfilter_pad_count(AVFilterPad* pads)

Get the number of elements in a NULL-terminated array of AVFilterPads (e.g. AVFilter.inputs/outputs).

avfilter_pad_get_name
char* avfilter_pad_get_name(AVFilterPad* pads, int pad_idx)

Get the name of an AVFilterPad.

avfilter_pad_get_type
AVMediaType avfilter_pad_get_type(AVFilterPad* pads, int pad_idx)

Get the type of an AVFilterPad.

avfilter_process_command
int avfilter_process_command(AVFilterContext* filter, char* cmd, char* arg, char* res, int res_len, int flags)

Make the filter instance process a command. It is recommended to use avfilter_graph_send_command().

avfilter_register
int avfilter_register(AVFilter* filter)

Register a filter. This is only needed if you plan to use avfilter_get_by_name later to lookup the AVFilter structure by name. A filter can still by instantiated with avfilter_graph_alloc_filter even if it is not registered.

avfilter_register_all
void avfilter_register_all()

Initialize the filter system. Register all builtin filters.

avfilter_uninit
deprecated void avfilter_uninit()

Uninitialize the filter system. Unregister all filters.

avfilter_version
uint avfilter_version()

Return the LIBAVFILTER_VERSION_INT constant.

Manifest constants

AVFILTER_FLAG_DYNAMIC_INPUTS
enum AVFILTER_FLAG_DYNAMIC_INPUTS;

The number of the filter inputs is not determined just by AVFilter.inputs. The filter might add additional inputs during initialization depending on the options supplied to it.

AVFILTER_FLAG_DYNAMIC_OUTPUTS
enum AVFILTER_FLAG_DYNAMIC_OUTPUTS;

The number of the filter outputs is not determined just by AVFilter.outputs. The filter might add additional outputs during initialization depending on the options supplied to it.

AVFILTER_FLAG_SLICE_THREADS
enum AVFILTER_FLAG_SLICE_THREADS;

The filter supports multithreading by splitting frames into multiple parts and processing them concurrently.

AVFILTER_FLAG_SUPPORT_TIMELINE
enum AVFILTER_FLAG_SUPPORT_TIMELINE;

Handy mask to test whether the filter supports or no the timeline feature (internally or generically).

AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
enum AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC;

Some filters support a generic "enable" expression option that can be used to enable or disable a filter in the timeline. Filters supporting this option have this flag set. When the enable expression is false, the default no-op filter_frame() function is called in place of the filter_frame() callback defined on each input pad, thus the frame is passed unchanged to the next filters.

AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL
enum AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL;

Same as AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC, except that the filter will have its filter_frame() callback(s) called as usual even when the enable expression is false. The filter will disable filtering within the filter_frame() callback(s) itself, for example executing code depending on the AVFilterContext->is_disabled value.

AVFILTER_THREAD_SLICE
enum AVFILTER_THREAD_SLICE;

Process multiple parts of the frame concurrently.

Structs

AVFilter
struct AVFilter

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

AVFilterContext
struct AVFilterContext

An instance of a filter

AVFilterFormats
struct AVFilterFormats
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVFilterGraph
struct AVFilterGraph
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVFilterGraphInternal
struct AVFilterGraphInternal
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVFilterInOut
struct AVFilterInOut

A linked-list of the inputs/outputs of the filter chain.

AVFilterInternal
struct AVFilterInternal
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVFilterLink
struct AVFilterLink

A link between two filters. This contains pointers to the source and destination filters between which this link exists, and the indexes of the pads involved. In addition, this link also contains the parameters which have been negotiated and agreed upon between the filter, such as image dimensions, format, etc.

Variables

AVFILTER_CMD_FLAG_FAST
uint AVFILTER_CMD_FLAG_FAST;

< Only execute command when its fast (like a video out that supports contrast adjustment in hw)

AVFILTER_CMD_FLAG_ONE
uint AVFILTER_CMD_FLAG_ONE;

< Stop once a filter understood the command (for target=all for example), fast filters are favored automatically

Meta