libavformat/id3v2enc.c File Reference

#include <stdint.h>
#include "libavutil/avstring.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "avformat.h"
#include "avio.h"
#include "id3v2.h"

Go to the source code of this file.

Functions

static void id3v2_put_size (AVFormatContext *s, int size)
static int string_is_ascii (const uint8_t *str)
static int id3v2_put_ttag (AVFormatContext *s, const char *str1, const char *str2, uint32_t tag, enum ID3v2Encoding enc)
 Write a text frame with one (normal frames) or two (TXXX frames) strings according to encoding (only UTF-8 or UTF-16+BOM supported).
static int id3v2_check_write_tag (AVFormatContext *s, AVDictionaryEntry *t, const char table[][4], enum ID3v2Encoding enc)
static void id3v2_3_metadata_split_date (AVDictionary **pm)
int ff_id3v2_write (struct AVFormatContext *s, int id3v2_version, const char *magic)
 Write an ID3v2 tag.


Function Documentation

int ff_id3v2_write ( struct AVFormatContext s,
int  id3v2_version,
const char *  magic 
)

Write an ID3v2 tag.

Parameters:
id3v2_version Subversion of ID3v2; supported values are 3 and 4
magic magic bytes to identify the header If in doubt, use ID3v2_DEFAULT_MAGIC.

Definition at line 138 of file id3v2enc.c.

Referenced by oma_write_header().

static void id3v2_3_metadata_split_date ( AVDictionary **  pm  )  [static]

Definition at line 100 of file id3v2enc.c.

Referenced by ff_id3v2_write().

static int id3v2_check_write_tag ( AVFormatContext s,
AVDictionaryEntry t,
const char  table[][4],
enum ID3v2Encoding  enc 
) [static]

Definition at line 85 of file id3v2enc.c.

Referenced by ff_id3v2_write().

static void id3v2_put_size ( AVFormatContext s,
int  size 
) [static]

Definition at line 29 of file id3v2enc.c.

Referenced by ff_id3v2_write(), and id3v2_put_ttag().

static int id3v2_put_ttag ( AVFormatContext s,
const char *  str1,
const char *  str2,
uint32_t  tag,
enum ID3v2Encoding  enc 
) [static]

Write a text frame with one (normal frames) or two (TXXX frames) strings according to encoding (only UTF-8 or UTF-16+BOM supported).

Returns:
number of bytes written or a negative error code.

Definition at line 48 of file id3v2enc.c.

Referenced by ff_id3v2_write(), and id3v2_check_write_tag().

static int string_is_ascii ( const uint8_t *  str  )  [static]

Definition at line 37 of file id3v2enc.c.

Referenced by id3v2_put_ttag().


Generated on Fri Oct 26 02:46:13 2012 for FFmpeg by  doxygen 1.5.8