hlg.h (561B)
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_EXTRAS_HLG_H_ 7 #define LIB_EXTRAS_HLG_H_ 8 9 #include "lib/jxl/image_bundle.h" 10 11 namespace jxl { 12 13 float GetHlgGamma(float peak_luminance, float surround_luminance = 5.f); 14 15 Status HlgOOTF(ImageBundle* ib, float gamma, ThreadPool* pool = nullptr); 16 17 Status HlgInverseOOTF(ImageBundle* ib, float gamma, ThreadPool* pool = nullptr); 18 19 } // namespace jxl 20 21 #endif // LIB_EXTRAS_HLG_H_