FFmpeg
Data Structures | Macros | Functions
avfilter_internal.h File Reference
#include <stdint.h>
#include "avfilter.h"
#include "filters.h"
#include "framequeue.h"

Go to the source code of this file.

Data Structures

struct  FilterLinkInternal
 
struct  FFFilterContext
 
struct  AVFilterCommand
 
struct  FFFilterGraph
 

Macros

#define FF_TPRINTF_START(ctx, func)   ff_tlog(NULL, "%-16s: ", #func)
 
#define ff_tlog_link(ctx, link, end)   do { } while(0)
 

Functions

static FilterLinkInternalff_link_internal (AVFilterLink *link)
 
static FFFilterContextfffilterctx (AVFilterContext *ctx)
 
static FFFilterGraphfffiltergraph (AVFilterGraph *graph)
 
void ff_avfilter_graph_update_heap (AVFilterGraph *graph, struct FilterLinkInternal *li)
 Update the position of a link in the age heap. More...
 
AVFilterContextff_filter_alloc (const AVFilter *filter, const char *inst_name)
 Allocate a new filter context and return it. More...
 
void ff_filter_graph_remove_filter (AVFilterGraph *graph, AVFilterContext *filter)
 Remove a filter from a graph;. More...
 
int ff_filter_activate (AVFilterContext *filter)
 
int ff_filter_opt_parse (void *logctx, const AVClass *priv_class, AVDictionary **options, const char *args)
 Parse filter options into a dictionary. More...
 
int ff_graph_thread_init (FFFilterGraph *graph)
 
void ff_graph_thread_free (FFFilterGraph *graph)
 
int ff_filter_config_links (AVFilterContext *filter)
 Negotiate the media format, dimensions, etc of all inputs to a filter. More...
 
int ff_filter_graph_run_once (AVFilterGraph *graph)
 Run one round of processing on a filter graph. More...
 
int ff_inlink_process_commands (AVFilterLink *link, const AVFrame *frame)
 Process the commands queued in the link up to the time of the frame. More...
 
int ff_inlink_evaluate_timeline_at_frame (AVFilterLink *link, const AVFrame *frame)
 Evaluate the timeline expression of the link for the time and properties of the frame. More...
 

Macro Definition Documentation

◆ FF_TPRINTF_START

#define FF_TPRINTF_START (   ctx,
  func 
)    ff_tlog(NULL, "%-16s: ", #func)

Definition at line 191 of file avfilter_internal.h.

◆ ff_tlog_link

#define ff_tlog_link (   ctx,
  link,
  end 
)    do { } while(0)

Definition at line 196 of file avfilter_internal.h.

Function Documentation

◆ ff_link_internal()

static FilterLinkInternal* ff_link_internal ( AVFilterLink link)
inlinestatic

◆ fffilterctx()

static FFFilterContext* fffilterctx ( AVFilterContext ctx)
inlinestatic

◆ fffiltergraph()

static FFFilterGraph* fffiltergraph ( AVFilterGraph graph)
inlinestatic

◆ ff_avfilter_graph_update_heap()

void ff_avfilter_graph_update_heap ( AVFilterGraph graph,
struct FilterLinkInternal li 
)

Update the position of a link in the age heap.

Definition at line 1416 of file avfiltergraph.c.

Referenced by update_link_current_pts().

◆ ff_filter_alloc()

AVFilterContext* ff_filter_alloc ( const AVFilter filter,
const char *  inst_name 
)

Allocate a new filter context and return it.

Parameters
filterwhat filter to create an instance of
inst_namename to give to the new filter context
Returns
newly created filter context or NULL on failure

Definition at line 696 of file avfilter.c.

Referenced by avfilter_graph_alloc_filter().

◆ ff_filter_graph_remove_filter()

void ff_filter_graph_remove_filter ( AVFilterGraph graph,
AVFilterContext filter 
)

Remove a filter from a graph;.

Definition at line 99 of file avfiltergraph.c.

Referenced by avfilter_free().

◆ ff_filter_activate()

int ff_filter_activate ( AVFilterContext filter)

Definition at line 1385 of file avfilter.c.

Referenced by ff_filter_graph_run_once().

◆ ff_filter_opt_parse()

int ff_filter_opt_parse ( void *  logctx,
const AVClass priv_class,
AVDictionary **  options,
const char *  args 
)

Parse filter options into a dictionary.

Parameters
logctxcontext for logging
priv_classa filter's private class for shorthand options or NULL
optionsdictionary to store parsed options in
argsoptions string to parse
Returns
a non-negative number on success, a negative error code on failure

Definition at line 843 of file avfilter.c.

Referenced by avfilter_init_str(), and filter_parse().

◆ ff_graph_thread_init()

int ff_graph_thread_init ( FFFilterGraph graph)

Definition at line 75 of file avfiltergraph.c.

Referenced by avfilter_graph_alloc_filter().

◆ ff_graph_thread_free()

void ff_graph_thread_free ( FFFilterGraph graph)

Definition at line 71 of file avfiltergraph.c.

Referenced by avfilter_graph_free().

◆ ff_filter_config_links()

int ff_filter_config_links ( AVFilterContext filter)

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

Parameters
filterthe filter to negotiate the properties for its inputs
Returns
zero on successful negotiation

Definition at line 333 of file avfilter.c.

Referenced by ff_filter_config_links(), and graph_config_links().

◆ ff_filter_graph_run_once()

int ff_filter_graph_run_once ( AVFilterGraph graph)

Run one round of processing on a filter graph.

Definition at line 1471 of file avfiltergraph.c.

Referenced by avfilter_graph_request_oldest(), get_frame_internal(), and push_frame().

◆ ff_inlink_process_commands()

int ff_inlink_process_commands ( AVFilterLink link,
const AVFrame frame 
)

Process the commands queued in the link up to the time of the frame.

Commands will trigger the process_command() callback.

Returns
>= 0 or AVERROR code.

Definition at line 1540 of file avfilter.c.

Referenced by consume_update(), and ff_filter_frame_framed().

◆ ff_inlink_evaluate_timeline_at_frame()

int ff_inlink_evaluate_timeline_at_frame ( AVFilterLink link,
const AVFrame frame 
)

Evaluate the timeline expression of the link for the time and properties of the frame.

Returns
>0 if enabled, 0 if disabled
Note
It does not update link->dst->is_disabled.

Definition at line 1555 of file avfilter.c.

Referenced by consume_update(), and ff_filter_frame_framed().