luminance.h (653B)
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. 15 16 struct ImageMetadata; 17 // TODO(eustas): rename 18 void SetIntensityTarget(ImageMetadata* m); 19 20 } // namespace jxl 21 22 #endif // LIB_JXL_LUMINANCE_H_