| 343 | } |
| 344 | |
| 345 | QByteArray decoderVTM::getRawFrameData() |
| 346 | { |
| 347 | if (currentVTMPic == nullptr) |
| 348 | return QByteArray(); |
| 349 | if (decoderState != DecoderState::RetrieveFrames) |
| 350 | { |
| 351 | DEBUG_DECVTM("decoderVTM::getRawFrameData: Wrong decoder state."); |
| 352 | return QByteArray(); |
| 353 | } |
| 354 | |
| 355 | if (currentOutputBuffer.isEmpty()) |
| 356 | { |
| 357 | // Put image data into buffer |
| 358 | copyImgToByteArray(currentVTMPic, currentOutputBuffer); |
| 359 | DEBUG_DECVTM("decoderVTM::getRawFrameData copied frame to buffer"); |
| 360 | |
| 361 | if (this->statisticsEnabled()) |
| 362 | // Get the statistics from the image and put them into the statistics cache |
| 363 | this->cacheStatistics(currentVTMPic); |
| 364 | } |
| 365 | |
| 366 | return currentOutputBuffer; |
| 367 | } |
| 368 | |
| 369 | #if SSE_CONVERSION |
| 370 | void decoderVTM::copyImgToByteArray(libVTMDec_picture *src, byteArrayAligned &dst) |
nothing calls this directly
no test coverage detected