pub unsafe extern "C" fn opj_encoder_set_extra_options(
p_codec: *mut opj_codec_t,
p_options: *const *const c_char,
) -> OPJ_BOOL
Expand description
Specify extra options for the encoder. This may be called after opj_setup_encoder() and before opj_start_compress() This is the way to add new options in a fully ABI compatible way, without extending the opj_cparameters_t structure. Currently supported options are:
- PLT=YES/NO. Defaults to NO. If set to YES, PLT marker segments, indicating the length of each packet in the tile-part header, will be written. Since 2.4.0
- TLM=YES/NO. Defaults to NO (except for Cinema and IMF profiles). If set to YES, TLM marker segments, indicating the length of each tile-part part will be written. Since 2.4.0
- GUARD_BITS=value. Number of guard bits in [0,7] range. Default value is 2. 1 may be used sometimes (like in SMPTE DCP Bv2.1 Application Profile for 2K images). Since 2.5.0
§Arguments
p_codec
- Compressor handlep_options
- Compression options. This should be a NULL terminated array of strings. Each string is of the form KEY=VALUE.
§Returns
OPJ_TRUE in case of success.
Since 2.4.0