Function jpegxl_sys::JxlEncoderAddJPEGFrame[][src]

pub unsafe extern "C" fn JxlEncoderAddJPEGFrame(
    options: *const JxlEncoderOptions,
    buffer: *const u8,
    size: size_t
) -> JxlEncoderStatus

Sets the buffer to read JPEG encoded bytes from for the next image to encode losslessly.

Currently only supports adding JPEG frames losslessly if there is only a single frame in the image.

@param options set of encoder options to use when encoding the frame. @param buffer bytes to read JPEG from. Owned by the caller and its contents are copied internally. @param size size of buffer in bytes. @return JXL_ENC_SUCCESS on success, JXL_ENC_ERROR on error