| 261 | } |
| 262 | |
| 263 | void FrameHandler::drawFrame(QPainter *painter, double zoomFactor, bool drawRawValues) |
| 264 | { |
| 265 | // Create the video QRect with the size of the sequence and center it. |
| 266 | QRect videoRect; |
| 267 | videoRect.setSize(QSize(frameSize.width * zoomFactor, frameSize.height * zoomFactor)); |
| 268 | videoRect.moveCenter(QPoint(0, 0)); |
| 269 | |
| 270 | // Draw the current image (currentFrame) |
| 271 | painter->drawImage(videoRect, this->currentImage); |
| 272 | |
| 273 | if (drawRawValues && zoomFactor >= SPLITVIEW_DRAW_VALUES_ZOOMFACTOR) |
| 274 | { |
| 275 | // Draw the pixel values onto the pixels |
| 276 | drawPixelValues(painter, 0, videoRect, zoomFactor); |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | void FrameHandler::drawPixelValues(QPainter *painter, |
| 281 | const int, |