libavformat/id3v2.h File Reference

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

Go to the source code of this file.

Defines

#define ID3v2_HEADER_SIZE   10
#define ID3v2_DEFAULT_MAGIC   "ID3"
 Default magic bytes for ID3v2 header: "ID3".
#define ID3v2_FLAG_DATALEN   0x0001
#define ID3v2_FLAG_UNSYNCH   0x0002
#define ID3v2_FLAG_ENCRYPTION   0x0004
#define ID3v2_FLAG_COMPRESSION   0x0008

Enumerations

enum  ID3v2Encoding { ID3v2_ENCODING_ISO8859 = 0, ID3v2_ENCODING_UTF16BOM = 1, ID3v2_ENCODING_UTF16BE = 2, ID3v2_ENCODING_UTF8 = 3 }

Functions

int ff_id3v2_match (const uint8_t *buf, const char *magic)
 Detect ID3v2 Header.
int ff_id3v2_tag_len (const uint8_t *buf)
 Get the length of an ID3v2 tag.
void ff_id3v2_read (AVFormatContext *s, const char *magic)
 Read an ID3v2 tag.

Variables

const AVMetadataConv ff_id3v2_34_metadata_conv []
const AVMetadataConv ff_id3v2_4_metadata_conv []
const AVMetadataConv ff_id3v2_2_metadata_conv []
const char ff_id3v2_tags [][4]
 A list of text information frames allowed in both ID3 v2.3 and v2.4 http://www.id3.org/id3v2.4.0-frames http://www.id3.org/id3v2.4.0-changes.
const char ff_id3v2_4_tags [][4]
 ID3v2.4-only text information frames.
const char ff_id3v2_3_tags [][4]
 ID3v2.3-only text information frames.


Define Documentation

#define ID3v2_DEFAULT_MAGIC   "ID3"

Default magic bytes for ID3v2 header: "ID3".

Definition at line 34 of file id3v2.h.

Referenced by av_probe_input_format3(), and avformat_open_input().

#define ID3v2_FLAG_COMPRESSION   0x0008

Definition at line 39 of file id3v2.h.

Referenced by ff_id3v2_parse().

#define ID3v2_FLAG_DATALEN   0x0001

Definition at line 36 of file id3v2.h.

Referenced by ff_id3v2_parse().

#define ID3v2_FLAG_ENCRYPTION   0x0004

Definition at line 38 of file id3v2.h.

Referenced by ff_id3v2_parse().

#define ID3v2_FLAG_UNSYNCH   0x0002

Definition at line 37 of file id3v2.h.

Referenced by ff_id3v2_parse().

#define ID3v2_HEADER_SIZE   10

Definition at line 29 of file id3v2.h.

Referenced by ff_id3v2_read(), ff_id3v2_tag_len(), and id3v2_put_ttag().


Enumeration Type Documentation

Enumerator:
ID3v2_ENCODING_ISO8859 
ID3v2_ENCODING_UTF16BOM 
ID3v2_ENCODING_UTF16BE 
ID3v2_ENCODING_UTF8 

Definition at line 41 of file id3v2.h.


Function Documentation

int ff_id3v2_match ( const uint8_t *  buf,
const char *  magic 
)

Detect ID3v2 Header.

Parameters:
buf must be ID3v2_HEADER_SIZE byte long
magic magic bytes to identify the header, machine byte order. If in doubt, use ID3v2_DEFAULT_MAGIC.

Definition at line 36 of file id3v2.c.

Referenced by av_probe_input_format3(), ff_id3v2_read(), and oma_read_probe().

void ff_id3v2_read ( AVFormatContext s,
const char *  magic 
)

Read an ID3v2 tag.

Definition at line 319 of file id3v2.c.

Referenced by avformat_open_input(), and oma_read_header().

int ff_id3v2_tag_len ( const uint8_t *  buf  ) 

Get the length of an ID3v2 tag.

Parameters:
buf must be ID3v2_HEADER_SIZE bytes long and point to the start of an already detected ID3v2 tag

Definition at line 49 of file id3v2.c.

Referenced by av_probe_input_format3(), and oma_read_probe().


Variable Documentation

Definition at line 378 of file id3v2.c.

Referenced by ff_id3v2_read().

Definition at line 350 of file id3v2.c.

Referenced by ff_id3v2_read().

const char ff_id3v2_3_tags[][4]

ID3v2.3-only text information frames.

Definition at line 405 of file id3v2.c.

Definition at line 368 of file id3v2.c.

Referenced by ff_id3v2_read().

const char ff_id3v2_4_tags[][4]

ID3v2.4-only text information frames.

Definition at line 399 of file id3v2.c.

const char ff_id3v2_tags[][4]

A list of text information frames allowed in both ID3 v2.3 and v2.4 http://www.id3.org/id3v2.4.0-frames http://www.id3.org/id3v2.4.0-changes.

Definition at line 391 of file id3v2.c.


Generated on Fri Oct 26 02:39:48 2012 for FFmpeg by  doxygen 1.5.8