QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoDecodingSettingsGroup.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6import QGroundControl.FactControls
7
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.
11QGCGroupBox {
12 id: root
13
14 readonly property VideoSettings _videoSettings: QGroundControl.settingsManager.videoSettings
15 readonly property bool _gstreamer: root._videoSettings.videoBackend.rawValue === VideoSettings.VideoBackendGStreamer
16
17 heading: qsTr("Decoding")
18 visible: !QGroundControl.videoManager.isUvc
19 && (root._videoSettings.videoBackend.userVisible || root._videoSettings.forceVideoDecoder.userVisible
20 || root._videoSettings.forceCpuVideoPath.userVisible)
21
22 LabelledFactComboBox {
23 label: qsTr("Video Backend")
24 fact: root._videoSettings.videoBackend
25 indexModel: false
26 visible: fact.userVisible
27 Layout.fillWidth: true
28 }
29
30 LabelledFactComboBox {
31 objectName: "videoDecoderPriority"
32 label: qsTr("Decoder Priority")
33 fact: root._videoSettings.forceVideoDecoder
34 indexModel: false
35 visible: fact.userVisible && root._gstreamer
36 Layout.fillWidth: true
37 }
38
39 FactCheckBoxSlider {
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
45 }
46}