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... | |
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... | |
enum AVFilterLink:: { ... } | init_state |
stage of the initialization of the link properties (dimensions, etc) 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 619 of file avfilter.h.
AVFilterContext * AVFilterLink::src |
source filter
Definition at line 620 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_output(), ff_dlog_link(), ff_poll_frame(), ff_request_frame(), free_link(), graph_check_validity(), join_config_output(), join_request_frame(), movie_get_frame(), output_frame(), pick_format(), poll_frame(), query_formats(), request_frame(), source_config_props(), and source_request_frame().
AVFilterPad * AVFilterLink::srcpad |
output pad on the source filter
Definition at line 621 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 623 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(), 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(), pick_format(), print_digraph(), query_formats(), shuffleplanes_config_input(), and shuffleplanes_filter_frame().
AVFilterPad * AVFilterLink::dstpad |
input pad on the dest filter
Definition at line 624 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 626 of file avfilter.h.
Referenced by av_buffersrc_add_frame(), av_buffersrc_buffer(), avfilter_config_links(), avfilter_link(), compat_read(), 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 629 of file avfilter.h.
Referenced by 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(), copy_picture_field(), dtext_prepare_text(), ff_dlog_link(), ff_filter_frame(), filter_frame(), get_aspect_ratio(), print_digraph(), request_frame(), return_frame(), source_config_props(), source_request_frame(), and transcode_init().
int AVFilterLink::h |
agreed upon image height
Definition at line 630 of file avfilter.h.
Referenced by 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(), copy_picture_field(), dtext_prepare_text(), ff_dlog_link(), ff_filter_frame(), filter_frame(), get_aspect_ratio(), print_digraph(), request_frame(), return_frame(), source_config_props(), source_request_frame(), and transcode_init().
AVRational AVFilterLink::sample_aspect_ratio |
agreed upon sample aspect ratio
Definition at line 631 of file avfilter.h.
Referenced by avfilter_config_links(), config_props(), config_props_output(), get_aspect_ratio(), and transcode_init().
uint64_t AVFilterLink::channel_layout |
channel layout of current buffer (see libavutil/channel_layout.h)
Definition at line 633 of file avfilter.h.
Referenced by av_buffersink_get_samples(), buffer_offset(), channelmap_config_input(), channelmap_filter_frame(), config_input(), config_output(), config_props(), ff_default_get_audio_buffer(), ff_dlog_link(), guess_map_any(), guess_map_matching(), join_config_output(), join_request_frame(), pick_format(), print_digraph(), return_audio_frame(), and transcode_init().
int AVFilterLink::sample_rate |
samples per second
Definition at line 634 of file avfilter.h.
Referenced by buffer_offset(), compand_delay(), config_input(), config_output(), config_output_props(), config_props(), ff_default_get_audio_buffer(), ff_dlog_link(), filter_frame(), join_request_frame(), pick_format(), print_digraph(), read_from_fifo(), and transcode_init().
int AVFilterLink::format |
agreed upon media format
Definition at line 636 of file avfilter.h.
Referenced by av_buffersink_get_samples(), avfilter_link(), buffer_offset(), color_config_props(), config_input(), config_input_main(), config_input_overlay(), config_output(), config_props(), config_props_output(), copy_picture_field(), ff_default_get_audio_buffer(), ff_default_get_video_buffer(), ff_dlog_link(), filter_frame(), get_aspect_ratio(), join_request_frame(), pick_format(), print_digraph(), return_audio_frame(), shuffleplanes_config_input(), and transcode_init().
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 645 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(), poll_filter(), print_digraph(), read_from_fifo(), request_frame(), select_frame(), source_config_props(), transcode_init(), 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 659 of file avfilter.h.
Referenced by free_link(), main(), pick_format(), query_formats(), and swap_sample_fmts_on_filter().
AVFilterFormats * AVFilterLink::out_formats |
Definition at line 660 of file avfilter.h.
Referenced by avfilter_insert_filter(), free_link(), main(), pick_format(), 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 666 of file avfilter.h.
Referenced by free_link(), pick_format(), query_formats(), and swap_samplerates_on_filter().
AVFilterFormats * AVFilterLink::out_samplerates |
Definition at line 667 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 668 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 669 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 678 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().
enum { ... } AVFilterLink::init_state |
stage of the initialization of the link properties (dimensions, etc)