Function rsmpeg::ffi::av_opt_serialize[][src]

pub unsafe extern "C" fn av_opt_serialize(
    obj: *mut c_void,
    opt_flags: i32,
    flags: i32,
    buffer: *mut *mut i8,
    key_val_sep: i8,
    pairs_sep: i8
) -> i32
Expand description

Serialize object’s options.

Create a string containing object’s serialized options. Such string may be passed back to av_opt_set_from_string() in order to restore option values. A key/value or pairs separator occurring in the serialized value or name string are escaped through the av_escape() function.

@param[in] obj AVClass object to serialize @param[in] opt_flags serialize options with all the specified flags set (AV_OPT_FLAG) @param[in] flags combination of AV_OPT_SERIALIZE_* flags @param[out] buffer Pointer to buffer that will be allocated with string containg serialized options. Buffer must be freed by the caller when is no longer needed. @param[in] key_val_sep character used to separate key from value @param[in] pairs_sep character used to separate two pairs from each other @return >= 0 on success, negative on error @warning Separators cannot be neither ‘\’ nor ‘\0’. They also cannot be the same.