Contents

chromaticityValues(for:)

Converts device-specific white balance RGB gain values to device-independent chromaticity values.

Declaration

func chromaticityValues(for whiteBalanceGains: AVCaptureDevice.WhiteBalanceGains) -> AVCaptureDevice.WhiteBalanceChromaticityValues

Parameters

Return Value

A structure that contains device-independent values.

Discussion

Call this method to convert device-specific white balance RGB gain values to device-independent chromaticity (little x, little y) values.

Each change in the structure supports values between 1.0 and maxWhiteBalanceGain. This method throws an exception if you specify an unsupported value.

See Also

Performing conversions