Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

kb_mp3.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------*/ 00002 00003 #ifndef __mp3_h__ 00004 #define __mp3_h__ 00005 00006 00007 00008 struct mpeg_t { 00009 FILE *file; 00010 int type; 00011 int layr; 00012 int mode; 00013 int bitr; 00014 int psyc; 00015 int emph; 00016 int padding; 00017 long samples_per_frame; 00018 long bits_per_frame; 00019 long bits_per_slot; 00020 long total_frames; 00021 int bitrate_index; 00022 int samplerate_index; 00023 int crc; 00024 int ext; 00025 int mode_ext; 00026 int copyright; 00027 int original; 00028 }; 00029 00030 struct wave_t { 00031 FILE *file; 00032 int type; 00033 int channels; 00034 int bits; 00035 long samplerate; 00036 long total_samples; 00037 long length; 00038 }; 00039 00040 struct config_t { 00041 time_t start_time; 00042 00043 char* infile; 00044 struct wave_t wave; 00045 00046 char *outfile; 00047 00048 struct mpeg_t mpeg; 00049 }; 00050 00051 00052 /*--------------------------------------------------------------------*/ 00053 00054 extern void kb_mp3_updStatus(struct config_t *cfg, int frames_processed); 00055 00056 extern int kb_mp3_getSmplIndex(unsigned int freq); 00057 00058 extern int kb_mp3_getBitrIndex(unsigned int bitr); 00059 00060 extern void kb_mp3_setDefault( struct config_t *cfg ); 00061 00062 extern int kb_mp3_Compress( unsigned short *smplFrame, unsigned long smplNmbr, struct config_t *cfg, int bitRate, 00063 char *filePath ); 00064 00065 extern void kb_mp3_chkCfg(struct config_t *cfg, int smplRate); 00066 00067 /*--------------------------------------------------------------------*/ 00068 00069 #endif /* __mp3_h__ */

Generated on Thu Nov 17 15:28:57 2005 for KoreBot Library by doxygen 1.3.7