shithub: aacenc

Download patch

ref: 2a38f4826e162c193b00682b7a6a8fe1fddf42e6
parent: c2e40caace3122c7be1649048fa00d2d213600b3
author: knik <knik>
date: Thu Mar 27 12:12:46 EST 2003

updated interface

--- a/include/faac.h
+++ b/include/faac.h
@@ -16,7 +16,7 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: faac.h,v 1.24 2002/12/28 09:23:29 knik Exp $
+ * $Id: faac.h,v 1.25 2003/03/27 17:12:46 knik Exp $
  */
 
 #ifndef FAACLIB_H
@@ -27,7 +27,7 @@
 #endif /* __cplusplus */
 
 #ifdef WIN32
-  #pragma pack(push, 8)
+  #pragma pack(push, 1)
   #ifndef FAACAPI
     #define FAACAPI __stdcall
   #endif
@@ -37,7 +37,7 @@
   #endif
 #endif
 
-#define FAACENC_VERSION "1.14 (beta)"
+#define FAAC_CFG_VERSION 100
 
 /* MPEG ID's */
 #define MPEG2 1
@@ -51,6 +51,12 @@
 
 typedef struct faacEncConfiguration
 {
+    /* config version */
+    const int version;
+
+    /* library version */
+    const char *name;
+
 	/* MPEG version, 2 or 4 */
 	unsigned int mpegVersion;
 
@@ -72,6 +78,9 @@
 	/* AAC file frequency bandwidth */
 	unsigned int bandWidth;
 
+    /* Quantizer quality */
+    unsigned long quantqual;
+
 	/*
 		Bitstream output format, meaning:
 		0 - Raw
@@ -107,7 +116,7 @@
 int FAACAPI faacEncEncode(faacEncHandle hEncoder,
 						  short *inputBuffer,
 						  unsigned int samplesInput,
-						  void *outputBuffer,
+						  unsigned char *outputBuffer,
 						  unsigned int bufferSize
 						  );