diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2023-11-26 16:51:05 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2023-11-26 17:26:09 +0000 |
commit | 6fa4c04deaf516e938ab0f458cc931318b42ea32 (patch) | |
tree | 078099c70525a64343ba97ee0760e27e408e61ce /content/handlers | |
parent | 249e8472a2cdf8b822e46d1e28c91a41efded19d (diff) | |
download | netsurf-6fa4c04deaf516e938ab0f458cc931318b42ea32.tar.gz netsurf-6fa4c04deaf516e938ab0f458cc931318b42ea32.tar.bz2 |
jpegxl: Designated initialiser for output format struct
So I could see the meanings of how we'd set up the decode.
Diffstat (limited to 'content/handlers')
-rw-r--r-- | content/handlers/image/jpegxl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/handlers/image/jpegxl.c b/content/handlers/image/jpegxl.c index ba385f3ab..d5152fb7a 100644 --- a/content/handlers/image/jpegxl.c +++ b/content/handlers/image/jpegxl.c @@ -49,7 +49,12 @@ /** * output image format */ -static const JxlPixelFormat jxl_output_format = {4, JXL_TYPE_UINT8, JXL_LITTLE_ENDIAN, 0}; +static const JxlPixelFormat jxl_output_format = { + .num_channels = 4, + .data_type = JXL_TYPE_UINT8, + .endianness = JXL_LITTLE_ENDIAN, + .align = 0, +}; /** * Content create entry point. |