mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
LibGfx/JPEGXL: Add default values for ToneMapping
This commit is contained in:
parent
b6d60980bb
commit
6b41fef2e4
1 changed files with 13 additions and 2 deletions
|
@ -363,11 +363,22 @@ static ErrorOr<ExtraChannelInfo> read_extra_channel_info(LittleEndianInputBitStr
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ToneMapping {
|
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 {
|
struct OpsinInverseMatrix {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue