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
1616 * License along with this library; if not, write to the Free Software
1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818 *
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 $
2020 */
2121
2222 #ifndef FAACLIB_H
@@ -81,31 +81,18 @@ typedef struct faacEncConfiguration · 58 unmodified lines
8181 */
8282 unsigned int outputFormat;
8383
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+
8492 } faacEncConfiguration, *faacEncConfigurationPtr;
8593
8694 typedef void *faacEncHandle;
8795
88−typedef 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−
105−extern psymodel_t *psymodel;
106−extern psymodel_t psymodel1;
107−extern psymodel_t psymodel2;
108−
10996 faacEncConfigurationPtr FAACAPI faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
11097 int FAACAPI faacEncSetConfiguration (faacEncHandle hEncoder, faacEncConfigurationPtr config);
11198

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