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

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

1、 ETSI TS 126 173 V14.1.0 (2018-01) Digital cellular telecommunications system (Phase 2+) (GSM); Universal Mobile Telecommunications System (UMTS); LTE; ANSI-C code for the Adaptive Multi-Rate - Wideband (AMR-WB) speech codec (3GPP TS 26.173 version 14.1.0 Release 14) floppy3TECHNICAL SPECIFICATION E

2、TSI ETSI TS 126 173 V14.1.0 (2018-01)13GPP TS 26.173 version 14.1.0 Release 14Reference RTS/TSGS-0426173ve10 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 Association but

3、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/or print versions

4、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 kept on a specific

5、 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 https:/portal.etsi.org/TB/ETSIDeliverableStatus.aspx If you find

6、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 microfilm

7、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. ETSI 2018. All rights reserved. DECTTM, PLUGTESTSTM, UMTSTMand the ETSI

8、 logo are trademarks of ETSI registered for the benefit of its Members. 3GPPTM and LTE are trademarks of ETSI registered for the benefit of its Members and of the 3GPP Organizational Partners. oneM2M logo is protected for the benefit of its Members. GSM and the GSM logo are trademarks registered and

9、 owned by the GSM Association. ETSI ETSI TS 126 173 V14.1.0 (2018-01)23GPP TS 26.173 version 14.1.0 Release 14Intellectual Property Rights Essential patents IPRs essential or potentially essential to the present document may have been declared to ETSI. The information pertaining to these essential I

10、PRs, if any, is publicly 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 a

11、vailable on the ETSI Web 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

12、 are, or may be, or may become, essential to the present document. Trademarks The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners. ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and co

13、nveys no right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does not constitute an endorsement by ETSI of products, services or organizations associated with those trademarks. Foreword This Technical Specification (TS) has been produced by E

14、TSI 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 should be interpreted as being references to the corresponding ETSI deliverables. The cross reference between GSM

15、, 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“, “may“, “need not“, “will“, “will not“, “can“ and “cannot“ are to be interpreted as described in clause 3.2 of the

16、 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 V14.1.0 (2018-01)33GPP TS 26.173 version 14.1.0 Release 14Contents Intellectual Property Rights 2g3Foreword . 2g3

17、Modal 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 source code 6g34.2 Program execution 6g34.3 Code hierarchy . 6g34.5 Variables, constants and tables . 10g34.5

18、.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 . 13g35 Homing procedure 17g36 File formats 17g36.1 Speech file (encoder input / decoder output) 17g36.2 Mode control file (encoder input) . 17g36

19、.3 Parameter bitstream file (encoder output / decoder input) . 18g3Default 3GPP format: 18g3ITU format (activated with command line parameter -itu) . 19g3MIME/file storage format (activated with command line parameter -mime) 19g3Annex A (informative): Change history . 20g3History 21g3ETSI ETSI TS 12

20、6 173 V14.1.0 (2018-01)43GPP TS 26.173 version 14.1.0 Release 14Foreword This Technical Specification (TS) has been produced by the 3rdGeneration Partnership Project (3GPP). The contents of the present document are subject to continuing work within the TSG and may change following formal TSG approva

21、l. 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: Version x.y.z where: x the first digit: 1 presented to TSG for information; 2 presented to TSG for approval; 3 or

22、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 third digit is incremented when editorial only changes have been incorporated in the document. ETSI ETSI TS 126

