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

Method slotVideoControlChanged

YUViewLib/src/video/FrameHandler.cpp:216–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void FrameHandler::slotVideoControlChanged()
217{
218 // Update the controls and get the new selected size
219 auto newSize = getNewSizeFromControls();
220 DEBUG_FRAME(
221 "FrameHandler::slotVideoControlChanged new size %dx%d", newSize.width, newSize.height);
222
223 if (newSize != frameSize && newSize.isValid())
224 {
225 // Set the new size and update the controls.
226 this->setFrameSize(newSize);
227 // The frame size changed. We need to redraw/re-cache.
228 emit signalHandlerChanged(true, RECACHE_CLEAR);
229 }
230}
231
232Size FrameHandler::getNewSizeFromControls()
233{

Callers

nothing calls this directly

Calls 2

setFrameSizeMethod · 0.95
isValidMethod · 0.45

Tested by

no test coverage detected