FFmpeg
Loading...
Searching...
No Matches
avfilter_internal.h File Reference
#include <stdint.h>
#include "avfilter.h"
#include "filters.h"
#include "framepool.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)
 
#define ff_tlog_link(ctx, link, end)
 

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.
 
AVFilterContextff_filter_alloc (const AVFilter *filter, const char *inst_name)
 Allocate a new filter context and return it.
 
void ff_filter_graph_remove_filter (AVFilterGraph *graph, AVFilterContext *filter)
 Remove a filter from a graph;.
 
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.
 
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.
 
int ff_filter_graph_run_once (AVFilterGraph *graph)
 Run one round of processing on a filter graph.
 
int ff_inlink_process_commands (AVFilterLink *link, const AVFrame *frame)
 Process the commands queued in the link up to the time of the frame.
 

Macro Definition Documentation

◆ FF_TPRINTF_START

#define FF_TPRINTF_START ( ctx,
func )
Value:
ff_tlog(NULL, "%-16s: ", #func)
#define NULL
Definition coverity.c:32
int(* func)(AVBPrint *dst, const char *in, const char *arg)
Definition jacosubdec.c:66
#define ff_tlog(a,...)

Definition at line 209 of file avfilter_internal.h.

Referenced by ff_filter_frame(), ff_get_video_buffer(), ff_request_frame(), and request_frame_to_filter().

◆ ff_tlog_link

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

Definition at line 214 of file avfilter_internal.h.

Referenced by ff_filter_frame(), ff_get_video_buffer(), ff_request_frame(), and request_frame_to_filter().

Function Documentation

◆ ff_link_internal()

static FilterLinkInternal * ff_link_internal ( AVFilterLink * link)
inlinestatic

Definition at line 94 of file avfilter_internal.h.

◆ fffilterctx()

◆ fffiltergraph()

◆ 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 1559 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 701 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 101 of file avfiltergraph.c.

Referenced by avfilter_free().

◆ ff_filter_activate()

int ff_filter_activate ( AVFilterContext * filter)

Definition at line 1451 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 853 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 77 of file avfiltergraph.c.

Referenced by avfilter_graph_alloc_filter().

◆ ff_graph_thread_free()

void ff_graph_thread_free ( FFFilterGraph * graph)

Definition at line 73 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 328 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 1616 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 1607 of file avfilter.c.

Referenced by consume_update(), and filter_frame_framed().