Function libjxl_sys::JxlEncoderAddJPEGFrame[][src]

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

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

If the encoder is set to store JPEG reconstruction metadata using @ref JxlEncoderStoreJPEGMetadata and a single JPEG frame is added, it will be possible to losslessly reconstruct the JPEG codestream.

@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