<?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 PXP Rotation with destination offsets not divisible by BLOCK_SIZE? in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1256430#M13653</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;If I do a PXP rotate to coordinates divisible by the BLOCK_SIZE then everything looks good. I am using a block size of 8x8, &amp;nbsp;coords = 128, 128:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0029.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141294iC6F9F5F9FEA326A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_0029.jpg" alt="IMG_0029.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;IMG_0029.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;coords = 132, 132. Not so good:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0030.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141295iE076D354628725BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_0030.jpg" alt="IMG_0030.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;IMG_0030.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am setting the ps buffer config&amp;nbsp;&lt;/P&gt;&lt;P&gt;.bufferAddr&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;= (&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;)s_psBufferPxp - uSourceOffset&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;uint16_t&lt;/SPAN&gt; uSourceOffset = (uXTop%8)&amp;nbsp;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt; * 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to rotate to offsets within the blocks or does PXP only support rotation to coordinates divisible by the block size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Apr 2021 09:09:18 GMT</pubDate>
    <dc:creator>AndyCapon</dc:creator>
    <dc:date>2021-04-03T09:09:18Z</dc:date>
    <item>
      <title>PXP Rotation with destination offsets not divisible by BLOCK_SIZE?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1256430#M13653</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;If I do a PXP rotate to coordinates divisible by the BLOCK_SIZE then everything looks good. I am using a block size of 8x8, &amp;nbsp;coords = 128, 128:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0029.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141294iC6F9F5F9FEA326A2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_0029.jpg" alt="IMG_0029.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;IMG_0029.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;coords = 132, 132. Not so good:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IMG_0030.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141295iE076D354628725BA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="IMG_0030.jpg" alt="IMG_0030.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;IMG_0030.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I am setting the ps buffer config&amp;nbsp;&lt;/P&gt;&lt;P&gt;.bufferAddr&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;= (&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;)s_psBufferPxp - uSourceOffset&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;uint16_t&lt;/SPAN&gt; uSourceOffset = (uXTop%8)&amp;nbsp;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&amp;nbsp;&lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt; * 2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to rotate to offsets within the blocks or does PXP only support rotation to coordinates divisible by the block size?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 09:09:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1256430#M13653</guid>
      <dc:creator>AndyCapon</dc:creator>
      <dc:date>2021-04-03T09:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: PXP Rotation with destination offsets not divisible by BLOCK_SIZE?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1256436#M13654</link>
      <description>&lt;P&gt;Ok I "Fixed" the issue by calculating the destination address and changing&amp;nbsp;outputBufferConfig.&lt;SPAN&gt;buffer0Addr.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then setting&amp;nbsp;&lt;/SPAN&gt;outputBufferConfig.&lt;SPAN&gt;height to the width of my source buffer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And using&amp;nbsp;&lt;/SPAN&gt;PXP_SetProcessSurfacePosition() with a an upper x and y of 0 and the lower x and y set to height and width.&lt;/P&gt;&lt;P&gt;This all seems a bit strange, am I misunderstanding what&amp;nbsp;PXP_SetProcessSurfacePosition does?&lt;/P&gt;&lt;P&gt;This approach seems to be 1.4 times faster and works!&lt;/P&gt;</description>
      <pubDate>Sat, 03 Apr 2021 09:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1256436#M13654</guid>
      <dc:creator>AndyCapon</dc:creator>
      <dc:date>2021-04-03T09:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: PXP Rotation with destination offsets not divisible by BLOCK_SIZE?</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1258190#M13691</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/55163"&gt;@AndyCapon&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I think this problem shown is addressed in section 36.4.26 of the RM, not calculating the surface position correctly could cause one of the two following cases:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alexis_A_0-1617810749419.png" style="width: 602px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141521i47D66CACFB728517/image-dimensions/602x246?v=v2" width="602" height="246" role="button" title="Alexis_A_0-1617810749419.png" alt="Alexis_A_0-1617810749419.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Alexis_A_0-1617810749419.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Alexis Andalon&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 16:53:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-Rotation-with-destination-offsets-not-divisible-by-BLOCK/m-p/1258190#M13691</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2021-04-07T16:53:36Z</dc:date>
    </item>
  </channel>
</rss>

