History

improved psychoacoustic model selection

knik committed 24 years ago

Commit 150fb2e1 parent 0503e7b4 files · +73 −39Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/faac.h+9−22
@@ -16,7 +16,7 @@ · 15 unmodified lines
16 * License along with this library; if not, write to the Free Software16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *18 *
19 * $Id: faac.h,v 1.19 2002/08/07 18:18:49 knik Exp $19 * $Id: faac.h,v 1.20 2002/08/09 16:28:13 knik Exp $
20 */20 */
21 21
22#ifndef FAACLIB_H22#ifndef FAACLIB_H
@@ -81,31 +81,18 @@ typedef struct faacEncConfiguration · 58 unmodified lines
81 */81 */
82 unsigned int outputFormat;82 unsigned int outputFormat;
83 83
84 // psychoacoustic model list
85 const struct {
86 void *ptr;
87 char *name;
88 } *psymodellist;
89 // selected index in psymodellist
90 unsigned int psymodelidx;
91
84} faacEncConfiguration, *faacEncConfigurationPtr;92} faacEncConfiguration, *faacEncConfigurationPtr;
85 93
86typedef void *faacEncHandle;94typedef void *faacEncHandle;
87 95
88typedef struct {
89 void (*PsyInit) (void *gpsyInfo, void *psyInfo,
90 unsigned int numChannels, unsigned int sampleRate,
91 int *cb_width_long, int num_cb_long,
92 int *cb_width_short, int num_cb_short);
93 void (*PsyEnd) (void *gpsyInfo, void *psyInfo,
94 unsigned int numChannels);
95 void (*PsyCalculate) (void *channelInfo, void *gpsyInfo,
96 void *psyInfo, int *cb_width_long, int num_cb_long,
97 int *cb_width_short, int num_cb_short,
98 unsigned int numChannels);
99 void (*PsyBufferUpdate) (void *gpsyInfo, void *psyInfo,
100 double *newSamples, unsigned int bandwidth);
101 void (*BlockSwitch) (void *coderInfo, void *psyInfo,
102 unsigned int numChannels);
103} psymodel_t;
104
105extern psymodel_t *psymodel;
106extern psymodel_t psymodel1;
107extern psymodel_t psymodel2;
108
109faacEncConfigurationPtr FAACAPI faacEncGetCurrentConfiguration(faacEncHandle hEncoder);96faacEncConfigurationPtr FAACAPI faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
110int FAACAPI faacEncSetConfiguration (faacEncHandle hEncoder, faacEncConfigurationPtr config);97int FAACAPI faacEncSetConfiguration (faacEncHandle hEncoder, faacEncConfigurationPtr config);
111 98

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t