5import QGroundControl.Controls
6import QGroundControl.FactControls
8// Which backend and decoder the video streams use and whether their frames reach the display through the CPU; the
9// decoder and CPU path are GStreamer's. A change restarts the streams. Hidden while a USB camera, which they don't apply
10// to, is the video source.
14 readonly property VideoSettings _videoSettings: QGroundControl.settingsManager.videoSettings
15 readonly property bool _gstreamer: root._videoSettings.videoBackend.rawValue === VideoSettings.VideoBackendGStreamer
17 heading: qsTr("Decoding")
18 visible: !QGroundControl.videoManager.isUvc
19 && (root._videoSettings.videoBackend.userVisible || root._videoSettings.forceVideoDecoder.userVisible
20 || root._videoSettings.forceCpuVideoPath.userVisible)
22 LabelledFactComboBox {
23 label: qsTr("Video Backend")
24 fact: root._videoSettings.videoBackend
26 visible: fact.userVisible
27 Layout.fillWidth: true
30 LabelledFactComboBox {
31 objectName: "videoDecoderPriority"
32 label: qsTr("Decoder Priority")
33 fact: root._videoSettings.forceVideoDecoder
35 visible: fact.userVisible && root._gstreamer
36 Layout.fillWidth: true
40 objectName: "videoForceCpuPath"
41 text: qsTr("Force CPU Video Path")
42 fact: root._videoSettings.forceCpuVideoPath
43 visible: fact.userVisible && root._gstreamer
44 Layout.fillWidth: true