av_opt_serialize

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.

@paramin obj AVClass object to serialize @paramin opt_flags serialize options with all the specified flags set (AV_OPT_FLAG) @paramin flags combination of AV_OPT_SERIALIZE_* flags @paramout 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. @paramin key_val_sep character used to separate key from value @paramin 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.

extern (C) @nogc nothrow
int
av_opt_serialize
(
void* obj
,,
int flags
,
char** buffer
,
const char key_val_sep
,
const char pairs_sep
)

Meta