| 349 | } |
| 350 | |
| 351 | QByteArray decoderHM::getRawFrameData() |
| 352 | { |
| 353 | if (currentHMPic == nullptr) |
| 354 | return QByteArray(); |
| 355 | if (decoderState != DecoderState::RetrieveFrames) |
| 356 | { |
| 357 | DEBUG_DECHM("decoderHM::getRawFrameData: Wrong decoder state."); |
| 358 | return QByteArray(); |
| 359 | } |
| 360 | |
| 361 | if (currentOutputBuffer.isEmpty()) |
| 362 | { |
| 363 | // Put image data into buffer |
| 364 | copyImgToByteArray(currentHMPic, currentOutputBuffer); |
| 365 | DEBUG_DECHM("decoderHM::getRawFrameData copied frame to buffer"); |
| 366 | |
| 367 | if (this->statisticsEnabled()) |
| 368 | // Get the statistics from the image and put them into the statistics cache |
| 369 | cacheStatistics(currentHMPic); |
| 370 | } |
| 371 | |
| 372 | return currentOutputBuffer; |
| 373 | } |
| 374 | |
| 375 | #if SSE_CONVERSION |
| 376 | void decoderHM::copyImgToByteArray(libHMDec_picture *src, byteArrayAligned &dst) |
no test coverage detected