ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf

上传人:figureissue185 文档编号:741804 上传时间:2019-01-11 格式:PDF 页数:20 大小:162.78KB
下载 相关 举报
ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf_第1页
第1页 / 共20页
ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf_第2页
第2页 / 共20页
ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf_第3页
第3页 / 共20页
ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf_第4页
第4页 / 共20页
ETSI TS 126 173-2016 Digital cellular telecommunications system (Phase 2+) (GSM) Universal Mobile Telecommunications System (UMTS) LTE ANSI-C code for the Adaptive Multi-Rate - Wid.pdf_第5页
第5页 / 共20页
点击查看更多>>
资源描述

1、 ETSI TS 1Digital cellular telecommUniversal Mobile TelANSI-C code for the Ada(3GPP TS 26.1floppy3TECHNICAL SPECIFICATION126 173 V13.1.0 (2016mmunications system (Phase elecommunications System (LTE; daptive Multi-Rate - Widebandspeech codec .173 version 13.1.0 Release 1316-04) e 2+) (GSM); (UMTS);

2、nd (AMR-WB) 13) ETSI ETSI TS 126 173 V13.1.0 (2016-04)13GPP TS 26.173 version 13.1.0 Release 13Reference RTS/TSGS-0426173vd10 Keywords GSM,LTE,UMTS ETSI 650 Route des Lucioles F-06921 Sophia Antipolis Cedex - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N 348 623 562 00017 - NAF 742 C

3、 Association but non lucratif enregistre la Sous-Prfecture de Grasse (06) N 7803/88 Important notice The present document can be downloaded from: http:/www.etsi.org/standards-search The present document may be made available in electronic versions and/or in print. The content of any electronic and/o

4、r print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the print of the Portable Document Format (PDF) version k

5、ept on a specific network drive within ETSI Secretariat. Users of the present document should be aware that the document may be subject to revision or change of status. Information on the current status of this and other ETSI documents is available at http:/portal.etsi.org/tb/status/status.asp If yo

6、u find errors in the present document, please send your comment to one of the following services: https:/portal.etsi.org/People/CommiteeSupportStaff.aspx Copyright Notification No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and mic

7、rofilm except as authorized by written permission of ETSI. The content of the PDF version shall not be modified without the written authorization of ETSI. The copyright and the foregoing restriction extend to reproduction in all media. European Telecommunications Standards Institute 2016. All rights

8、 reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI logo are Trade Marks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are Trade Marks of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. GSM and the GSM logo are Trade Marks registered and own

9、ed by the GSM Association. ETSI ETSI TS 126 173 V13.1.0 (2016-04)23GPP TS 26.173 version 13.1.0 Release 13Intellectual Property Rights IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential IPRs, if any, is public

10、ly available for ETSI members and non-members, and can be found in ETSI SR 000 314: “Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in respect of ETSI standards“, which is available from the ETSI Secretariat. Latest updates are available on the ETSI W

11、eb server (https:/ipr.etsi.org/). Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web server) which are, or may be, or ma

12、y become, essential to the present document. Foreword This Technical Specification (TS) has been produced by ETSI 3rd Generation Partnership Project (3GPP). The present document may refer to technical specifications or reports using their 3GPP identities, UMTS identities or GSM identities. These sho

13、uld be interpreted as being references to the corresponding ETSI deliverables. The cross reference between GSM, UMTS, 3GPP and ETSI identities can be found under http:/webapp.etsi.org/key/queryform.asp. Modal verbs terminology In the present document “shall“, “shall not“, “should“, “should not“, “ma

14、y“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of provisions). “must“ and “must not“ are NOT allowed in ETSI deliverables except when used in direct citation. ETSI ETSI TS 126 173 V13

15、.1.0 (2016-04)33GPP TS 26.173 version 13.1.0 Release 13Contents Intellectual Property Rights 2g3Foreword . 2g3Modal verbs terminology 2g3Foreword . 4g31 Scope 5g32 References 5g33 Definitions and abbreviations . 5g33.1 Definitions 5g33.2 Abbreviations . 5g34 C code structure 6g34.1 Contents of the C

