G729AI

所属分类:多媒体编程
开发工具:Visual C++
文件大小:158KB
下载次数:27
上传日期:2008-04-21 19:18:37
上 传 者亮我
说明:  G729.1 编解码 非常好 example为例子
(G729.1 codec very good example as an example)

文件列表:
G729AI (0, 2003-12-13)
G729AI\acelp_cp.c (87341, 2003-10-30)
G729AI\basic_op.c (103970, 2003-10-30)
G729AI\basic_op.h (3471, 2003-10-30)
G729AI\bitscp.c (11481, 2003-10-30)
G729AI\bitstrea.txt (8833, 2003-10-30)
G729AI\bwfw.c (11771, 2003-10-30)
G729AI\bwfwfunc.c (7645, 2003-10-30)
G729AI\calcexc.c (10814, 2003-10-30)
G729AI\codld8cp.c (40549, 2003-10-30)
G729AI\dacelpcp.c (7315, 2003-10-30)
G729AI\declagcp.c (3828, 2003-10-30)
G729AI\decld8cp.c (25485, 2003-10-30)
G729AI\dec_sid.c (5931, 2003-10-30)
G729AI\degaincp.c (10362, 2003-10-30)
G729AI\dspfunc.c (8120, 2003-10-30)
G729AI\dtx.c (13422, 2003-10-30)
G729AI\dtx.h (4821, 2003-10-30)
G729AI\example (0, 2003-12-13)
G729AI\example\coderi.c (9024, 2003-10-31)
G729AI\example\decode.dsp (4392, 2003-10-30)
G729AI\example\decoderi.c (10961, 2003-10-31)
G729AI\example\decoderi.txt (3721, 2003-10-30)
G729AI\example\encode.dsp (4394, 2003-10-30)
G729AI\example\example.dsp (4232, 2003-10-30)
G729AI\example\ser.dat (97280, 2003-10-31)
G729AI\filtere.c (4378, 2003-10-30)
G729AI\G729AI.dsp (6096, 2003-10-30)
G729AI\G729AI.dsw (1099, 2003-10-30)
G729AI\gainpred.c (7521, 2003-10-30)
G729AI\ld8cp.h (22680, 2003-10-30)
G729AI\ld8k.h (31460, 2003-10-30)
G729AI\lpccp.c (26166, 2003-10-30)
G729AI\lpcfunc.c (11718, 2003-10-30)
G729AI\lspdece.c (3852, 2003-10-30)
G729AI\lspgetqe.c (7002, 2003-10-30)
G729AI\Makefile (1683, 2003-10-30)
G729AI\mus_dtct.c (6456, 2003-10-30)
G729AI\octet.h (680, 2003-10-30)
G729AI\oper_32b.c (12262, 2003-10-30)
... ...

