deviceWhiteBalanceGains(for:)
Converts device-independent chromaticity values to device-specific white balance RGB gain values.
Declaration
func deviceWhiteBalanceGains(for chromaticityValues: AVCaptureDevice.WhiteBalanceChromaticityValues) -> AVCaptureDevice.WhiteBalanceGainsParameters
- chromaticityValues:
The chromaticity values for which to get white balance RGB gain values.
Return Value
A structure that contains device-specific RGB gain values.
Discussion
This property specifies the current red, green, and blue gain values used for white balance. You can use the values to adjust color casts for a given scene.
Each channel supports values between 1.0 and -maxWhiteBalanceGain.
This property is key-value observable.