<?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 Re: Counvert 16-bit signed to unsigned in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857604#M7398</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/302580"&gt;Georgy Malyshev&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;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.&lt;/P&gt;
&lt;P&gt;This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If the signed data includes negative values, centered at zero, then the question arises whether you want to convert the signed range of -2**15 to 2**15 - 1 to the unsigned range of 0 to 2**16 - 1. In that case, you want to add 0x80000000 to the signed value to produce the unsigned value. That would retain the full range of magnitude.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Nov 2008 16:04:25 GMT</pubDate>
    <dc:creator>franknatoli</dc:creator>
    <dc:date>2008-11-05T16:04:25Z</dc:date>
    <item>
      <title>Counvert 16-bit signed to unsigned</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857602#M7396</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.&lt;/P&gt;
&lt;P&gt;This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2008 13:44:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857602#M7396</guid>
      <dc:creator>Georgy_Malyshev</dc:creator>
      <dc:date>2008-10-29T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Counvert 16-bit signed to unsigned</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857603#M7397</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;As long as the 16 bit signed integers are all positive values you can simply cast the signed values to unsigned values without any problem.The only difference in memory between signed and unsigned values are the negative numbers translate to unsigned values between 32,768 and 65,536. This works for me because we only use 12 bits of depth.&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;John&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/302580"&gt;Georgy Malyshev&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;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.&lt;/P&gt;
&lt;P&gt;This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Nov 2008 23:17:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857603#M7397</guid>
      <dc:creator>jcalcagni</dc:creator>
      <dc:date>2008-11-04T23:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Counvert 16-bit signed to unsigned</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857604#M7398</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/302580"&gt;Georgy Malyshev&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;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We use 3rd party component, which provides output as 16-bit signed integers. Later on we have to scale this image. IPP supports just unsigned data in ippiResize function so I have to convert signed to unsigned.&lt;/P&gt;
&lt;P&gt;This is definitely doable in C++ code but is there a way to do this conversion using IPP library? I didn't find proper API in the manual but probably I just didn't search well.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If the signed data includes negative values, centered at zero, then the question arises whether you want to convert the signed range of -2**15 to 2**15 - 1 to the unsigned range of 0 to 2**16 - 1. In that case, you want to add 0x80000000 to the signed value to produce the unsigned value. That would retain the full range of magnitude.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Nov 2008 16:04:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Counvert-16-bit-signed-to-unsigned/m-p/857604#M7398</guid>
      <dc:creator>franknatoli</dc:creator>
      <dc:date>2008-11-05T16:04:25Z</dc:date>
    </item>
  </channel>
</rss>

