Optionalgainlog2 of the boost of the map's value 255 (2: 4 times as bright). Default: 2
Optionalgainlog2 of the boost of the map's value 0 (-1: half as bright). Default: 0
Optionalgammathe gamma the map's values are stored with. Default: 1
Optionalhdrlog2 of the display headroom at which it applies fully. Default: gainMapMax's largest value
Optionalhdrlog2 of the display headroom from which on the map starts to apply. Default: 0
OptionaloffsetHDRsubtracted from the HDR result. Default: 1/64
OptionaloffsetSDRadded to the SDR image's linear values before the boost (keeps black from being boosted forever). Default: 1/64
Optionalusewhether the boost applies in the SDR image's color space (false: in the HDR image's). Default: true
Options of the GainMap constructor: per channel values can be one number for all three or [r, g, b]