<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic question about ippsALawToLin_8u16s ! in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882791#M10388</link>
    <description>hi, guys, i'm a fresh man of IPP, i think it will be greate to use IPP, but I have several questions, hope you can give me the answer.&lt;BR /&gt;&lt;BR /&gt;Q1: ippsALawToLin_8u16s is this function mean, &lt;BR /&gt;8-bits/sample PCMA data will be converted to 16-bits/sample Lin-PCM data automatically?&lt;BR /&gt;&lt;BR /&gt;Q2: if the answer of Q1 is yes, in the sample code of the speech-codecs , there is an application named usc_speech_codec. In this application, there is only 16bit/sample PCMA supported by the sample code to convert PCMUA data to other codecs. But in the player.c, the sample code will call a function named USC_CvtToLinear, which calls the function ippsALawToLin_8u16s, how could&lt;BR /&gt;a 16-bits/sample data is used as an input 8-bits/sample data.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 31 Aug 2009 06:54:37 GMT</pubDate>
    <dc:creator>samsmile</dc:creator>
    <dc:date>2009-08-31T06:54:37Z</dc:date>
    <item>
      <title>question about ippsALawToLin_8u16s !</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882791#M10388</link>
      <description>hi, guys, i'm a fresh man of IPP, i think it will be greate to use IPP, but I have several questions, hope you can give me the answer.&lt;BR /&gt;&lt;BR /&gt;Q1: ippsALawToLin_8u16s is this function mean, &lt;BR /&gt;8-bits/sample PCMA data will be converted to 16-bits/sample Lin-PCM data automatically?&lt;BR /&gt;&lt;BR /&gt;Q2: if the answer of Q1 is yes, in the sample code of the speech-codecs , there is an application named usc_speech_codec. In this application, there is only 16bit/sample PCMA supported by the sample code to convert PCMUA data to other codecs. But in the player.c, the sample code will call a function named USC_CvtToLinear, which calls the function ippsALawToLin_8u16s, how could&lt;BR /&gt;a 16-bits/sample data is used as an input 8-bits/sample data.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 06:54:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882791#M10388</guid>
      <dc:creator>samsmile</dc:creator>
      <dc:date>2009-08-31T06:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: question about ippsALawToLin_8u16s !</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882792#M10389</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Welcome to the forum :-). This is a good place to share information and ask questions: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Q1: yes, it takes 8 bits and create 16-bits output&lt;BR /&gt;&lt;BR /&gt;Q2: the sample support 16bit PCM data, and 8 bit A-Law/Mu-Law data. &lt;BR /&gt;&lt;BR /&gt;The readme file (applicationusc_speech_codecreadme.htm) may help you find some detail on input and output data format: &lt;BR /&gt;&lt;BR /&gt;When in encoding mode the sample consumes either 16bit narrowband 8000 Hz or 16bit wideband 16000 Hz raw PCM data or 8 bit narrowband 8000 Hz A-Law/Mu-Law PCM or 8bit wideband 16000 Hz A-Law/Mu-Law PCM data stored in WAVE file format and produces a compressed USC bitstream stored in a compressed WAVE file. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 07:47:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882792#M10389</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2009-08-31T07:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: question about ippsALawToLin_8u16s !</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882793#M10390</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/21699"&gt;Chao Y (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Welcome to the forum :-). This is a good place to share information and ask questions: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Q1: yes, it takes 8 bits and create 16-bits output&lt;BR /&gt;&lt;BR /&gt;Q2: the sample support 16bit PCM data, and 8 bit A-Law/Mu-Law data. &lt;BR /&gt;&lt;BR /&gt;The readme file (applicationusc_speech_codecreadme.htm) may help you find some detail on input and output data format: &lt;BR /&gt;&lt;BR /&gt;When in encoding mode the sample consumes either 16bit narrowband 8000 Hz or 16bit wideband 16000 Hz raw PCM data or 8 bit narrowband 8000 Hz A-Law/Mu-Law PCM or 8bit wideband 16000 Hz A-Law/Mu-Law PCM data stored in WAVE file format and produces a compressed USC bitstream stored in a compressed WAVE file. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chao&lt;/DIV&gt;
