#include "id3v2.h"
#include "id3v1.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
Functions | |
int | ff_id3v2_match (const uint8_t *buf) |
Detects ID3v2 Header. | |
int | ff_id3v2_tag_len (const uint8_t *buf) |
Gets the length of an ID3v2 tag. | |
void | ff_id3v2_read (AVFormatContext *s) |
Read an ID3v2 tag. | |
static unsigned int | get_size (ByteIOContext *s, int len) |
static void | read_ttag (AVFormatContext *s, int taglen, const char *key) |
void | ff_id3v2_parse (AVFormatContext *s, int len, uint8_t version, uint8_t flags) |
ID3v2 parser Handles ID3v2.2, 2.3 and 2.4. | |
Variables | |
const AVMetadataConv | ff_id3v2_metadata_conv [] |
const char | ff_id3v2_tags [][4] |
A list of ID3v2.4 text information frames. |
int ff_id3v2_match | ( | const uint8_t * | buf | ) |
Detects ID3v2 Header.
must be ID3v2_HEADER_SIZE byte long
Definition at line 26 of file id3v2.c.
Referenced by ff_id3v2_read(), flac_probe(), flac_read_header(), mpc_probe(), mpc_read_header(), and tta_probe().
void ff_id3v2_parse | ( | AVFormatContext * | s, | |
int | len, | |||
uint8_t | version, | |||
uint8_t | flags | |||
) |
ID3v2 parser Handles ID3v2.2, 2.3 and 2.4.
Definition at line 156 of file id3v2.c.
Referenced by ff_id3v2_read().
void ff_id3v2_read | ( | AVFormatContext * | s | ) |
Read an ID3v2 tag.
Definition at line 51 of file id3v2.c.
Referenced by mpc_read_header(), and tta_read_header().
int ff_id3v2_tag_len | ( | const uint8_t * | buf | ) |
Gets the length of an ID3v2 tag.
must be ID3v2_HEADER_SIZE bytes long and point to the start of an already detected ID3v2 tag
Definition at line 39 of file id3v2.c.
Referenced by flac_probe(), flac_read_header(), mpc_probe(), mpc_read_header(), and tta_probe().
static unsigned int get_size | ( | ByteIOContext * | s, | |
int | len | |||
) | [static] |
static void read_ttag | ( | AVFormatContext * | s, | |
int | taglen, | |||
const char * | key | |||
) | [static] |
const AVMetadataConv ff_id3v2_metadata_conv[] |
Initial value:
{ { "TALB", "album"}, { "TAL", "album"}, { "TCOM", "composer"}, { "TCON", "genre"}, { "TCO", "genre"}, { "TCOP", "copyright"}, { "TDRL", "date"}, { "TDRC", "date"}, { "TENC", "encoded_by"}, { "TEN", "encoded_by"}, { "TIT2", "title"}, { "TT2", "title"}, { "TLAN", "language"}, { "TPE1", "artist"}, { "TP1", "artist"}, { "TPE2", "album_artist"}, { "TP2", "album_artist"}, { "TPE3", "performer"}, { "TP3", "performer"}, { "TPOS", "disc"}, { "TPUB", "publisher"}, { "TRCK", "track"}, { "TRK", "track"}, { "TSOA", "album-sort"}, { "TSOP", "artist-sort"}, { "TSOT", "title-sort"}, { "TSSE", "encoder"}, { 0 } }
const char ff_id3v2_tags[][4] |
Initial value:
{ "TALB", "TBPM", "TCOM", "TCON", "TCOP", "TDEN", "TDLY", "TDOR", "TDRC", "TDRL", "TDTG", "TENC", "TEXT", "TFLT", "TIPL", "TIT1", "TIT2", "TIT3", "TKEY", "TLAN", "TLEN", "TMCL", "TMED", "TMOO", "TOAL", "TOFN", "TOLY", "TOPE", "TOWN", "TPE1", "TPE2", "TPE3", "TPE4", "TPOS", "TPRO", "TPUB", "TRCK", "TRSN", "TRSO", "TSOA", "TSOP", "TSOT", "TSRC", "TSSE", "TSST", { 0 }, }