Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <WebVTTISOHandler.h>
Public Member Functions | |
CWebVTTISOHandler () | |
~CWebVTTISOHandler () | |
void | DecodeStream (const char *buffer, int bufferSize, double pts, std::vector< subtitleData > *subList, double &prevSubStopTime) |
Decode a stream package of the WebVTT in MP4 encapsulated subtitles (ISO/IEC 14496-30:2014) | |
Public Member Functions inherited from CWebVTTHandler | |
CWebVTTHandler () | |
~CWebVTTHandler () | |
bool | Initialize () |
Prepare the handler to the decoding. | |
void | Reset () |
bool | CheckSignature (const std::string &data) |
Verify the validity of the WebVTT signature. | |
void | DecodeLine (std::string line, std::vector< subtitleData > *subList) |
Decode a line of the WebVTT text data. | |
bool | IsForcedMargins () const |
void | SetPeriodStart (double pts) |
Additional Inherited Members | |
Protected Member Functions inherited from CWebVTTHandler | |
void | CalculateTextPosition (std::string &subtitleText) |
void | ConvertSubtitle (std::string &text) |
void | GetCueSettings (std::string &cueSettings) |
Protected Attributes inherited from CWebVTTHandler | |
subtitleData | m_subtitleData |
|
inline |
|
inline |
void CWebVTTISOHandler::DecodeStream | ( | const char * | buffer, |
int | bufferSize, | ||
double | pts, | ||
std::vector< subtitleData > * | subList, | ||
double & | prevSubStopTime ) |
Decode a stream package of the WebVTT in MP4 encapsulated subtitles (ISO/IEC 14496-30:2014)
buffer | The data buffer | |
bufferSize | The buffer size | |
subList | The list to be filled with decoded subtitles | |
[out] | prevSubStopTime | Provide the stop time value (depends on box type) |