MCPcopy Create free account
hub / github.com/IENT/YUView / getRawFrameData

Method getRawFrameData

YUViewLib/src/decoder/decoderHM.cpp:351–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351QByteArray 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
376void decoderHM::copyImgToByteArray(libHMDec_picture *src, byteArrayAligned &dst)

Callers 1

loadRawDataMethod · 0.45

Calls 2

statisticsEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected