MCPcopy Create free account
hub / github.com/Atarity/Lightpack / start

Method start

Software/src/GrabManager.cpp:124–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void GrabManager::start(bool isGrabEnabled)
125{
126 DEBUG_LOW_LEVEL << Q_FUNC_INFO << isGrabEnabled;
127
128 clearColorsNew();
129
130 if (m_grabber != NULL) {
131 if (isGrabEnabled) {
132 m_timerUpdateFPS->start();
133 m_grabber->startGrabbing();
134 } else {
135 clearColorsCurrent();
136 m_timerUpdateFPS->stop();
137 m_grabber->stopGrabbing();
138 emit ambilightTimeOfUpdatingColors(0);
139 }
140 }
141}
142
143void GrabManager::onGrabberTypeChanged(const Grab::GrabberType grabberType)
144{

Callers 2

GrabManagerMethod · 0.45
handleGrabbedColorsMethod · 0.45

Calls 3

startGrabbingMethod · 0.45
stopMethod · 0.45
stopGrabbingMethod · 0.45

Tested by

no test coverage detected