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

Demuxer descriptor. More...

#include <format.h>

Inheritance diagram for av::InputFormat:

Public Member Functions

 InputFormat (const std::string &name) noexcept
 Look a demuxer up by name.
bool setFormat (const std::string &name) noexcept
 Look a demuxer up by name and point the descriptor at it.
Public Member Functions inherited from av::Format< avcpp_format_const< AVInputFormat > >
const char * name () const noexcept
 Short format name, as FFmpeg spells it.
const char * longName () const noexcept
 Human-readable format name.
int32_t flags () const noexcept
 Raw AVFMT_* flags of the format.
bool isFlags (int32_t flags) const noexcept
 Whether all given flags are set.
void setFormat (avcpp_format_const< AVInputFormat > *format) noexcept
 Point the descriptor at another format.
bool codecSupported (const class Codec &codec) const noexcept
 Whether the format can carry a codec.
Public Member Functions inherited from FFWrapperPtr< avcpp_format_const< AVInputFormat > >
 FFWrapperPtr ()=default
 Create an empty wrapper; isNull() is true.
const avcpp_format_const< AVInputFormat > * raw () const
 Read access to the wrapped object.
void reset (avcpp_format_const< AVInputFormat > *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.

Additional Inherited Members

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

Detailed Description

Wraps the FFmpeg structure that describes a container reader; the library owns it, the wrapper only points at it.

Examples
api2-decode-audio.cpp, and api2-remux.cpp.

Constructor & Destructor Documentation

◆ InputFormat()

av::InputFormat::InputFormat ( const std::string & name)
noexcept
Parameters
namethe demuxer name, for example "matroska"

Member Function Documentation

◆ setFormat()

bool av::InputFormat::setFormat ( const std::string & name)
noexcept
Parameters
namethe demuxer name
Returns
true when the name was found
Examples
api2-decode-audio.cpp.

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