Documentation for this section has not yet been entered.
Tonemapping / contrast / gamma curve to use when CaptureRequest.TonemapMode is CONTRAST_CURVE.
The tonemapCurve consist of three curves for each of red, green, and blue channels respectively. The following example uses the red channel as an example. The same logic applies to green and blue channel. Each channel's curve is defined by an array of control points:
These are sorted in order of increasing Pin; it is always guaranteed that input values 0.0 and 1.0 are included in the list to define a complete mapping. For input values between control points, the camera device must linearly interpolate between the control points.
Each curve can have an independent number of points, and the number of points can be less than max (that is, the request doesn't have to always provide a curve with number of points equivalent to CameraCharacteristics.TonemapMaxCurvePoints).
A few examples, and their corresponding graphical mappings; these only specify the red channel and the precision is limited to 4 digits, for conciseness.
Linear mapping:
Invert mapping:
Gamma 1/2.2 mapping, with 16 control points:
Standard sRGB gamma mapping, per IEC 61966-2-1:1999, with 16 control points:
Optional - This value may be null on some devices.
Full capability - Present on all camera devices that report being CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_FULL devices in the CameraCharacteristics.InfoSupportedHardwareLevel key