"Fossies" - the Fresh Open Source Software Archive

Member "faac-1_30/include/faac.h" (16 Oct 2019, 2486 Bytes) of package /linux/misc/faac-1_30.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "faac.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 1.28_vs_1.29.9.2.

    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.38 2012/03/01 18:34:17 knik Exp $
   20  */
   21 
   22 #ifndef _FAAC_H_
   23 #define _FAAC_H_
   24 
   25 #ifdef __cplusplus
   26 extern "C" {
   27 #endif /* __cplusplus */
   28 
   29 
   30 #if !defined(FAACAPI) && defined(__GNUC__) && (__GNUC__ >= 4)
   31 # if defined(_WIN32)
   32 #  define FAACAPI __stdcall __declspec(dllexport)
   33 # else
   34 #  define FAACAPI __attribute__((visibility("default")))
   35 # endif
   36 #endif
   37 #ifndef FAACAPI
   38 #  define FAACAPI
   39 #endif
   40 
   41 #pragma pack(push, 1)
   42 
   43 typedef struct {
   44   void *ptr;
   45   char *name;
   46 }
   47 psymodellist_t;
   48 
   49 #include <stdint.h>
   50 #include "faaccfg.h"
   51 
   52 
   53 typedef void *faacEncHandle;
   54 
   55 /*
   56     Allows an application to get FAAC version info. This is intended
   57     purely for informative purposes.
   58 
   59     Returns FAAC_CFG_VERSION.
   60 */
   61 int FAACAPI faacEncGetVersion(char **faac_id_string,
   62                   char **faac_copyright_string);
   63 
   64 
   65 faacEncConfigurationPtr FAACAPI
   66   faacEncGetCurrentConfiguration(faacEncHandle hEncoder);
   67 
   68 
   69 int FAACAPI faacEncSetConfiguration(faacEncHandle hEncoder,
   70                     faacEncConfigurationPtr config);
   71 
   72 
   73 faacEncHandle FAACAPI faacEncOpen(unsigned long sampleRate,
   74                   unsigned int numChannels,
   75                   unsigned long *inputSamples,
   76                                   unsigned long *maxOutputBytes
   77                                  );
   78 
   79 int FAACAPI faacEncGetDecoderSpecificInfo(faacEncHandle hEncoder, unsigned char **ppBuffer,
   80                       unsigned long *pSizeOfDecoderSpecificInfo);
   81 
   82 
   83 int FAACAPI faacEncEncode(faacEncHandle hEncoder, int32_t * inputBuffer, unsigned int samplesInput,
   84              unsigned char *outputBuffer,
   85              unsigned int bufferSize);
   86 
   87 
   88 int FAACAPI faacEncClose(faacEncHandle hEncoder);
   89 
   90 
   91 
   92 #pragma pack(pop)
   93 
   94 #ifdef __cplusplus
   95 }
   96 #endif /* __cplusplus */
   97 
   98 #endif /* _FAAC_H_ */