16、 source code 6g34.2 Program execution 6g34.3 Code hierarchy . 6g34.5 Variables, constants and tables . 10g34.5.1 Description of constants used in the C-code . 11g34.5.2 Description of fixed tables used in the C-code . 11g34.5.3 Static variables used in the C-code . 12g35 Homing procedure 15g36 File

17、formats 15g36.1 Speech file (encoder input / decoder output) 15g36.2 Mode control file (encoder input) . 15g36.3 Parameter bitstream file (encoder output / decoder input) . 16g3Default 3GPP format: 16g3ITU format (activated with command line parameter -itu) . 17g3MIME/file storage format (activated

18、with command line parameter -mime) 17g3Annex A (informative): Change history . 18g3History 19g3ETSI ETSI TS 126 173 V13.1.0 (2016-04)43GPP TS 26.173 version 13.1.0 Release 13Foreword This Technical Specification (TS) has been produced by the 3rdGeneration Partnership Project (3GPP). The contents of

19、the present document are subject to continuing work within the TSG and may change following formal TSG approval. Should the TSG modify the contents of the present document, it will be re-released by the TSG with an identifying change of release date and an increase in version number as follows: Vers

20、ion x.y.z where: x the first digit: 1 presented to TSG for information; 2 presented to TSG for approval; 3 or greater indicates TSG approved document under change control. y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections, updates, etc. z the th

21、ird digit is incremented when editorial only changes have been incorporated in the document. ETSI ETSI TS 126 173 V13.1.0 (2016-04)53GPP TS 26.173 version 13.1.0 Release 131 Scope The present document contains an electronic copy of the ANSI-C code for the Adaptive Multi-Rate Wideband codec. The ANSI

22、-C code is necessary for a bit exact implementation of the Adaptive Multi Rate Wideband speech transcoder (3GPP TS 26.190 2), Voice Activity Detection (3GPP TS 26.194 6), comfort noise (3GPP TS 26.192 4), source controlled rate operation (3GPP TS 26.193 5) and example solutions for substituting and

23、muting of lost frames (3GPP TS 26.191 3). 2 References The following documents contain provisions which, through reference in this text, constitute provisions of the present document. References are either specific (identified by date of publication, edition number, version number, etc.) or non-spec

