| 143 | } |
| 144 | |
| 145 | void 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 | |
| 159 | void OfflineVideoEncoder::getInputFrameBuf(uint8_t* data[], int stride[]) { |
| 160 | data[0] = this->data[0].data(); |
no test coverage detected