KVIrc
4.9.2
DeveloperAPIs
|
Macros | |
#define | GENREROWS 50 |
#define | MAXGENRE 147 |
Functions | |
int | frame_length (mp3header *header) |
int | get_first_header (mp3info *mp3, long startpos) |
int | get_header (FILE *file, mp3header *header) |
int | get_id3 (mp3info *mp3) |
int | get_mp3_info (mp3info *mp3) |
const char * | get_typegenre (int idx) |
int | header_bitrate (mp3header *h) |
int | header_channels (mp3header *h) |
int | header_crc (mp3header *h) |
const char * | header_emphasis (mp3header *h) |
int | header_frequency (mp3header *h) |
int | header_layer (mp3header *h) |
const char * | header_mode (mp3header *h) |
char * | pad (char *string, int length) |
void | resetmp3infoStruct (mp3info *i) |
int | sameConstant (mp3header *h1, mp3header *h2) |
bool | scan_mp3_file (QString &, mp3info *i) |
char * | unpad (char *string) |
Variables | |
int * | alphagenreindex = &(galphagenreindex[1]) |
int | bitrate [2][3][14] |
const char * | emphasis_text [] |
int | frame_size_index [] = { 24000, 72000, 72000 } |
int | frequencies [3][4] |
int | galphagenreindex [MAXGENRE+2] |
int | layer_tab [4] = { 0, 3, 2, 1 } |
const char * | mode_text [] |
const char * | typegenre [MAXGENRE+2] |
#define GENREROWS 50 |
#define MAXGENRE 147 |
Referenced by get_typegenre().
int frame_length | ( | mp3header * | header | ) |
References frame_size_index, header_bitrate(), header_frequency(), mp3header::layer, mp3header::padding, mp3header::sync, and mp3header::version.
Referenced by get_header(), and get_mp3_info().
int get_first_header | ( | mp3info * | mp3, |
long | startpos | ||
) |
References c, mp3info::datasize, mp3info::file, FRAME_HEADER_SIZE, get_header(), h, mp3info::header, mp3info::header_isvalid, k, l, MIN_CONSEC_GOOD_FRAMES, and sameConstant().
Referenced by get_mp3_info().
int get_header | ( | FILE * | file, |
mp3header * | header | ||
) |
References mp3header::bitrate, mp3header::copyright, mp3header::crc, mp3header::emphasis, mp3header::extension, FRAME_HEADER_SIZE, frame_length(), mp3header::freq, mp3header::layer, MIN_FRAME_SIZE, mp3header::mode, mp3header::mode_extension, mp3header::original, mp3header::padding, mp3header::sync, and mp3header::version.
Referenced by get_first_header().
int get_id3 | ( | mp3info * | mp3 | ) |
References id3tag::album, id3tag::artist, id3tag::comment, mp3info::datasize, mp3info::file, id3tag::genre, mp3info::id3, mp3info::id3_isvalid, Q_UNUSED(), id3tag::title, id3tag::track, unpad(), and id3tag::year.
Referenced by get_mp3_info().
int get_mp3_info | ( | mp3info * | mp3 | ) |
References mp3header::bitrate, bitrate, mp3info::datasize, mp3info::file, mp3info::filename, frame_length(), mp3info::frames, get_first_header(), get_id3(), mp3info::header, header_bitrate(), NUM_SAMPLES, mp3info::seconds, mp3info::vbr, and mp3info::vbr_average.
Referenced by scan_mp3_file().
const char* get_typegenre | ( | int | idx | ) |
References MAXGENRE, and typegenre.
Referenced by MpInterface::genre().
int header_bitrate | ( | mp3header * | h | ) |
References mp3header::bitrate, bitrate, mp3header::layer, and mp3header::version.
Referenced by MpInterface::bitRate(), frame_length(), and get_mp3_info().
int header_channels | ( | mp3header * | h | ) |
References mp3header::mode.
Referenced by MpInterface::channels().
int header_crc | ( | mp3header * | h | ) |
References mp3header::crc.
const char* header_emphasis | ( | mp3header * | h | ) |
References mp3header::emphasis, and emphasis_text.
int header_frequency | ( | mp3header * | h | ) |
References mp3header::freq, frequencies, and mp3header::version.
Referenced by frame_length(), and MpInterface::sampleRate().
int header_layer | ( | mp3header * | h | ) |
References mp3header::layer, and layer_tab.
const char* header_mode | ( | mp3header * | h | ) |
References mp3header::mode, and mode_text.
char* pad | ( | char * | string, |
int | length | ||
) |
References l.
void resetmp3infoStruct | ( | mp3info * | i | ) |
References mp3info::badframes, mp3info::datasize, mp3info::file, mp3info::frames, mp3info::header, mp3info::header_isvalid, mp3info::id3, mp3info::id3_isvalid, mp3info::seconds, mp3info::vbr, and mp3info::vbr_average.
Referenced by scan_mp3_file().
References mp3header::copyright, mp3header::crc, mp3header::emphasis, mp3header::freq, mp3header::layer, mp3header::mode, mp3header::original, and mp3header::version.
Referenced by get_first_header().
bool scan_mp3_file | ( | QString & | , |
mp3info * | i | ||
) |
References mp3info::file, mp3info::filename, get_mp3_info(), mp3info::id3_isvalid, and resetmp3infoStruct().
char* unpad | ( | char * | string | ) |
Referenced by get_id3().
int* alphagenreindex = &(galphagenreindex[1]) |
int bitrate[2][3][14] |
Referenced by get_mp3_info(), and header_bitrate().
const char* emphasis_text[] |
Referenced by header_emphasis().
int frame_size_index[] = { 24000, 72000, 72000 } |
Referenced by frame_length().
int frequencies[3][4] |
Referenced by header_frequency().
int galphagenreindex[MAXGENRE+2] |
int layer_tab[4] = { 0, 3, 2, 1 } |
Referenced by header_layer().
const char* mode_text[] |
Referenced by header_mode().
const char* typegenre[MAXGENRE+2] |
Referenced by get_typegenre().