Skip to main content

ffmpeg_the_third/util/dictionary/
flag.rs

1use crate::ffi::*;
2use libc::c_int;
3
4bitflags::bitflags! {
5    pub struct Flags: c_int {
6        /// Only get an entry with exact-case key match.
7        const MATCH_CASE        = AV_DICT_MATCH_CASE;
8
9        /// Return first entry in a dictionary whose first part corresponds to the
10        /// search key, ignoring the suffix of the found key string.
11        const IGNORE_SUFFIX     = AV_DICT_IGNORE_SUFFIX;
12
13        /// Take ownership of a key that's been allocated with av_malloc() or
14        /// another memory allocation function.
15        const DONT_STRDUP_KEY   = AV_DICT_DONT_STRDUP_KEY;
16
17        /// Take ownership of a value that's been allocated with av_malloc()
18        /// or another memory allocation function.
19        const DONT_STRDUP_VAL   = AV_DICT_DONT_STRDUP_VAL;
20
21        /// Don't overwrite existing entries.
22        const DONT_OVERWRITE    = AV_DICT_DONT_OVERWRITE;
23
24        /// If the entry already exists, append to it.
25        ///
26        /// Note that no delimiter is added, the strings are simply concatenated.
27        const APPEND            = AV_DICT_APPEND;
28
29        /// Allow to store several equal keys in the dictionary.
30        const MULTIKEY          = AV_DICT_MULTIKEY;
31    }
32}