chromaticityValues(for:)
Converts device-specific white balance RGB gain values to device-independent chromaticity values.
Declaration
func chromaticityValues(for whiteBalanceGains: AVCaptureDevice.WhiteBalanceGains) -> AVCaptureDevice.WhiteBalanceChromaticityValuesParameters
- whiteBalanceGains:
The white balance gain values. You can’t specify a value of Currentwhitebalancegains.
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.