xine-lib 1.2.11
|
#include <stdlib.h>
#include <xine/xine_internal.h>
#include <xine/xineutils.h>
#include "bswap.h"
#include "id3.h"
Macros | |
#define | LOG_MODULE "id3" |
#define | LOG_VERBOSE |
#define | ID3_GENRE_COUNT (sizeof (id3_genre) / sizeof (id3_genre[0])) |
#define | ID3_ENCODING_COUNT 4 |
Variables | |
static const char | id3_genre [][24] |
static const char | id3_encoding [][12] |
#define ID3_ENCODING_COUNT 4 |
#define LOG_MODULE "id3" |
#define LOG_VERBOSE |
int id3v1_parse_tag | ( | input_plugin_t * | input, |
xine_stream_t * | stream | ||
) |
References _x_meta_info_n_set(), _x_meta_info_set(), id3v1_tag_t::album, id3v1_tag_t::artist, id3v1_tag_t::comment, id3v1_tag_t::genre, id3_genre, ID3_GENRE_COUNT, input(), lprintf, id3v1_tag_t::tag, id3v1_tag_t::title, XINE_META_INFO_ALBUM, XINE_META_INFO_ARTIST, XINE_META_INFO_COMMENT, XINE_META_INFO_GENRE, XINE_META_INFO_TITLE, XINE_META_INFO_TRACK_NUMBER, XINE_META_INFO_YEAR, and id3v1_tag_t::year.
Referenced by demux_mpgaudio_send_headers().
|
static |
References _x_meta_info_set(), _x_meta_info_set_generic(), BE_FOURCC, id3v22_frame_header_t::id, id3_encoding, ID3_ENCODING_COUNT, id3v2_parse_genre(), input(), lprintf, id3v22_frame_header_t::size, XINE_META_INFO_ALBUM, XINE_META_INFO_ARTIST, XINE_META_INFO_COMMENT, XINE_META_INFO_GENRE, XINE_META_INFO_TITLE, XINE_META_INFO_TRACK_NUMBER, and XINE_META_INFO_YEAR.
Referenced by id3v22_parse_tag().
|
static |
References _X_BE_24, id3v22_frame_header_t::id, ID3V22_FRAME_HEADER_SIZE, input(), lprintf, and id3v22_frame_header_t::size.
Referenced by id3v22_parse_tag().
|
static |
References id3v2_header_t::flags, id3v22_frame_header_t::id, ID3V22_COMPRESS_FLAG, ID3V22_FRAME_HEADER_SIZE, id3v22_interp_frame(), id3v22_parse_frame_header(), ID3V22_UNSYNCH_FLAG, ID3V22_ZERO_FLAG, id3v2_parse_header(), input(), LOG_MODULE, id3v2_header_t::size, id3v22_frame_header_t::size, xine_stream_s::xine, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by id3v2_parse_tag().
|
static |
References _x_meta_info_set(), _x_meta_info_set_generic(), BE_FOURCC, id3v23_frame_header_t::id, id3_encoding, ID3_ENCODING_COUNT, id3v2_parse_genre(), input(), lprintf, id3v23_frame_header_t::size, XINE_META_INFO_ALBUM, XINE_META_INFO_ARTIST, XINE_META_INFO_COMMENT, XINE_META_INFO_DISCNUMBER, XINE_META_INFO_GENRE, XINE_META_INFO_TITLE, XINE_META_INFO_TRACK_NUMBER, and XINE_META_INFO_YEAR.
Referenced by id3v23_parse_tag().
|
static |
References _X_BE_16, _X_BE_32, id3v23_frame_ext_header_t::crc, id3v23_frame_ext_header_t::flags, input(), lprintf, id3v23_frame_ext_header_t::padding_size, and id3v23_frame_ext_header_t::size.
Referenced by id3v23_parse_tag().
|
static |
References _X_BE_16, _X_BE_32, id3v23_frame_header_t::flags, id3v23_frame_header_t::id, ID3V23_FRAME_HEADER_SIZE, input(), lprintf, and id3v23_frame_header_t::size.
Referenced by id3v23_parse_tag().
|
static |
References id3v2_header_t::flags, id3v23_frame_header_t::id, ID3V23_EXT_HEADER_FLAG, ID3V23_FRAME_HEADER_SIZE, id3v23_interp_frame(), id3v23_parse_frame_ext_header(), id3v23_parse_frame_header(), ID3V23_UNSYNCH_FLAG, ID3V23_ZERO_FLAG, id3v2_parse_header(), input(), LOG_MODULE, lprintf, id3v2_header_t::size, id3v23_frame_header_t::size, id3v23_frame_ext_header_t::size, xine_stream_s::xine, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by id3v2_parse_tag().
|
static |
References _x_meta_info_set(), _x_meta_info_set_generic(), BE_FOURCC, id3v24_frame_header_t::id, id3_encoding, ID3_ENCODING_COUNT, id3v24_parse_genre(), input(), lprintf, id3v24_frame_header_t::size, XINE_META_INFO_ALBUM, XINE_META_INFO_ARTIST, XINE_META_INFO_COMMENT, XINE_META_INFO_DISCNUMBER, XINE_META_INFO_GENRE, XINE_META_INFO_TITLE, XINE_META_INFO_TRACK_NUMBER, and XINE_META_INFO_YEAR.
Referenced by id3v24_parse_tag().
|
static |
References _X_BE_32, BE_35_synchsafe(), id3v24_frame_ext_header_t::crc, id3v24_frame_ext_header_t::flags, ID3V24_EXT_CRC_FLAG, ID3V24_EXT_RESTRICTIONS_FLAG, ID3V24_EXT_UPDATE_FLAG, ID3V24_EXT_ZERO_FLAG, input(), lprintf, id3v24_frame_ext_header_t::restrictions, and id3v24_frame_ext_header_t::size.
Referenced by id3v24_parse_tag().
|
static |
References _X_BE_16, _X_BE_32, id3v24_frame_header_t::flags, id3v24_frame_header_t::id, ID3V24_FRAME_HEADER_SIZE, input(), lprintf, and id3v24_frame_header_t::size.
Referenced by id3v24_parse_tag().
|
static |
References id3_genre, ID3_GENRE_COUNT, and lprintf.
Referenced by id3v24_interp_frame().
|
static |
References id3v2_header_t::flags, id3v24_frame_header_t::id, ID3V24_EXPERIMENTAL_FLAG, ID3V24_EXT_HEADER_FLAG, ID3V24_FOOTER_FLAG, ID3V24_FOOTER_SIZE, ID3V24_FRAME_HEADER_SIZE, id3v24_interp_frame(), id3v24_parse_ext_header(), id3v24_parse_frame_header(), ID3V24_UNSYNCH_FLAG, ID3V24_ZERO_FLAG, id3v2_parse_header(), input(), LOG_MODULE, id3v2_header_t::size, id3v24_frame_header_t::size, id3v24_frame_ext_header_t::size, xine_stream_s::xine, XINE_VERBOSITY_DEBUG, and xprintf.
Referenced by id3v2_parse_tag().
|
static |
References id3_genre, ID3_GENRE_COUNT, and lprintf.
Referenced by id3v22_interp_frame(), and id3v23_interp_frame().
|
static |
References _X_BE_32_synchsafe(), be2me_32, id3v2_header_t::flags, id3v2_header_t::id, input(), lprintf, id3v2_header_t::revision, and id3v2_header_t::size.
Referenced by id3v22_parse_tag(), id3v23_parse_tag(), and id3v24_parse_tag().
int id3v2_parse_tag | ( | input_plugin_t * | input, |
xine_stream_t * | stream, | ||
uint32_t | id3_signature | ||
) |
Generic function for ID3v2 tags parsing.
input | Pointer to the input plugin used by the demuxer, used to access the tag's data. |
stream | Pointer to the xine stream currently being read. |
mp3_frame_header | Header of the MP3 frame carrying the tag. |
References _x_assert, be2me_32, id3v22_parse_tag(), ID3V22_TAG, id3v23_parse_tag(), ID3V23_TAG, id3v24_parse_tag(), ID3V24_TAG, ID3V2X_MASK, ID3V2X_TAG, input(), LOG_MODULE, xine_stream_s::xine, XINE_VERBOSITY_LOG, and xprintf.
Referenced by demux_mpgaudio_next(), open_flac_file(), and probe_aac_file().
|
static |
Referenced by id3v22_interp_frame(), id3v23_interp_frame(), and id3v24_interp_frame().
|
static |
Referenced by id3v1_parse_tag(), id3v24_parse_genre(), and id3v2_parse_genre().