QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
VideoScreenshot.h
Go to the documentation of this file.
1#pragma once
2
3#include <QtCore/QDateTime>
4#include <QtMultimedia/qtvideo.h>
5#include <QtPositioning/QGeoCoordinate>
6
7class QImage;
8class QString;
9class QVideoFrame;
10
12namespace VideoScreenshot {
13
16struct Exif
17{
18 QDateTime taken;
19 QGeoCoordinate position;
20};
21
25QImage displayedImage(const QVideoFrame& frame, QtVideo::Rotation outputRotation = QtVideo::Rotation::None,
26 bool outputMirrored = false);
30bool saveImage(const QImage& image, const QString& file, const Exif& exif = {});
32bool save(const QVideoFrame& frame, const QString& file, const Exif& exif = {},
33 QtVideo::Rotation outputRotation = QtVideo::Rotation::None, bool outputMirrored = false);
34
35} // namespace VideoScreenshot
Screenshots of the video on display, from a network stream or the USB camera.
bool saveImage(const QImage &image, const QString &file, const Exif &exif={})
QImage displayedImage(const QVideoFrame &frame, QtVideo::Rotation outputRotation=QtVideo::Rotation::None, bool outputMirrored=false)
bool save(const QVideoFrame &frame, const QString &file, const Exif &exif={}, QtVideo::Rotation outputRotation=QtVideo::Rotation::None, bool outputMirrored=false)
displayedImage() of frame, then saveImage().
QGeoCoordinate position