QCameraFormat Class
La classe QCameraFormat décrit un format vidéo pris en charge par un appareil photo. Plus d'informations...
| En-tête : | #include <QCameraFormat> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Multimedia)target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake : | QT += multimedia |
| En QML : | cameraFormat |
Propriétés
- maxFrameRate : const float
- minFrameRate : const float
- pixelFormat : const QVideoFrameFormat::PixelFormat
- resolution : const QSize
Fonctions publiques
| 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 |
Description détaillée
QCameraFormat représente un certain format vidéo pris en charge par un appareil photo.
Le format est une combinaison d'une résolution pixel format et d'une gamme de fréquences d'images.
Les objets QCameraFormat peuvent être interrogés à partir de QCameraDevice pour inspecter l'ensemble des formats vidéo pris en charge.
Voir également QCameraDevice et QCamera.
Documentation sur les propriétés
[read-only] maxFrameRate : const float
Renvoie la fréquence d'images la plus élevée définie par ce format.
La caméra essaiera toujours d'utiliser la fréquence d'images la plus élevée prise en charge par un format vidéo donné.
Fonctions d'accès :
| float | maxFrameRate() const |
[read-only] minFrameRate : const float
Renvoie la fréquence d'images la plus basse définie par ce format.
Fonctions d'accès :
| float | minFrameRate() const |
[read-only] pixelFormat : const QVideoFrameFormat::PixelFormat
Renvoie le format des pixels.
Le plus souvent, il s'agit de QVideoFrameFormat::Format_Jpeg ou de QVideoFrameFormat::Format_YUVY, mais d'autres formats peuvent également être pris en charge par la caméra.
Fonctions d'accès :
| QVideoFrameFormat::PixelFormat | pixelFormat() const |
Voir également QVideoFrameFormat::PixelFormat.
[read-only] resolution : const QSize
Renvoie la résolution.
Fonctions d'accès :
| QSize | resolution() const |
Documentation des fonctions membres
[noexcept] QCameraFormat::QCameraFormat()
Construit un format de caméra nul.
Voir aussi isNull().
[noexcept] QCameraFormat::QCameraFormat(const QCameraFormat &other)
Copy construit un format de caméra à partir du format other.
[noexcept] QCameraFormat::~QCameraFormat()
Détruit l'objet de format de caméra.
[noexcept] bool QCameraFormat::isNull() const
Retourne true s'il s'agit d'une construction par défaut QCameraFormat.
bool QCameraFormat::operator!=(const QCameraFormat &other) const
Renvoie false si le format other est égal au format de cette caméra, sinon true.
[noexcept] QCameraFormat &QCameraFormat::operator=(const QCameraFormat &other)
Attribuez-lui other.
bool QCameraFormat::operator==(const QCameraFormat &other) const
Renvoie true si le format other est égal au format de cette caméra, sinon 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.