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

Method enableHardwareAcceleration

sources/base/Grabber.cpp:232–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void Grabber::enableHardwareAcceleration(bool hardware)
233{
234 if (_hardware != hardware)
235 {
236 _hardware = hardware;
237
238 Debug(_log, "Set hardware acceleration to %s", _hardware ? "enabled" : "disabled");
239
240 if (_initialized && !_blocked)
241 {
242 Debug(_log, "Restarting video grabber");
243 uninit();
244 start();
245 }
246 else
247 {
248 Info(_log, "Delayed restart of the grabber due to change of the hardware acceleration");
249 _restartNeeded = true;
250 }
251 }
252}
253
254bool Grabber::trySetInput(int input)
255{

Callers 1

handleSettingsUpdateMethod · 0.80

Calls 1

startFunction · 0.85

Tested by

no test coverage detected