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
7
class
QImage;
8
class
QString;
9
class
QVideoFrame;
10
12
namespace
VideoScreenshot
{
13
16
struct
Exif
17
{
18
QDateTime
taken
;
19
QGeoCoordinate
position
;
20
};
21
25
QImage
displayedImage
(
const
QVideoFrame& frame, QtVideo::Rotation outputRotation = QtVideo::Rotation::None,
26
bool
outputMirrored =
false
);
30
bool
saveImage
(
const
QImage& image,
const
QString& file,
const
Exif
& exif = {});
32
bool
save
(
const
QVideoFrame& frame,
const
QString& file,
const
Exif& exif = {},
33
QtVideo::Rotation outputRotation = QtVideo::Rotation::None,
bool
outputMirrored =
false
);
34
35
}
// namespace VideoScreenshot
VideoScreenshot
Screenshots of the video on display, from a network stream or the USB camera.
Definition
VideoScreenshot.h:12
VideoScreenshot::saveImage
bool saveImage(const QImage &image, const QString &file, const Exif &exif={})
Definition
VideoScreenshot.cc:87
VideoScreenshot::displayedImage
QImage displayedImage(const QVideoFrame &frame, QtVideo::Rotation outputRotation=QtVideo::Rotation::None, bool outputMirrored=false)
Definition
VideoScreenshot.cc:54
VideoScreenshot::save
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().
Definition
VideoScreenshot.cc:124
VideoScreenshot::Exif
Definition
VideoScreenshot.h:17
VideoScreenshot::Exif::taken
QDateTime taken
Definition
VideoScreenshot.h:18
VideoScreenshot::Exif::position
QGeoCoordinate position
Definition
VideoScreenshot.h:19
src
VideoManager
Receiver
VideoScreenshot.h
Generated by
1.15.0