#include <strings.h>
#include "avformat.h"
#include "metadata.h"
Go to the source code of this file.
Functions | |
AVMetadataTag * | av_metadata_get (AVMetadata *m, const char *key, const AVMetadataTag *prev, int flags) |
Gets a metadata element with matching key. | |
int | av_metadata_set (AVMetadata **pm, const char *key, const char *value) |
Sets the given tag in m, overwriting an existing tag. | |
void | av_metadata_free (AVMetadata **pm) |
Frees all the memory allocated for an AVMetadata struct. | |
static void | metadata_conv (AVMetadata **pm, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
void | av_metadata_conv (AVFormatContext *ctx, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
Convert all the metadata sets from ctx according to the source and destination conversion tables. |
void av_metadata_conv | ( | struct AVFormatContext * | ctx, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) |
Convert all the metadata sets from ctx according to the source and destination conversion tables.
d_conv | destination tags format conversion table | |
s_conv | source tags format conversion table |
Definition at line 127 of file metadata.c.
Referenced by av_encode(), and opt_output_file().
void av_metadata_free | ( | AVMetadata ** | pm | ) |
Frees all the memory allocated for an AVMetadata struct.
Definition at line 81 of file metadata.c.
Referenced by av_close_input_stream(), av_exit(), and metadata_conv().
AVMetadataTag* av_metadata_get | ( | AVMetadata * | m, | |
const char * | key, | |||
const AVMetadataTag * | prev, | |||
int | flags | |||
) |
Gets a metadata element with matching key.
prev | Set to the previous matching element to find the next. | |
flags | Allows case as well as suffix-insensitive comparisons. |
Definition at line 26 of file metadata.c.
Referenced by asf_write_header1(), av_encode(), av_metadata_set(), avi_write_info_tag2(), dump_format(), dump_stream_format(), dump_stream_info(), metadata_conv(), mkv_write_header(), mkv_write_tracks(), mov_write_3gp_udta_tag(), mov_write_header(), mov_write_string_metadata(), mov_write_trkn_tag(), mov_write_uuidusmt_tag(), mpegts_write_header(), mpegts_write_pmt(), rv10_write_header(), and write_globalinfo().
int av_metadata_set | ( | AVMetadata ** | pm, | |
const char * | key, | |||
const char * | value | |||
) |
Sets the given tag in m, overwriting an existing tag.
key | tag key to add to m (will be av_strduped) | |
value | tag value to add to m (will be av_strduped) |
Definition at line 49 of file metadata.c.
Referenced by ape_tag_read_field(), av_encode(), avi_read_tag(), decode_info_header(), ff_new_chapter(), get_meta(), get_tag(), http_prepare_data(), id3v1_get_string(), id3v1_parse_tag(), id3v2_read_ttag(), matroska_convert_tag(), matroska_read_header(), metadata_conv(), mov_read_mdhd(), mov_read_trkn(), mov_read_udta_string(), new_audio_stream(), new_subtitle_stream(), nsv_parse_NSVf_header(), opt_output_file(), pmt_cb(), prepare_sdp_description(), r3d_read_red1(), rm_read_metadata(), rpl_read_header(), sdp_parse_line(), sdt_cb(), vorbis_comment(), and wc3_read_header().
static void metadata_conv | ( | AVMetadata ** | pm, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) | [static] |