![]() |
AJA NTV2 SDK
18.0.0.2717
NTV2 SDK 18.0.0.2717
|
A collection of timed captions. More...
#include <ntv2srt.h>
Public Types | |
| typedef std::vector< std::string > | StringList |
| typedef std::map< size_t, std::string > | ErrorMap |
| typedef std::map< SRTTimestamp, std::string > | CaptionMap |
| typedef std::map< SRTTimestamp, SRTDuration > | DurationMap |
| typedef std::map< SRTSeqNum, SRTTimestamp > | TimestampMap |
| typedef std::map< SRTTimestamp, SRTSeqNum > | SeqNumMap |
| typedef std::map< SRTTimestamp, SRTWindow > | WindowMap |
| typedef std::map< SRTTimestamp, uint32_t > | AnchorMap |
| typedef std::map< SRTTimestamp, size_t > | SourceMap |
Public Member Functions | |
| bool | reloadFrom (const StringList &inSRTData) |
| bool | reloadFrom (const std::string &inSRTData) |
| bool | appendCaption (const SRTCaptionInfo &inCaptionInfo) |
| void | clear (void) |
| bool | hasErrors (void) const |
| const ErrorMap & | errors (void) const |
| size_t | errorCount (void) const |
| bool | hasWarnings (void) const |
| const ErrorMap & | warnings (void) const |
| size_t | warningCount (void) const |
| bool | isEmpty (void) const |
| uint32_t | captionCount (void) const |
| SRTSeqNum | minSeqNum (void) const |
| SRTSeqNum | maxSeqNum (void) const |
| size_t | linesParsed (void) const |
| size_t | totalLines (void) const |
| std::string | lineAtOffset (const size_t inOffset) const |
| SRTTimestamp | minStartTime (void) const |
| SRTTimestamp | maxStartTime (void) const |
| SRTDuration | totalDuration (void) const |
| bool | hasCaptionAtSeqNum (const SRTSeqNum inSeqNum) const |
| bool | hasCaptionAtStartTime (const SRTTimestamp inStartTime) const |
| SRTTimestamp | startTimeAtSeqNum (const SRTSeqNum inSeqNum) const |
| bool | captionAtStartTime (const SRTTimestamp inStartTime, SRTCaptionInfo &outInfo) const |
| std::string | captionAtStartTime (const SRTTimestamp inStartTime) const |
| bool | durationAtStartTime (const SRTTimestamp inStartTime, SRTDuration &outDuration) const |
| bool | nextCaption (SRTTimestamp &inOutStartTime, SRTCaptionInfo &outInfo) const |
| bool | getWarning (const size_t inIndex0, size_t &outLineOffset, std::string &outMsg) const |
| bool | getError (size_t &outLineOffset, std::string &outMsg) const |
| std::ostream & | printErrors (std::ostream &oss, const bool inIncludeWarnings=true) const |
| std::ostream & | printSRT (std::ostream &oss) const |
| std::ostream & | printInfo (std::ostream &oss) const |
Static Public Member Functions | |
| static bool | getTimestamp (const std::string &inStr, SRTTimestamp &outTS, std::ostream &oss=std::cerr) |
| static bool | getWindow (const std::string &inStr, SRTWindow &outWndo, std::ostream &oss) |
| static std::string | timestampStr (const SRTTimestamp inTS, const bool inIncludeRawValue=false) |
| static std::string | durationStr (const SRTDuration inDurationMS, const bool inIncludeRawValue=false) |
| static std::string | anchorStr (const uint16_t inAnchor, const bool inIncludeRawValue=false) |
| static std::string | anchorTag (const uint16_t inAnchor) |
| static SRTDuration | defaultMinimumDuration (void) |
| static void | setDefaultMinimumDuration (const SRTDuration inDuration) |
| typedef std::map<SRTTimestamp, uint32_t> SRTCaptions::AnchorMap |
| typedef std::map<SRTTimestamp, std::string> SRTCaptions::CaptionMap |
| typedef std::map<SRTTimestamp, SRTDuration> SRTCaptions::DurationMap |
| typedef std::map<size_t, std::string> SRTCaptions::ErrorMap |
| typedef std::map<SRTTimestamp, SRTSeqNum> SRTCaptions::SeqNumMap |
| typedef std::map<SRTTimestamp, size_t> SRTCaptions::SourceMap |
| typedef std::vector<std::string> SRTCaptions::StringList |
| typedef std::map<SRTSeqNum, SRTTimestamp> SRTCaptions::TimestampMap |
| typedef std::map<SRTTimestamp, SRTWindow> SRTCaptions::WindowMap |
|
static |
|
static |
| bool SRTCaptions::appendCaption | ( | const SRTCaptionInfo & | inCaptionInfo | ) |
| std::string SRTCaptions::captionAtStartTime | ( | const SRTTimestamp | inStartTime | ) | const |
| bool SRTCaptions::captionAtStartTime | ( | const SRTTimestamp | inStartTime, |
| SRTCaptionInfo & | outInfo | ||
| ) | const |
| uint32_t SRTCaptions::captionCount | ( | void | ) | const |
| void SRTCaptions::clear | ( | void | ) |
|
inlinestatic |
| bool SRTCaptions::durationAtStartTime | ( | const SRTTimestamp | inStartTime, |
| SRTDuration & | outDuration | ||
| ) | const |
|
static |
| bool SRTCaptions::getError | ( | size_t & | outLineOffset, |
| std::string & | outMsg | ||
| ) | const |
|
static |
| bool SRTCaptions::getWarning | ( | const size_t | inIndex0, |
| size_t & | outLineOffset, | ||
| std::string & | outMsg | ||
| ) | const |
|
static |
| bool SRTCaptions::hasCaptionAtSeqNum | ( | const SRTSeqNum | inSeqNum | ) | const |
| bool SRTCaptions::hasCaptionAtStartTime | ( | const SRTTimestamp | inStartTime | ) | const |
|
inline |
| SRTSeqNum SRTCaptions::maxSeqNum | ( | void | ) | const |
| SRTTimestamp SRTCaptions::maxStartTime | ( | void | ) | const |
| SRTSeqNum SRTCaptions::minSeqNum | ( | void | ) | const |
| SRTTimestamp SRTCaptions::minStartTime | ( | void | ) | const |
| bool SRTCaptions::nextCaption | ( | SRTTimestamp & | inOutStartTime, |
| SRTCaptionInfo & | outInfo | ||
| ) | const |
| std::ostream& SRTCaptions::printErrors | ( | std::ostream & | oss, |
| const bool | inIncludeWarnings = true |
||
| ) | const |
| std::ostream& SRTCaptions::printInfo | ( | std::ostream & | oss | ) | const |
| std::ostream& SRTCaptions::printSRT | ( | std::ostream & | oss | ) | const |
| bool SRTCaptions::reloadFrom | ( | const std::string & | inSRTData | ) |
| bool SRTCaptions::reloadFrom | ( | const StringList & | inSRTData | ) |
|
inlinestatic |
| SRTTimestamp SRTCaptions::startTimeAtSeqNum | ( | const SRTSeqNum | inSeqNum | ) | const |
|
static |
|
inline |
|
inline |