Libav
|
A link between two filters. More...
#include <avfilter.h>
Public Types | |
enum | { AVLINK_UNINIT = 0, AVLINK_STARTINIT, AVLINK_INIT } |
stage of the initialization of the link properties (dimensions, etc) More... | |
Data Fields | |
AVFilterContext * | src |
source filter More... | |
AVFilterPad * | srcpad |
output pad on the source filter More... | |
AVFilterContext * | dst |
dest filter More... | |
AVFilterPad * | dstpad |
input pad on the dest filter More... | |
enum AVMediaType | type |
filter media type More... | |
int | w |
agreed upon image width More... | |
int | h |
agreed upon image height More... | |
AVRational | sample_aspect_ratio |
agreed upon sample aspect ratio More... | |
uint64_t | channel_layout |
channel layout of current buffer (see libavutil/channel_layout.h) More... | |
int | sample_rate |
samples per second More... | |
int | format |
agreed upon media format More... | |
AVRational | time_base |
Define the time base used by the PTS of the frames/samples which will pass through this link. More... | |
AVFilterFormats * | in_formats |
Lists of formats supported by the input and output filters respectively. More... | |
AVFilterFormats * | out_formats |
AVFilterFormats * | in_samplerates |
Lists of channel layouts and sample rates used for automatic negotiation. More... | |
AVFilterFormats * | out_samplerates |
struct AVFilterChannelLayouts * | in_channel_layouts |
struct AVFilterChannelLayouts * | out_channel_layouts |
int | request_samples |
Audio only, the destination filter sets this to a non-zero value to request that buffers with the given number of samples should be sent to it. More... | |
enum AVFilterLink:: { ... } | init_state |
stage of the initialization of the link properties (dimensions, etc) More... | |
AVRational | frame_rate |
Frame rate of the stream on the link, or 1/0 if unknown or variable; if left to 0/0, will be automatically copied from the first input of the source filter if it exists. More... | |
AVBufferRef * | hw_frames_ctx |
For hwaccel pixel formats, this should be a reference to the AVHWFramesContext describing the frames. More... | |
A link between two filters.
This contains pointers to the source and destination filters between which this link exists, and the indexes of the pads involved. In addition, this link also contains the parameters which have been negotiated and agreed upon between the filter, such as image dimensions, format, etc.
Definition at line 321 of file avfilter.h.
anonymous enum |
stage of the initialization of the link properties (dimensions, etc)
Enumerator | |
---|---|
AVLINK_UNINIT | not started |
AVLINK_STARTINIT | started, but incomplete |
AVLINK_INIT | complete |
Definition at line 383 of file avfilter.h.
AVFilterContext* AVFilterLink::src |
source filter
Definition at line 322 of file avfilter.h.
Referenced by avfilter_config_links(), avfilter_insert_filter(), avfilter_link(), color_config_props(), color_request_frame(), compand_drain(), config_input(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_out(), config_props_output(), cudaupload_config_output(), ff_dlog_link(), ff_poll_frame(), ff_request_frame(), free_link(), graph_check_validity(), horizontal_frame_pack(), hwdownload_config_output(), hwupload_config_output(), join_config_output(), join_request_frame(), movie_get_frame(), nppscale_config_props(), output_frame(), pick_format(), poll_frame(), qsvdeint_config_props(), qsvdeint_request_frame(), qsvscale_config_props(), query_formats(), request_frame(), scale_vaapi_config_output(), source_config_props(), source_request_frame(), spatial_frame_pack(), and vertical_frame_pack().
AVFilterPad* AVFilterLink::srcpad |
output pad on the source filter
Definition at line 323 of file avfilter.h.
Referenced by avfilter_config_links(), avfilter_link(), ff_poll_frame(), ff_request_frame(), and free_link().
AVFilterContext* AVFilterLink::dst |
dest filter
Definition at line 325 of file avfilter.h.
Referenced by add_to_queue(), avfilter_config_links(), avfilter_insert_filter(), avfilter_link(), channelmap_config_input(), channelmap_filter_frame(), config_input(), config_input_main(), config_input_overlay(), config_input_props(), config_props(), config_props_in(), cudaupload_filter_frame(), default_filter_frame(), ff_dlog_link(), ff_filter_frame(), ff_null_get_audio_buffer(), ff_null_get_video_buffer(), filter_frame(), filter_frame_left(), filter_frame_main(), filter_frame_overlay(), filter_frame_right(), free_link(), get_aspect_ratio(), get_video_buffer(), graph_check_validity(), hwdownload_config_input(), hwdownload_filter_frame(), hwupload_filter_frame(), nppscale_filter_frame(), pick_format(), print_digraph(), qsvdeint_filter_frame(), qsvscale_filter_frame(), query_formats(), scale_vaapi_config_input(), scale_vaapi_filter_frame(), shuffleplanes_config_input(), and shuffleplanes_filter_frame().
AVFilterPad* AVFilterLink::dstpad |
input pad on the dest filter
Definition at line 326 of file avfilter.h.
Referenced by avfilter_config_links(), avfilter_insert_filter(), avfilter_link(), ff_filter_frame(), ff_get_audio_buffer(), ff_get_video_buffer(), free_link(), and graph_insert_fifos().
enum AVMediaType AVFilterLink::type |
filter media type
Definition at line 328 of file avfilter.h.
Referenced by av_buffersrc_add_frame(), avfilter_config_links(), avfilter_link(), config_input(), config_props(), ff_default_query_formats(), ff_dlog_link(), ff_filter_frame(), filter_frame(), graph_insert_fifos(), main(), pick_format(), poll_filter(), print_digraph(), query_formats(), swap_channel_layouts_on_filter(), swap_sample_fmts_on_filter(), and swap_samplerates_on_filter().
int AVFilterLink::w |
agreed upon image width
Definition at line 331 of file avfilter.h.
Referenced by alloc_picture(), avfilter_config_links(), color_config_props(), config_input(), config_input_overlay(), config_input_props(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), copy_picture_field(), cudaupload_config_output(), dtext_prepare_text(), ff_dlog_link(), ff_filter_frame(), filter_frame(), get_aspect_ratio(), hwdownload_config_output(), hwdownload_filter_frame(), hwupload_config_output(), init_out_session(), init_output_stream_encode(), nppscale_config_props(), nppscale_filter_frame(), print_digraph(), process_frame(), qsvscale_config_props(), qsvscale_filter_frame(), queue_picture(), request_frame(), return_frame(), scale_vaapi_config_output(), source_config_props(), source_request_frame(), and video_open().
int AVFilterLink::h |
agreed upon image height
Definition at line 332 of file avfilter.h.
Referenced by alloc_picture(), avfilter_config_links(), color_config_props(), config_input(), config_input_overlay(), config_input_props(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), copy_picture_field(), cudaupload_config_output(), dtext_prepare_text(), ff_dlog_link(), ff_filter_frame(), filter_frame(), get_aspect_ratio(), hwdownload_config_output(), hwdownload_filter_frame(), hwupload_config_output(), init_out_session(), init_output_stream_encode(), nppscale_config_props(), nppscale_filter_frame(), print_digraph(), process_frame(), qsvscale_config_props(), qsvscale_filter_frame(), queue_picture(), request_frame(), return_frame(), scale_vaapi_config_output(), source_config_props(), source_request_frame(), and video_open().
AVRational AVFilterLink::sample_aspect_ratio |
agreed upon sample aspect ratio
Definition at line 333 of file avfilter.h.
Referenced by avfilter_config_links(), config_props(), config_props_output(), get_aspect_ratio(), init_output_stream_encode(), nppscale_config_props(), and qsvscale_config_props().
uint64_t AVFilterLink::channel_layout |
channel layout of current buffer (see libavutil/channel_layout.h)
Definition at line 335 of file avfilter.h.
Referenced by av_buffersink_get_samples(), buffer_offset(), channelmap_config_input(), channelmap_filter_frame(), config_input(), config_output(), config_props(), configure_filtergraph(), ff_default_get_audio_buffer(), ff_dlog_link(), guess_map_any(), guess_map_matching(), init_output_stream_encode(), join_config_output(), join_request_frame(), pick_format(), print_digraph(), and return_audio_frame().
int AVFilterLink::sample_rate |
samples per second
Definition at line 336 of file avfilter.h.
Referenced by buffer_offset(), compand_delay(), config_input(), config_output(), config_output_props(), config_props(), configure_filtergraph(), ff_default_get_audio_buffer(), ff_dlog_link(), filter_frame(), init_output_stream_encode(), join_request_frame(), pick_format(), print_digraph(), and read_from_fifo().
int AVFilterLink::format |
agreed upon media format
Definition at line 338 of file avfilter.h.
Referenced by alloc_picture(), av_buffersink_get_samples(), avfilter_config_links(), avfilter_link(), buffer_offset(), color_config_props(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), configure_filtergraph(), copy_picture_field(), cudaupload_config_output(), ff_default_get_audio_buffer(), ff_default_get_video_buffer(), ff_dlog_link(), filter_frame(), get_aspect_ratio(), hwdownload_config_output(), hwupload_config_output(), hwupload_filter_frame(), init_output_stream_encode(), join_request_frame(), pick_format(), print_digraph(), request_frame(), return_audio_frame(), and shuffleplanes_config_input().
AVRational AVFilterLink::time_base |
Define the time base used by the PTS of the frames/samples which will pass through this link.
During the configuration stage, each filter is supposed to change only the output timebase, while the timebase of the input link is assumed to be an unchangeable property.
Definition at line 347 of file avfilter.h.
Referenced by av_buffersink_get_samples(), avfilter_config_links(), buffer_offset(), color_config_props(), compand_delay(), compand_drain(), config_input(), config_out_props(), config_output(), config_output_props(), config_props(), filter_frame(), init_out_session(), init_output_stream_encode(), poll_filter(), print_digraph(), qsvdeint_config_props(), read_from_fifo(), request_frame(), select_frame(), source_config_props(), submit_frame(), and video_thread().
AVFilterFormats* AVFilterLink::in_formats |
Lists of formats supported by the input and output filters respectively.
These lists are used for negotiating the format to actually be used, which will be loaded into the format member, above, when chosen.
Definition at line 361 of file avfilter.h.
Referenced by cudaupload_query_formats(), free_link(), hwdownload_query_formats(), hwupload_query_formats(), main(), pick_format(), query_formats(), scale_vaapi_query_formats(), and swap_sample_fmts_on_filter().
AVFilterFormats* AVFilterLink::out_formats |
Definition at line 362 of file avfilter.h.
Referenced by avfilter_insert_filter(), cudaupload_query_formats(), free_link(), hwdownload_query_formats(), hwupload_query_formats(), main(), pick_format(), query_formats(), scale_vaapi_query_formats(), and swap_sample_fmts_on_filter().
AVFilterFormats* AVFilterLink::in_samplerates |
Lists of channel layouts and sample rates used for automatic negotiation.
Definition at line 368 of file avfilter.h.
Referenced by free_link(), pick_format(), query_formats(), and swap_samplerates_on_filter().
AVFilterFormats* AVFilterLink::out_samplerates |
Definition at line 369 of file avfilter.h.
Referenced by avfilter_insert_filter(), free_link(), pick_format(), query_formats(), and swap_samplerates_on_filter().
struct AVFilterChannelLayouts* AVFilterLink::in_channel_layouts |
Definition at line 370 of file avfilter.h.
Referenced by channelmap_query_formats(), free_link(), join_query_formats(), pick_format(), query_formats(), and swap_channel_layouts_on_filter().
struct AVFilterChannelLayouts* AVFilterLink::out_channel_layouts |
Definition at line 371 of file avfilter.h.
Referenced by avfilter_insert_filter(), channelmap_query_formats(), free_link(), join_query_formats(), pick_format(), query_formats(), and swap_channel_layouts_on_filter().
int AVFilterLink::request_samples |
Audio only, the destination filter sets this to a non-zero value to request that buffers with the given number of samples should be sent to it.
AVFilterPad.needs_fifo must also be set on the corresponding input pad. Last buffer before EOF will be padded with silence.
Definition at line 380 of file avfilter.h.
Referenced by join_request_frame(), request_frame(), and return_audio_frame().
enum { ... } AVFilterLink::init_state |
stage of the initialization of the link properties (dimensions, etc)
Referenced by avfilter_config_links().
AVRational AVFilterLink::frame_rate |
Frame rate of the stream on the link, or 1/0 if unknown or variable; 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 real constant 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.
Definition at line 399 of file avfilter.h.
Referenced by avfilter_config_links(), color_config_props(), config_input(), config_out_props(), config_output(), config_props(), init_out_session(), qsvdeint_config_props(), source_config_props(), and submit_frame().
AVBufferRef* AVFilterLink::hw_frames_ctx |
For hwaccel pixel formats, this should be a reference to the AVHWFramesContext describing the frames.
Definition at line 405 of file avfilter.h.
Referenced by avfilter_config_links(), config_props(), cudaupload_config_output(), free_link(), hwdownload_config_input(), hwupload_config_output(), init_out_pool(), init_out_session(), init_output_stream(), init_processing_chain(), init_scale_session(), nppscale_filter_frame(), qsvdeint_config_props(), scale_vaapi_config_input(), and scale_vaapi_config_output().