|
Data Structures |
struct | _mpeg_header |
| Header structure with 4 segments containing 32 bit header information. More...
|
struct | _id3_tag |
| Generic tag structure. More...
|
struct | _id3_tag_list |
| list of tags found in file More...
|
struct | _id3v1_tag |
| ID3v1 tag structure. More...
|
struct | _id3v2_frame |
| ID3v2 Frame structure. More...
|
struct | _id3v2_frame_list |
| Single linked list referencing a number of frames. More...
|
struct | _id3v2_extended_header |
| ID3v2 Extended Header structure. More...
|
struct | _id3v2_header |
| ID3v2 Header structure. More...
|
struct | _id3v2_tag |
| ID3v2 tag structure. More...
|
struct | _id3_content |
| A fields content unparsed. More...
|
struct | _id3_text_content |
| Content type for regular text. More...
|
struct | _id3_comment_content |
| Content type for comment fields. More...
|
struct | _mem_arg |
struct | _file_arg |
Defines |
#define | __BEGIN_DECLS |
#define | __END_DECLS |
#define | __P(protos) () |
#define | MP_ARTIST 1 |
#define | MP_TITLE 2 |
#define | MP_ALBUM 3 |
#define | MP_GENRE 4 |
#define | MP_COMMENT 5 |
#define | MP_YEAR 6 |
#define | MP_TRACK 7 |
#define | ISO_8859_1 0 |
#define | UTF16 1 |
#define | UTF16BE 2 |
#define | UTF8 3 |
#define | MP_EERROR 1 |
#define | MP_EFNF 2 |
#define | MP_EFCOMPR 3 |
#define | MP_EFENCR 4 |
#define | MP_EVERSION 6 |
#define | mp_free_mpeg_header(str) xfree(str) |
| Frees a mpeg header structure.
|
Typedefs |
typedef _mpeg_header | mpeg_header |
| Header structure with 4 segments containing 32 bit header information.
|
typedef _id3_tag | id3_tag |
| Generic tag structure.
|
typedef _id3_tag_list | id3_tag_list |
| list of tags found in file
|
typedef _id3v1_tag | id3v1_tag |
| ID3v1 tag structure.
|
typedef _id3v2_frame | id3v2_frame |
| ID3v2 Frame structure.
|
typedef _id3v2_frame_list | id3v2_frame_list |
| Single linked list referencing a number of frames.
|
typedef _id3v2_extended_header | id3v2_extended_header |
| ID3v2 Extended Header structure.
|
typedef _id3v2_header | id3v2_header |
| ID3v2 Header structure.
|
typedef _id3v2_tag | id3v2_tag |
| ID3v2 tag structure.
|
typedef _id3_content | id3_content |
| A fields content unparsed.
|
typedef enum _id3_encoding | id3_encoding |
| Character encodings list.
|
typedef _id3_text_content | id3_text_content |
| Content type for regular text.
|
typedef _id3_comment_content | id3_comment_content |
| Content type for comment fields.
|
typedef _mem_arg | mem_arg |
typedef _file_arg | file_arg |
Enumerations |
enum | _id3_encoding { iso_8859_1 = ISO_8859_1,
utf16 = UTF16,
utf16be = UTF16BE,
utf8 = UTF8
} |
| Character encodings list. More...
|
Functions |
mpeg_header * | mp_get_mpeg_header_from_file (const char *path) |
| Allocates a MPEG header structure from a file.
|
mpeg_header * | mp_get_mpeg_header_from_fd (int fd) |
| Gets the header structure from a file descriptor.
|
char * | mp_get_str_version (const mpeg_header *) |
| Allocates a label with the appropriate header field value as a string.
|
char * | mp_get_str_layer (const mpeg_header *) |
| Allocates a label with the appropriate header field value as a string.
|
char * | mp_get_str_bitrate (const mpeg_header *) |
| Allocates a label with the appropriate header field value as a string.
|
char * | mp_get_str_samplingfreq (const mpeg_header *) |
| Allocates a label with the appropriate header field value as a string.
|
char * | mp_get_str_mode (const mpeg_header *) |
| Allocates a label with the appropriate header field value as a string.
|
id3_tag_list * | mp_get_tag_list_from_file (const char *path) |
| Allocates and fills a list of tags found in the given file.
|
id3_tag_list * | mp_get_tag_list_from_fd (int fd) |
| Allocates and fills a list of tags found in the given file.
|
id3_tag_list * | mp_get_tag_list_from_mem (void *buf, size_t s) |
| Allocates and fills a list of tags found in the given memory buffer.
|
id3_tag_list * | mp_get_tag_list (size_t(*read_func)(void *, size_t, void *), off_t(*lseek_func)(off_t, int, void *), void *arg) |
| Allocates and fills a list of tags using read and seek wrapper functions.
|
void | mp_free_list (id3_tag_list *) |
| Frees a tag list beginning with the given element XXX.
|
id3_content * | mp_get_content (const id3_tag *t, int f) |
| Gets the first content found of a specified field in the given tag and allocates a struct.
|
id3_content * | mp_get_content_at_pos (const id3_tag *t, int f, int pos) |
| It's posible that a tag has multiple ocurances of a field, use this function to get a specified field by position.
|
id3_content * | mp_get_content_custom (const id3_tag *t, const char *f) |
| Gets a custom fields content and allocates a struct.
|
id3_content * | mp_get_content_custom_at_pos (const id3_tag *t, const char *f, int pos) |
| See mp_get_content_at_pos() and mp_get_content_custom().
|
void | mp_free_content (id3_content *) |
| Frees a content struct.
|
void | mp_free_text_content (id3_text_content *) |
| Frees a text struct.
|
void | mp_free_comment_content (id3_comment_content *) |
| Frees a comment struct.
|
int | mp_set_content (id3_tag *t, int field, id3_content *content) |
| Copys the value of a specified field into the given tag.
|
int | mp_set_content_at_pos (id3_tag *t, int field, id3_content *content, int pos) |
| Copys the value of a specified field into the given tag.
|
int | mp_set_custom_content (id3_tag *t, char *field, id3_content *content) |
| Sets up a new custom field with the given value.
|
int | mp_set_custom_content_at_pos (id3_tag *t, char *field, id3_content *content, int pos) |
| Sets up a new custom field with the given value on a certain frame position.
|
int | mp_write_to_file (const id3_tag_list *ls, const char *path) |
| Writes the tag to the specified file.
|
int | mp_write_to_fd (const id3_tag_list *ls, int fd) |
| Writes the tag to the specified file.
|
int | mp_del_tags_from_file (const char *path) |
| Deletes all tags in file.
|
int | mp_del_tags_from_fd (int fd) |
| Deletes all tags in file.
|
int | mp_del_tags_by_ver_from_file (const char *path, int version) |
| Deletes all tags in file with the specified version.
|
int | mp_del_tags_by_ver_from_fd (int fd, int version) |
| Deletes all tags in file with the specified version.
|
int | mp_convert_to_v1 (id3_tag *t) |
| Converts a tag to id3v1 tag format.
|
int | mp_convert_to_v2 (id3_tag *t) |
| Converts a tag to id3v2 tag format.
|
int | mp_is_valid_v1_value (int field, char *value) |
| Checks wether the given value would be a valid v1 field.
|
id3_text_content * | mp_parse_artist (const id3_content *content) |
| Parses the artist field.
|
id3_text_content * | mp_parse_title (const id3_content *content) |
| Parses the title field.
|
id3_text_content * | mp_parse_album (const id3_content *content) |
| Parses the album field.
|
id3_text_content * | mp_parse_year (const id3_content *content) |
| Parses the year field.
|
id3_text_content * | mp_parse_genre (const id3_content *content) |
| Parses the genre field.
|
id3_text_content * | mp_parse_track (const id3_content *content) |
| Parses the track field.
|
id3_text_content * | mp_parse_text (const id3_content *content) |
| Generic function for parsing text fields.
|
id3_comment_content * | mp_parse_comment (const id3_content *content) |
| Parses the comment field.
|
id3_content * | mp_assemble_text_content (const char *text, id3_encoding enc) |
| Assembles content from a comont text content.
|
id3_content * | mp_assemble_comment_content (const char *text, const char *descr, id3_encoding enc, const char *lang) |
| Assembles content from a comment.
|
id3_tag * | mp_alloc_tag (void) |
| Gets a new allocated tag.
|
id3_tag * | mp_alloc_tag_with_version (int) |
| Gets a new allocated tag with the specified version.
|
void | mp_free_tag (id3_tag *t) |
| Frees tag struct.
|