QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
UVCVideoOutput.qml
Go to the documentation of this file.
1import QtQuick
2import QtMultimedia
3
4import QGroundControl
5
6// Displays a USB camera: registers itself with the camera's controller, which runs the camera while the output exists,
7// and turns and mirrors the picture as the camera's rotation and mirror settings say.
8VideoOutput {
9 id: root
10
11 /// The camera shown: the one VideoManager selected.
12 property UVCCameraController camera: QGroundControl.videoManager.uvcCamera
13
14 // On top of each frame's own rotation and mirroring, as a phone's camera reports its sensor's.
15 orientation: root.camera.rotation
16 mirrored: root.camera.mirrored
17
18 Component.onCompleted: root.camera.registerVideoOutput(root)
19 Component.onDestruction: root.camera.unregisterVideoOutput(root)
20}