set_get.h

Go to the documentation of this file.
00001 /*
00002  * set_get.h -- Internal set/get definitions
00003  *
00004  * Copyright (C) 2003 Gabriel Bouvigne / Lame project
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 Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef __SET_GET_H__
00022 #define __SET_GET_H__
00023 
00024 
00025 #if defined(__cplusplus)
00026 extern  "C" {
00027 #endif
00028 
00029 #if defined(WIN32)
00030 #undef CDECL
00031 #define CDECL _cdecl
00032 #else
00033 #define CDECL
00034 #endif
00035 
00036 
00037 /* select psychoacoustic model */
00038     int CDECL lame_set_psy_model(lame_global_flags *, int);
00039     int CDECL lame_get_psy_model(const lame_global_flags *);
00040 
00041 
00042     void CDECL lame_set_ms_sparsing(lame_global_flags *, int);
00043     void CDECL lame_set_ms_sparse_low(lame_t, float);
00044     void CDECL lame_set_ms_sparse_high(lame_t, float);
00045 
00046 
00047 /* manage short blocks */
00048     int CDECL lame_set_short_threshold(lame_global_flags *, float, float);
00049     int CDECL lame_set_short_threshold_lrm(lame_global_flags *, float);
00050     float CDECL lame_get_short_threshold_lrm(const lame_global_flags *);
00051     int CDECL lame_set_short_threshold_s(lame_global_flags *, float);
00052     float CDECL lame_get_short_threshold_s(const lame_global_flags *);
00053 
00054 
00055     int CDECL lame_set_vbr_smooth(lame_global_flags *, int);
00056     int CDECL lame_get_vbr_smooth(const lame_global_flags *);
00057 
00058     int CDECL lame_set_maskingadjust(lame_global_flags *, float);
00059     float CDECL lame_get_maskingadjust(const lame_global_flags *);
00060 
00061     int CDECL lame_set_maskingadjust_short(lame_global_flags *, float);
00062     float CDECL lame_get_maskingadjust_short(const lame_global_flags *);
00063 
00064 /* select ATH formula 4 shape */
00065     int CDECL lame_set_ATHcurve(lame_global_flags *, float);
00066     float CDECL lame_get_ATHcurve(const lame_global_flags *);
00067 
00068     int CDECL lame_set_preset_notune(lame_global_flags *, int);
00069 
00070 /* substep shaping method */
00071     int CDECL lame_set_substep(lame_global_flags *, int);
00072     int CDECL lame_get_substep(const lame_global_flags *);
00073 
00074 /* scalefactors scale */
00075     int CDECL lame_set_sfscale(lame_global_flags *, int);
00076     int CDECL lame_get_sfscale(const lame_global_flags *);
00077 
00078 /* subblock gain */
00079     int CDECL lame_set_subblock_gain(lame_global_flags *, int);
00080     int CDECL lame_get_subblock_gain(const lame_global_flags *);
00081 
00082 
00083 
00084 /*presets*/
00085     int     apply_preset(lame_global_flags *, int preset, int enforce);
00086 
00087 
00088 
00089 #if defined(__cplusplus)
00090 }
00091 #endif
00092 #endif

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