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

Method getRawFrameData

YUViewLib/src/decoder/decoderFFmpeg.cpp:152–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152QByteArray decoderFFmpeg::getRawFrameData()
153{
154 if (this->decoderState != DecoderState::RetrieveFrames)
155 {
156 DEBUG_FFMPEG("decoderFFmpeg::getYUVFrameData: Wrong decoder state.");
157 return QByteArray();
158 }
159
160 DEBUG_FFMPEG("decoderFFmpeg::getYUVFrameData Copy frame");
161
162 if (this->currentOutputBuffer.isEmpty())
163 {
164 DEBUG_FFMPEG("decoderFFmpeg::decodeNextFrame: Copy frame data to buffer");
165 this->copyCurImageToBuffer();
166
167 if (this->statisticsEnabled())
168 // Get the statistics from the image and put them into the statistics cache
169 this->cacheCurStatistics();
170 }
171
172 return this->currentOutputBuffer;
173}
174
175void decoderFFmpeg::copyCurImageToBuffer()
176{

Callers

nothing calls this directly

Calls 4

copyCurImageToBufferMethod · 0.95
cacheCurStatisticsMethod · 0.95
statisticsEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected