<?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 Issue with converting from 16bit signed to 8bit unsigned while  in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issue-with-converting-from-16bit-signed-to-8bit-unsigned-while/m-p/772923#M908</link>
    <description>&lt;P&gt;Krushna, &lt;/P&gt;&lt;P&gt;What is the input value for calling ippiConvert_16s8u_C1R? the value is less 0 will be convert to 0, and the value larger than 255, and will be converted to 255. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao&lt;/P&gt;</description>
    <pubDate>Thu, 11 Aug 2011 02:06:45 GMT</pubDate>
    <dc:creator>Chao_Y_Intel</dc:creator>
    <dc:date>2011-08-11T02:06:45Z</dc:date>
    <item>
      <title>Issue with converting from 16bit signed to 8bit unsigned while decompressing and reconstructing one multi frame image.</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issue-with-converting-from-16bit-signed-to-8bit-unsigned-while/m-p/772922#M907</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I am using intel IPP library for decompressing one multi frame image. Internally I am using "ReconstructMCURowLS" method of the the class "jpegdec.cpp" for reconstructing the JPEG. Reconstruction is successful but while converting 16bit signed to 8bit unsigned, I am geting all the "pDst8u" 0xff instead of 0x00. And resulting all colours(near to black) becomes white.&lt;/P&gt;&lt;P&gt;Below is the code path which is getting executed...... &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;if(m_dst.precision &amp;lt;= 8)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;dstStep = curr_comp-&amp;gt;m_cc_step;&lt;/P&gt;&lt;P&gt;pDst8u = curr_comp-&amp;gt;GetCCBufferPtr(thread_id);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;status = ippiReconstructPredRow_JPEG_16s_C1(&lt;/P&gt;&lt;P&gt;ptr,pPrevRow,pCurrRow,m_dst.width,m_ss);&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;status = ippiConvert_16s8u_C1R(pPrevRow,m_dst.width*sizeof(Ipp16s),pDst8u,dstStep,roi);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Here I am not getting the expected result i.e. status should be "zero". &lt;/P&gt;&lt;P&gt;I have doubt here, am I using the wrong method to convert from 16s to 8u? or something wrong is happening?&lt;/P&gt;&lt;P&gt;Can someone please help me in this topic?&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Krushna&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 05:53:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issue-with-converting-from-16bit-signed-to-8bit-unsigned-while/m-p/772922#M907</guid>
      <dc:creator>krushnaps</dc:creator>
      <dc:date>2011-08-10T05:53:07Z</dc:date>
    </item>
    <item>
      <title>Issue with converting from 16bit signed to 8bit unsigned while</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Issue-with-converting-from-16bit-signed-to-8bit-unsigned-while/m-p/772923#M908</link>
      <description>&lt;P&gt;Krushna, &lt;/P&gt;&lt;P&gt;What is the input value for calling ippiConvert_16s8u_C1R? the value is less 0 will be convert to 0, and the value larger than 255, and will be converted to 255. &lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Chao&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2011 02:06:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Issue-with-converting-from-16bit-signed-to-8bit-unsigned-while/m-p/772923#M908</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2011-08-11T02:06:45Z</dc:date>
    </item>
  </channel>
</rss>

