|
|
@ -25,6 +25,7 @@ This file is part of the QGROUNDCONTROL project |
|
|
|
#define FlightDisplayViewController_H |
|
|
|
#define FlightDisplayViewController_H |
|
|
|
|
|
|
|
|
|
|
|
#include <QObject> |
|
|
|
#include <QObject> |
|
|
|
|
|
|
|
#include <QTimer> |
|
|
|
|
|
|
|
|
|
|
|
#include "VideoSurface.h" |
|
|
|
#include "VideoSurface.h" |
|
|
|
#include "VideoReceiver.h" |
|
|
|
#include "VideoReceiver.h" |
|
|
@ -42,15 +43,29 @@ public: |
|
|
|
Q_PROPERTY(VideoSurface* videoSurface MEMBER _videoSurface CONSTANT); |
|
|
|
Q_PROPERTY(VideoSurface* videoSurface MEMBER _videoSurface CONSTANT); |
|
|
|
Q_PROPERTY(VideoReceiver* videoReceiver MEMBER _videoReceiver CONSTANT); |
|
|
|
Q_PROPERTY(VideoReceiver* videoReceiver MEMBER _videoReceiver CONSTANT); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q_PROPERTY(bool videoRunning READ videoRunning NOTIFY videoRunningChanged) |
|
|
|
|
|
|
|
|
|
|
|
#if defined(QGC_GST_STREAMING) |
|
|
|
#if defined(QGC_GST_STREAMING) |
|
|
|
bool hasVideo () { return true; } |
|
|
|
bool hasVideo () { return true; } |
|
|
|
#else |
|
|
|
#else |
|
|
|
bool hasVideo () { return false; } |
|
|
|
bool hasVideo () { return false; } |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool videoRunning() { return _videoRunning; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
|
|
|
void videoRunningChanged(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
|
|
|
void _updateTimer(void); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
VideoSurface* _videoSurface; |
|
|
|
VideoSurface* _videoSurface; |
|
|
|
VideoReceiver* _videoReceiver; |
|
|
|
VideoReceiver* _videoReceiver; |
|
|
|
|
|
|
|
bool _videoRunning; |
|
|
|
|
|
|
|
#if defined(QGC_GST_STREAMING) |
|
|
|
|
|
|
|
QTimer _frameTimer; |
|
|
|
|
|
|
|
#endif |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|