#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) |
Get a metadata element with matching key. | |
int | av_metadata_set2 (AVMetadata **pm, const char *key, const char *value, int flags) |
Set the given tag in *pm, overwriting an existing tag. | |
int | av_metadata_set (AVMetadata **pm, const char *key, const char *value) |
Set the given tag in *pm, overwriting an existing tag. | |
void | av_metadata_conv (AVFormatContext *ctx, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
This function is provided for compatibility reason and currently does nothing. | |
void | av_metadata_free (AVMetadata **pm) |
Free all the memory allocated for an AVMetadata struct. | |
void | ff_metadata_conv (AVMetadata **pm, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
void | ff_metadata_conv_ctx (AVFormatContext *ctx, const AVMetadataConv *d_conv, const AVMetadataConv *s_conv) |
void | av_metadata_copy (AVMetadata **dst, AVMetadata *src, int flags) |
Copy metadata from one AVMetadata struct into another. |
void av_metadata_conv | ( | AVFormatContext * | ctx, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) |
This function is provided for compatibility reason and currently does nothing.
Definition at line 95 of file metadata.c.
void av_metadata_copy | ( | AVMetadata ** | dst, | |
AVMetadata * | src, | |||
int | flags | |||
) |
Copy metadata from one AVMetadata struct into another.
dst | pointer to a pointer to a AVMetadata struct. If *dst is NULL, this function will allocate a struct for you and put it in *dst | |
src | pointer to source AVMetadata struct | |
flags | flags to use when setting metadata in *dst |
Definition at line 162 of file metadata.c.
Referenced by copy_chapters(), ff_wms_parse_sdp_a_line(), opt_output_file(), and transcode().
void av_metadata_free | ( | AVMetadata ** | pm | ) |
Free all the memory allocated for an AVMetadata struct.
Definition at line 102 of file metadata.c.
Referenced by avformat_free_context(), close_connection(), ff_metadata_conv(), http_prepare_data(), opt_output_file(), and prepare_sdp_description().
AVMetadataTag* av_metadata_get | ( | AVMetadata * | m, | |
const char * | key, | |||
const AVMetadataTag * | 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 26 of file metadata.c.
Referenced by asf_write_header1(), av_dump_format(), av_metadata_copy(), av_metadata_set2(), avi_write_header(), dump_metadata(), dump_stream_format(), ff_metadata_conv(), ff_vorbiscomment_length(), ff_vorbiscomment_write(), flv_write_header(), id3v1_create_tag(), id3v1_set_string(), mkv_write_chapters(), mkv_write_header(), mkv_write_tag(), mkv_write_tags(), mkv_write_tracks(), mov_write_3gp_udta_tag(), mov_write_chpl_tag(), mov_write_header(), mov_write_string_metadata(), mov_write_trkn_tag(), mov_write_uuidusmt_tag(), mp3_read_header(), mpc_read_header(), mpegts_write_header(), mpegts_write_pmt(), rv10_write_header(), show_format(), show_stream(), sox_write_header(), tta_read_header(), write_globalinfo(), write_tags(), and wv_read_header().
int av_metadata_set | ( | AVMetadata ** | pm, | |
const char * | key, | |||
const char * | value | |||
) |
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) | |
value | tag value to add to *pm (will be av_strduped) |
Definition at line 90 of file metadata.c.
int av_metadata_set2 | ( | AVMetadata ** | 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 49 of file metadata.c.
Referenced by add_metadata(), amf_parse_object(), ape_tag_read_field(), asf_read_header(), av_metadata_copy(), av_metadata_set(), av_write_header(), avi_metadata_creation_time(), avi_read_nikon(), avi_read_tag(), decode_info_header(), ff_metadata_conv(), ff_new_chapter(), ff_parse_mpeg2_descriptor(), ff_sauce_read(), ff_vorbis_comment(), get_attachment(), get_meta(), get_metadata(), get_string(), get_tag(), http_prepare_data(), matroska_convert_tag(), matroska_read_header(), mov_metadata_creation_time(), mov_metadata_trkn(), mov_read_ftyp(), mov_read_mdhd(), mov_read_udta_string(), new_audio_stream(), new_subtitle_stream(), new_video_stream(), nsv_parse_NSVf_header(), ogm_chapter(), opt_metadata(), parse_chunks(), parse_tag(), prepare_sdp_description(), r3d_read_red1(), read_gab2_sub(), read_info_chunk(), read_tag(), read_ttag(), rm_read_metadata(), rpl_read_header(), sdt_cb(), sox_read_header(), and wc3_read_header().
void ff_metadata_conv | ( | AVMetadata ** | pm, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) |
Definition at line 116 of file metadata.c.
Referenced by asf_read_header(), asf_write_header1(), ff_id3v2_read(), ff_metadata_conv_ctx(), ff_vorbis_comment(), flac_write_block_comment(), matroska_convert_tag(), ogg_write_vorbiscomment(), and parse_legacy_attrib().
void ff_metadata_conv_ctx | ( | AVFormatContext * | ctx, | |
const AVMetadataConv * | d_conv, | |||
const AVMetadataConv * | s_conv | |||
) |
Definition at line 149 of file metadata.c.
Referenced by avi_read_header(), mkv_write_tags(), nut_read_header(), and write_headers().