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

Method getRawFrameData

YUViewLib/src/decoder/decoderVTM.cpp:345–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345QByteArray 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
370void decoderVTM::copyImgToByteArray(libVTMDec_picture *src, byteArrayAligned &dst)

Callers

nothing calls this directly

Calls 3

cacheStatisticsMethod · 0.95
statisticsEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected