temperatureAndTintValues(for:)
Converts device-specific white balance RGB gain values to device-independent temperature and tint values.
Declaration
func temperatureAndTintValues(for whiteBalanceGains: AVCaptureDevice.WhiteBalanceGains) -> AVCaptureDevice.WhiteBalanceTemperatureAndTintValuesParameters
- whiteBalanceGains:
The white balance gain values. You can’t specify a value of Currentwhitebalancegains.
Return Value
A structure that contains device-independent values.
Discussion
Each change in the structure supports values between 1.0 and maxWhiteBalanceGain. This method throws an exception if you specify an unsupported value.