QCameraFormat Class

Die Klasse QCameraFormat beschreibt ein von einem Kameragerät unterstütztes Videoformat. Mehr...

Kopfzeile: #include <QCameraFormat>
CMake: find_package(Qt6 REQUIRED COMPONENTS Multimedia)
target_link_libraries(mytarget PRIVATE Qt6::Multimedia)
qmake: QT += multimedia

Eigenschaften

Ö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

Detaillierte Beschreibung

QCameraFormat stellt ein bestimmtes Videoformat dar, das von einem Kameragerät unterstützt wird.

Das Format ist eine Kombination aus einem pixel format, einer Auflösung und einer Reihe von Bildraten.

QCameraFormat-Objekte können von QCameraDevice abgefragt werden, um die Menge der unterstützten Videoformate zu überprüfen.

Siehe auch QCameraDevice und QCamera.

Dokumentation der Eigenschaften

[read-only] maxFrameRate : const float

Gibt die höchste durch dieses Format definierte Bildrate zurück.

Die Kamera wird immer versuchen, die höchste Bildrate zu verwenden, die von einem bestimmten Videoformat unterstützt wird.

Zugriffsfunktionen:

float maxFrameRate() const

[read-only] minFrameRate : const float

Gibt die niedrigste durch dieses Format definierte Bildrate zurück.

Zugriffsfunktionen:

float minFrameRate() const

[read-only] pixelFormat : const QVideoFrameFormat::PixelFormat

Gibt das Pixelformat zurück.

In der Regel ist dies entweder QVideoFrameFormat::Format_Jpeg oder QVideoFrameFormat::Format_YUVY, aber auch andere Formate können von der Kamera unterstützt werden.

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 der Mitgliedsfunktionen

[noexcept] QCameraFormat::QCameraFormat()

Konstruiert ein Null-Kameraformat.

Siehe auch isNull().

[noexcept] QCameraFormat::QCameraFormat(const QCameraFormat &other)

Copy konstruiert ein Kameraformat aus dem Format other.

[noexcept] QCameraFormat::~QCameraFormat()

Zerstört das Kameraformat-Objekt.

[noexcept] bool QCameraFormat::isNull() const

Gibt true zurück, wenn es sich um eine standardmäßig konstruierte QCameraFormat handelt.

bool QCameraFormat::operator!=(const QCameraFormat &other) const

Gibt false zurück, wenn das Format other gleich diesem Kameraformat ist, ansonsten true.

[noexcept] QCameraFormat &QCameraFormat::operator=(const QCameraFormat &other)

Weisen Sie other zu.

bool QCameraFormat::operator==(const QCameraFormat &other) const

Gibt true zurück, wenn das Format other gleich diesem Kameraformat ist, ansonsten false.

© 2025 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.