libavformat/metadata.c File Reference

#include <strings.h>
#include "avformat.h"
#include "metadata.h"

Go to the source code of this file.

Functions

AVMetadataTagav_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.


Function Documentation

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.

Parameters:
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.

Parameters:
prev Set to the previous matching element to find the next.
flags Allows case as well as suffix-insensitive comparisons.
Returns:
Found tag or NULL, changing key or value leads to undefined behavior.

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 
)

static void metadata_conv ( AVMetadata **  pm,
const AVMetadataConv d_conv,
const AVMetadataConv s_conv 
) [static]

Definition at line 95 of file metadata.c.

Referenced by av_metadata_conv().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8