Home | History | Annotate | Download | only in aacdec
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 /*
     19 
     20  Pathname: write_output.h
     21 
     22 ------------------------------------------------------------------------------
     23  REVISION HISTORY
     24 
     25  Description: Change function prototype.
     26 
     27  Description: Remove CR/LF from unknown editor
     28 
     29  Who:                                       Date:
     30  Description:
     31 
     32 ------------------------------------------------------------------------------
     33  INCLUDE DESCRIPTION
     34 
     35  Header file for the declaration of the function write_output()
     36 
     37 ------------------------------------------------------------------------------
     38 */
     39 
     40 /*----------------------------------------------------------------------------
     41 ; CONTINUE ONLY IF NOT ALREADY DEFINED
     42 ----------------------------------------------------------------------------*/
     43 #ifndef WRITE_OUTPUT_H
     44 #define WRITE_OUTPUT_H
     45 
     46 #include "pv_audio_type_defs.h"
     47 
     48 #ifdef __cplusplus
     49 extern "C"
     50 {
     51 #endif
     52 
     53     /*----------------------------------------------------------------------------
     54     ; INCLUDES
     55     ----------------------------------------------------------------------------*/
     56 #include "pvmp4audiodecoder_api.h"
     57 
     58     /*----------------------------------------------------------------------------
     59     ; MACROS
     60     ; Define module specific macros here
     61     ----------------------------------------------------------------------------*/
     62 
     63     /*----------------------------------------------------------------------------
     64     ; DEFINES
     65     ; Include all pre-processor statements here.
     66     ----------------------------------------------------------------------------*/
     67 
     68     /*----------------------------------------------------------------------------
     69     ; EXTERNAL VARIABLES REFERENCES
     70     ; Declare variables used in this module but defined elsewhere
     71     ----------------------------------------------------------------------------*/
     72 
     73     /*----------------------------------------------------------------------------
     74     ; SIMPLE TYPEDEF'S
     75     ----------------------------------------------------------------------------*/
     76 
     77     /*----------------------------------------------------------------------------
     78     ; ENUMERATED TYPEDEF'S
     79     ----------------------------------------------------------------------------*/
     80 
     81     /*----------------------------------------------------------------------------
     82     ; STRUCTURES TYPEDEF'S
     83     ----------------------------------------------------------------------------*/
     84 
     85     /*----------------------------------------------------------------------------
     86     ; GLOBAL FUNCTION DEFINITIONS
     87     ; Function Prototype declaration
     88     ----------------------------------------------------------------------------*/
     89 
     90 #ifndef AAC_PLUS
     91 
     92     Int write_output(
     93         const Int16   sourceLeft[],
     94         const Int16   sourceRight[],
     95         Int16   outputBuffer[],
     96         const Int     sourcePointsPerChannel,
     97         const Int     sourceChannels,
     98         const Int     requestedChannels,
     99         const tPVMP4AudioDecoderOutputFormat  outputFormat);
    100 
    101 #else
    102 
    103     Int write_output(
    104         const Int16   sourceLeft[],
    105         const Int16   sourceRight[],
    106         Int16   outputBuffer[],
    107         const Int     sourcePointsPerChannel,
    108         const Int     sourceChannels,
    109         const Int     requestedChannels,
    110 #ifdef PARAMETRICSTEREO
    111         Int32 sbrEnablePS,
    112 #endif
    113         const tPVMP4AudioDecoderOutputFormat  outputFormat);
    114 
    115 #ifdef AAC_32_BIT_INTERFACE
    116 
    117     Int write_output_1(
    118         const Int32   sourceLeft[],
    119         const Int32   sourceRight[],
    120         Int16   outputBuffer[],
    121         const Int     sourcePointsPerChannel,
    122         const Int     sourceChannels,
    123         const Int     requestedChannels,
    124         const tPVMP4AudioDecoderOutputFormat  outputFormat);
    125 #endif
    126 
    127 #endif
    128 
    129     /*----------------------------------------------------------------------------
    130     ; END
    131     ----------------------------------------------------------------------------*/
    132 #ifdef __cplusplus
    133 }
    134 #endif
    135 
    136 #endif /* WRITE_OUTPUT_H */
    137 
    138 
    139