summaryrefslogtreecommitdiffstats
path: root/src/plugins/multimedia/gstreamer/common/qgst_p.h
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-02-14 22:15:21 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-01 02:09:47 +0000
commit61411ea81c0d286d8fd75c43a8aa22cda200cc87 (patch)
tree1995029c2c362c80fb1f96547a15dcffd2e39067 /src/plugins/multimedia/gstreamer/common/qgst_p.h
parent1b8861d4862ce3d41d024c1eb7abac25bbdd0502 (diff)
GStreamer: QGstStructure - add APIs for pixelAspectRatio and nativeSize
Pick-to: 6.6 6.5 Change-Id: If14ea149367a34a59dc6de1c2e119fb2b8f9e302 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Lars Sutterud <lars.sutterud@qt.io> (cherry picked from commit 055d84815253b723b6c2361dd6c7ee1d6e6c2101) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/plugins/multimedia/gstreamer/common/qgst_p.h')
-rw-r--r--src/plugins/multimedia/gstreamer/common/qgst_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/multimedia/gstreamer/common/qgst_p.h b/src/plugins/multimedia/gstreamer/common/qgst_p.h
index e1f5b92fc..a5ab3cfc4 100644
--- a/src/plugins/multimedia/gstreamer/common/qgst_p.h
+++ b/src/plugins/multimedia/gstreamer/common/qgst_p.h
@@ -16,6 +16,7 @@
//
#include <private/qtmultimediaglobal_p.h>
+#include <private/qmultimediautils_p.h>
#include <QtCore/qsemaphore.h>
#include <QtCore/qlist.h>
@@ -237,6 +238,8 @@ public:
Q_MULTIMEDIA_EXPORT QVideoFrameFormat::PixelFormat pixelFormat() const;
Q_MULTIMEDIA_EXPORT QGRange<float> frameRateRange() const;
Q_MULTIMEDIA_EXPORT QGstreamerMessage getMessage();
+ Q_MULTIMEDIA_EXPORT std::optional<Fraction> pixelAspectRatio() const;
+ Q_MULTIMEDIA_EXPORT QSize nativeSize() const;
QGstStructure copy() const { return gst_structure_copy(structure); }
};