FFmpeg
Data Fields
AVFilterContext Struct Reference

An instance of a filter. More...

#include <avfilter.h>

Data Fields

const AVClassav_class
 needed for av_log() and filters common options More...
 
const AVFilterfilter
 the AVFilter of which this is an instance More...
 
char * name
 name of this filter instance More...
 
AVFilterPadinput_pads
 array of input pads More...
 
AVFilterLink ** inputs
 array of pointers to input links More...
 
unsigned nb_inputs
 number of input pads More...
 
AVFilterPadoutput_pads
 array of output pads More...
 
AVFilterLink ** outputs
 array of pointers to output links More...
 
unsigned nb_outputs
 number of output pads More...
 
void * priv
 private data for use by the filter More...
 
struct AVFilterGraphgraph
 filtergraph this filter belongs to More...
 
int thread_type
 Type of multithreading being allowed/used. More...
 
AVFilterInternalinternal
 An opaque struct for libavfilter internal use. More...
 
struct AVFilterCommandcommand_queue
 
char * enable_str
 enable expression string More...
 
void * enable
 parsed expression (AVExpr*) More...
 
double * var_values
 variable values for the enable expression More...
 
int is_disabled
 the enabled state from the last expression evaluation More...
 
AVBufferRefhw_device_ctx
 For filters which will create hardware frames, sets the device the filter should create them in. More...
 
int nb_threads
 Max number of threads allowed in this filter instance. More...
 
unsigned ready
 Ready status of the filter. More...
 
int extra_hw_frames
 Sets the number of extra hardware frames which the filter will allocate on its output links for use in following filters or by the caller. More...
 

Detailed Description

An instance of a filter.

Examples
filter_audio.c, filtering_audio.c, filtering_video.c, and transcoding.c.

Definition at line 338 of file avfilter.h.

Field Documentation

◆ av_class

const AVClass* AVFilterContext::av_class

needed for av_log() and filters common options

Definition at line 339 of file avfilter.h.

◆ filter

const AVFilter* AVFilterContext::filter

◆ name

char* AVFilterContext::name

◆ input_pads

AVFilterPad* AVFilterContext::input_pads

array of input pads

Definition at line 345 of file avfilter.h.

Referenced by avfilter_link(), and program_opencl_uninit().

◆ inputs

AVFilterLink** AVFilterContext::inputs

◆ nb_inputs

unsigned AVFilterContext::nb_inputs

number of input pads

Definition at line 347 of file avfilter.h.

Referenced by avfilter_link(), ff_qsvvpp_create(), ff_scale_eval_dimensions(), link_filter_inouts(), and program_opencl_uninit().

◆ output_pads

AVFilterPad* AVFilterContext::output_pads

array of output pads

Definition at line 349 of file avfilter.h.

Referenced by init_complex_filtergraph().

◆ outputs

AVFilterLink** AVFilterContext::outputs

◆ nb_outputs

unsigned AVFilterContext::nb_outputs

number of output pads

Definition at line 351 of file avfilter.h.

Referenced by ff_framesync_init(), and link_filter_inouts().

◆ priv

void* AVFilterContext::priv

private data for use by the filter

Definition at line 353 of file avfilter.h.

Referenced by av_buffersrc_get_nb_failed_requests(), avgblur_opencl_filter_frame(), avgblur_opencl_init(), avgblur_opencl_uninit(), colorkey_opencl_init(), colorkey_opencl_uninit(), config_input(), config_output(), config_props(), convolution_opencl_filter_frame(), convolution_opencl_init(), convolution_opencl_make_filter_params(), convolution_opencl_uninit(), deint_vaapi_build_filter_params(), deint_vaapi_config_output(), deint_vaapi_filter_frame(), deint_vaapi_init(), deint_vaapi_pipeline_uninit(), denoise_vaapi_build_filter_params(), denoise_vaapi_init(), do_chromahold_slice(), do_chromakey_slice(), do_colorhold_slice(), do_colorkey_slice(), ff_opencl_filter_config_input(), ff_opencl_filter_config_output(), ff_opencl_filter_init(), ff_opencl_filter_load_program(), ff_opencl_filter_uninit(), ff_vaapi_vpp_config_input(), ff_vaapi_vpp_config_output(), ff_vaapi_vpp_ctx_init(), ff_vaapi_vpp_ctx_uninit(), ff_vaapi_vpp_init_params(), ff_vaapi_vpp_make_param_buffers(), ff_vaapi_vpp_pipeline_uninit(), ff_vaapi_vpp_render_picture(), filter_callback(), filter_frame(), hwdownload_config_input(), hwdownload_config_output(), hwdownload_filter_frame(), hwdownload_uninit(), hwmap_config_output(), hwmap_filter_frame(), hwmap_get_buffer(), hwmap_uninit(), hwupload_config_output(), hwupload_filter_frame(), hwupload_query_formats(), hwupload_uninit(), init(), init_filter(), init_src(), initialize_chromakey(), launch_kernel(), misc_vaapi_filter_frame(), neighbor_opencl_filter_frame(), neighbor_opencl_init(), neighbor_opencl_make_filter_params(), neighbor_opencl_uninit(), nlmeans_opencl_filter_frame(), nlmeans_opencl_init(), nlmeans_opencl_uninit(), nlmeans_plane(), opencl_filter_set_device(), overlay_opencl_activate(), overlay_opencl_blend(), overlay_opencl_config_output(), overlay_opencl_init(), overlay_opencl_load(), overlay_opencl_uninit(), procamp_vaapi_build_filter_params(), procamp_vaapi_filter_frame(), procamp_vaapi_init(), program_opencl_activate(), program_opencl_config_output(), program_opencl_filter(), program_opencl_init(), program_opencl_load(), program_opencl_run(), program_opencl_uninit(), push_frame(), request_frame(), scale_vaapi_config_output(), scale_vaapi_filter_frame(), scale_vaapi_init(), sharpness_vaapi_build_filter_params(), sharpness_vaapi_init(), source_request_frame(), tonemap_opencl_config_output(), tonemap_opencl_filter_frame(), tonemap_opencl_init(), tonemap_opencl_uninit(), transpose_opencl_config_output(), transpose_opencl_filter_frame(), transpose_opencl_init(), transpose_opencl_uninit(), transpose_vaapi_build_filter_params(), transpose_vaapi_filter_frame(), transpose_vaapi_init(), transpose_vaapi_vpp_config_output(), uninit(), unsharp_opencl_filter_frame(), unsharp_opencl_init(), unsharp_opencl_make_filter_params(), unsharp_opencl_uninit(), vaapi_vpp_colour_properties(), vibrance_slice16(), and vibrance_slice8().

