pub unsafe extern "C-unwind" fn JxlEncoderSetFrameBitDepth(
frame_settings: *mut JxlEncoderFrameSettings,
bit_depth: *const JxlBitDepth,
) -> JxlEncoderStatusExpand description
Sets the bit depth of the input buffer.
For float pixel formats, only the default JxlBitDepthType::FromPixelFormat
setting is allowed, while for unsigned pixel formats,
JxlBitDepthType::FromCodestream setting is also allowed. See the comment
on JxlEncoderAddImageFrame for the effects of the bit depth setting.
§Parameters
frame_settings: Set of options and metadata for this frame. Also includes reference to the encoder object.bit_depth: The bit depth setting of the pixel input.
§Returns
JxlEncoderStatus::Successon success.JxlEncoderStatus::Erroron error.