1 /* ------------------------------------------------------------------
2 * Copyright (C) 2009 Martin Storsjo
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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
14 * See the License for the specific language governing permissions
15 * and limitations under the License.
16 * -------------------------------------------------------------------
19 #ifndef OPENCORE_AMRNB_INTERF_ENC_H
20 #define OPENCORE_AMRNB_INTERF_ENC_H
26 #ifndef AMRNB_WRAPPER_INTERNAL
27 /* Copied from enc/src/gsmamr_enc.h */
29 MR475 = 0,/* 4.75 kbps */
30 MR515, /* 5.15 kbps */
34 MR795, /* 7.95 kbps */
35 MR102, /* 10.2 kbps */
36 MR122, /* 12.2 kbps */
38 N_MODES /* Not Used */
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);