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."
124 unsigned int max_search_size);
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.
int len
size of the tag written so far
void ff_id3v2_start(ID3v2EncContext *id3, AVIOContext *pb, int id3v2_version, const char *magic)
Initialize an ID3v2 tag.
int ff_id3v2_write_simple(struct AVFormatContext *s, int id3v2_version, const char *magic)
Write an ID3v2 tag containing all global metadata from s.
void ff_id3v2_finish(ID3v2EncContext *id3, AVIOContext *pb, int padding_bytes)
Finalize an opened ID3v2 tag.
int ff_id3v2_tag_len(const uint8_t *buf)
Get the length of an ID3v2 tag.
const AVMetadataConv ff_id3v2_34_metadata_conv[]
int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Create a stream for each APIC (attached picture) extracted from the ID3v2 header. ...
const char ff_id3v2_3_tags[][4]
ID3v2.3-only text information frames.
const char *const ff_id3v2_picture_types[21]
const char ff_id3v2_4_tags[][4]
ID3v2.4-only text information frames.
const CodecMime ff_id3v2_mime_tags[]
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.
AVCodecID
Identify the syntax and semantics of the bitstream.
int ff_id3v2_parse_chapters(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Create chapters for all CHAP tags found in the ID3v2 header.
int ff_id3v2_write_metadata(AVFormatContext *s, ID3v2EncContext *id3)
Convert and write all global metadata from s into an ID3v2 tag.
int64_t size_pos
offset of the tag total size
const AVMetadataConv ff_id3v2_4_metadata_conv[]
int ff_id3v2_parse_priv(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Add metadata for all PRIV tags in the ID3v2 header.
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.
void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
Free memory allocated parsing special (non-text) metadata.
int ff_id3v2_parse_priv_dict(AVDictionary **d, ID3v2ExtraMeta **extra_meta)
Parse PRIV tags into a dictionary.
int ff_id3v2_write_apic(AVFormatContext *s, ID3v2EncContext *id3, AVPacket *pkt)
Write an attached picture from pkt into an ID3v2 tag.
A reference to a data buffer.
int ff_id3v2_match(const uint8_t *buf, const char *magic)
Detect ID3v2 Header.
int version
ID3v2 minor version, either 3 or 4.
This structure stores compressed data.