<?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 Hi, in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-90-degrees/m-p/829867#M5454</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This code is working me. Rotate my bitmap&amp;nbsp;by 90 degrees:&lt;/P&gt;
&lt;P&gt;Ipp8u* dstBMP;&lt;BR /&gt; dstBMP = ippiMalloc_8u_C3(sizeImPlane.width, sizeImPlane.height, &amp;amp;pStepBMP);&lt;BR /&gt; int dw = _WIDTH ;&lt;BR /&gt; int dh = _HEIGHT ;&lt;BR /&gt; int src_step = _WIDTH * 3;&lt;BR /&gt; int dst_step = dw * 3;&lt;BR /&gt; IppiSize src_size = { _WIDTH, _HEIGHT };&lt;BR /&gt; IppiRect src_roi = { 0, 0, _WIDTH, _HEIGHT };&lt;BR /&gt; IppiRect dst_rect = { 0, 0, dw, dh };&lt;BR /&gt; double xShift = ((double)dw - (double)_WIDTH) / 2.0;&lt;BR /&gt; double yShift = ((double)dh - (double)_HEIGHT) / 2.0;&lt;BR /&gt; ippiAddRotateShift((double)_WIDTH / 2, (double)_HEIGHT / 2, 90, &amp;amp;xShift, &amp;amp;yShift);&lt;BR /&gt; ippiRotate_8u_C3R(srcBMP, src_size, src_step, src_roi, dstBMP, dst_step, dst_rect, 90, xShift, yShift, IPPI_INTER_NN);&lt;/P&gt;</description>
    <pubDate>Wed, 06 Feb 2013 14:01:33 GMT</pubDate>
    <dc:creator>Pitcha_Y_</dc:creator>
    <dc:date>2013-02-06T14:01:33Z</dc:date>
    <item>
      <title>Rotate 90 degrees</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-90-degrees/m-p/829866#M5453</link>
      <description>&lt;P&gt;im trying to use RotateCenter to rotate an image in increments of 90 degressbut for some reason im not getting correct image back[cpp] IppiRect srcRect = { 0, 0, 0, 0}; srcRect.width = Width(); srcRect.height = Height(); IppiRect dstRect = { 0, 0, 0 , 0}; dstRect.width = Width(); dstRect.height = Height(); if (abs(angle) == 90 || abs(angle) == 270) std::swap(dstRect.width,dstRect.height); double xCenterSrc = Width()/2.0; double yCenterSrc = Height()/2.0; image.Alloc(dstRect.width,dstRect.height,NChannels(),Precision(),0); image.Color(Color()); image.Format(Format()); if (Precision() any idea what am i doing wrong ?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2012 17:10:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-90-degrees/m-p/829866#M5453</guid>
      <dc:creator>Aris_Basic</dc:creator>
      <dc:date>2012-05-04T17:10:14Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-90-degrees/m-p/829867#M5454</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;This code is working me. Rotate my bitmap&amp;nbsp;by 90 degrees:&lt;/P&gt;
&lt;P&gt;Ipp8u* dstBMP;&lt;BR /&gt; dstBMP = ippiMalloc_8u_C3(sizeImPlane.width, sizeImPlane.height, &amp;amp;pStepBMP);&lt;BR /&gt; int dw = _WIDTH ;&lt;BR /&gt; int dh = _HEIGHT ;&lt;BR /&gt; int src_step = _WIDTH * 3;&lt;BR /&gt; int dst_step = dw * 3;&lt;BR /&gt; IppiSize src_size = { _WIDTH, _HEIGHT };&lt;BR /&gt; IppiRect src_roi = { 0, 0, _WIDTH, _HEIGHT };&lt;BR /&gt; IppiRect dst_rect = { 0, 0, dw, dh };&lt;BR /&gt; double xShift = ((double)dw - (double)_WIDTH) / 2.0;&lt;BR /&gt; double yShift = ((double)dh - (double)_HEIGHT) / 2.0;&lt;BR /&gt; ippiAddRotateShift((double)_WIDTH / 2, (double)_HEIGHT / 2, 90, &amp;amp;xShift, &amp;amp;yShift);&lt;BR /&gt; ippiRotate_8u_C3R(srcBMP, src_size, src_step, src_roi, dstBMP, dst_step, dst_rect, 90, xShift, yShift, IPPI_INTER_NN);&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2013 14:01:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Rotate-90-degrees/m-p/829867#M5454</guid>
      <dc:creator>Pitcha_Y_</dc:creator>
      <dc:date>2013-02-06T14:01:33Z</dc:date>
    </item>
  </channel>
</rss>

