summaryrefslogtreecommitdiff
path: root/lib/jxl/dec_xyb.h
diff options
context:
space:
mode:
authorJiyong <jiyong.min@samsung.com>2023-12-26 17:33:03 +0900
committerJiyong <jiyong.min@samsung.com>2023-12-27 08:25:11 +0900
commita6d06c38e46e552195648836052eb909925fe5ff (patch)
tree5b34f3947c8331dc618a5166974e4d9757f8e782 /lib/jxl/dec_xyb.h
parentf3e519be675ef7922a6c1c3a682232302b55496d (diff)
parent3b773d382e34fcfc7c8995d8bd681a6ef0529b02 (diff)
downloadlibjxl-accepted/tizen_unified_riscv.tar.gz
libjxl-accepted/tizen_unified_riscv.tar.bz2
libjxl-accepted/tizen_unified_riscv.zip
Change-Id: I13b4d2c94ada4853484630800e2a8a5ae90d34c1
Diffstat (limited to 'lib/jxl/dec_xyb.h')
-rw-r--r--lib/jxl/dec_xyb.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/jxl/dec_xyb.h b/lib/jxl/dec_xyb.h
index ebaae9a..29378f5 100644
--- a/lib/jxl/dec_xyb.h
+++ b/lib/jxl/dec_xyb.h
@@ -8,6 +8,8 @@
// XYB -> linear sRGB.
+#include <jxl/cms_interface.h>
+
#include "lib/jxl/base/compiler_specific.h"
#include "lib/jxl/base/data_parallel.h"
#include "lib/jxl/base/status.h"
@@ -15,7 +17,6 @@
#include "lib/jxl/dec_bit_reader.h"
#include "lib/jxl/image.h"
#include "lib/jxl/image_metadata.h"
-#include "lib/jxl/opsin_params.h"
namespace jxl {
@@ -42,7 +43,11 @@ struct OutputEncodingInfo {
//
// Fields depending on output color encoding
//
+ // The requested color encoding.
ColorEncoding color_encoding;
+ // This is expected as the output of the conversion from XYB.
+ // It is equal to `color_encoding`, but with a linear tone response curve.
+ ColorEncoding linear_color_encoding;
bool color_encoding_is_original;
// Contains an opsin matrix that converts to the primaries of the output
// encoding.
@@ -56,6 +61,8 @@ struct OutputEncodingInfo {
float luminances[3];
// Used for the HLG inverse OOTF and PQ tone mapping.
float desired_intensity_target;
+ bool cms_set = false;
+ JxlCmsInterface color_management_system;
Status SetFromMetadata(const CodecMetadata& metadata);
Status MaybeSetColorEncoding(const ColorEncoding& c_desired);