KVIrc  4.9.2
DeveloperAPIs
Classes | Macros | Enumerations | Functions
MpMp3.h File Reference
#include "kvi_settings.h"
#include <stdio.h>
#include <stdlib.h>
#include <QString>
#include <unistd.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>

Go to the source code of this file.

Classes

struct  id3tag
 
struct  mp3header
 
struct  mp3info
 

Macros

#define FRAME_HEADER_SIZE   4
 
#define INT_FIELD_LEN   4
 
#define MIN_CONSEC_GOOD_FRAMES   4
 
#define MIN_FRAME_SIZE   21
 
#define NUM_SAMPLES   4
 
#define TEXT_FIELD_LEN   30
 

Enumerations

enum  VBR_REPORT { VBR_VARIABLE, VBR_AVERAGE, VBR_MEDIAN }
 

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)
 
double header_version (mp3header *h)
 
char * pad (char *string, int length)
 
void resetmp3infoStruct (mp3info *i)
 
int sameConstant (mp3header *h1, mp3header *h2)
 
bool scan_mp3_file (QString &szFileName, mp3info *i)
 
char * unpad (char *string)
 

Macro Definition Documentation

#define FRAME_HEADER_SIZE   4

Referenced by get_first_header(), and get_header().

#define INT_FIELD_LEN   4
#define MIN_CONSEC_GOOD_FRAMES   4

Referenced by get_first_header().

#define MIN_FRAME_SIZE   21

Referenced by get_header().

#define NUM_SAMPLES   4

Referenced by get_mp3_info().

#define TEXT_FIELD_LEN   30

Enumeration Type Documentation

enum VBR_REPORT
Enumerator
VBR_VARIABLE 
VBR_AVERAGE 
VBR_MEDIAN 

Function Documentation

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)

References MAXGENRE, and typegenre.

Referenced by MpInterface::genre().

int header_bitrate ( mp3header h)
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)
int header_frequency ( mp3header h)
int header_layer ( mp3header h)

References mp3header::layer, and layer_tab.

const char* header_mode ( mp3header h)

References mp3header::mode, and mode_text.

double header_version ( mp3header h)
char* pad ( char *  string,
int  length 
)

References l.

void resetmp3infoStruct ( mp3info i)
int sameConstant ( mp3header h1,
mp3header h2 
)
bool scan_mp3_file ( QString &  szFileName,
mp3info i 
)
char* unpad ( char *  string)

Referenced by get_id3().