◆ graph

struct AVFilterGraph* AVFilterContext::graph

filtergraph this filter belongs to

Definition at line 355 of file avfilter.h.

Referenced by avfilter_link().

◆ thread_type

int AVFilterContext::thread_type

Type of multithreading being allowed/used.

A combination of AVFILTER_THREAD_* flags.

May be set by the caller before initializing the filter to forbid some or all kinds of multithreading for this filter. The default is allowing everything.

When the filter is initialized, this field is combined using bit AND with AVFilterGraph.thread_type to get the final mask used for determining allowed threading types. I.e. a threading type needs to be set in both to be allowed.

After the filter is initialized, libavfilter sets this field to the threading type that is actually used (0 for no multithreading).

Definition at line 373 of file avfilter.h.

◆ internal

AVFilterInternal* AVFilterContext::internal

An opaque struct for libavfilter internal use.

Definition at line 378 of file avfilter.h.

Referenced by filter_frame().

◆ command_queue

struct AVFilterCommand* AVFilterContext::command_queue

Definition at line 380 of file avfilter.h.

◆ enable_str

char* AVFilterContext::enable_str

enable expression string

Definition at line 382 of file avfilter.h.

Referenced by ff_inlink_evaluate_timeline_at_frame().

◆ enable

void* AVFilterContext::enable

parsed expression (AVExpr*)

Definition at line 383 of file avfilter.h.

Referenced by ff_inlink_evaluate_timeline_at_frame().

◆ var_values

double* AVFilterContext::var_values

variable values for the enable expression

Definition at line 384 of file avfilter.h.

Referenced by ff_inlink_evaluate_timeline_at_frame().

◆ is_disabled

int AVFilterContext::is_disabled

the enabled state from the last expression evaluation

Definition at line 385 of file avfilter.h.

Referenced by ff_filter_frame_framed().

◆ hw_device_ctx

AVBufferRef* AVFilterContext::hw_device_ctx

For filters which will create hardware frames, sets the device the filter should create them in.

All other filters will ignore this field: in particular, a filter which consumes or processes hardware frames will instead use the hw_frames_ctx field in AVFilterLink to carry the hardware context information.

Definition at line 394 of file avfilter.h.

Referenced by configure_filtergraph(), ff_opencl_filter_config_output(), hwmap_config_output(), hwupload_query_formats(), and init_vpp_session().

◆ nb_threads

int AVFilterContext::nb_threads

Max number of threads allowed in this filter instance.

If <= 0, its value is ignored. Overrides global number of threads set per filter graph.

Definition at line 401 of file avfilter.h.

◆ ready

unsigned AVFilterContext::ready

Ready status of the filter.

A non-0 value means that the filter needs activating; a higher value suggests a more urgent activation.

Definition at line 408 of file avfilter.h.

Referenced by ff_filter_graph_run_once().

◆ extra_hw_frames

int AVFilterContext::extra_hw_frames

Sets the number of extra hardware frames which the filter will allocate on its output links for use in following filters or by the caller.

Some hardware filters require all frames that they will use for output to be defined in advance before filtering starts. For such filters, any hardware frame pools used for output must therefore be of fixed size. The extra frames set here are on top of any number that the filter needs internally in order to operate normally.

This field must be set before the graph containing this filter is configured.

Definition at line 424 of file avfilter.h.

Referenced by ff_filter_init_hw_frames(), hwmap_config_output(), hwupload_config_output(), and init_vpp_session().


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