1 - TITLE --------- /* ITU-T G.729 Annex I - Reference C code for fixed point implementation of G.729 CS-ACELP at *** kbit/s 8 kbit/s and 11.8 kb/s with DTX functionality (integration of Annexes B, D and E) Version 1.1 of october 1999 */ 2 - VERSION ----------- This is version 1.1 ITU-T G.729/Annex I was approved on 02/2000 3 - COPYRIGHT AND INTELLECTUAL PROPERTY --------------------------------------- This software package is provided as part of ITU-T Recommendation G.729 Annex I. ITU-T G.729 Annex I fixed point ANSI C source code Copyright (C) 1999, AT&T, France Telecom, NTT, University of Sherbrooke, Conexant, Ericsson. All rights reserved. Original Copyright (c) 1995, AT&T, France Telecom, NTT, Universite de Sherbrooke. All rights reserved. + Copyright (c) 1996, AT&T, France Telecom, NTT, Rockwell International, Universite de Sherbrooke. All rights reserved. + Copyright (c) 1997, Ericsson, NTT. All rights reserved. + Copyright (c) 1997, France Telecom, Universite de Sherbrooke. All rights reserved. The copy of the source C code, version 1.1, is given under Copyright of the authors, only for the purpose of establishing the specification of a codec. All rights are reserved. Any other use of the material is prohibited. 4 - SUPPORT ------------ For distribution of update software, please contact: Sales Department ITU Place des Nations CH-1211 Geneve 20 SWITZERLAND email: sales@itu.int For reporting problems, please contact TSB helpdesk service at: TSB Helpdesk service ITU Place des Nations CH-1211 Geneve 20 SWITZERLAND fax: +41 22 730 5853 email: tsbedh@itu.int 5 - TECHNICAL DETAILS --------------------- 5.1 - COMPILATION ----------------- Edit the file typedef.h to comply to your target platform For UNIX systems the following makefiles are provided coderi.mak decoderi.mak Edit the makefiles coderi.mak and decoderi.mak to set the proper options for your system. The command to compile and link all code on a UNIX system is make -f coderi.mak make -f decoderi.mak For other platforms, the *.mak files can be used to work out the compilation procedures. This code has been successfully compiled and run on the following platforms: Platform Operating System Compiler ----------------------------------------------------------------------------- DEC ALPHA OSF/1 DEC OSF/1 cc PC DOS 6.21 Borland 3.1 Watcom 9.6 Microsoft 8 PC Window95 MS Visual C++ 5.0 CYGWIN32 gcc egcs-2.91.57 PC WindowNT4 MS Visual C++ 6.0 HP-UX B.10.01 gcc SGI-IRIX IRIX 5.3 SGI Rel 5.3 cc 5.2 - DESCRIPTION ----------------- This package includes the files needed to build the fixed point version of G.729 annex I codec with lower and higher bit rate extensions at *** kbit/s and 11.8 kbit/s and with dtx functionality It also includes: - the PC executable (coderi.exe and decoderi.exe): - a batch file (test.bat) and testvectors to validate the correct execution of the G.729 annex I (ANSI-C software version 1.1). The binary reference files are in PC format (for more details see readmetv.txt). 5.3 - USAGE ----------- coderi inputfile bitstreamfile dtx_option rate_option decoderi bitstreamfile outputfile The following files are used or generated inputfile 8 kHz sampled data file 16 bit PCM (binary) outputfile 8 kHz sampled data file 16 bit PCM (binary) bitstreamfile binary file containing bitstream The following parameters are used for the encoder dtx_option = 0 dtx disabled (default) = 1 dtx enabled rate_option = 0 : lower rate (*** kb/s) = 1 : G729 (8.0 kb/s) = 2 : higher rate (11.8 kb/s) = file_rate_name : a binary file of 16 bit word containing either 0, 1 or 2 to select the rate on a frame by frame basis the default is 1 (8 kb/s) 5.4 - BITSTREAM FORMAT ---------------------- The bitstream file contains for each 10 ms speech frame, For rate 8 kbit/s, 82 16-bit words or for rate *** kbit/s, 66 16-bit words, or for rate 11.8 kbit/s, 120 16-bit words, or for SID frame, 17(or 18) 16-bit words, or for not transmitted frame, 2 16-bit words. The first word is the synchronization word SYNC_WORD. The second word contains the value serial_size which is 80 for rate 8 kbit/s, *** for rate *** kbit/s, 118 for rate 11.8 kbit/s, 15( or 16) for SID frame, 0 for Non-transmitted frame. For the rate 8 kbit/s, the next 80 words contain the parameters as described in G729 recommendation text. For the other rates, the next "serial_size" words are described in bitstrea.txt. Bitstream information - all parameters start with MSB. The bits are defined as follows: #define SYNC_WORD (short)0x6b21 #define BIT_0 (short)0x007f /* definition of zero-bit in bit-stream */ #define BIT_1 (short)0x0081 /* definition of one-bit in bit-stream */ A bad frame is indicated by setting all "serial_size" bits to zero. Except, for not transmitted frame, where the synchronization word SYNC_WORD is set to (short)0x6B20. --[END]

近期下载者

相关文件


收藏者