Container attachment (cover, fonts).
More...
#include <StormByte/multimedia/attachment.hxx>
Container attachment (cover, fonts).
Not a Stream.
avformat exposes Matroska attached files as fake video tracks (AV_DISPOSITION_ATTACHED_PIC). This type is the real contract.
◆ Attachment() [1/3]
| StormByte::Multimedia::Attachment::Attachment |
( |
std::optional< std::string > |
fileName, |
|
|
std::optional< std::string > |
mimeType, |
|
|
StormByte::Buffer::FIFO |
payload |
|
) |
| |
|
noexcept |
Builds an attachment.
- Parameters
-
| fileName | Source file name, if known. |
| mimeType | MIME type, if known. |
| payload | File bytes. |
◆ Attachment() [2/3]
| StormByte::Multimedia::Attachment::Attachment |
( |
const Attachment & |
| ) |
|
|
delete |
Copy constructor (deleted).
◆ Attachment() [3/3]
| StormByte::Multimedia::Attachment::Attachment |
( |
Attachment && |
| ) |
|
|
defaultnoexcept |
◆ ~Attachment()
| StormByte::Multimedia::Attachment::~Attachment |
( |
| ) |
|
|
defaultnoexcept |
◆ FileName()
| const std::optional< std::string > & StormByte::Multimedia::Attachment::FileName |
( |
| ) |
const |
|
noexcept |
Original file name.
- Returns
- Name, or empty.
◆ MimeType()
| const std::optional< std::string > & StormByte::Multimedia::Attachment::MimeType |
( |
| ) |
const |
|
noexcept |
MIME type.
- Returns
- Type, or empty.
◆ operator=() [1/2]
Move assignment.
- Returns
- *this.
◆ operator=() [2/2]
Copy assignment (deleted).
- Returns
- *this.
◆ Payload()
| const StormByte::Buffer::FIFO & StormByte::Multimedia::Attachment::Payload |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following file: