summaryrefslogtreecommitdiff
path: root/media/libjxl/src/lib/extras/hlg.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/libjxl/src/lib/extras/hlg.h')
-rw-r--r--media/libjxl/src/lib/extras/hlg.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/media/libjxl/src/lib/extras/hlg.h b/media/libjxl/src/lib/extras/hlg.h
new file mode 100644
index 0000000000..4cfec444f4
--- /dev/null
+++ b/media/libjxl/src/lib/extras/hlg.h
@@ -0,0 +1,21 @@
+// Copyright (c) the JPEG XL Project Authors. All rights reserved.
+//
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+#ifndef LIB_EXTRAS_HLG_H_
+#define LIB_EXTRAS_HLG_H_
+
+#include "lib/jxl/image_bundle.h"
+
+namespace jxl {
+
+float GetHlgGamma(float peak_luminance, float surround_luminance = 5.f);
+
+Status HlgOOTF(ImageBundle* ib, float gamma, ThreadPool* pool = nullptr);
+
+Status HlgInverseOOTF(ImageBundle* ib, float gamma, ThreadPool* pool = nullptr);
+
+} // namespace jxl
+
+#endif // LIB_EXTRAS_HLG_H_