source: extensions/gsdl-video/trunk/installed/cmdline/include/faac.h@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 2.3 KB
Line 
1/*
2 * FAAC - Freeware Advanced Audio Coder
3 * Copyright (C) 2001 Menno Bakker
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *
19 * $Id: faac.h,v 1.33 2004/07/04 12:12:05 corrados Exp $
20 */
21
22#ifndef _FAAC_H_
23#define _FAAC_H_
24
25#ifdef __cplusplus
26extern "C" {
27#endif /* __cplusplus */
28
29#ifdef WIN32
30# ifndef FAACAPI
31# define FAACAPI __stdcall
32# endif
33#else
34# ifndef FAACAPI
35# define FAACAPI
36# endif
37#endif
38
39#pragma pack(push, 1)
40
41typedef struct {
42 void *ptr;
43 char *name;
44}
45psymodellist_t;
46
47#include "faaccfg.h"
48
49
50typedef void *faacEncHandle;
51
52#ifndef HAVE_INT32_T
53typedef int int32_t;
54#endif
55
56/*
57 Allows an application to get FAAC version info. This is intended
58 purely for informative purposes.
59
60 Returns FAAC_CFG_VERSION.
61*/
62int FAACAPI faacEncGetVersion(char **faac_id_string,
63 char **faac_copyright_string);
64
65
66faacEncConfigurationPtr FAACAPI
67 faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
68
69
70int FAACAPI faacEncSetConfiguration(faacEncHandle hEncoder,
71 faacEncConfigurationPtr config);
72
73
74faacEncHandle FAACAPI faacEncOpen(unsigned long sampleRate,
75 unsigned int numChannels,
76 unsigned long *inputSamples,
77 unsigned long *maxOutputBytes);
78
79
80int FAACAPI faacEncGetDecoderSpecificInfo(faacEncHandle hEncoder, unsigned char **ppBuffer,
81 unsigned long *pSizeOfDecoderSpecificInfo);
82
83
84int FAACAPI faacEncEncode(faacEncHandle hEncoder, int32_t * inputBuffer, unsigned int samplesInput,
85 unsigned char *outputBuffer,
86 unsigned int bufferSize);
87
88
89int FAACAPI faacEncClose(faacEncHandle hEncoder);
90
91
92
93#pragma pack(pop)
94
95#ifdef __cplusplus
96}
97#endif /* __cplusplus */
98
99#endif /* _FAAC_H_ */
Note: See TracBrowser for help on using the repository browser.