cameraFormat QML Value Type | Qt Multimedia | Qt 6.11.1
Description: Describes a video format supported by a camera device.

- Qt 6.11
- Qt Multimedia
- QML Types
- cameraFormat
- Qt 6.11.1 Reference Documentation

# cameraFormat QML Value Type

Describes a video format supported by a camera device. More...

Import Statement: | `import QtMultimedia`
In C++: | QCameraFormat

## Properties

- maxFrameRate : real
- minFrameRate : real
- pixelFormat : enumeration
- resolution : size

## Detailed Description

cameraFormat represents a certain video format supported by a camera device.

The format is a combination of a pixel format, resolution, and a range of frame frates.

cameraFormat objects can be queried from cameraDevice to inspect the set of supported video formats.

See also cameraDevice and Camera.

## Property Documentation

### maxFrameRate : real `[read-only]`

Returns the highest frame rate defined by this format.

The camera will always try to use the maximum frame rate supported by a certain video format.

### minFrameRate : real `[read-only]`

Returns the lowest frame rate defined by this format.

### pixelFormat : enumeration `[read-only]`

Holds the pixel format.

Most commonly this is either QVideoFrameFormat::Format_Jpeg or QVideoFrameFormat::Format_YUVY but other formats could also be supported by the camera.

See also QVideoFrameFormat::PixelFormat.

### resolution : size `[read-only]`

Returns the resolution.