OSDN Git Service

original
[gb-231r1-is01/Gingerbread_2.3.3_r1_IS01.git] / hardware / ti / omap3 / omx / audio / src / openmax_il / g722_enc / inc / OMX_G722Encoder.h
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_G722Encoder.h
30  *
31  * This header file contains data and function prototypes for G722 ENCODER OMX 
32  *
33  * @path  $(OMAPSW_MPU)\linux\audio\src\openmax_il\g722_enc\inc
34  *
35  * @rev  0.1
36  */
37 /* ----------------------------------------------------------------------------- 
38  *! 
39  *! Revision History 
40  *! ===================================
41  *! Date         Author(s)            Version  Description
42  *! ---------    -------------------  -------  ---------------------------------
43  *! 08-Mar-2007  A.Donjon             0.1      Code update for G722 ENCODER
44  *! 
45  *!
46  * ================================================================================= */
47 #ifndef OMX_G722ENCODER_H
48 #define OMX_G722ENCODER_H
49
50 #include "LCML_DspCodec.h"
51 #include <OMX_Component.h>
52 #include <pthread.h>
53
54 /* ======================================================================= */
55 /** OMX_G722ENC_INDEXAUDIOTYPE  Defines the custom configuration settings
56  *                              for the component
57  *
58  *  @param  OMX_IndexCustomG722EncModeDasfConfig      Sets the DASF mode
59  *
60  *  @param  OMX_IndexCustomG722EncModeTeeModeConfig   Sets the TEE mode
61  *  
62  */
63 /*  ==================================================================== */
64 typedef enum OMX_G722ENC_INDEXAUDIOTYPE {
65     OMX_IndexCustomG722EncModeConfig = 0xFF000001,
66     OMX_IndexCustomG722EncHeaderInfoConfig,
67     OMX_IndexCustomG722EncStreamIDConfig,
68     OMX_IndexCustomG722EncDataPath
69 }OMX_G722ENC_INDEXAUDIOTYPE;
70
71
72 /* ======================================================================= */
73 /**
74  * @def    G722ENC_NUM_INPUT_BUFFERS    Component default number of input buffers
75  */
76 /* ======================================================================= */
77 #define G722ENC_NUM_INPUT_BUFFERS 1
78
79
80 /* ======================================================================= */
81 /**
82  * @def    G722ENC_NUM_OUTPUT_BUFFERS    Component default number of output buffers
83  */
84 /* ======================================================================= */
85 #define G722ENC_NUM_OUTPUT_BUFFERS 1
86
87
88 /* ======================================================================= */
89 /**
90  * @def    G722ENC_INPUT_BUFFER_SIZE    Component default input buffer size
91  */
92 /* ======================================================================= */
93 #define G722ENC_INPUT_BUFFER_SIZE 320
94
95 /* ======================================================================= */
96 /**
97  * @def    G722ENC_OUTPUT_BUFFER_SIZE_BYTES     Component default output buffer size
98  */
99 /* ======================================================================= */
100 #define G722ENC_OUTPUT_BUFFER_SIZE_BYTES 320
101
102
103 #endif