shithub: aacenc

Download patch

ref: 5cfc2e0195c33790b8e0a404f6374e8eea6999cf
parent: 132c3cb00a9bd2ca54c407fa6f1c72247199db91
author: knik <knik>
date: Mon Aug 19 12:35:20 EDT 2002

added static declarations

--- a/libfaac/bitstream.c
+++ b/libfaac/bitstream.c
@@ -24,7 +24,7 @@
 Copyright (c) 1997.
 **********************************************************************/
 /*
- * $Id: bitstream.c,v 1.23 2001/12/07 08:40:52 menno Exp $
+ * $Id: bitstream.c,v 1.24 2002/08/19 16:35:20 knik Exp $
  */
 
 #include <stdlib.h>
@@ -35,6 +35,71 @@
 #include "bitstream.h"
 #include "ltp.h"
 #include "util.h"
+
+static int CountBitstream(faacEncHandle hEncoder,
+                          CoderInfo *coderInfo,
+                          ChannelInfo *channelInfo,
+                          BitStream *bitStream,
+                          int numChannels);
+static int WriteADTSHeader(faacEncHandle hEncoder,
+                           BitStream *bitStream,
+                           int writeFlag);
+static int WriteCPE(CoderInfo *coderInfoL,
+                    CoderInfo *coderInfoR,
+                    ChannelInfo *channelInfo,
+                    BitStream* bitStream,
+                    int objectType,
+                    int writeFlag);
+static int WriteSCE(CoderInfo *coderInfo,
+                    ChannelInfo *channelInfo,
+                    BitStream *bitStream,
+                    int objectType,
+                    int writeFlag);
+static int WriteLFE(CoderInfo *coderInfo,
+                    ChannelInfo *channelInfo,
+                    BitStream *bitStream,
+                    int objectType,
+                    int writeFlag);
+static int WriteICSInfo(CoderInfo *coderInfo,
+                        BitStream *bitStream,
+                        int objectType,
+                        int common_window,
+                        int writeFlag);
+static int WriteICS(CoderInfo *coderInfo,
+                    BitStream *bitStream,
+                    int commonWindow,
+                    int objectType,
+                    int writeFlag);
+static int WriteLTPPredictorData(CoderInfo *coderInfo,
+                                 BitStream *bitStream,
+                                 int writeFlag);
+static int WritePredictorData(CoderInfo *coderInfo,
+                              BitStream *bitStream,
+                              int writeFlag);
+static int WritePulseData(CoderInfo *coderInfo,
+                          BitStream *bitStream,
+                          int writeFlag);
+static int WriteTNSData(CoderInfo *coderInfo,
+                        BitStream *bitStream,
+                        int writeFlag);
+static int WriteGainControlData(CoderInfo *coderInfo,
+                                BitStream *bitStream,
+                                int writeFlag);
+static int WriteSpectralData(CoderInfo *coderInfo,
+                             BitStream *bitStream,
+                             int writeFlag);
+static int WriteAACFillBits(BitStream* bitStream,
+                            int numBits,
+                            int writeFlag);
+static int FindGroupingBits(CoderInfo *coderInfo);
+static long BufferNumBit(BitStream *bitStream);
+static int WriteByte(BitStream *bitStream,
+                     unsigned long data,
+                     int numBit);
+static int ByteAlign(BitStream* bitStream,
+                     int writeFlag);
+
+
 
 int WriteBitstream(faacEncHandle hEncoder,
                    CoderInfo *coderInfo,