JxlEncoderSetBasicInfo

Function JxlEncoderSetBasicInfo 

Source
pub unsafe extern "C-unwind" fn JxlEncoderSetBasicInfo(
    enc: *mut JxlEncoder,
    info: *const JxlBasicInfo,
) -> JxlEncoderStatus
Expand description

Sets the global metadata of the image encoded by this encoder.

If the JxlBasicInfo contains information of extra channels beyond an alpha channel, then JxlEncoderSetExtraChannelInfo must be called between JxlEncoderSetBasicInfo and JxlEncoderAddImageFrame. In order to indicate extra channels, the value of info.num_extra_channels should be set to the number of extra channels, also counting the alpha channel if present.

§Parameters

  • enc: encoder object.
  • info: global image metadata. Object owned by the caller and its contents are copied internally.

§Returns