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

Method drawFrame

YUViewLib/src/video/FrameHandler.cpp:263–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void 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
280void FrameHandler::drawPixelValues(QPainter *painter,
281 const int,

Callers 4

drawItemMethod · 0.45
drawItemMethod · 0.45
drawItemMethod · 0.45
drawItemMethod · 0.45

Calls 1

setSizeMethod · 0.80

Tested by

no test coverage detected