1 // Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 #ifndef LIB_JXL_LUMINANCE_H_ 7 #define LIB_JXL_LUMINANCE_H_ 8 9 namespace jxl { 10 11 // Chooses a default intensity target based on the transfer function of the 12 // image, if known. For SDR images or images not known to be HDR, returns 13 // kDefaultIntensityTarget, for images known to have PQ or HLG transfer function 14 // returns a higher value. If the image metadata already has a non-zero 15 // intensity target, does nothing. 16 class CodecInOut; 17 void SetIntensityTarget(CodecInOut* io); 18 19 } // namespace jxl 20 21 #endif // LIB_JXL_LUMINANCE_H_ 22