QCameraFormat Class
La classe QCameraFormat descrive un formato video supportato da una fotocamera. Per saperne di più...
| Intestazione: | #include <QCameraFormat> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia) target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| In QML: | cameraFormat |
Proprietà
- maxFrameRate : const float
- minFrameRate : const float
- pixelFormat : const QVideoFrameFormat::PixelFormat
- resolution : const QSize
Funzioni pubbliche
| 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 |
Descrizione dettagliata
QCameraFormat rappresenta un determinato formato video supportato da una videocamera.
Il formato è una combinazione di un pixel format, una risoluzione e un intervallo di frame rate.
È possibile interrogare gli oggetti QCameraFormat tramite l'QCameraDevice per verificare l'insieme dei formati video supportati.
Vedi anche QCameraDevice e QCamera.
Documentazione delle proprietà
[read-only] maxFrameRate : const float
Restituisce la frequenza dei fotogrammi massima definita da questo formato.
La videocamera cercherà sempre di utilizzare la frequenza dei fotogrammi più alta supportata da un determinato formato video.
Funzioni di accesso:
| float | maxFrameRate() const |
[read-only] minFrameRate : const float
Restituisce la frequenza dei fotogrammi minima definita da questo formato.
Funzioni di accesso:
| float | minFrameRate() const |
[read-only] pixelFormat : const QVideoFrameFormat::PixelFormat
Restituisce il formato dei pixel.
Nella maggior parte dei casi si tratta di QVideoFrameFormat::Format_Jpeg o QVideoFrameFormat::Format_YUVY, ma la fotocamera potrebbe supportare anche altri formati.
Funzioni di accesso:
| QVideoFrameFormat::PixelFormat | pixelFormat() const |
Vedi anche QVideoFrameFormat::PixelFormat.
[read-only] resolution : const QSize
Restituisce la risoluzione.
Funzioni di Access:
| QSize | resolution() const |
Documentazione sulle funzioni membro
[noexcept] QCameraFormat::QCameraFormat()
Crea un formato di telecamera nullo.
Vedi anche isNull().
[noexcept] QCameraFormat::QCameraFormat(const QCameraFormat &other)
La funzione Copy crea un formato di telecamera a partire dal formato " other ".
[noexcept] QCameraFormat::~QCameraFormat()
Distrugge l'oggetto del formato della fotocamera.
[noexcept] bool QCameraFormat::isNull() const
Restituisce true se si tratta di un oggetto ` QCameraFormat` creato con il costruttore predefinito.
bool QCameraFormat::operator!=(const QCameraFormat &other) const
Restituisce ` false ` se il formato ` other ` è uguale al formato di questa fotocamera, altrimenti ` true`.
[noexcept] QCameraFormat &QCameraFormat::operator=(const QCameraFormat &other)
Affida questo compito a other.
bool QCameraFormat::operator==(const QCameraFormat &other) const
Restituisce ` true ` se il formato ` other ` è uguale a quello di questa fotocamera, altrimenti ` 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.