|
Packit |
47f805 |
/*
|
|
Packit |
47f805 |
* psymodel.h
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* Copyright (c) 1999 Mark Taylor
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
47f805 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
47f805 |
* License as published by the Free Software Foundation; either
|
|
Packit |
47f805 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
47f805 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
47f805 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
47f805 |
* Library General Public License for more details.
|
|
Packit |
47f805 |
*
|
|
Packit |
47f805 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
47f805 |
* License along with this library; if not, write to the
|
|
Packit |
47f805 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Packit |
47f805 |
* Boston, MA 02111-1307, USA.
|
|
Packit |
47f805 |
*/
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#ifndef LAME_PSYMODEL_H
|
|
Packit |
47f805 |
#define LAME_PSYMODEL_H
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
int L3psycho_anal_ns(lame_internal_flags * gfc,
|
|
Packit |
47f805 |
const sample_t *const buffer[2], int gr,
|
|
Packit |
47f805 |
III_psy_ratio ratio[2][2],
|
|
Packit |
47f805 |
III_psy_ratio MS_ratio[2][2],
|
|
Packit |
47f805 |
FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
int L3psycho_anal_vbr(lame_internal_flags * gfc,
|
|
Packit |
47f805 |
const sample_t *const buffer[2], int gr,
|
|
Packit |
47f805 |
III_psy_ratio ratio[2][2],
|
|
Packit |
47f805 |
III_psy_ratio MS_ratio[2][2],
|
|
Packit |
47f805 |
FLOAT pe[2], FLOAT pe_MS[2], FLOAT ener[2], int blocktype_d[2]);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
int psymodel_init(lame_global_flags const* gfp);
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#define rpelev 2
|
|
Packit |
47f805 |
#define rpelev2 16
|
|
Packit |
47f805 |
#define rpelev_s 2
|
|
Packit |
47f805 |
#define rpelev2_s 16
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* size of each partition band, in barks: */
|
|
Packit |
47f805 |
#define DELBARK .34
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
/* tuned for output level (sensitive to energy scale) */
|
|
Packit |
47f805 |
#define VO_SCALE (1./( 14752*14752 )/(BLKSIZE/2))
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#define temporalmask_sustain_sec 0.01
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#define NS_PREECHO_ATT0 0.8
|
|
Packit |
47f805 |
#define NS_PREECHO_ATT1 0.6
|
|
Packit |
47f805 |
#define NS_PREECHO_ATT2 0.3
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#define NS_MSFIX 3.5
|
|
Packit |
47f805 |
#define NSATTACKTHRE 4.4
|
|
Packit |
47f805 |
#define NSATTACKTHRE_S 25
|
|
Packit |
47f805 |
|
|
Packit |
47f805 |
#endif /* LAME_PSYMODEL_H */
|