| 38 | bool VideoControl::_stream = false; |
| 39 | |
| 40 | VideoControl::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 | |
| 66 | VideoControl::~VideoControl() |
| 67 | { |
nothing calls this directly
no test coverage detected