00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef LAME_PSYMODEL_H
00023 #define LAME_PSYMODEL_H
00024
00025
00026 int L3psycho_anal(lame_global_flags const *gfc,
00027 const sample_t * buffer[2], int gr,
00028 FLOAT * ms_ratio,
00029 FLOAT * ms_ratio_next,
00030 III_psy_ratio ratio[2][2],
00031 III_psy_ratio MS_ratio[2][2],
00032 FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
00033
00034 int L3psycho_anal_ns(lame_global_flags const *gfc,
00035 const sample_t * buffer[2], int gr,
00036 III_psy_ratio ratio[2][2],
00037 III_psy_ratio MS_ratio[2][2],
00038 FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
00039
00040
00041 int psymodel_init(lame_global_flags * gfp);
00042
00043
00044 #define rpelev 2
00045 #define rpelev2 16
00046 #define rpelev_s 2
00047 #define rpelev2_s 16
00048
00049
00050 #define DELBARK .34
00051 #define CW_LOWER_INDEX 6
00052
00053
00054 #if 1
00055
00056 # define TMN 18
00057 # define NMT 6
00058 #else
00059
00060 # define TMN 29
00061 # define NMT 6
00062 #endif
00063
00064
00065 #define CONV1 (-.299)
00066 #define CONV2 (-.43)
00067
00068
00069 #define VO_SCALE (1./( 14752*14752 )/(BLKSIZE/2))
00070
00071 #define temporalmask_sustain_sec 0.01
00072
00073 #define NS_PREECHO_ATT0 0.8
00074 #define NS_PREECHO_ATT1 0.6
00075 #define NS_PREECHO_ATT2 0.3
00076
00077 #define NS_MSFIX 3.5
00078 #define NSATTACKTHRE 4.4
00079 #define NSATTACKTHRE_S 25
00080
00081 #endif