QCameraFormat Class
Die Klasse „QCameraFormat“ beschreibt ein von einem Kameragerät unterstütztes Videoformat. Mehr...
| Header: | #include <QCameraFormat> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| In QML: | cameraFormat |
Eigenschaften
- maxFrameRate : const float
- minFrameRate : const float
- pixelFormat : const QVideoFrameFormat::PixelFormat
- resolution : const QSize
Öffentliche Funktionen
| QCameraFormat() | |
| QCameraFormat(const QCameraFormat &other) | |
| ~QCameraFormat() | |
| bool | isNull() const |
| float | maxFrameRate() const |
| float | minFrameRate() const |
| QVideoFrameFormat::PixelFormat | pixelFormat() const |
| QSize | resolution() const |
| bool | operator!=(const QCameraFormat &other) const |
| QCameraFormat & | operator=(const QCameraFormat &other) |
| bool | operator==(const QCameraFormat &other) const |
Ausführliche Beschreibung
QCameraFormat repräsentiert ein bestimmtes Videoformat, das von einem Kameragerät unterstützt wird.
Das Format setzt sich aus einem „ pixel format “, der Auflösung und einem Bereich von Bildraten zusammen.
QCameraFormat-Objekte können über ` QCameraDevice ` abgefragt werden, um die unterstützten Videoformate zu ermitteln.
Siehe auch „ QCameraDevice “ und „ QCamera “.
Dokumentation zu den Eigenschaften
[read-only] maxFrameRate : const float
Gibt die höchste Bildrate zurück, die von diesem Format definiert ist.
Die Kamera versucht stets, die höchste von einem bestimmten Videoformat unterstützte Bildrate zu verwenden.
Zugriffsfunktionen:
| float | maxFrameRate() const |
[read-only] minFrameRate : const float
Gibt die niedrigste Bildrate zurück, die durch dieses Format definiert ist.
Zugriffsfunktionen:
| float | minFrameRate() const |
[read-only] pixelFormat : const QVideoFrameFormat::PixelFormat
Gibt das Pixelformat zurück.
Meistens handelt es sich dabei entweder um „ QVideoFrameFormat::Format_Jpeg “ oder „QVideoFrameFormat::Format_YUVY“, doch die Kamera könnte auch andere Formate unterstützen.
Zugriffsfunktionen:
| QVideoFrameFormat::PixelFormat | pixelFormat() const |
Siehe auch „ QVideoFrameFormat::PixelFormat “.
[read-only] resolution : const QSize
Gibt die Auflösung zurück.
Zugriffsfunktionen:
| QSize | resolution() const |
Dokumentation zu den Member-Funktionen
[noexcept] QCameraFormat::QCameraFormat()
Erstellt ein Null-Kameraformat.
Siehe auch ` isNull()`.
[noexcept] QCameraFormat::QCameraFormat(const QCameraFormat &other)
„Copy“ erstellt ein Kameraformat aus dem „ other “-Format.
[noexcept] QCameraFormat::~QCameraFormat()
Löscht das Kameraformat-Objekt.
[noexcept] bool QCameraFormat::isNull() const
Gibt „true“ zurück, wenn es sich um ein per Standardkonstruktion erstelltes ` QCameraFormat` handelt.
bool QCameraFormat::operator!=(const QCameraFormat &other) const
Gibt „ false “ zurück, wenn das Format „ other “ mit dem Format dieser Kamera übereinstimmt, andernfalls „ true “.
[noexcept] QCameraFormat &QCameraFormat::operator=(const QCameraFormat &other)
Weise „ other “ diesem zu.
bool QCameraFormat::operator==(const QCameraFormat &other) const
Gibt „ true “ zurück, wenn das Format „ other “ mit dem Format dieser Kamera übereinstimmt, andernfalls „ false “.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.