• Home
  • Raw
  • Download

Lines Matching +full:use +full:- +full:base +full:- +full:image

4  * Use of this source code is governed by a BSD-style license that can be
18 * display an image with gainmap on this display. Let B be the pixel value from the base image
19 * in a color space that has the primaries of the base image and a linear transfer function. Let
24 * W = clamp((log(H) - log(fDisplayRatioSdr)) /
25 * (log(fDisplayRatioHdr) - log(fDisplayRatioSdr), 0, 1)
31 * Finally, apply the gainmap to compute D, the displayed pixel. If the base image is SDR then
33 * D = (B + fEpsilonSdr) * exp(L * W) - fEpsilonHdr
34 * If the base image is HDR then compute:
35 * D = (B + fEpsilonHdr) * exp(L * (W - 1)) - fEpsilonSdr
38 * however, that the base used for the log() and exp() functions does not affect the results of
39 * the computation (it cancels out, as long as the same base is used throughout).
45 * Parameters for converting the gainmap from its image encoding to log space. These are
69 * Whether the base image is the SDR image or the HDR image.
78 * The type of the gainmap image. If the type is kApple, then the gainmap image was originally
92 * If specified, color space to apply the gainmap in, otherwise the base image's color space
98 * Return true if this can be encoded as an UltraHDR v1 image.
103 * If |data| contains an ISO 21496-1 version that is supported, return true. Otherwise return
109 * If |data| constains ISO 21496-1 metadata then parse that metadata then use it to populate
110 * |info| and return true, otherwise return false. If |data| indicates that that the base image
113 * default, to be overwritten by the image decoder).
118 * Serialize an ISO 21496-1 version 0 blob containing only the version structure.
123 * Serialize an ISO 21496-1 version 0 blob containing this' gainmap parameters.