Function jpegxl_sys::JxlEncoderOptionsCreate[][src]

pub unsafe extern "C" fn JxlEncoderOptionsCreate(
    enc: *mut JxlEncoder,
    source: *const JxlEncoderOptions
) -> *mut JxlEncoderOptions

Create a new set of encoder options, with all values initially copied from the @p source options, or set to default if @p source is NULL.

The returned pointer is an opaque struct tied to the encoder and it will be deallocated by the encoder when JxlEncoderDestroy() is called. For functions taking both a @ref JxlEncoder and a @ref JxlEncoderOptions, only JxlEncoderOptions created with this function for the same encoder instance can be used.

@param enc encoder object. @param source source options to copy initial values from, or NULL to get defaults initialized to defaults. @return the opaque struct pointer identifying a new set of encoder options.