29 Q_ENUM(VIDEO_STREAM_TYPE)
30 Q_ENUM(VIDEO_STREAM_ENCODING)
31 Q_FLAGS(QVIDEO_STREAM_STATUS_FLAGS)
34 explicit QGCVideoStreamInfo(
const mavlink_video_stream_information_t &info, QObject *parent =
nullptr);
37 Q_DECLARE_FLAGS(QVIDEO_STREAM_STATUS_FLAGS, VIDEO_STREAM_STATUS_FLAGS)
39 QString
uri()
const {
return QString(_streamInfo.uri); }
40 QString
name()
const {
return QString(_streamInfo.name); }
42 quint16
hfov()
const {
return _streamInfo.hfov; }
43 quint8
type()
const {
return _streamInfo.type; }
44 quint8
streamID()
const {
return _streamInfo.stream_id; }
45 quint8
encoding()
const {
return _streamInfo.encoding; }
46 bool isThermal()
const {
return (_streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_THERMAL); }
47 QSize
resolution()
const {
return QSize(_streamInfo.resolution_h, _streamInfo.resolution_v); }
48 quint16
rotation()
const {
return _streamInfo.rotation; }
49 bool isActive()
const {
return (_streamInfo.flags & VIDEO_STREAM_STATUS_FLAGS_RUNNING); }
50 uint32_t
bitrate()
const {
return _streamInfo.bitrate; }
51 qreal
framerate()
const {
return _streamInfo.framerate; }
53 bool update(
const mavlink_video_stream_status_t &info);
59 mavlink_video_stream_information_t _streamInfo{};