| 150 | } |
| 151 | |
| 152 | QByteArray 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 | |
| 175 | void decoderFFmpeg::copyCurImageToBuffer() |
| 176 | { |
nothing calls this directly
no test coverage detected