ffmpeg.libavfilter.avfilter

Undocumented in source.

Members

Aliases

AVLINK_INIT
alias AVLINK_INIT = AVFilterLink._Anonymous_0.AVLINK_INIT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVLINK_STARTINIT
alias AVLINK_STARTINIT = AVFilterLink._Anonymous_0.AVLINK_STARTINIT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVLINK_UNINIT
alias AVLINK_UNINIT = AVFilterLink._Anonymous_0.AVLINK_UNINIT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
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, int function() 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_iterate
const(AVFilter)* av_filter_iterate(void** opaque)

Iterate over all registered filters.

avfilter_config_links
int avfilter_config_links(AVFilterContext* filter)

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

avfilter_configuration
const(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
const(AVFilter)* avfilter_get_by_name(const(char)* name)

Get a filter definition matching the given name.

avfilter_get_class
const(AVClass)* avfilter_get_class()

@return AVClass for AVFilterContext.

avfilter_graph_alloc
AVFilterGraph* avfilter_graph_alloc()

Allocate a filter graph.

avfilter_graph_alloc_filter
AVFilterContext* avfilter_graph_alloc_filter(AVFilterGraph* graph, const(AVFilter)* filter, const(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, const(AVFilter)* filt, const(char)* name, const(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, const(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, const(char)* name)

Get a filter instance identified by instance name from graph.

avfilter_graph_parse
int avfilter_graph_parse(AVFilterGraph* graph, const(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, const(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, const(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, const(char)* target, const(char)* cmd, const(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, const(char)* target, const(char)* cmd, const(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_str
int avfilter_init_str(AVFilterContext* ctx, const(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
const(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. @deprecated Use av_buffersink_get_channels()

avfilter_link_set_closed
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
const(AVFilter)* avfilter_next(const(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_pad_count
int avfilter_pad_count(const(AVFilterPad)* pads)

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

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

Get the name of an AVFilterPad.

avfilter_pad_get_type
AVMediaType avfilter_pad_get_type(const(AVFilterPad)* pads, int pad_idx)

Get the type of an AVFilterPad.

avfilter_process_command
int avfilter_process_command(AVFilterContext* filter, const(char)* cmd, const(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_version
uint avfilter_version()

Return the LIBAVFILTER_VERSION_INT constant.

Manifest constants

AVFILTER_CMD_FLAG_FAST
enum AVFILTER_CMD_FLAG_FAST;

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

AVFILTER_CMD_FLAG_ONE
enum AVFILTER_CMD_FLAG_ONE;

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

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.

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

Meta