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 から問い合わせて、サポートされているビデオ・フォーマットのセットを調べることができます。

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)

コピーは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 を返す。

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