FFmpeg
Data Fields
FilterLink Struct Reference

Link properties exposed to filter code, but not external callers. More...

#include <filters.h>

Data Fields

AVFilterLink pub
 
struct AVFilterGraphgraph
 Graph the filter belongs to. More...
 
int64_t current_pts
 Current timestamp of the link, as defined by the most recent frame(s), in link time_base units. More...
 
int64_t current_pts_us
 Current timestamp of the link, as defined by the most recent frame(s), in AV_TIME_BASE units. More...
 
int min_samples
 Minimum number of samples to filter at once. More...
 
int max_samples
 Maximum number of samples to filter at once. More...
 
int64_t frame_count_in
 Number of past frames sent through the link. More...
 
int64_t frame_count_out
 
int64_t sample_count_in
 Number of past samples sent through the link. More...
 
int64_t sample_count_out
 
AVRational frame_rate
 Frame rate of the stream on the link, or 1/0 if unknown or variable. More...
 
AVBufferRefhw_frames_ctx
 For hwaccel pixel formats, this should be a reference to the AVHWFramesContext describing the frames. More...
 

Detailed Description

Link properties exposed to filter code, but not external callers.

Cf. AVFilterLink for public properties, FilterLinkInternal for properties private to the generic layer.

Definition at line 127 of file filters.h.

Field Documentation

◆ pub

AVFilterLink FilterLink::pub

◆ graph

struct AVFilterGraph* FilterLink::graph

Graph the filter belongs to.

Definition at line 133 of file filters.h.

Referenced by avfilter_link(), ff_filter_graph_remove_filter(), filter_frame(), and update_link_current_pts().

◆ current_pts

int64_t FilterLink::current_pts

Current timestamp of the link, as defined by the most recent frame(s), in link time_base units.

Definition at line 139 of file filters.h.

Referenced by ff_filter_config_links(), ff_inlink_acknowledge_status(), guess_status_pts(), and update_link_current_pts().

◆ current_pts_us

int64_t FilterLink::current_pts_us

Current timestamp of the link, as defined by the most recent frame(s), in AV_TIME_BASE units.

Definition at line 145 of file filters.h.

Referenced by draw_items(), ff_filter_config_links(), heap_bubble_down(), heap_bubble_up(), and update_link_current_pts().

◆ min_samples

int FilterLink::min_samples

Minimum number of samples to filter at once.

May be set by the link destination filter in its config_props(). If 0, all related fields are ignored.

Definition at line 153 of file filters.h.

Referenced by av_buffersink_get_frame_flags(), config_input(), ff_filter_activate_default(), ff_filter_frame_to_filter(), and take_samples().

◆ max_samples

int FilterLink::max_samples

Maximum number of samples to filter at once.

If filter_frame() is called with more samples, it will split them.

May be set by the link destination filter in its config_props().

Definition at line 161 of file filters.h.

Referenced by config_input(), and ff_filter_frame_to_filter().

◆ frame_count_in

int64_t FilterLink::frame_count_in

◆ frame_count_out

int64_t FilterLink::frame_count_out

◆ sample_count_in

int64_t FilterLink::sample_count_in

Number of past samples sent through the link.

Definition at line 171 of file filters.h.

Referenced by activate(), analyze_frame(), draw_items(), ff_filter_frame(), and filter_frame().

◆ sample_count_out

int64_t FilterLink::sample_count_out

Definition at line 171 of file filters.h.

Referenced by activate(), consume_update(), current_segment_finished(), and draw_items().

◆ frame_rate

AVRational FilterLink::frame_rate

Frame rate of the stream on the link, or 1/0 if unknown or variable.

May be set by the link source filter in its config_props(); if left to 0/0, will be automatically copied from the first input of the source filter if it exists.

Sources should set it to the best estimation of the real frame rate. If the source frame rate is unknown or variable, set this to 1/0. Filters should update it if necessary depending on their function. Sinks can use it to set a default output frame rate. It is similar to the r_frame_rate field in AVStream.

Definition at line 186 of file filters.h.

Referenced by activate(), av_buffersink_get_frame_rate(), config_comm_output(), config_input(), config_input_ref(), config_out_props(), config_output(), config_output_props(), config_output_video(), config_props(), config_props_output(), config_props_ref(), config_video(), config_video_output(), ddagrab_config_props(), deint_vaapi_config_output(), deshake_opencl_init(), draw_items(), dump_s12m_timecode(), ff_filter_config_links(), ff_yadif_config_output_common(), fill_frameinfo_by_link(), filter_frame(), fsync_config_props(), libplacebo_activate(), libplacebo_config_output(), lut2_config_output(), movie_config_output_props(), output_frame(), qrencodesrc_config_props(), query_frame(), request_frame(), source_config_props(), testsrc_vulkan_config_props(), try_push_frame(), update_pts(), and xfade_opencl_config_output().

◆ hw_frames_ctx

AVBufferRef* FilterLink::hw_frames_ctx

For hwaccel pixel formats, this should be a reference to the AVHWFramesContext describing the frames.

May be set by the link source filter in its config_props().

Definition at line 194 of file filters.h.

Referenced by av_buffersink_get_hw_frames_ctx(), bwdif_vulkan_config_input(), bwdif_vulkan_config_output(), config_input(), config_output(), config_props(), config_props_output(), config_props_ref(), cuda_bilateral_config_props(), cudachromakey_config_props(), cudacolorspace_config_props(), cudascale_config_props(), cudaupload_config_output(), ddagrab_config_props(), deshake_opencl_init(), ff_default_get_video_buffer2(), ff_filter_config_links(), ff_filter_init_hw_frames(), ff_opencl_filter_config_input(), ff_opencl_filter_config_output(), ff_vaapi_vpp_config_input(), ff_vaapi_vpp_config_output(), ff_vk_filter_config_input(), ff_vk_filter_config_output(), fill_frameinfo_by_link(), get_mfx_version(), have_alpha_planar(), hwdownload_config_input(), hwmap_config_output(), hwmap_get_buffer(), hwupload_config_output(), init_processing_chain(), init_vpp_session(), libplacebo_config_output(), link_free(), nppscale_filter_frame(), nppsharpen_config(), nppsharpen_filter_frame(), nppsharpen_sharpen(), npptranspose_config_props(), npptranspose_filter_frame(), overlay_cuda_config_output(), query_frame(), scale_vt_config_output(), testsrc_vulkan_config_props(), transpose_opencl_config_output(), transpose_vaapi_vpp_config_output(), transpose_vt_config_output(), and transpose_vt_recreate_hw_ctx().


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