| 259 | } |
| 260 | |
| 261 | bool 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 | |
| 269 | bool OfflineVideoEncoder::readFrameInfo(FrameInfo& frameInfo, const std::string& filePath) { |
| 270 | QFile file(filePath.data()); |
nothing calls this directly
no test coverage detected