QCameraFormat Class

QCameraFormat 클래스는 카메라 장치에서 지원하는 비디오 포맷을 설명합니다. 더 보기...

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

속성

공공 기능

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

상세 설명

QCameraFormat은 카메라 장치에서 지원하는 특정 비디오 포맷을 나타냅니다.

이 형식은 pixel format, 해상도 및 프레임 속도 범위의 조합입니다.

QCameraFormat 객체는 QCameraDevice 에서 쿼리하여 지원되는 비디오 형식 집합을 검사할 수 있습니다.

QCameraDeviceQCamera도 참조하세요 .

속성 문서

[read-only] maxFrameRate : const float

이 형식에 정의된 최고 프레임 속도를 반환합니다.

카메라는 항상 특정 동영상 포맷에서 지원하는 가장 높은 프레임 속도를 사용하려고 시도합니다.

액세스 함수:

float maxFrameRate() const

[read-only] minFrameRate : const float

이 형식에 정의된 최저 프레임 속도를 반환합니다.

함수에 액세스합니다:

float minFrameRate() const

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

픽셀 형식을 반환합니다.

가장 일반적인 형식은 QVideoFrameFormat::Format_Jpeg 또는 QVideoFrameFormat::Format_YUVY이지만 카메라에서 다른 형식도 지원할 수 있습니다.

함수에 액세스합니다:

QVideoFrameFormat::PixelFormat pixelFormat() const

QVideoFrameFormat::PixelFormat참조하세요 .

[read-only] resolution : const QSize

해상도를 반환합니다.

액세스 함수입니다:

QSize resolution() const

멤버 함수 문서

[noexcept] QCameraFormat::QCameraFormat()

널 카메라 형식을 구축합니다.

isNull()도 참조하세요 .

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

복사는 other 형식에서 카메라 형식을 구성합니다.

[noexcept] QCameraFormat::~QCameraFormat()

카메라 포맷 오브젝트를 파괴합니다.

[noexcept] bool QCameraFormat::isNull() const

기본 구성인 경우 참을 반환합니다 QCameraFormat.

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

other 형식이 이 카메라 형식과 같으면 false 을 반환하고, 그렇지 않으면 true 을 반환합니다.

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

other 을 지정합니다.

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

other 형식이 이 카메라 형식과 같으면 true 을 반환하고, 그렇지 않으면 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.