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_AacEncoder.h
     30 *
     31 * This is an header file for an audio AAC encoder 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)\
     37 *
     38 * @rev 1.0
     39 */
     40 /* --------------------------------------------------------------------------- */
     41 
     42 
     43 #ifndef OMX_AACENCODER_H
     44 #define OMX_AACENCODER_H
     45 
     46 
     47 #include "LCML_DspCodec.h"
     48 #include <OMX_Component.h>
     49 #include <pthread.h>
     50 
     51 /*
     52  *     M A C R O S
     53  */
     54 #define AACENC_TIMEOUT (1000) /* millisecs, default timeout used to come out of blocking calls*/
     55 #define NUM_AACENC_INPUT_BUFFERS 8
     56 #define NUM_AACENC_INPUT_BUFFERS_DASF 2
     57 #define NUM_AACENC_OUTPUT_BUFFERS 8
     58 #define INPUT_AACENC_BUFFER_SIZE 8192
     59 #define INPUT_AACENC_BUFFER_SIZE_DASF 8192
     60 #define OUTPUT_AACENC_BUFFER_SIZE 9200
     61 #define SAMPLING_FREQUENCY 44100
     62 #define MAX_NUM_OF_BUFS 10
     63 #define NUM_OF_PORTS 2
     64 
     65 typedef enum OMX_AACENC_INDEXAUDIOTYPE {
     66     OMX_IndexCustomAacEncHeaderInfoConfig = 0xFF000001,
     67     OMX_IndexCustomAacEncStreamIDConfig,
     68     OMX_IndexCustomAacEncFramesPerOutBuf,
     69     OMX_IndexCustomAacEncDataPath,
     70     OMX_IndexCustomDebug
     71 }OMX_AACENC_INDEXAUDIOTYPE;
     72 
     73 #endif /* OMX_AACENCODER_H */
     74 
     75 
     76