FFmpeg
|
An instance of a filter. More...
#include <avfilter.h>
Data Fields | |
const AVClass * | av_class |
needed for av_log() and filters common options More... | |
const AVFilter * | filter |
the AVFilter of which this is an instance More... | |
char * | name |
name of this filter instance More... | |
AVFilterPad * | input_pads |
array of input pads More... | |
AVFilterLink ** | inputs |
array of pointers to input links More... | |
unsigned | nb_inputs |
number of input pads More... | |
AVFilterPad * | output_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 AVFilterGraph * | graph |
filtergraph this filter belongs to More... | |
int | thread_type |
Type of multithreading being allowed/used. More... | |
AVFilterInternal * | internal |
An opaque struct for libavfilter internal use. More... | |
struct AVFilterCommand * | command_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... | |
AVBufferRef * | hw_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... | |
An instance of a filter.
Definition at line 307 of file avfilter.h.
const AVClass* AVFilterContext::av_class |
needed for av_log() and filters common options
Definition at line 308 of file avfilter.h.
Referenced by ff_filter_alloc().
const AVFilter* AVFilterContext::filter |
the AVFilter of which this is an instance
Definition at line 310 of file avfilter.h.
Referenced by av_buffersink_get_frame_rate(), av_buffersrc_parameters_set(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_graph_parse(), avfilter_graph_queue_command(), avfilter_graph_send_command(), avfilter_init_dict(), avfilter_init_str(), avfilter_process_command(), config_input(), config_output(), config_props(), default_filter_name(), ff_filter_alloc(), ff_filter_frame(), ff_filter_frame_framed(), ff_tlog_link(), filter_child_next(), filter_frame(), filter_query_formats(), graph_check_validity(), init(), link_filter(), link_filter_inouts(), movie_common_init(), parse_channel_expressions(), print_digraph(), query_formats(), set_enable_expr(), and split_init().
char* AVFilterContext::name |
name of this filter instance
Definition at line 312 of file avfilter.h.
Referenced by avfilter_config_links(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_graph_get_filter(), avfilter_graph_queue_command(), avfilter_graph_request_oldest(), avfilter_graph_send_command(), avfilter_insert_filter(), avfilter_link(), avfilter_process_command(), default_filter_name(), ff_filter_alloc(), filter_frame(), filter_query_formats(), graph_check_validity(), init_input_filter(), pick_format(), print_digraph(), query_formats(), and uninit().
AVFilterPad* AVFilterContext::input_pads |
array of input pads
Definition at line 314 of file avfilter.h.
Referenced by avfilter_free(), avfilter_insert_filter(), avfilter_link(), close_input(), config_output(), configure_input_filter(), decimate_uninit(), ff_filter_alloc(), ff_insert_inpad(), fieldmatch_uninit(), free_link(), graph_check_validity(), init_input_filter(), join_uninit(), main(), process_frame(), and uninit().
AVFilterLink** AVFilterContext::inputs |
array of pointers to input links
Definition at line 315 of file avfilter.h.
Referenced by aeval_config_output(), aeval_query_formats(), apply_unsharp_c(), av_buffersink_get_frame_flags(), av_buffersink_get_frame_rate(), av_buffersink_get_samples(), 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_input(), config_input_overlay(), config_input_ref(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), config_props_ref(), config_video(), create_sink(), cudaupload_config_output(), cudaupload_query_formats(), default_query_formats_common(), do_blend(), do_video_out(), draw_blank_frame(), draw_text(), dump_fir(), ff_dualinput_init(), ff_filter_alloc(), ff_framesync_request_frame(), ff_insert_inpad(), ff_opencl_apply_unsharp(), ff_opencl_deshake_process_inout_buf(), ff_opencl_unsharp_process_inout_buf(), ff_poll_frame(), ff_request_frame_to_filter(), filter_color(), filter_color2(), filter_frame(), filter_mono(), filter_query_formats(), flush_frame(), formats_declared(), free_link(), generate_kernel(), get_current_tile_pos(), get_speaker_pos(), graph_check_validity(), graph_config_pointers(), graph_insert_fifos(), guess_map_any(), guess_map_matching(), hwdownload_config_output(), hwdownload_query_formats(), hwupload_config_output(), hwupload_query_formats(), init_cqt(), init_filters(), init_output_stream(), init_processing_chain(), join_config_output(), join_query_formats(), join_request_frame(), lavfi_read_header(), lavfi_read_packet(), load_apply_palette(), load_data(), main(), nppscale_config_props(), pick_formats(), process_command(), process_frame(), push_frame(), push_single_pic(), query_formats(), read_fft_data(), read_from_fifo(), reap_filters(), reduce_formats_on_filter(), request_frame(), request_frame_ref(), request_inlink(), request_samples(), return_audio_frame(), scale_vaapi_query_formats(), select_frame(), send_silence(), set_work_frame_pts(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), swap_samplerates_on_filter(), transcode_init(), and video_thread().
unsigned AVFilterContext::nb_inputs |
number of input pads
Definition at line 316 of file avfilter.h.
Referenced by avfilter_config_links(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_graph_parse_ptr(), avfilter_link(), config_output(), decimate_uninit(), ff_filter_alloc(), ff_insert_inpad(), ff_poll_frame(), fieldmatch_uninit(), filter_frame(), filter_query_formats(), flush_segment(), formats_declared(), graph_check_validity(), graph_config_pointers(), graph_insert_fifos(), guess_map_any(), guess_map_matching(), init(), join_config_output(), join_query_formats(), join_request_frame(), join_uninit(), link_filter_inouts(), main(), parse_mapping(), pick_formats(), process_frame(), push_frame(), query_formats(), reduce_formats_on_filter(), request_frame(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), swap_samplerates_on_filter(), try_push_frame(), and uninit().
AVFilterPad* AVFilterContext::output_pads |
array of output pads
Definition at line 318 of file avfilter.h.
Referenced by av_buffersrc_add_frame_internal(), avfilter_free(), avfilter_link(), config_output(), configure_output_filter(), create_sink(), ff_filter_alloc(), ff_insert_outpad(), free_link(), graph_check_validity(), init_complex_filtergraph(), main(), movie_uninit(), split_uninit(), and uninit().
AVFilterLink** AVFilterContext::outputs |
array of pointers to output links
Definition at line 319 of file avfilter.h.
Referenced by aeval_query_formats(), apply_lut(), apply_palette(), av_buffersrc_add_frame_internal(), avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_insert_filter(), avfilter_link(), blend_frame(), blend_frames16(), blend_frames8(), calc_persp_luts(), channelmap_filter_frame(), channelmap_query_formats(), compand_delay(), compand_nodelay(), config_output(), create_weave_frame(), cudaupload_filter_frame(), cudaupload_query_formats(), default_filter_frame(), default_query_formats_common(), draw_background(), end_last_frame(), ff_filter_alloc(), ff_filter_graph_remove_filter(), ff_insert_outpad(), ff_null_get_audio_buffer(), ff_null_get_video_buffer(), filter(), filter_color(), filter_color2(), filter_frame(), filter_frame16(), filter_frame8(), filter_frame_ref(), filter_mono(), filter_query_formats(), formats_declared(), free_link(), geq_filter_frame(), get_audio_buffer(), get_frame(), get_palette_frame(), get_video_buffer(), graph_check_validity(), graph_config_pointers(), graph_run_once_find_filter(), hwdownload_filter_frame(), hwdownload_query_formats(), hwupload_filter_frame(), hwupload_query_formats(), init_processing_chain(), interpolate(), join_query_formats(), main(), movie_push_frame(), movie_query_formats(), nppscale_filter_frame(), output_single_frame(), pick_formats(), plot_cqt(), plot_freqs(), plot_spectrum_column(), pp_filter_frame(), print_digraph(), process_command(), process_frame(), process_work_frame(), push_frame(), query_formats(), query_formats_src(), reduce_formats_on_filter(), request_frame(), request_samples(), return_audio_frame(), return_frame(), scale_vaapi_filter_frame(), scale_vaapi_query_formats(), send_silence(), shuffleplanes_filter_frame(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), swap_samplerates_on_filter(), and try_push_frame().
unsigned AVFilterContext::nb_outputs |
number of output pads
Definition at line 320 of file avfilter.h.
Referenced by avfilter_free(), avfilter_graph_dump_to_buf(), avfilter_link(), config_output(), ff_filter_alloc(), ff_filter_graph_remove_filter(), ff_insert_outpad(), filter_frame(), filter_query_formats(), find_next_delta_ts(), flush_segment(), formats_declared(), get_audio_buffer(), get_video_buffer(), graph_check_validity(), graph_config_links(), graph_config_pointers(), graph_run_once_find_filter(), init(), link_filter_inouts(), main(), movie_query_formats(), movie_uninit(), pick_formats(), print_digraph(), process_command(), process_frame(), push_frame(), query_formats(), reduce_formats_on_filter(), request_frame(), rewind_file(), split_uninit(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), swap_samplerates_on_filter(), and uninit().
void* AVFilterContext::priv |
private data for use by the filter
Definition at line 322 of file avfilter.h.
Referenced by add_buffer_ref(), 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_buffersink_get_frame_flags(), av_buffersink_get_samples(), av_buffersrc_add_frame_internal(), av_buffersrc_get_nb_failed_requests(), av_buffersrc_parameters_set(), averageiir2d(), avfilter_free(), avfilter_init_dict(), blend_frame(), blend_frames16(), blend_frames8(), blend_image_packed_rgb(), blend_image_yuv420(), blend_image_yuv422(), blend_image_yuv444(), 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(), compensate_volume(), compressor_config_output(), compute_sat_hue_metrics16(), compute_sat_hue_metrics8(), config_audio_input(), config_audio_output(), config_input(), config_input_main(), config_input_overlay(), config_input_props(), config_input_ref(), config_inputx(), config_inputy(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_input(), config_props_output(), config_video(), config_video_output(), connect_ports(), convert(), create_filtergraph(), create_weave_frame(), cubic_interpolate_func(), cudaupload_config_output(), cudaupload_filter_frame(), cudaupload_init(), cudaupload_uninit(), curves_init(), curves_uninit(), deband_16_c(), deband_8_c(), decimate_frame(), decimate_init(), decimate_uninit(), deinterlace_slice(), dejudder_init(), dejudder_uninit(), diff_planes(), dilate_end_frame_filter(), dilate_init(), dilate_uninit(), do_blend(), do_chromakey_slice(), do_colorkey_slice(), do_psnr(), do_ssim(), 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(), ff_filter_alloc(), ff_opencl_apply_unsharp(), ff_opencl_deshake_init(), ff_opencl_deshake_process_inout_buf(), ff_opencl_deshake_uninit(), ff_opencl_transform(), ff_opencl_unsharp_init(), ff_opencl_unsharp_process_inout_buf(), ff_opencl_unsharp_uninit(), fieldmatch_init(), fieldmatch_uninit(), fill_from_cache(), fill_picture(), fill_picture_monoblack(), fill_picture_rgb(), filter(), filter16_3x3(), filter16_5x5(), filter16_brng(), filter16_prewitt(), filter16_sobel(), filter16_tout(), filter16_vrep(), filter8_brng(), filter8_tout(), filter8_vrep(), filter_3x3(), filter_5x5(), 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_slice(), filter_slice16(), filter_slice8(), filter_slice_alpha(), filter_slice_chroma(), filter_slice_luma(), filter_slice_rgb(), filter_sobel(), filter_vertically(), filter_xyz(), find_next_delta_ts(), flush_frame(), flush_segment(), 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(), generate_mask(), geq_config_props(), geq_filter_frame(), geq_init(), geq_query_formats(), geq_uninit(), get_aspect_ratio(), get_best_frame(), get_current_tile_pos(), get_frame(), get_palette_frame(), get_range_off(), get_scene_score(), get_scene_score16(), get_speaker_pos(), get_video_buffer(), handle_trimming(), horizontal_frame_pack(), hwdownload_config_input(), hwdownload_config_output(), hwdownload_filter_frame(), hwdownload_uninit(), hwupload_config_output(), hwupload_filter_frame(), hwupload_query_formats(), hwupload_uninit(), init(), init_audio(), init_dict(), 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_request_frame(), join_uninit(), load_apply_palette(), load_data(), load_font(), load_font_file(), load_glyph(), load_sofa(), load_sym(), load_textfile(), movie_common_init(), movie_config_output_props(), movie_push_frame(), movie_query_formats(), movie_uninit(), next_source(), nlmeans_plane(), nlmeans_slice(), nppscale_config_props(), nppscale_filter_frame(), nppscale_init(), nppscale_resize(), nppscale_scale(), nppscale_uninit(), output_frame(), output_single_frame(), parse_3dl(), parse_channel_expressions(), parse_cube(), parse_dat(), parse_m3d(), parse_mapping(), parse_maps(), parse_psfile(), parse_speaker_pos(), plot_channel(), plot_cqt(), plot_freqs(), plot_spectrum_column(), poll_frame(), pp_config_props(), pp_filter_frame(), pp_init(), pp_process_command(), pp_uninit(), print_file(), print_stats(), process_command(), process_frame(), process_options(), process_work_frame(), push_frame(), push_samples(), push_single_pic(), query_formats(), read_fft_data(), read_from_fifo(), 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_input(), scale_vaapi_config_output(), scale_vaapi_filter_frame(), scale_vaapi_init(), scale_vaapi_uninit(), select_frame(), send_silence(), set_control(), set_enable_expr(), set_param(), set_params(), set_srce_frame_dest_pts(), set_volume(), set_work_frame_pts(), shuffleplanes_config_input(), shuffleplanes_filter_frame(), smooth_end_frame_filter(), smooth_init(), sofalizer_convolute(), sofalizer_fast_convolute(), source_config_props(), source_init(), source_request_frame(), spatial_frame_pack(), split_init(), super2xsai(), synth_window(), try_push_frame(), try_push_frames(), uninit(), vertical_frame_pack(), vsink_init(), vsink_query_formats(), write_palette(), and yae_set_tempo().
struct AVFilterGraph* AVFilterContext::graph |
filtergraph this filter belongs to
Definition at line 324 of file avfilter.h.
Referenced by av_buffersink_get_frame_flags(), avfilter_free(), avfilter_graph_alloc_filter(), avfilter_init_dict(), config_input(), ff_filter_get_nb_threads(), ff_filter_graph_remove_filter(), init(), and thread_execute().
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 342 of file avfilter.h.
Referenced by avfilter_init_dict().
AVFilterInternal* AVFilterContext::internal |
An opaque struct for libavfilter internal use.
Definition at line 347 of file avfilter.h.
Referenced by apply_lut(), averageiir2d(), avfilter_free(), avfilter_init_dict(), blend_frame(), ff_filter_alloc(), filter(), filter_frame(), filter_frame16(), filter_frame8(), gaussianiir2d(), nlmeans_plane(), and plot_spectrum_column().
struct AVFilterCommand* AVFilterContext::command_queue |
Definition at line 349 of file avfilter.h.
Referenced by avfilter_free(), avfilter_graph_queue_command(), ff_command_queue_pop(), and ff_filter_frame_framed().
char* AVFilterContext::enable_str |
enable expression string
Definition at line 351 of file avfilter.h.
Referenced by ff_filter_frame_framed(), process_options(), and set_enable_expr().
void* AVFilterContext::enable |
parsed expression (AVExpr*)
Definition at line 352 of file avfilter.h.
Referenced by avfilter_free(), ff_filter_frame_framed(), and set_enable_expr().
double* AVFilterContext::var_values |
variable values for the enable expression
Definition at line 353 of file avfilter.h.
Referenced by avfilter_free(), ff_filter_frame_framed(), and set_enable_expr().
int AVFilterContext::is_disabled |
the enabled state from the last expression evaluation
Definition at line 354 of file avfilter.h.
Referenced by ff_filter_frame_framed(), 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 363 of file avfilter.h.
Referenced by avfilter_free(), configure_filtergraph(), and hwupload_query_formats().
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 370 of file avfilter.h.
Referenced by ff_filter_get_nb_threads().