Initialize Tizen 2.3
[external/opencore-amr.git] / amrnb / interf_enc.h
1 /* ------------------------------------------------------------------
2  * Copyright (C) 2009 Martin Storsjo
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 #ifndef OPENCORE_AMRNB_INTERF_ENC_H
20 #define OPENCORE_AMRNB_INTERF_ENC_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #ifndef AMRNB_WRAPPER_INTERNAL
27 /* Copied from enc/src/gsmamr_enc.h */
28 enum Mode {
29         MR475 = 0,/* 4.75 kbps */
30         MR515,    /* 5.15 kbps */
31         MR59,     /* 5.90 kbps */
32         MR67,     /* 6.70 kbps */
33         MR74,     /* 7.40 kbps */
34         MR795,    /* 7.95 kbps */
35         MR102,    /* 10.2 kbps */
36         MR122,    /* 12.2 kbps */
37         MRDTX,    /* DTX       */
38         N_MODES   /* Not Used  */
39 };
40 #endif
41
42 void* Encoder_Interface_init(int dtx);
43 void Encoder_Interface_exit(void* state);
44 int Encoder_Interface_Encode(void* state, enum Mode mode, const short* speech, unsigned char* out, int forceSpeech);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif