RAII AVDictionary for muxer metadata / options.
More...
#include <StormByte/multimedia/ffmpeg/Dictionary.hxx>
|
| constexpr | AVPointer (std::decay_t< ::AVDictionary > *ptr) noexcept |
| | Adopts ptr.
|
| |
| constexpr const std::decay_t< ::AVDictionary > * | Get () const noexcept |
| | Const view of the raw FFmpeg pointer.
|
| |
| constexpr std::decay_t< ::AVDictionary > * | Get () noexcept |
| | Mutable view of the raw FFmpeg pointer.
|
| |
| constexpr std::decay_t< ::AVDictionary > * | Detach () noexcept |
| | Yields the raw pointer and leaves this wrapper empty.
|
| |
| std::decay_t< ::AVDictionary > * | m_ptr |
| | Owned FFmpeg pointer.
|
| |
RAII AVDictionary for muxer metadata / options.
◆ Dictionary() [1/2]
| StormByte::Multimedia::FFmpeg::Dictionary::Dictionary |
( |
| ) |
|
|
noexcept |
◆ Dictionary() [2/2]
| StormByte::Multimedia::FFmpeg::Dictionary::Dictionary |
( |
Dictionary && |
other | ) |
|
|
defaultnoexcept |
Move constructor.
Transfers the dictionary.
- Parameters
-
| other | Source dictionary; left empty. |
◆ ~Dictionary()
| StormByte::Multimedia::FFmpeg::Dictionary::~Dictionary |
( |
| ) |
|
|
overridenoexcept |
Destructor.
Frees the AVDictionary.
◆ Count()
| int StormByte::Multimedia::FFmpeg::Dictionary::Count |
( |
| ) |
const |
|
noexcept |
Number of entries.
- Returns
- Count, or 0.
◆ operator bool()
| StormByte::Multimedia::FFmpeg::Dictionary::operator bool |
( |
| ) |
const |
|
explicitnoexcept |
Whether any entry is stored.
- Returns
- true if the dictionary is non-empty.
◆ operator=()
Move assignment.
Frees *this, then takes other.
- Parameters
-
| other | Source dictionary; left empty. |
- Returns
- *this.
◆ Set()
| bool StormByte::Multimedia::FFmpeg::Dictionary::Set |
( |
const char * |
key, |
|
|
const char * |
value, |
|
|
int |
flags = 0 |
|
) |
| |
|
noexcept |
Sets key to value (av_dict_set).
- Parameters
-
| key | Entry key. |
| value | Entry value. nullptr deletes the key. |
| flags | AV_DICT_* flags. |
- Returns
- false on failure.
◆ Value()
| const char * StormByte::Multimedia::FFmpeg::Dictionary::Value |
( |
const char * |
key | ) |
const |
|
noexcept |
Looks up key.
- Parameters
-
- Returns
- Value pointer, or nullptr.
◆ AVFormatContext
The documentation for this class was generated from the following file: