| 390 | } |
| 391 | |
| 392 | QByteArray decoderLibde265::getRawFrameData() |
| 393 | { |
| 394 | if (this->curImage == nullptr) |
| 395 | return {}; |
| 396 | if (this->decoderState != DecoderState::RetrieveFrames) |
| 397 | { |
| 398 | DEBUG_LIBDE265("decoderLibde265::getRawFrameData: Wrong decoder state."); |
| 399 | return {}; |
| 400 | } |
| 401 | |
| 402 | if (this->currentOutputBuffer.isEmpty()) |
| 403 | { |
| 404 | this->copyImgToByteArray(this->curImage, this->currentOutputBuffer); |
| 405 | DEBUG_LIBDE265("decoderLibde265::getRawFrameData copied frame to buffer"); |
| 406 | |
| 407 | if (this->statisticsEnabled()) |
| 408 | this->cacheStatistics(this->curImage); |
| 409 | } |
| 410 | |
| 411 | return this->currentOutputBuffer; |
| 412 | } |
| 413 | |
| 414 | bool decoderLibde265::pushData(QByteArray &data) |
| 415 | { |
nothing calls this directly
no test coverage detected