MCPcopy Create free account
hub / github.com/Tencent/libpag / writeEndParam

Method writeEndParam

exporter/src/export/encode/OfflineVideoEncoder.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261bool OfflineVideoEncoder::writeEndParam(bool hasEnd, bool earlyExit, const std::string& filePath) {
262 std::string endData = QString(R"({ "HasEnd": %1, "EarlyExit": %2 })")
263 .arg(hasEnd ? 1 : 0)
264 .arg(earlyExit ? 1 : 0)
265 .toStdString();
266 return WriteTextFile(filePath, endData) != 0;
267}
268
269bool OfflineVideoEncoder::readFrameInfo(FrameInfo& frameInfo, const std::string& filePath) {
270 QFile file(filePath.data());

Callers

nothing calls this directly

Calls 1

WriteTextFileFunction · 0.85

Tested by

no test coverage detected