FFmpeg
Data Fields
AVBitStreamFilterPad Struct Reference

A filter pad used for either input or output. More...

#include <filters.h>

Data Fields

const char * name
 Pad name. More...
 
enum AVCodecIDcodec_ids
 A list of codec ids supported by the pad, terminated by AV_CODEC_ID_NONE. More...
 
int flags
 A combination of FF_BSF_PAD_FLAG_* flags. More...
 
int(* filter )(AVBitStreamFilterLink *link, AVPacket *pkt)
 Filtering callback. More...
 
int(* request_packet )(AVBitStreamFilterLink *link)
 Packet request callback. More...
 
int(* config_props )(AVBitStreamFilterLink *link)
 Link configuration callback. More...
 

Detailed Description

A filter pad used for either input or output.

Definition at line 35 of file filters.h.

Field Documentation

◆ name

const char* AVBitStreamFilterPad::name

Pad name.

The name is unique among inputs and among outputs, but an input may have the same name as an output. This may be NULL if this pad has no need to ever be referenced by name.

Definition at line 41 of file filters.h.

Referenced by av_bsf_pad_get_name(), and graph_check_validity().

◆ codec_ids

enum AVCodecID* AVBitStreamFilterPad::codec_ids

A list of codec ids supported by the pad, terminated by AV_CODEC_ID_NONE.

May be NULL, in that case the pad works with any codec id.

Definition at line 48 of file filters.h.

Referenced by av_bsf_pad_get_codec_ids().

◆ flags

int AVBitStreamFilterPad::flags

A combination of FF_BSF_PAD_FLAG_* flags.

Definition at line 66 of file filters.h.

◆ filter

int(* AVBitStreamFilterPad::filter) (AVBitStreamFilterLink *link, AVPacket *pkt)

Filtering callback.

This is where a filter receives a packet with audio/video data and should do its processing.

Input pads only.

Returns
>= 0 on success, a negative AVERROR on error. This function must ensure that packet is properly unreferenced on error if it hasn't been passed on to another filter.

Definition at line 78 of file filters.h.

◆ request_packet

int(* AVBitStreamFilterPad::request_packet) (AVBitStreamFilterLink *link)

Packet request callback.

A call to this should result in some progress towards producing output over the given link. This should return zero on success, and another value on error.

Output pads only.

Definition at line 87 of file filters.h.

◆ config_props

int(* AVBitStreamFilterPad::config_props) (AVBitStreamFilterLink *link)

Link configuration callback.

For output pads, this should set the link properties such as width/height.

For input pads, this should check the properties of the link, and update the filter's internal state as necessary.

For both input and output filters, this should return zero on success, and another value on error.

Definition at line 101 of file filters.h.


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