1 2 /* 3 * Copyright 2001-2008 Texas Instruments - http://www.ti.com/ 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 /* ================================================================================ 18 * Texas Instruments OMAP(TM) Platform Software 19 * (c) Copyright Texas Instruments, Incorporated. All Rights Reserved. 20 * 21 * Use of this software is controlled by the terms and conditions found 22 * in the license agreement under which this software has been supplied. 23 * ================================================================================ */ 24 /** 25 * @file G729DecTest.h 26 * 27 * This header file contains data and function prototypes for G729 DECODER OMX tests 28 * 29 * @path $(OMAPSW_MPU)\linux\audio\src\openmax_il\g729_dec\tests 30 * 31 * @rev 0.3 32 */ 33 /* ----------------------------------------------------------------------------- 34 *! 35 *! Revision History 36 *! =================================== 37 *! Date Author(s) Version Description 38 *! --------- ------------------- ------- --------------------------------- 39 *! 05-Jan-2007 A.Donjon 0.1 Creation 40 *! 19-Feb-2007 A.Donjon 0.2 Frame lost parameter 41 *! 08-Jun-2007 A.Donjon 0.3 Variable input buffer size 42 *! 43 *! 44 * ================================================================================= */ 45 /* ------compilation control switches -------------------------*/ 46 47 #define OUTPUT_G729DEC_BUFFER_SIZE 80<<1 /* Output frame size in bytes: 10ms 8kHz 16-bit samples */ 48 #define INPUT_G729DEC_BUFFER_SIZE 11 /* Input buffer size in bytes: 10+1 bytes (1 byte header)*/ 49 50 #define SYNC_WORD 0x6b21 /* BFI untransmitted frame */ 51 52 #define BIT_0 0x007f /* definition of bit 0 in ITU input bit-stream */ 53 #define BIT_1 0x0081 /* definition of bit 1 in ITU input bit-stream */ 54 55 #define SHIFT_CONST 24 /* Shift to get number of packets in input buffer */ 56 57 /* G729 frame size */ 58 #define SPEECH_FRAME_SIZE 80 /* Speech: 80 bits */ 59 #define SID_FRAME_SIZE 15 /* SID: 15 bits */ 60 #define SID_OCTET_FRAME_SIZE 16 /* SID: 16 bits */ 61 62 /* G729 frame type */ 63 #define NO_TX_FRAME_TYPE 0 /* No tx frame */ 64 #define SPEECH_FRAME_TYPE 1 /* Speech Frame flag */ 65 #define SID_FRAME_TYPE 2 /* SID frame flag */ 66 #define ERASURE_FRAME 3 /* Erasure frame flag */ 67 68 #define ITU_INPUT_SIZE 82 /* ITU bitstream 69 bfi+ number of bits in frame + serial bitstream */ 70 71 #define G729SPEECHPACKETSIZE 10 /* G729 speech packet size in bytes */ 72 #define G729SIDPACKETSIZE 2 /* G729 SID packet size in bytes */ 73 74 /**************************************************************** 75 * INCLUDE FILES 76 ****************************************************************/ 77 /* ----- system and platform files ----------------------------*/ 78 /*-------program files ----------------------------------------*/ 79 80 81 /**************************************************************** 82 * PUBLIC DECLARATIONS Defined here, used elsewhere 83 ****************************************************************/ 84 /*--------data declarations -----------------------------------*/ 85 86 /* ===========================================================================*/ 87 /** 88 * Private data that application associates with buffer 89 */ 90 /* ===========================================================================*/ 91 92 93 /*--------function prototypes ---------------------------------*/ 94 95 96 /**************************************************************** 97 * PRIVATE DECLARATIONS Defined here, used only here 98 ****************************************************************/ 99 /*--------data declarations -----------------------------------*/ 100 101 /*--------function prototypes ---------------------------------*/ 102 103 104 105 /*--------macros ----------------------------------------------*/ 106