avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::FilterPadList Class Reference

Pads of a filter: its inputs or its outputs. More...

#include <filterpad.h>

Inheritance diagram for av::FilterPadList:

Public Member Functions

size_t count () const noexcept
 Number of pads.
std::string name (size_t index) const noexcept
 Name of a pad.
const char * nameCStr (size_t index) const noexcept
 Name of a pad as a C string.
AVMediaType type (size_t index) const noexcept
 Media type a pad accepts or produces.
Public Member Functions inherited from FFWrapperPtr< const AVFilterPad >
 FFWrapperPtr ()=default
 Create an empty wrapper; isNull() is true.
const const AVFilterPad * raw () const
 Read access to the wrapped object.
void reset (const AVFilterPad *raw=nullptr)
 Replace the stored pointer.
bool isNull () const
 Whether the wrapper is empty.
void _log (int level, const char *fmt) const
 Log through the FFmpeg log system, using this wrapper as the context.

Friends

class Filter

Additional Inherited Members

Protected Attributes inherited from FFWrapperPtr< const AVFilterPad >
const AVFilterPad * m_raw
 The wrapped pointer; owned by the derived class, not by this template.

Detailed Description

Pads are the typed endpoints a filter exposes; the list is a non-owning view into the filter's static description, valid while the filter descriptor lives.

Member Function Documentation

◆ count()

size_t av::FilterPadList::count ( ) const
noexcept
Returns
the pad count

◆ name()

std::string av::FilterPadList::name ( size_t index) const
noexcept
Parameters
indexzero-based pad index
Returns
the name, or an empty string when the index is out of range

◆ nameCStr()

const char * av::FilterPadList::nameCStr ( size_t index) const
noexcept
Parameters
indexzero-based pad index
Returns
a static string owned by FFmpeg, or nullptr when the index is out of range

◆ type()

AVMediaType av::FilterPadList::type ( size_t index) const
noexcept
Parameters
indexzero-based pad index
Returns
the AVMEDIA_TYPE_* value

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