MCPcopy Create free account
hub / github.com/QNapi/qnapi / encodeEntry

Method encodeEntry

libqnapi/src/subconvert/formats/mpl2.cpp:60–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60QString MPL2SubtitleFormat::encodeEntry(const SubEntry &entry) const {
61 QString tokensBuff;
62 foreach (const SubToken &token, entry.tokens) {
63 tokensBuff += encodeToken(token);
64 }
65 return QString("[%1][%2]%3")
66 .arg(entry.frameStart / 100)
67 .arg(entry.frameStop / 100)
68 .arg(tokensBuff);
69}
70
71QString MPL2SubtitleFormat::encodeToken(const SubToken &entry) const {
72 switch (entry.type) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected