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

Method VideoControl

sources/base/VideoControl.cpp:40–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38bool VideoControl::_stream = false;
39
40VideoControl::VideoControl(HyperHdrInstance* hyperhdr)
41 : QObject()
42 , _hyperhdr(hyperhdr)
43 , _usbCaptEnabled(false)
44 , _alive(false)
45 , _usbCaptPrio(0)
46 , _usbCaptName()
47 , _usbInactiveTimer(new QTimer(this))
48 , _isCEC(false)
49{
50 // settings changes
51 connect(_hyperhdr, &HyperHdrInstance::SignalInstanceSettingsChanged, this, &VideoControl::handleSettingsUpdate);
52
53 // comp changes
54 connect(_hyperhdr, &HyperHdrInstance::SignalRequestComponent, this, &VideoControl::handleCompStateChangeRequest);
55
56 // inactive timer usb grabber
57 connect(_usbInactiveTimer, &QTimer::timeout, this, &VideoControl::setUsbInactive);
58
59 _usbInactiveTimer->setInterval(800);
60
61 // init
62 QJsonDocument settings = _hyperhdr->getSetting(settings::type::VIDEOCONTROL);
63 QUEUE_CALL_2(this, handleSettingsUpdate, settings::type, settings::type::VIDEOCONTROL, QJsonDocument, settings);
64}
65
66VideoControl::~VideoControl()
67{

Callers

nothing calls this directly

Calls 1

getSettingMethod · 0.45

Tested by

no test coverage detected