AVFilterLink Struct Reference

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

AVFilterContextsrc
 source filter
AVFilterPadsrcpad
 output pad on the source filter
AVFilterContextdst
 dest filter
AVFilterPaddstpad
 input pad on the dest filter
enum AVFilterLink:: { ... }  init_state
 stage of the initialization of the link properties (dimensions, etc)
enum AVMediaType type
 filter media type
int w
 agreed upon image width
int h
 agreed upon image height
AVRational sample_aspect_ratio
 agreed upon sample aspect ratio
uint64_t channel_layout
 channel layout of current buffer (see libavutil/audioconvert.h)
int64_t sample_rate
 samples per second
int format
 agreed upon media format
AVFilterFormatsin_formats
 Lists of formats supported by the input and output filters respectively.
AVFilterFormatsout_formats
AVFilterBufferRefsrc_buf
 The buffer reference currently being sent across the link by the source filter.
AVFilterBufferRefcur_buf
AVFilterBufferRefout_buf
AVRational time_base
 Define the time base used by the PTS of the frames/samples which will pass through this link.

Detailed Description

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 563 of file avfilter.h.

Member Enumeration Documentation

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 571 of file avfilter.h.

Field Documentation

uint64_t AVFilterLink::channel_layout

channel layout of current buffer (see libavutil/audioconvert.h)

Definition at line 584 of file avfilter.h.

Referenced by avfilter_config_links(), avfilter_default_config_output_link(), config_props(), ff_dlog_link(), and print_digraph().

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 594 of file avfilter.h.

Referenced by avfilter_free(), avfilter_set_common_formats(), main(), pick_format(), and query_formats().

enum { ... } AVFilterLink::init_state

stage of the initialization of the link properties (dimensions, etc)

Referenced by avfilter_config_links().

AVFilterFormats* AVFilterLink::out_formats
AVRational AVFilterLink::sample_aspect_ratio

agreed upon sample aspect ratio

Definition at line 582 of file avfilter.h.

Referenced by avfilter_config_links(), config_props(), and config_props_output().

int64_t AVFilterLink::sample_rate

samples per second

Definition at line 585 of file avfilter.h.

Referenced by avfilter_config_links(), avfilter_default_config_output_link(), config_props(), ff_dlog_link(), and print_digraph().

AVFilterBufferRef* AVFilterLink::src_buf

The buffer reference currently being sent across the link by the source filter.

This is used internally by the filter system to allow automatic copying of buffers which do not have sufficient permissions for the destination. This should not be accessed directly by the filters.

Definition at line 604 of file avfilter.h.

Referenced by avfilter_draw_slice(), avfilter_end_frame(), and avfilter_start_frame().

AVFilterPad* AVFilterLink::srcpad

output pad on the source filter

Definition at line 565 of file avfilter.h.

Referenced by avfilter_config_links(), avfilter_free(), avfilter_link(), avfilter_poll_frame(), and avfilter_request_frame().

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 616 of file avfilter.h.

Referenced by avfilter_config_links(), avfilter_default_config_output_link(), color_config_props(), config_input(), config_output(), config_output_props(), config_props(), end_frame(), print_digraph(), select_frame(), source_config_props(), start_frame(), and start_frame_overlay().

enum AVMediaType AVFilterLink::type

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