<?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 how to adjust the alpha value in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/how-to-adjust-the-alpha-value/m-p/955702#M19053</link>
    <description>&lt;DIV&gt;My program need to adjust the alpha value of a image by increasing or decreasing some percent,such as increase 15% alpha,the new value is 1.15*alpha.But which function in IPP can implement it?&lt;/DIV&gt;</description>
    <pubDate>Wed, 02 Jun 2004 01:56:10 GMT</pubDate>
    <dc:creator>pango</dc:creator>
    <dc:date>2004-06-02T01:56:10Z</dc:date>
    <item>
      <title>how to adjust the alpha value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/how-to-adjust-the-alpha-value/m-p/955702#M19053</link>
      <description>&lt;DIV&gt;My program need to adjust the alpha value of a image by increasing or decreasing some percent,such as increase 15% alpha,the new value is 1.15*alpha.But which function in IPP can implement it?&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Jun 2004 01:56:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/how-to-adjust-the-alpha-value/m-p/955702#M19053</guid>
      <dc:creator>pango</dc:creator>
      <dc:date>2004-06-02T01:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to adjust the alpha value</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/how-to-adjust-the-alpha-value/m-p/955703#M19054</link>
      <description>&lt;P&gt;pango,&lt;/P&gt;
&lt;P&gt;I'm assuming RGBA and Ipp8u data.&lt;/P&gt;
&lt;P&gt;You might tryippiMulC_8u_C4RSfs.It will only work if you can express the factor as a fraction with a 2^n denominator. Use {1.0, 1.0, 1.0, factor*scale} as the value.&lt;/P&gt;
&lt;P&gt;For example, for MulC, you can use {1.0, 1.0, 1.0, 147} with a scaleFactor of 7 (so the scale is 2^7=128). This should multiply the alpha channel by 1.148.&lt;/P&gt;
&lt;P&gt;You'll have to determine whether the extra 3 multiplications by 1.0 still result in a performance increase. It's not easy to multiply every fourth value efficientlyusing SIMD.&lt;/P&gt;
&lt;P&gt;I came up with a bunch oftricks like this in the IPP book, although I did find that frequently it took some work and tweaking to get a performance gain.&lt;/P&gt;
&lt;P&gt;Stewart&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2004 05:30:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/how-to-adjust-the-alpha-value/m-p/955703#M19054</guid>
      <dc:creator>Stewart_T_Intel</dc:creator>
      <dc:date>2004-06-04T05:30:00Z</dc:date>
    </item>
  </channel>
</rss>

