이 페이지에서

QCameraFormat Class

QCameraFormat 클래스는 카메라 기기에서 지원하는 비디오 형식을 정의합니다. 더 보기...

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

속성

공개 함수

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, 해상도 및 프레임 속도 범위의 조합입니다.

QCameraDevice 에서 QCameraFormat 객체를 조회하여 지원되는 비디오 형식 집합을 확인할 수 있습니다.

QCameraDevice 및 QCamera도 참조하십시오 .

속성 설명서

[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()

null 카메라 포맷을 생성합니다.

isNull()도 참조하십시오 .

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

Copy는 ‘ other ’ 형식에서 카메라 형식을 생성합니다.

[noexcept] QCameraFormat::~QCameraFormat()

카메라 형식 객체를 파기합니다.

[noexcept] bool QCameraFormat::isNull() const

이 객체가 기본 생성된 ` QCameraFormat`인 경우 true를 반환합니다.

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 을 반환합니다.

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