Commit 42c7bc77 authored by Patrick José Pereira's avatar Patrick José Pereira

ViewStreaming: Move to pragma once

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent f054d357
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_ITEM_H
#define VIDEO_ITEM_H
#pragma once
#include <QtQuick/QQuickItem>
#include "VideoSurface.h"
......@@ -46,4 +45,3 @@ private:
#endif
};
#endif // VIDEO_ITEM_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEORECEIVER_H
#define VIDEORECEIVER_H
#pragma once
#include "QGCLoggingCategory.h"
#include <QObject>
......@@ -150,4 +149,3 @@ protected:
VideoSettings* _videoSettings;
};
#endif // VIDEORECEIVER_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,10 +14,8 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_STREAMING_H
#define VIDEO_STREAMING_H
#pragma once
extern void initializeVideoStreaming (int &argc, char *argv[], char* filename, char* debuglevel);
extern void shutdownVideoStreaming ();
#endif // VIDEO_STREAMING_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_SURFACE_H
#define VIDEO_SURFACE_H
#pragma once
#include <QtCore/QObject>
......@@ -62,4 +61,3 @@ private:
Q_DECLARE_METATYPE(VideoSurface*)
#endif // VIDEO_SURFACE_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEO_SURFACE_P_H
#define VIDEO_SURFACE_P_H
#pragma once
#include "VideoSurface.h"
#include "VideoItem.h"
......@@ -31,4 +30,3 @@ public:
GstElement* videoSink;
};
#endif // VIDEO_SURFACE_P_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef BASEDELEGATE_H
#define BASEDELEGATE_H
#pragma once
#include <gst/gst.h>
......@@ -152,4 +151,3 @@ protected:
GstElement * const m_sink;
};
#endif // BASEDELEGATE_H
......@@ -20,8 +20,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QTQUICK2VIDEOSINKDELEGATE_H
#define QTQUICK2VIDEOSINKDELEGATE_H
#pragma once
#include "basedelegate.h"
#include <QtQuick/QSGNode>
......@@ -35,4 +34,3 @@ public:
QSGNode *updateNode(QSGNode *node, const QRectF & targetArea);
};
#endif // QTQUICK2VIDEOSINKDELEGATE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QT_VIDEO_SINK_DELEGATE_H
#define QT_VIDEO_SINK_DELEGATE_H
#pragma once
#include "basedelegate.h"
#include "../painters/abstractsurfacepainter.h"
......@@ -72,4 +71,3 @@ private:
Q_DECLARE_OPERATORS_FOR_FLAGS(QtVideoSinkDelegate::PainterTypes)
#endif // QT_VIDEO_SINK_DELEGATE_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef QWIDGET_VIDEO_SINK_DELEGATE_H
#define QWIDGET_VIDEO_SINK_DELEGATE_H
#pragma once
#include "qtvideosinkdelegate.h"
#include <QEvent>
......@@ -53,4 +52,3 @@ private:
bool m_opaquePaintEventAttribute;
};
#endif // QWIDGET_VIDEO_SINK_DELEGATE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_GL_VIDEO_SINK_H
#define GST_QT_GL_VIDEO_SINK_H
#pragma once
#include "gstqtglvideosinkbase.h"
......@@ -75,4 +74,3 @@ struct GstQtGLVideoSinkClass
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // GST_QT_GL_VIDEO_SINK_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_GL_VIDEO_SINK_BASE_H
#define GST_QT_GL_VIDEO_SINK_BASE_H
#pragma once
#include "gstqtvideosinkbase.h"
#include <gst/video/colorbalance.h>
......@@ -97,4 +96,3 @@ struct GstQtGLVideoSinkBaseClass
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // GST_QT_GL_VIDEO_SINK_BASE_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef __GST_QT_QUICK2_VIDEO_SINK_H__
#define __GST_QT_QUICK2_VIDEO_SINK_H__
#pragma once
#include <gst/video/gstvideosink.h>
#include <QtGlobal>
......@@ -60,4 +59,3 @@ struct _GstQtQuick2VideoSinkClass
GType gst_qt_quick2_video_sink_get_type (void);
#endif /* __GST_QT_QUICK2_VIDEO_SINK_H__ */
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_H
#define GST_QT_VIDEO_SINK_H
#pragma once
#include "gstqtvideosinkbase.h"
......@@ -64,4 +63,3 @@ struct GstQtVideoSinkClass
qreal x, qreal y, qreal width, qreal height);
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_BASE_H
#define GST_QT_VIDEO_SINK_BASE_H
#pragma once
#include "gstqtvideosinkplugin.h"
#include <gst/video/gstvideosink.h>
......@@ -81,4 +80,3 @@ struct GstQtVideoSinkBaseClass
GstVideoSinkClass parent_class;
};
#endif
#ifndef __g_cclosure_user_marshal_MARSHAL_H__
#define __g_cclosure_user_marshal_MARSHAL_H__
#pragma once
#include <glib-object.h>
......@@ -40,5 +39,4 @@ extern void g_cclosure_user_marshal_POINTER__POINTER_DOUBLE_DOUBLE_DOUBLE_DOUBLE
G_END_DECLS
#endif /* __g_cclosure_user_marshal_MARSHAL_H__ */
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QT_VIDEO_SINK_PLUGIN_H
#define GST_QT_VIDEO_SINK_PLUGIN_H
#pragma once
#include <gst/gst.h>
#include <QtGlobal>
......@@ -74,4 +73,3 @@ inline bool qRealIsDouble() { return sizeof(qreal) == sizeof(double); }
#define G_TYPE_QREAL qRealIsDouble() ? G_TYPE_DOUBLE : G_TYPE_FLOAT
#endif
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GST_QWIDGET_VIDEO_SINK_H
#define GST_QWIDGET_VIDEO_SINK_H
#pragma once
#include "gstqtvideosinkbase.h"
......@@ -58,4 +57,3 @@ struct GstQWidgetVideoSinkClass
GstQtVideoSinkBaseClass parent_class;
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef ABSTRACTSURFACEPAINTER_H
#define ABSTRACTSURFACEPAINTER_H
#pragma once
#include "../utils/bufferformat.h"
#include <QRectF>
......@@ -46,4 +45,3 @@ public:
virtual void updateColors(int brightness, int contrast, int hue, int saturation) = 0;
};
#endif
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GENERICSURFACEPAINTER_H
#define GENERICSURFACEPAINTER_H
#pragma once
#include "abstractsurfacepainter.h"
#include <QSet>
......@@ -55,4 +54,3 @@ private:
QImage::Format m_imageFormat;
};
#endif // GENERICSURFACEPAINTER_H
......@@ -21,8 +21,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef OPENGLSURFACEPAINTER_H
#define OPENGLSURFACEPAINTER_H
#pragma once
#ifndef GST_QT_VIDEO_SINK_NO_OPENGL
......@@ -138,5 +137,3 @@ private:
};
#endif // GST_QT_VIDEO_SINK_NO_OPENGL
#endif // OPENGLSURFACEPAINTER_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEOMATERIAL_H
#define VIDEOMATERIAL_H
#pragma once
#include "../utils/bufferformat.h"
#include <QSize>
......@@ -80,4 +79,3 @@ private:
friend class VideoMaterialShader;
};
#endif // VIDEOMATERIAL_H
......@@ -22,8 +22,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef VIDEONODE_H
#define VIDEONODE_H
#pragma once
#include "../utils/bufferformat.h"
......@@ -53,4 +52,3 @@ private:
MaterialType m_materialType;
};
#endif // VIDEONODE_H
......@@ -14,8 +14,7 @@
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef BUFFERFORMAT_H
#define BUFFERFORMAT_H
#pragma once
#include "utils.h"
#include <QSharedData>
......@@ -67,4 +66,3 @@ Q_DECLARE_METATYPE(GstVideoFormat)
Q_DECLARE_METATYPE(GstVideoColorMatrix)
Q_DECLARE_METATYPE(BufferFormat)
#endif // BUFFERFORMAT_H
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
* (c) 2009-2018 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
......@@ -14,8 +14,7 @@
* @author Gus Grubba <mavlink@grubba.com>
*/
#ifndef GLUTILS_H
#define GLUTILS_H
#pragma once
#if defined(__mobile__) && !defined(Q_OS_MAC)
#include <QOpenGLFunctions>
......@@ -34,5 +33,3 @@
#define getQOpenGLFunctions() QOpenGLContext::currentContext()->versionFunctions<QOpenGLFunctions_2_0>()
#define QOpenGLFunctionsDef QOpenGLFunctions_2_0
#endif
#endif
......@@ -13,8 +13,7 @@
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef UTILS_H
#define UTILS_H
#pragma once
#include <QRectF>
#include <QSize>
......@@ -75,4 +74,3 @@ struct PaintAreas
Q_DECLARE_METATYPE(Fraction)
Q_DECLARE_METATYPE(PaintAreas)
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment