MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setWidthHeight

Method setWidthHeight

sources/base/Grabber.cpp:448–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448bool Grabber::setWidthHeight(int width, int height)
449{
450 if (Grabber::trySetWidthHeight(width, height))
451 {
452 Debug(_log, "setWidthHeight preparing to restarting video grabber %i", _initialized);
453
454 if (_initialized && !_blocked)
455 {
456 Debug(_log, "Restarting video grabber");
457 uninit();
458 start();
459 }
460 else
461 {
462 Info(_log, "Delayed restart of the grabber due to change of the capturing resolution");
463 _restartNeeded = true;
464 }
465
466 return true;
467 }
468 return false;
469}
470
471bool Grabber::setInput(int input)
472{

Callers 2

handleSettingsUpdateMethod · 0.80
handleSettingsUpdateMethod · 0.80

Calls 1

startFunction · 0.85

Tested by

no test coverage detected