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

Method getRawFrameData

YUViewLib/src/decoder/decoderLibde265.cpp:392–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392QByteArray 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
414bool decoderLibde265::pushData(QByteArray &data)
415{

Callers

nothing calls this directly

Calls 4

copyImgToByteArrayMethod · 0.95
cacheStatisticsMethod · 0.95
statisticsEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected