Demuxer descriptor.
More...
#include <format.h>
|
| | 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.
|
| 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.
|
|
| 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.
|
|
|
avcpp_format_const< AVInputFormat > * | m_raw |
| | The wrapped pointer; owned by the derived class, not by this template.
|
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.
◆ InputFormat()
| av::InputFormat::InputFormat |
( |
const std::string & | name | ) |
|
|
noexcept |
- Parameters
-
| name | the demuxer name, for example "matroska" |
◆ setFormat()
| bool av::InputFormat::setFormat |
( |
const std::string & | name | ) |
|
|
noexcept |
The documentation for this class was generated from the following file: