LIBJXL
|
#include <codestream_header.h>
Public Attributes | |
JxlExtraChannelType | type |
uint32_t | bits_per_sample |
uint32_t | exponent_bits_per_sample |
uint32_t | dim_shift |
uint32_t | name_length |
JXL_BOOL | alpha_premultiplied |
float | spot_color [4] |
uint32_t | cfa_channel |
Information for a single extra channel.
JXL_BOOL JxlExtraChannelInfo::alpha_premultiplied |
Whether alpha channel uses premultiplied alpha. Only applicable if type is JXL_CHANNEL_ALPHA.
uint32_t JxlExtraChannelInfo::bits_per_sample |
Total bits per sample for this channel.
uint32_t JxlExtraChannelInfo::cfa_channel |
Only applicable if type is JXL_CHANNEL_CFA. TODO(lode): add comment about the meaning of this field.
uint32_t JxlExtraChannelInfo::dim_shift |
The exponent the channel is downsampled by on each axis. TODO(lode): expand this comment to match the JPEG XL specification, specify how to upscale, how to round the size computation, and to which extra channels this field applies.
uint32_t JxlExtraChannelInfo::exponent_bits_per_sample |
Floating point exponent bits per channel, or 0 if they are unsigned integer.
uint32_t JxlExtraChannelInfo::name_length |
Length of the extra channel name in bytes, or 0 if no name. Excludes null termination character.
float JxlExtraChannelInfo::spot_color[4] |
Spot color of the current spot channel in linear RGBA. Only applicable if type is JXL_CHANNEL_SPOT_COLOR.
JxlExtraChannelType JxlExtraChannelInfo::type |
Given type of an extra channel.