struct VideoSensorParamsStructDefines parameters related to the videoSensorParams
[CameraAvStreamManagementTrait.Attributes.videoSensorParams] attribute.
-
The width that the video sensor supports.
Declaration
Swift
let sensorWidth: UInt16 -
The height that the video sensor supports.
Declaration
Swift
let sensorHeight: UInt16 -
The maximum frames per second that the video sensor can capture.
Declaration
Swift
let maxFPS: UInt16 -
An optional field for the maximum frames per second that the video sensor can capture when High Dynamic Range (HDR) is enabled.
Declaration
Swift
let maxHDRFPS: UInt16? -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws -
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)?