23、173 V14.1.0 (2018-01)53GPP TS 26.173 version 14.1.0 Release 141 Scope The present document contains an electronic copy of the ANSI-C code for the Adaptive Multi-Rate Wideband codec. The ANSI-C code is necessary for a bit exact implementation of the Adaptive Multi Rate Wideband speech transcoder (3GP

24、P 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 muting of lost frames (3GPP TS 26.191 3). 2 References The following documents contain provisions which, throu

25、gh 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-specific. - For a specific reference, subsequent revisions do not apply. - For a non-specific reference, the lat

26、est 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 as the present document. 1 3GPP TS 26.174: “AMR Wideband Speech Codec; Test sequences“. 2 3GPP TS 26.19

27、0: “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 noise aspects“. 5 3GPP TS 26.193: “AMR Wideband Speech Codec; Source controlled rate operation“. 6 3GPP TS

28、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 Multi-Rate Wideband (AMR-WB) Audio Codecs, June 2002. 3 Definitions and abbreviations 3.1 Definitions Defi

29、nition 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 present document, the following abbreviations apply: AMR-WB Adaptive Multi-Rate Wideband ANSI American N

30、ational 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 V14.1.0 (2018-01)63GPP TS 26.173 version 14.1.0 Release 144 C code structure This clause gives an overvie

31、w 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: - Sun Microsystems workstations and GNU gcc compiler - HP workstations and cc compiler - IBM PC compati

32、ble 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 distribution has all files in the root level. The distributed files with suffix “c“ contain the source

33、 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 verification data file, “spch_dos.inp“. The reference encoder output file is named “spch_dos.cod“, the reference

34、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 computer. The same files with reversed byte order of the 16 bit words are named “spch_unx.inp“, “spch_unx.co

35、d“, “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 provided for the platforms in which the C code has been verified (listed above). Once the software is inst

36、alled, 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-Rate Wideband codec is implemented in two programs: - (encoder) speech encoder; - (decoder) speech decode

37、r. 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 and some additional flags. The encoder and decoder options will be explained by running the application

38、s 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 in the speech codec, including the functions of VAD, DTX, and comfort noise generation. Each column re

39、presents a call level and each cell a function. The functions contain calls to the functions in rightwards neighbouring cells. The time order in the call graphs is from the top downwards as the processing of a frame advances. ETSI ETSI TS 126 173 V14.1.0 (2018-01)73GPP TS 26.173 version 14.1.0 Relea

40、se 14All 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 in the graphs. The initialization of the static RAM (i.e. calling the _init functions) is also omitted.

41、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 2. ETSI ETSI TS 126 173 V14.1.0 (2018-01)83GPP TS 26.173 version 14.1.0 Release 14Table 1: Speech enco

42、der call structure coder Copy Decim_12k8 Down_samp Interpol (function) Copy Set_zero HP50_12k8Scale_sig wb_vad Filter_bank Filter5Filter3 Level_calculation vad_decision Ilog2Noise_estimate_update update_cntrl hangover_addition Estimate_Speech tx_dtx_handler Parm_serial AutocorrLag_window Levinson Az

43、_isp Chebps2 Int_isp Isp_Az Get_isp_pol Isp_isf Gp_clip_test_isf Weight_a Residu Deemph2LP_Decim2 Scale_mem_Hp_wsp Pitch_med_ol Hp_wsp Isqrt_n wb_vad_tone_detection Med_olag median5 dtx_buffer Copy dtx_enc Find_frame_indices Aver_isf_history Qisf_ns Sub_VQ Disf_ns Reorder_isf Parm_serialPow2 Random

44、Dot_product12 Isqrt_n Isf_isp Isp_Az Get_isp_polSynthesis Copy Syn_filt_32 Deemph_32 HP50_12k8 Random Scale_sig Dot_product12 Isqrt_nHP400_12k8Weight_a Syn_filt Filt_6k_7kReset_encoder Set_zero Init_gp_clipt_Phase_dispersion Set_zeroQpisf_2s_36b VQ_stage1 Sub_VQ Dpisf_2s_36b Reorder_isf Qpisf_2s_46b

45、 VQ_stage1 Sub_VQ Dpisf_2s_46b Reorder_isfSyn_filt Preemph2itch_fr4 Norm_Corr Convolve Isqrt_n Interpol_4 Gp_clip Pred_lt4 ConvolveG_pitch Dot_product12 Updt_tar PreemphPit_shrpCor_h_x ACELP_2t64_fx Dot_product12 Isqrt_n ACELP_4t64_fx See Table 2 Q_gain2 Dot_product12Pow2Gp_clip_test_gain_pit voice_

46、factor Dot_product12 ETSI ETSI TS 126 173 V14.1.0 (2018-01)93GPP TS 26.173 version 14.1.0 Release 14Table 2: ACELP_4t64_fx call structure ACELP_4t64_fx Dot_product12 Isqrt_ncor_h_vec search_ixiy quant_1p_N1quant_2p_2N1 quant_3p_3N1 quant_2p_2N1 quant_1p_N1quant_4p_4N quant_4p_4N1 Quant_2p_2N1 quant_

47、1p_N1 quant_3p_3N1 Quant_2p_2N1Quant_1p_N1 quant_2p_2N1 quant_5p_5N quant_3p_3N1 Quant_2p_2N1Quant_1p_N1 quant_2p_2N1 quant_6p_6N_2 quant_5p_5N Quant_3p_3N1 quant_2p_2N1 Quant_1p_N1 quant_2p_2N1quant_1p_N1 quant_4p_4N quant_4p_4N1 quant_2p_2N1 quant_1p_N1quant_3p_3N1 quant_2p_2N1 quant_1p_N1 quant_2

48、p_2N1quant_2p_2N1 quant_3p_3N1 quant_2p_2N1 Quant_1p_N1ETSI ETSI TS 126 173 V14.1.0 (2018-01)103GPP TS 26.173 version 14.1.0 Release 14Table 3: Speech decoder call structure decoder Rx_dtx_handler Dtx_dec Copy Disf_ns Reorder_isf Serial_parm Pow2Random Dot_product12Isqrt_n Serial_parm Isf_p Isp_Az G

49、et_isp_pol Copy Synthesis Copy Syn_filt_32 Deemph_32 HP50_12k8Oversamp_16k Copy Up_samp Interpol Random Scale_sig Dot_product12 Isqrt_nHP400_12k8 Isf_Extrapolation Isf_isp Isp_Az Get_isp_pol Weight_a Syn_filt Filt_6k_7k Copy Filt_7k Copy Reset_decoder Set_zero Init_Phase_dispersion Set_zero Dpisf_2s_36b Reorder_isf Dpisf_2s_46b Reorder_isf Int_isp Isp_Az Get_isp_pol Lagconc insertion_sort Insert Random Pred_lt4 Random DEC_ACELP_2

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

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

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