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

Method exit

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

Source from the content-addressed store, hash-verified

143}
144
145void OfflineVideoEncoder::exit() {
146 if (process->state() == QProcess::Running) {
147 process->waitForFinished(10000);
148 }
149 bool hasEnd = false;
150 bool earlyExit = false;
151 std::string outEndFile = JoinPaths(rootPath, "OutEnd.txt");
152 bool ret = readEndParam(hasEnd, earlyExit, outEndFile);
153 if (!ret || !(hasEnd || earlyExit)) {
154 process->kill();
155 }
156 process = nullptr;
157}
158
159void OfflineVideoEncoder::getInputFrameBuf(uint8_t* data[], int stride[]) {
160 data[0] = this->data[0].data();

Callers 2

startInternalMethod · 0.80
setup.emsdk.wx.jsFile · 0.80

Calls 1

JoinPathsFunction · 0.85

Tested by

no test coverage detected