24、ific. For a specific reference, subsequent revisions do not apply. For a non-specific reference, the latest version applies. In the case of a reference to a 3GPP document (including a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same Release

25、 as the present document. 1 3GPP TS 26.174: “AMR Wideband Speech Codec; Test sequences“. 2 3GPP TS 26.190: “AMR Wideband Speech Codec; Speech transcoding“. 3 3GPP TS 26.191: “AMR Wideband Speech Codec; Substitution and muting of lost frames“. 4 3GPP TS 26.192: “AMR Wideband Speech Codec; Comfort noi

26、se aspects“. 5 3GPP TS 26.193: “AMR Wideband Speech Codec; Source controlled rate operation“. 6 3GPP TS 26.194: “AMR Wideband Speech Codec; Voice Activity Detection“. 7 RFC 3267 A Real-Time Transport Protocol (RTP) Payload Format and File Storage Format for Adaptive Multi-Rate (AMR) and Adaptive Mul

27、ti-Rate Wideband (AMR-WB) Audio Codecs, June 2002. 3 Definitions and abbreviations 3.1 Definitions Definition of terms used in the present document, can be found in 3GPP TS 26.190 2, 3GPP TS 26.191 3, 3GPP TS 26.192 4, 3GPP TS 26.193 5 and 3GPP TS 26.194 6. 3.2 Abbreviations For the purpose of the p

28、resent document, the following abbreviations apply: AMR-WB Adaptive Multi-Rate Wideband ANSI American National Standards Institute ETS European Telecommunication Standard GSM Global System for Mobile communications I/O Input/OutputRAM Random Access Memory ROM Read Only Memory ETSI ETSI TS 126 173 V1

29、3.1.0 (2016-04)63GPP TS 26.173 version 13.1.0 Release 134 C code structure This clause gives an overview of the structure of the bit-exact C code and provides an overview of the contents and organization of the C code attached to this document. The C code has been verified on the following systems:

30、- Sun Microsystems workstations and GNU gcc compiler - HP workstations and cc compiler - IBM PC compatible computers with Windows NT4 operating system and GNU gcc compiler. ANSI-C was selected as the programming language because portability was desirable. 4.1 Contents of the C source code The C code

31、 distribution has all files in the root level. The distributed files with suffix “c“ contain the source code and the files with suffix “h“ are the header files. The ROM data is contained mostly in files with suffix “tab“. The C code distribution also contains one speech coder installation verificati

32、on data file, “spch_dos.inp“. The reference encoder output file is named “spch_dos.cod“, the reference decoder input file is named “spch_dos.dec“ and the reference decoder output file is named “spch_dos.out“. These four files are formatted such that they are correct for an IBM PC/AT compatible compu

33、ter. The same files with reversed byte order of the 16 bit words are named “spch_unx.inp“, “spch_unx.cod“, “spch_unx.dec“ and “spch_unx.out“, respectively. Final verification is to be performed using the GSM Adaptive Multi-Rate Wideband test sequences described in 3GPP TS 26.174 1. Makefiles are pro

34、vided for the platforms in which the C code has been verified (listed above). Once the software is installed, this directory will have a compiled version of encoder and decoder (the bit-exact C executables of the speech codec) and all the object files. 4.2 Program execution The GSM Adaptive Multi-Ra

35、te Wideband codec is implemented in two programs: - (encoder) speech encoder; - (decoder) speech decoder. The programs should be called like: - encoder encoder options ; - decoder . The speech files contain 16-bit linear encoded PCM speech samples and the parameter files contain encoded speech data

36、and some additional flags. The encoder and decoder options will be explained by running the applications without input arguments. See the file readme.txt for more information on how to run the encoder and decoder programs. 4.3 Code hierarchy Tables 1 to 3 are call graphs that show the functions used

37、 in the speech codec, including the functions of VAD, DTX, and comfort noise generation. ETSI ETSI TS 126 173 V13.1.0 (2016-04)73GPP TS 26.173 version 13.1.0 Release 13Each column represents a call level and each cell a function. The functions contain calls to the functions in rightwards neighbourin

38、g cells. The time order in the call graphs is from the top downwards as the processing of a frame advances. All standard C functions: printf(), fwrite(), etc. have been omitted. Also, no basic operations (add(), L_add(), mac(), etc.) or double precision extended operations (e.g. L_Extract() appear i

39、n the graphs. The initialization of the static RAM (i.e. calling the _init functions) is also omitted. The basic operations are not counted as extending the depth, therefore the deepest level in this software is level 6. The encoder call graph is broken down into two separate call graphs, Table 1 to

40、 2. ETSI ETSI TS 126 173 V13.1.0 (2016-04)83GPP TS 26.173 version 13.1.0 Release 13Table 1: Speech encoder call structure coder Copy Decim_12k8 Down_samp Interpol (function) Copy Set_zero HP50_12k8Scale_sigwb_vad Filter_bank Filter5 Filter3 Level_calculationvad_decision Ilog2Noise_estimate_update up

41、date_cntrl hangover_additionEstimate_Speech tx_dtx_handler Parm_serialAutocorr Lag_window LevinsonAz_isp Chebps2 Int_isp Isp_Az Get_isp_pol Isp_isf Gp_clip_test_isf Weight_a Residu Deemph2 LP_Decim2 Scale_mem_Hp_wsp Pitch_med_ol Hp_wsp Isqrt_n wb_vad_tone_detection Med_olag median5 dtx_buffer Copy d

42、tx_enc Find_frame_indices Aver_isf_history Qisf_ns Sub_VQ Disf_ns Reorder_isf Parm_serialPow2Random Dot_product12 Isqrt_n Isf_isp Isp_Az Get_isp_pol Synthesis Copy Syn_filt_32 Deemph_32 HP50_12k8Random Scale_sig Dot_product12 Isqrt_nHP400_12k8Weight_a Syn_filt Filt_6k_7k Reset_encoder Set_zero Init_

43、gp_clipt_Phase_dispersion Set_zeroQpisf_2s_36b VQ_stage1 Sub_VQ Dpisf_2s_36b Reorder_isf Qpisf_2s_46b VQ_stage1 Sub_VQ Dpisf_2s_46b Reorder_isfSyn_filt Preemph2itch_fr4 Norm_Corr Convolve Isqrt_n Interpol_4 Gp_clip Pred_lt4ConvolveG_pitch Dot_product12 Updt_tar PreemphPit_shrp Cor_h_x ACELP_2t64_fx

44、Dot_product12 Isqrt_n ACELP_4t64_fx See Table 2 Q_gain2 Dot_product12 Pow2Gp_clip_test_gain_pit voice_factor Dot_product12 ETSI ETSI TS 126 173 V13.1.0 (2016-04)93GPP TS 26.173 version 13.1.0 Release 13Table 2: ACELP_4t64_fx call structure ACELP_4t64_fx Dot_product12 Isqrt_ncor_h_vecsearch_ixiy quan

45、t_1p_N1 quant_2p_2N1quant_3p_3N1 quant_2p_2N1 quant_1p_N1quant_4p_4N quant_4p_4N1 Quant_2p_2N1 quant_1p_N1 quant_3p_3N1 Quant_2p_2N1Quant_1p_N1quant_2p_2N1 quant_5p_5N quant_3p_3N1 Quant_2p_2N1Quant_1p_N1quant_2p_2N1 quant_6p_6N_2 quant_5p_5N Quant_3p_3N1 quant_2p_2N1 Quant_1p_N1quant_2p_2N1quant_1p

46、_N1 quant_4p_4N quant_4p_4N1 quant_2p_2N1 quant_1p_N1quant_3p_3N1 quant_2p_2N1quant_1p_N1quant_2p_2N1 quant_2p_2N1 quant_3p_3N1 quant_2p_2N1Quant_1p_N1ETSI ETSI TS 126 173 V13.1.0 (2016-04)103GPP TS 26.173 version 13.1.0 Release 13Table 3: Speech decoder call structure decoder Rx_dtx_handler Dtx_dec

47、 Copy Disf_ns Reorder_isf Serial_parm Pow2RandomDot_product12 Isqrt_n Serial_parm Isf_p Isp_Az Get_isp_pol Copy Synthesis Copy Syn_filt_32 Deemph_32 HP50_12k8 Oversamp_16k Copy Up_samp Interpol Random Scale_sig Dot_product12Isqrt_n HP400_12k8 Isf_Extrapolation Isf_isp Isp_Az Get_isp_polWeight_a Syn_

48、filt Filt_6k_7k Copy Filt_7k CReset_decoder Set_zero Init_Phase_dispersion Set_zeroDpisf_2s_36b Reorder_isf pisf_2s_46b Reorder_isfInt_isp Isp_Az Get_isp_pol Lagconc insertion_sort InsertRandom Pred_lt4 Random DEC_ACELP_2t64_fx EC_ACELP_4t64_fx dec_1p_N1 add_pulses dec_2p_2N1dec_3p_3N1 Dec_2p_2N1 de

49、c_1p_N1dec_4p_4N dec_4p_4N1 dec_2p_2N1 dec_1p_N1Dec_3p_3N1 Dec_2p_2N1Dec_1p_N1Dec_2p_2N1 dec_5p_5N dec_3p_3N1 Dec_2p_2N1 Dec_1p_N1Dec_2p_2N1 dec_6p_6N_2 Dec_5p_5N dec_3p_3N1 Dec_2p_2N1 Dec_1p_N1dec_2p_2N1 dec_1p_N1 dec_4p_4N dec_4p_4N1 dec_2p_2N1 dec_1p_N1Dec_3p_3N1 Dec_2p_2N1Dec_1p_N1Dec_2p_2N1 dec_2p_2N1 dec_3p_3N1 Dec_2p_2N1 Dec_1p_N1Preemph it_shp D_gain2 Dot_product12 Isqrt_n Median5Pow2Scale_sig voice_factor Dot_product12 Phase_dispersion Set_zeroAgc2 Isqrt

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1