psymodel.h

Go to the documentation of this file.
00001 /*
00002  *      psymodel.h
00003  *
00004  *      Copyright (c) 1999 Mark Taylor
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the
00018  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00019  * Boston, MA 02111-1307, USA.
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 /* size of each partition band, in barks: */
00050 #define DELBARK .34
00051 #define CW_LOWER_INDEX 6
00052 
00053 
00054 #if 1
00055     /* AAC values, results in more masking over MP3 values */
00056 # define TMN 18
00057 # define NMT 6
00058 #else
00059     /* MP3 values */
00060 # define TMN 29
00061 # define NMT 6
00062 #endif
00063 
00064 /* ISO values */
00065 #define CONV1 (-.299)
00066 #define CONV2 (-.43)
00067 
00068 /* tuned for output level (sensitive to energy scale) */
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 /* LAME_PSYMODEL_H */

Generated on Sun Dec 2 11:34:19 2007 for LAME by  doxygen 1.5.2