&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Hi Chao,&lt;BR /&gt; Very glad to have an answer so quickly. Q1 is the same as I though. But Q2, I want a little more discussion.&lt;BR /&gt;&lt;BR /&gt; Actually, I have read the readme.htm before, and this really make me confusion. According to both the readme.htm and what you havetold me in the reply, I think I know PCMUA with 8-bits/sample should be supported. But in fact, in the file uscg711.c, there is a definitionof pcmTypesTbl_G711and it shows only #define G711_BITS_PER_SAMPLE 16 is supported.&lt;BR /&gt; In fact, this is alsoOK to me, I can understand what it's mean. AndIhave test the code, it'strue that 16-bits/sample PCMA can pass thesample code and8-bits/sample PCMA can't.&lt;BR /&gt; The key I'm really confused is that if 16-bits/sample PCMA can be converted to other codecs, it must call the function USC_CvtToLinear whichcall ippsALawToLin_8u16s indirectly. However , the input source is 16-bits/sample already, why it can call ippsALawToLin_8u16s which the source data should be 8-bits/sample?&lt;BR /&gt;&lt;BR /&gt; Look forward to your answer. Thanks very much!&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Sam&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Aug 2009 09:53:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882793#M10390</guid>
      <dc:creator>samsmile</dc:creator>
      <dc:date>2009-08-31T09:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: question about ippsALawToLin_8u16s !</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882794#M10391</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/440202"&gt;samsmile&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;Hi Chao,&lt;BR /&gt; Very glad to have an answer so quickly. Q1 is the same as I though. But Q2, I want a little more discussion.&lt;BR /&gt;&lt;BR /&gt; Actually, I have read the readme.htm before, and this really make me confusion. According to both the readme.htm and what you havetold me in the reply, I think I know PCMUA with 8-bits/sample should be supported. But in fact, in the file uscg711.c, there is a definitionof pcmTypesTbl_G711and it shows only #define G711_BITS_PER_SAMPLE 16 is supported.&lt;BR /&gt; In fact, this is alsoOK to me, I can understand what it's mean. AndIhave test the code, it'strue that 16-bits/sample PCMA can pass thesample code and8-bits/sample PCMA can't.&lt;BR /&gt; The key I'm really confused is that if 16-bits/sample PCMA can be converted to other codecs, it must call the function USC_CvtToLinear whichcall ippsALawToLin_8u16s indirectly. However , the input source is 16-bits/sample already, why it can call ippsALawToLin_8u16s which the source data should be 8-bits/sample?&lt;BR /&gt;&lt;BR /&gt; Look forward to your answer. Thanks very much!&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Sam&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hi Sam,&lt;BR /&gt;In fact, USC G711A/U encoder consumesand decoder produces10ms frame of 16bit linear PCM. Oppositely,G711 encodeproduces andG711 decode consumes 10ms frame of 8bitA or Mu -lawPCM.&lt;BR /&gt;&lt;BR /&gt;More over, any USCnarrow band codecs, for example G729, G723.1 etc abd G711A/U among them all supportlinear16bit PCM only, and GetInfo function ofsuch codecwill return PCM type as following:&lt;BR /&gt;&lt;BR /&gt; pInfo-&amp;gt;params.pcmType.sample_frequency: 8000&lt;BR /&gt; pInfo-&amp;gt;params.pcmType.nChannels:  1&lt;BR /&gt; pInfo-&amp;gt;params.pcmType.bitPerSample 16&lt;BR /&gt;&lt;BR /&gt;Frame size may be different, for example USC G711* codecs support 10 msframe of linear PCMproducing10ms frame of compressed (compound) 8bit PCM as a bitsreamstoring it in the output file in USC format.&lt;BR /&gt;&lt;BR /&gt;Vyacheslav, IPP speech coding</description>
      <pubDate>Tue, 01 Sep 2009 06:50:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/question-about-ippsALawToLin-8u16s/m-p/882794#M10391</guid>
      <dc:creator>Vyacheslav_Baranniko</dc:creator>
      <dc:date>2009-09-01T06:50:14Z</dc:date>
    </item>
  </channel>
</rss>

