Home | History | Annotate | Download | only in inc
      1 
      2 /*
      3  * Copyright (C) Texas Instruments - http://www.ti.com/
      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  *
     11  * This library is distributed in the hope that it will be useful,
     12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     14  * Lesser General Public License for more details.
     15  *
     16  *
     17  * You should have received a copy of the GNU Lesser General Public
     18  * License along with this library; if not, write to the Free Software
     19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     20  */
     21 /* =============================================================================
     22  *             Texas Instruments OMAP(TM) Platform Software
     23  *  (c) Copyright Texas Instruments, Incorporated.  All Rights Reserved.
     24  *
     25  *  Use of this software is controlled by the terms and conditions found
     26  *  in the license agreement under which this software has been supplied.
     27  * ============================================================================ */
     28 /**
     29  * @file OMX_G726Decoder.h
     30  *
     31  * This is an header file for an audio G726 decoder that is fully
     32  * compliant with the OMX Audio specification.
     33  * This the file that the application that uses OMX would include
     34  * in its code.
     35  *
     36  * @path  $(CSLPATH)\OMAPSW_MPU\linux\audio\src\openmax_il\g726_dec\inc\
     37  *
     38  * @rev 1.0
     39  */
     40 /* --------------------------------------------------------------------------- */
     41 
     42 
     43 #ifndef OMX_G726DECODER_H
     44 #define OMX_G726DECODER_H
     45 
     46 
     47 #ifdef UNDER_CE
     48 #include <windows.h>
     49 #include <oaf_osal.h>
     50 #include <omx_core.h>
     51 #include <stdlib.h>
     52 #else
     53 #include <pthread.h>
     54 #endif
     55 
     56 #include <OMX_Component.h>
     57 
     58 /*#define G726DEC_DEBUG  */    /* See all debug statement of the component */
     59 /* #define SWAT_ANALYSIS */   /* Enable to use SWAT functionality */
     60 /*#define G726DEC_MEMDETAILS  */ /* See memory details of the component */
     61 /* #define G726DEC_BUFDETAILS */  /* See buffers details of the component */
     62 /*#define G726DEC_STATEDETAILS  */ /* See all state transitions of the component */
     63 /*#define G726DEC_SWATDETAILS  */  /* See SWAT debug statement of the component */
     64 
     65 
     66 #define MAX_NUM_OF_BUFS 10 /* Max number of buffers used */
     67 #define G726D_NUM_INPUT_BUFFERS 1  /* Default number of input buffers */
     68 #define G726D_NUM_OUTPUT_BUFFERS 2 /* Default number of output buffers */
     69 #define G726D_INPUT_BUFFER_SIZE  20 /* Default size of input buffer */
     70 #define G726D_OUTPUT_BUFFER_SIZE 160 /* Default size of output buffer */
     71 
     72 #define NUM_OF_PORTS 2 /* Number of ports of component */
     73 
     74 #define INVALID_SAMPLING_FREQ  51
     75 
     76 /* ======================================================================= */
     77 /** OMX_G726DEC_INDEXAUDIOTYPE  Defines the custom configuration settings
     78  *                              for the component
     79  *
     80  *  @param  OMX_IndexCustomG726DecModeDasfConfig      Sets the DASF mode
     81  *
     82  */
     83 /*  ==================================================================== */
     84 typedef enum OMX_G726DEC_INDEXAUDIOTYPE {
     85     OMX_IndexCustomG726DecModeDasfConfig = OMX_IndexIndexVendorStartUnused + 1,
     86     OMX_IndexCustomG726DecHeaderInfoConfig
     87 }OMX_G726DEC_INDEXAUDIOTYPE;
     88 
     89 
     90 /* ============================================================================== * */
     91 /** G726D_COMP_PORT_TYPE  describes the input and output port of indices of the
     92  * component.
     93  *
     94  * @param  G726D_INPUT_PORT  Input port index
     95  *
     96  * @param  G726D_OUTPUT_PORT Output port index
     97  */
     98 /* ============================================================================ * */
     99 typedef enum G726D_COMP_PORT_TYPE {
    100     G726D_INPUT_PORT = 0,
    101     G726D_OUTPUT_PORT
    102 }G726D_COMP_PORT_TYPE;
    103 
    104 #endif /* OMX_G726DECODER_H */
    105