Defines | |
#define | AV_METADATA_MATCH_CASE AV_DICT_MATCH_CASE |
#define | AV_METADATA_IGNORE_SUFFIX AV_DICT_IGNORE_SUFFIX |
#define | AV_METADATA_DONT_STRDUP_KEY AV_DICT_DONT_STRDUP_KEY |
#define | AV_METADATA_DONT_STRDUP_VAL AV_DICT_DONT_STRDUP_VAL |
#define | AV_METADATA_DONT_OVERWRITE AV_DICT_DONT_OVERWRITE |
Typedefs | |
typedef attribute_deprecated AVDictionary | AVMetadata |
typedef attribute_deprecated AVDictionaryEntry | AVMetadataTag |
typedef struct AVMetadataConv | AVMetadataConv |
Functions | |
attribute_deprecated AVDictionaryEntry * | av_metadata_get (AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags) |
Get a metadata element with matching key. | |
attribute_deprecated int | av_metadata_set2 (AVDictionary **pm, const char *key, const char *value, int flags) |
Set the given tag in *pm, overwriting an existing tag. | |
attribute_deprecated void | av_metadata_conv (struct AVFormatContext *ctx, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
This function is provided for compatibility reason and currently does nothing. | |
attribute_deprecated void | av_metadata_copy (AVDictionary **dst, AVDictionary *src, int flags) |
Copy metadata from one AVDictionary struct into another. | |
attribute_deprecated void | av_metadata_free (AVDictionary **m) |
Free all the memory allocated for an AVDictionary struct. |
#define AV_METADATA_DONT_OVERWRITE AV_DICT_DONT_OVERWRITE |
Definition at line 129 of file avformat.h.
#define AV_METADATA_DONT_STRDUP_KEY AV_DICT_DONT_STRDUP_KEY |
Definition at line 127 of file avformat.h.
#define AV_METADATA_DONT_STRDUP_VAL AV_DICT_DONT_STRDUP_VAL |
#define AV_METADATA_IGNORE_SUFFIX AV_DICT_IGNORE_SUFFIX |
Definition at line 126 of file avformat.h.
#define AV_METADATA_MATCH_CASE AV_DICT_MATCH_CASE |
Definition at line 125 of file avformat.h.
Definition at line 131 of file avformat.h.
typedef struct AVMetadataConv AVMetadataConv |
Definition at line 134 of file avformat.h.
Definition at line 132 of file avformat.h.
attribute_deprecated void av_metadata_conv | ( | struct AVFormatContext * | ctx, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) |
This function is provided for compatibility reason and currently does nothing.
Definition at line 38 of file metadata.c.
attribute_deprecated void av_metadata_copy | ( | AVDictionary ** | dst, | |
AVDictionary * | src, | |||
int | flags | |||
) |
Copy metadata from one AVDictionary struct into another.
dst | pointer to a pointer to a AVDictionary struct. If *dst is NULL, this function will allocate a struct for you and put it in *dst | |
src | pointer to source AVDictionary struct | |
flags | flags to use when setting metadata in *dst |
Definition at line 49 of file metadata.c.
attribute_deprecated void av_metadata_free | ( | AVDictionary ** | m | ) |
attribute_deprecated AVDictionaryEntry* av_metadata_get | ( | AVDictionary * | m, | |
const char * | key, | |||
const AVDictionaryEntry * | prev, | |||
int | flags | |||
) |
Get a metadata element with matching key.
prev | Set to the previous matching element to find the next. If set to NULL the first matching element is returned. | |
flags | Allows case as well as suffix-insensitive comparisons. |
Definition at line 28 of file metadata.c.
attribute_deprecated int av_metadata_set2 | ( | AVDictionary ** | pm, | |
const char * | key, | |||
const char * | value, | |||
int | flags | |||
) |
Set the given tag in *pm, overwriting an existing tag.
pm | pointer to a pointer to a metadata struct. If *pm is NULL a metadata struct is allocated and put in *pm. | |
key | tag key to add to *pm (will be av_strduped depending on flags) | |
value | tag value to add to *pm (will be av_strduped depending on flags). Passing a NULL value will cause an existing tag to be deleted. |
Definition at line 33 of file metadata.c.