FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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...
 
voidpriv
 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...
 
voidenable
 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

const AVClass* AVFilterContext::av_class

needed for av_log() and filters common options

Definition at line 339 of file avfilter.h.

Referenced by ff_filter_alloc().

const AVFilter* AVFilterContext::filter
char* AVFilterContext::name
AVFilterPad* AVFilterContext::input_pads
AVFilterLink** AVFilterContext::inputs

array of pointers to input links

Examples:
filtering_audio.c, and filtering_video.c.

Definition at line 346 of file avfilter.h.

Referenced by activate(), aeval_config_output(), aeval_query_formats(), apply_unsharp_c(), av_buffersink_get_frame_flags(), av_buffersink_set_frame_size(), avfilter_config_links(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_insert_filter(), avfilter_link(), blend_frame(), channelmap_query_formats(), check_black_end(), command(), compand_delay(), compand_nodelay(), config_filter(), config_input(), config_input_impulse(), config_input_overlay(), config_input_ref(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), config_props_ref(), config_video(), consume_from_fifos(), convert_coeffs(), cudascale_config_props(), cudaupload_config_output(), cudaupload_query_formats(), default_query_formats_common(), deint_vaapi_config_output(), do_blend(), draw_blank_frame(), draw_text(), dump_fir(), eval_expr(), ff_filter_activate_default(), ff_filter_alloc(), ff_framesync_dualinput_get_writable(), ff_framesync_init_dualinput(), ff_insert_inpad(), ff_opencl_filter_config_input(), ff_poll_frame(), ff_qsvvpp_create(), ff_request_frame_to_filter(), ff_scale_eval_dimensions(), ff_vaapi_vpp_config_output(), ff_vaapi_vpp_query_formats(), filter_color(), filter_color2(), filter_frame(), filter_mono(), filter_query_formats(), fir_frame(), flush_frame(), formats_declared(), free_link(), generate_kernel(), get_frame_internal(), get_speaker_pos(), get_tile_pos(), graph_check_validity(), graph_config_pointers(), graph_insert_fifos(), guess_map_any(), guess_map_matching(), guess_status_pts(), hwdownload_config_output(), hwdownload_query_formats(), hwmap_config_output(), hwmap_query_formats(), hwupload_config_output(), hwupload_query_formats(), init_cqt(), init_filters(), init_framesync(), init_out_pool(), init_out_session(), init_processing_chain(), init_vpp_session(), join_config_output(), join_query_formats(), load_apply_palette(), load_data(), lut2_config_output(), main(), nppscale_config_props(), overlay_qsv_query_formats(), pick_formats(), process_command(), process_frame(), program_opencl_config_output(), push_frame(), push_single_pic(), qsvdeint_config_props(), qsvdeint_request_frame(), qsvscale_config_props(), query_formats(), read_fft_data(), read_ir(), reduce_formats_on_filter(), request_frame(), request_frame_ref(), request_inlink(), request_samples(), return_audio_frame(), scale_vaapi_config_output(), select_frame(), send_silence(), submit_frame(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), and swap_samplerates_on_filter().

unsigned AVFilterContext::nb_inputs
AVFilterPad* AVFilterContext::output_pads
AVFilterLink** AVFilterContext::outputs

array of pointers to output links

Definition at line 350 of file avfilter.h.

Referenced by activate(), aeval_query_formats(), apply_lut(), apply_palette(), av_buffersrc_add_frame_internal(), av_buffersrc_close(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_insert_filter(), avfilter_link(), avgblur_opencl_filter_frame(), blend_frame(), blend_frame_for_dualinput(), blend_frames(), calc_persp_luts(), channelmap_filter_frame(), channelmap_query_formats(), compand_delay(), compand_nodelay(), config_output(), config_props(), consume_from_fifos(), convolution_opencl_filter_frame(), create_weave_frame(), cudascale_filter_frame(), cudaupload_filter_frame(), cudaupload_query_formats(), default_filter_frame(), default_query_formats_common(), deint_vaapi_filter_frame(), do_blend(), do_convolve(), do_psnr(), do_ssim(), do_vmaf(), draw_background(), end_last_frame(), ff_filter_activate_default(), ff_filter_alloc(), ff_filter_graph_remove_filter(), ff_framesync_dualinput_get(), ff_insert_outpad(), ff_null_get_audio_buffer(), ff_null_get_video_buffer(), ff_qsvvpp_create(), ff_qsvvpp_filter_frame(), ff_vaapi_vpp_query_formats(), filter(), filter_color(), filter_color2(), filter_frame(), filter_frame16(), filter_frame8(), filter_frame_ref(), filter_mono(), filter_query_formats(), filter_unblock(), formats_declared(), forward_status_change(), framesync_eof(), free_link(), geq_filter_frame(), get_audio_buffer(), get_frame(), get_palette_frame(), get_video_buffer(), graph_check_links(), graph_check_validity(), graph_config_pointers(), hwdownload_filter_frame(), hwdownload_query_formats(), hwmap_filter_frame(), hwmap_get_buffer(), hwmap_query_formats(), hwupload_filter_frame(), hwupload_query_formats(), init_out_pool(), init_out_session(), init_processing_chain(), init_vpp_session(), interpolate(), join_query_formats(), load_apply_palette(), main(), misc_vaapi_filter_frame(), movie_push_frame(), movie_query_formats(), nppscale_filter_frame(), oscilloscope_filter_frame(), output_single_frame(), overlay_opencl_blend(), overlay_qsv_query_formats(), pick_formats(), pixscope_filter_frame(), plot_cqt(), plot_freqs(), plot_spectrum_column(), pp_filter_frame(), print_digraph(), procamp_vaapi_filter_frame(), process_command(), process_frame(), program_opencl_run(), push_frame(), qsvscale_filter_frame(), query_formats(), query_formats_src(), read_ir(), reduce_formats_on_filter(), request_frame(), request_samples(), return_audio_frame(), return_frame(), scale_vaapi_filter_frame(), send_silence(), shuffleplanes_filter_frame(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), swap_samplerates_on_filter(), try_push_frame(), and unsharp_opencl_filter_frame().

unsigned AVFilterContext::nb_outputs
void* AVFilterContext::priv

private data for use by the filter

Definition at line 353 of file avfilter.h.

Referenced by activate(), add_to_queue(), aeval_config_output(), aeval_query_formats(), agate_config_input(), apply_lut(), apply_palette(), apply_unsharp_c(), asink_init(), asink_query_formats(), av_buffersrc_add_frame_internal(), av_buffersrc_close(), av_buffersrc_get_nb_failed_requests(), av_buffersrc_parameters_set(), averageiir2d(), avfilter_free(), avfilter_init_dict(), avgblur_opencl_filter_frame(), avgblur_opencl_init(), avgblur_opencl_uninit(), blend_frame(), blend_frames(), blend_image_packed_rgb(), blend_image_planar_rgb(), blend_image_yuv(), calc_avgy16(), calc_avgy8(), calc_channel_magnitudes(), calc_channel_phases(), calc_coefficients(), calc_persp_luts(), channelmap_config_input(), channelmap_filter_frame(), channelmap_init(), channelmap_query_formats(), check_black_end(), checkmm(), close_input(), command(), common_init(), compand_delay(), compand_drain(), compand_nodelay(), complex_divide(), complex_multiply(), compressor_config_output(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), config_audio_input(), config_audio_output(), config_filter(), config_input(), config_input0(), config_input1(), config_input_main(), config_input_overlay(), config_input_props(), config_input_ref(), config_inputx(), config_inputy(), config_main_input(), config_out_props(), config_output(), config_output_props(), config_overlay_input(), config_props(), config_props_input(), config_props_output(), config_video(), config_video_output(), connect_ports(), convert(), convert_coeffs(), convert_pd2zp(), convert_pr2zp(), convert_zp2tf(), convolution_opencl_filter_frame(), convolution_opencl_init(), convolution_opencl_make_filter_params(), convolution_opencl_uninit(), create_filtergraph(), create_weave_frame(), cubic_interpolate_func(), cudascale_config_props(), cudascale_filter_frame(), cudascale_init(), cudascale_scale(), cudascale_uninit(), cudaupload_config_output(), cudaupload_init(), cudaupload_uninit(), curves_init(), curves_uninit(), deband_16_c(), deband_16_coupling_c(), deband_8_c(), deband_8_coupling_c(), decimate_frame(), decimate_init(), decimate_uninit(), decompose_zp2biquads(), deflicker16(), deint_vaapi_build_filter_params(), deint_vaapi_config_output(), deint_vaapi_filter_frame(), deint_vaapi_init(), deint_vaapi_pipeline_uninit(), deinterlace_slice(), dejudder_init(), dejudder_uninit(), denoise_vaapi_build_filter_params(), denoise_vaapi_init(), diff_planes(), dilate_end_frame_filter(), dilate_init(), dilate_uninit(), do_blend(), do_chromakey_slice(), do_colorkey_slice(), do_convolve(), do_despill_slice(), do_lumakey_slice16(), do_lumakey_slice8(), do_psnr(), do_ssim(), do_vmaf(), do_vmafmotion(), draw_background(), draw_blank_frame(), draw_curves(), draw_frame(), draw_mandelbrot(), draw_text(), dump_fir(), end_last_frame(), entry_func(), erode_end_frame_filter(), eval_expr(), evolve(), export(), extract_line(), ff_filter_alloc(), 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_make_param_buffers(), ff_vaapi_vpp_pipeline_uninit(), ff_vaapi_vpp_render_picture(), fft_channel(), fft_horizontal(), fft_vertical(), fieldmatch_init(), fieldmatch_uninit(), fill_from_cache(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), filter16_3x3(), filter16_5x5(), filter16_7x7(), filter16_brng(), filter16_prewitt(), filter16_roberts(), filter16_sobel(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_2_1(), filter_3x3(), filter_5_0_side(), filter_5_1_back(), filter_5_1_side(), filter_5x5(), filter_7x7(), filter_callback(), filter_child_next(), filter_color(), filter_color2(), filter_frame(), filter_frame16(), filter_frame8(), filter_frame_left(), filter_frame_magnitude(), filter_frame_phase(), filter_frame_right(), filter_horizontally(), filter_init(), filter_mono(), filter_postscale(), filter_prewitt(), filter_rgb24(), filter_rgb48(), filter_rgba(), filter_rgba64(), filter_roberts(), filter_slice(), filter_slice16(), filter_slice8(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_slice_rgb(), filter_sobel(), filter_stereo(), filter_surround(), filter_vertically(), filter_xyz(), find_next_delta_ts(), fir_channel(), flush_frame(), flush_segment(), frame_alloc(), framepack_uninit(), frei0r_init(), func_eval_expr(), func_eval_expr_int_format(), func_frame_num(), func_metadata(), func_pict_type(), func_pts(), gain_interpolate_func(), gaussianiir2d(), generate_kernel(), geq_config_props(), geq_filter_frame(), geq_init(), geq_query_formats(), geq_uninit(), get_am_factor(), get_aspect_ratio(), get_best_frame(), get_cm_factor(), get_frame(), get_frame_internal(), get_gm_factor(), get_hm_factor(), get_median_factor(), get_palette_frame(), get_pm_factor(), get_qm_factor(), get_range_off(), get_scene_score(), get_speaker_pos(), get_tile_pos(), get_video_buffer(), headphone_convolute(), headphone_fast_convolute(), horizontal_frame_pack(), 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(), ifft_channel(), ifft_horizontal(), ifft_vertical(), init(), init_audio(), init_dict(), init_framesync(), init_out_pool(), init_out_session(), init_pattern_from_file(), init_pattern_from_string(), init_processing_chain(), init_src(), init_video(), initialize(), initialize_chromakey(), inject_frame(), interpolate(), join_config_output(), join_init(), join_query_formats(), join_uninit(), load_apply_palette(), load_data(), load_font(), load_font_file(), load_glyph(), load_sym(), load_textfile(), lut2_config_output(), misc_vaapi_filter_frame(), movie_common_init(), movie_config_output_props(), movie_push_frame(), movie_query_formats(), movie_uninit(), nlmeans_plane(), nlmeans_slice(), nppscale_config_props(), nppscale_filter_frame(), nppscale_init(), nppscale_resize(), nppscale_scale(), nppscale_uninit(), opencl_filter_set_device(), oscilloscope_config_input(), oscilloscope_filter_frame(), oscilloscope_uninit(), output_frame(), output_single_frame(), overlay_opencl_activate(), overlay_opencl_blend(), overlay_opencl_config_output(), overlay_opencl_init(), overlay_opencl_load(), overlay_opencl_uninit(), overlay_qsv_init(), overlay_qsv_uninit(), parse_3dl(), parse_channel_expressions(), parse_cube(), parse_dat(), parse_fontsize(), parse_m3d(), parse_map(), parse_mapping(), parse_maps(), parse_psfile(), parse_speaker_pos(), pixscope_config_input(), pixscope_filter_frame(), plot_channel(), plot_cqt(), plot_freqs(), plot_spectrum_column(), poll_frame(), pp_config_props(), pp_filter_frame(), pp_init(), pp_process_command(), pp_uninit(), preload_sofa(), print_file(), print_stats(), procamp_vaapi_build_filter_params(), procamp_vaapi_filter_frame(), procamp_vaapi_init(), process_command(), process_frame(), process_options(), process_work_frame(), program_opencl_activate(), program_opencl_config_output(), program_opencl_filter(), program_opencl_init(), program_opencl_load(), program_opencl_run(), program_opencl_uninit(), push_frame(), push_samples(), push_single_pic(), qsvdeint_config_props(), qsvdeint_uninit(), qsvscale_config_props(), qsvscale_filter_frame(), qsvscale_init(), qsvscale_uninit(), query_formats(), read_channels(), read_fft_data(), read_gains(), read_ir(), recv_msg(), request_frame(), request_inlink(), request_samples(), resample_cubic(), resample_linear(), return_audio_frame(), return_frame(), rewind_file(), run_channel_fft(), scale_slice(), scale_vaapi_config_output(), scale_vaapi_filter_frame(), scale_vaapi_init(), scalecuda_resize(), select_frame(), send_silence(), set_control(), set_enable_expr(), set_fontsize(), set_param(), set_params(), set_volume(), sharpness_vaapi_build_filter_params(), sharpness_vaapi_init(), shuffleplanes_config_input(), shuffleplanes_filter_frame(), slice_geq_filter(), smooth_end_frame_filter(), smooth_init(), sofalizer_convolute(), sofalizer_fast_convolute(), source_config_props(), source_init(), source_request_frame(), spatial_frame_pack(), split_init(), submit_frame(), super2xsai(), synth_window(), thumbnail(), try_push_frame(), try_push_frames(), uninit(), unsharp_opencl_filter_frame(), unsharp_opencl_init(), unsharp_opencl_make_filter_params(), unsharp_opencl_uninit(), update_fontsize(), upmix_1_0(), upmix_2_1(), upmix_3_0(), upmix_3_1(), upmix_3_1_surround(), upmix_4_0(), upmix_4_1(), upmix_5_0_back(), upmix_5_1_back(), upmix_5_1_back_2_1(), upmix_5_1_back_surround(), upmix_7_0(), upmix_7_1(), upmix_7_1_5_0_side(), upmix_7_1_5_1(), upmix_stereo(), vertical_frame_pack(), vpp_uninit(), vsink_query_formats(), write_palette(), and yae_set_tempo().

struct AVFilterGraph* AVFilterContext::graph
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.

Referenced by avfilter_init_dict().

AVFilterInternal* AVFilterContext::internal
struct AVFilterCommand* AVFilterContext::command_queue
char* AVFilterContext::enable_str

enable expression string

Definition at line 382 of file avfilter.h.

Referenced by ff_inlink_evaluate_timeline_at_frame(), process_options(), and set_enable_expr().

void* AVFilterContext::enable

parsed expression (AVExpr*)

Definition at line 383 of file avfilter.h.

Referenced by avfilter_free(), ff_inlink_evaluate_timeline_at_frame(), and set_enable_expr().

double* AVFilterContext::var_values

variable values for the enable expression

Definition at line 384 of file avfilter.h.

Referenced by avfilter_free(), ff_inlink_evaluate_timeline_at_frame(), and set_enable_expr().

int AVFilterContext::is_disabled

the enabled state from the last expression evaluation

Definition at line 385 of file avfilter.h.

Referenced by consume_update(), ff_filter_frame_framed(), ff_framesync_dualinput_get(), filter_frame(), process_frame(), and request_frame().

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 avfilter_free(), configure_filtergraph(), ff_opencl_filter_config_output(), hwmap_config_output(), hwupload_query_formats(), and init_vpp_session().

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.

Referenced by ff_filter_get_nb_threads().

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_activate(), ff_filter_graph_run_once(), ff_filter_set_ready(), and ff_request_frame().

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(), and hwupload_config_output().


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