1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibGfx/JPEGXL: Add default values for ToneMapping

This commit is contained in:
Lucas CHOLLET 2023-07-21 19:55:44 -04:00 committed by Andreas Kling
parent b6d60980bb
commit 6b41fef2e4

View file

@ -363,11 +363,22 @@ static ErrorOr<ExtraChannelInfo> read_extra_channel_info(LittleEndianInputBitStr
}
struct ToneMapping {
float intensity_target { 255 };
float min_nits { 0 };
bool relative_to_max_display { false };
float linear_below { 0 };
};
static ErrorOr<ToneMapping> read_tone_mapping(LittleEndianInputBitStream&)
static ErrorOr<ToneMapping> read_tone_mapping(LittleEndianInputBitStream& stream)
{
TODO();
ToneMapping tone_mapping;
bool const all_default = TRY(stream.read_bit());
if (!all_default) {
TODO();
}
return tone_mapping;
}
struct OpsinInverseMatrix {