libcfe  0.12.1
some useful C-functions
mp3tech.c File Reference
#include "config.h"
#include "cfe/mp3info/mp3info.h"
Include dependency graph for mp3tech.c:

Go to the source code of this file.

Functions

int get_mp3_info (mp3info *mp3, int scantype, int fullscan_vbr)
 
int get_first_header (mp3info *mp3, long startpos)
 
int get_next_header (mp3info *mp3)
 
int get_header (FILE *file, mp3header *header)
 
int frame_length (mp3header *header)
 
int header_layer (mp3header *h)
 
int header_bitrate (mp3header *h)
 
int header_frequency (mp3header *h)
 
char * header_emphasis (mp3header *h)
 
char * header_mode (mp3header *h)
 
int sameConstant (mp3header *h1, mp3header *h2)
 
int get_id3 (mp3info *mp3)
 
char * pad (char *string, int length)
 
char * unpad (char *string)
 
int write_tag (mp3info *mp3)
 

Variables

int layer_tab [4] = {0, 3, 2, 1}
 
int frequencies [3][4]
 
int bitrate [2][3][15]
 
int frame_size_index [] = {24000, 72000, 72000}
 
char * mode_text []
 
char * emphasis_text []
 

Function Documentation

◆ frame_length()

int frame_length ( mp3header header)

Definition at line 259 of file mp3tech.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_first_header()

int get_first_header ( mp3info mp3,
long  startpos 
)

Definition at line 155 of file mp3tech.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_header()

int get_header ( FILE *  file,
mp3header header 
)

Definition at line 223 of file mp3tech.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_id3()

int get_id3 ( mp3info mp3)

Definition at line 300 of file mp3tech.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_mp3_info()

int get_mp3_info ( mp3info mp3,
int  scantype,
int  fullscan_vbr 
)

Definition at line 69 of file mp3tech.c.

Here is the call graph for this function:

◆ get_next_header()

int get_next_header ( mp3info mp3)

Definition at line 192 of file mp3tech.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ header_bitrate()

int header_bitrate ( mp3header h)

Definition at line 268 of file mp3tech.c.

Here is the caller graph for this function:

◆ header_emphasis()

char* header_emphasis ( mp3header h)

Definition at line 276 of file mp3tech.c.

◆ header_frequency()

int header_frequency ( mp3header h)

Definition at line 272 of file mp3tech.c.

Here is the caller graph for this function:

◆ header_layer()

int header_layer ( mp3header h)

Definition at line 266 of file mp3tech.c.

◆ header_mode()

char* header_mode ( mp3header h)

Definition at line 280 of file mp3tech.c.

◆ pad()

char* pad ( char *  string,
int  length 
)

Definition at line 340 of file mp3tech.c.

Here is the caller graph for this function:

◆ sameConstant()

int sameConstant ( mp3header h1,
mp3header h2 
)

Definition at line 284 of file mp3tech.c.

Here is the caller graph for this function:

◆ unpad()

char* unpad ( char *  string)

Definition at line 355 of file mp3tech.c.

Here is the caller graph for this function:

◆ write_tag()

int write_tag ( mp3info mp3)

Definition at line 366 of file mp3tech.c.

Here is the call graph for this function:

Variable Documentation

◆ bitrate

int bitrate[2][3][15]
Initial value:
= {
{
{0,32,48,56,64,80,96,112,128,144,160,176,192,224,256},
{0,8,16,24,32,40,48,56,64,80,96,112,128,144,160},
{0,8,16,24,32,40,48,56,64,80,96,112,128,144,160}
},
{
{0,32,64,96,128,160,192,224,256,288,320,352,384,416,448},
{0,32,48,56,64,80,96,112,128,160,192,224,256,320,384},
{0,32,40,48,56,64,80,96,112,128,160,192,224,256,320}
}
}

Definition at line 42 of file mp3tech.c.

◆ emphasis_text

char* emphasis_text[]
Initial value:
= {
"none", "50/15 microsecs", "reserved", "CCITT J 17"
}

Definition at line 64 of file mp3tech.c.

◆ frame_size_index

int frame_size_index[] = {24000, 72000, 72000}

Definition at line 57 of file mp3tech.c.

◆ frequencies

int frequencies[3][4]
Initial value:
= {
{22050,24000,16000,50000},
{44100,48000,32000,50000},
{11025,12000,8000,50000}
}

Definition at line 36 of file mp3tech.c.

◆ layer_tab

int layer_tab[4] = {0, 3, 2, 1}

Definition at line 34 of file mp3tech.c.

◆ mode_text

char* mode_text[]
Initial value:
= {
"stereo", "joint stereo", "dual channel", "mono"
}

Definition at line 60 of file mp3tech.c.