RAII wrapper for AVSubtitle (avsubtitle_free).
More...
#include <StormByte/multimedia/ffmpeg/AVSubtitle.hxx>
|
| | AVSubtitle () noexcept |
| | Empty subtitle.
|
| |
| | AVSubtitle (const AVSubtitle &)=delete |
| | Copy constructor (deleted).
|
| |
| | AVSubtitle (AVSubtitle &&other) noexcept |
| | Move constructor.
|
| |
| | ~AVSubtitle () noexcept |
| | Destructor.
|
| |
| AVSubtitle & | operator= (const AVSubtitle &)=delete |
| | Copy assignment (deleted).
|
| |
| AVSubtitle & | operator= (AVSubtitle &&other) noexcept |
| | Move assignment.
|
| |
| std::int64_t | Pts () const noexcept |
| | Presentation timestamp in AV_TIME_BASE.
|
| |
| std::uint32_t | DisplayDurationMs () const noexcept |
| | Display duration in milliseconds.
|
| |
| std::string | Text () const noexcept |
| | Concatenated text / ASS from rects.
|
| |
| void | FillText (std::string text, std::int64_t pts, std::uint32_t duration_ms, bool ass) noexcept |
| | Builds one text or ASS rectangle for encoding.
|
| |
| void | Free () noexcept |
| | Releases rects (avsubtitle_free).
|
| |
RAII wrapper for AVSubtitle (avsubtitle_free).
◆ AVSubtitle() [1/3]
| StormByte::Multimedia::FFmpeg::AVSubtitle::AVSubtitle |
( |
| ) |
|
|
noexcept |
◆ AVSubtitle() [2/3]
| StormByte::Multimedia::FFmpeg::AVSubtitle::AVSubtitle |
( |
const AVSubtitle & |
| ) |
|
|
delete |
Copy constructor (deleted).
◆ AVSubtitle() [3/3]
| StormByte::Multimedia::FFmpeg::AVSubtitle::AVSubtitle |
( |
AVSubtitle && |
other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ ~AVSubtitle()
| StormByte::Multimedia::FFmpeg::AVSubtitle::~AVSubtitle |
( |
| ) |
|
|
noexcept |
◆ DisplayDurationMs()
| std::uint32_t StormByte::Multimedia::FFmpeg::AVSubtitle::DisplayDurationMs |
( |
| ) |
const |
|
noexcept |
Display duration in milliseconds.
- Returns
end_display_time - start_display_time, or 0.
◆ FillText()
| void StormByte::Multimedia::FFmpeg::AVSubtitle::FillText |
( |
std::string |
text, |
|
|
std::int64_t |
pts, |
|
|
std::uint32_t |
duration_ms, |
|
|
bool |
ass |
|
) |
| |
|
noexcept |
Builds one text or ASS rectangle for encoding.
- Parameters
-
| text | Cue body. |
| pts | Timestamp in AV_TIME_BASE. |
| duration_ms | Display window in milliseconds. |
| ass | true writes SUBTITLE_ASS, false writes SUBTITLE_TEXT. |
◆ Free()
| void StormByte::Multimedia::FFmpeg::AVSubtitle::Free |
( |
| ) |
|
|
noexcept |
Releases rects (avsubtitle_free).
◆ operator=() [1/2]
Move assignment.
- Parameters
-
- Returns
- *this.
◆ operator=() [2/2]
Copy assignment (deleted).
- Returns
- *this.
◆ Pts()
| std::int64_t StormByte::Multimedia::FFmpeg::AVSubtitle::Pts |
( |
| ) |
const |
|
noexcept |
Presentation timestamp in AV_TIME_BASE.
- Returns
- PTS, or
AV_NOPTS_VALUE.
◆ Text()
| std::string StormByte::Multimedia::FFmpeg::AVSubtitle::Text |
( |
| ) |
const |
|
noexcept |
Concatenated text / ASS from rects.
- Returns
- UTF-8 text, or empty.
◆ AVDecoder
◆ AVEncoder
◆ StormByte::Multimedia::OCR::GrayFromSubtitle
The documentation for this class was generated from the following file: