22 #ifndef AVFORMAT_ID3V2_H 23 #define AVFORMAT_ID3V2_H 30 #define ID3v2_HEADER_SIZE 10 35 #define ID3v2_DEFAULT_MAGIC "ID3" 37 #define ID3v2_FLAG_DATALEN 0x0001 38 #define ID3v2_FLAG_UNSYNCH 0x0002 39 #define ID3v2_FLAG_ENCRYPTION 0x0004 40 #define ID3v2_FLAG_COMPRESSION 0x0008 42 #define ID3v2_PRIV_METADATA_PREFIX "id3v2_priv." 45 ID3v2_ENCODING_ISO8859 = 0,
46 ID3v2_ENCODING_UTF16BOM = 1,
47 ID3v2_ENCODING_UTF16BE = 2,
48 ID3v2_ENCODING_UTF8 = 3,
124 unsigned int max_search_size);
153 int ff_id3v2_write_simple(
struct AVFormatContext *s,
int id3v2_version,
const char *magic);
205 extern const CodecMime ff_id3v2_mime_tags[];
207 extern const char *
const ff_id3v2_picture_types[21];
Bytestream IO Context.
Definition: avio.h:161
int len
size of the tag written so far
Definition: id3v2.h:54
const char ff_id3v2_4_tags[][4]
ID3v2.4-only text information frames.
Definition: id3v2.c:95
int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Create a stream for each APIC (attached picture) extracted from the ID3v2 header. ...
Definition: id3v2.c:1140
Format I/O context.
Definition: avformat.h:1342
int ff_id3v2_parse_chapters(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Create chapters for all CHAP tags found in the ID3v2 header.
Definition: id3v2.c:1180
int ff_id3v2_parse_priv_dict(AVDictionary **metadata, ID3v2ExtraMeta **extra_meta)
Parse PRIV tags into a dictionary.
Definition: id3v2.c:1231
Definition: internal.h:49
AVCodecID
Identify the syntax and semantics of the bitstream.
Definition: avcodec.h:215
int ff_id3v2_parse_priv(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Add metadata for all PRIV tags in the ID3v2 header.
Definition: id3v2.c:1273
void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
Free memory allocated parsing special (non-text) metadata.
Definition: id3v2.c:1124
int64_t size_pos
offset of the tag total size
Definition: id3v2.h:53
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: id3v2.c:87
A reference to a data buffer.
Definition: buffer.h:81
int ff_id3v2_match(const uint8_t *buf, const char *magic)
Detect ID3v2 Header.
Definition: id3v2.c:142
void ff_id3v2_read(AVFormatContext *s, const char *magic, ID3v2ExtraMeta **extra_meta, unsigned int max_search_size)
Read an ID3v2 tag, including supported extra metadata.
Definition: id3v2.c:1118
const char ff_id3v2_3_tags[][4]
ID3v2.3-only text information frames.
Definition: id3v2.c:101
void ff_id3v2_read_dict(AVIOContext *pb, AVDictionary **metadata, const char *magic, ID3v2ExtraMeta **extra_meta)
Read an ID3v2 tag into specified dictionary and retrieve supported extra metadata.
Definition: id3v2.c:1112
int ff_id3v2_tag_len(const uint8_t *buf)
Get the length of an ID3v2 tag.
Definition: id3v2.c:155
int version
ID3v2 minor version, either 3 or 4.
Definition: id3v2.h:52
This structure stores compressed data.
Definition: avcodec.h:1407