<?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: PXP to only resize a buffer in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328182#M16012</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I'd like to suggest you configure the sensor to output an RGB8888 format or use an algorithm code to convert RGB888 into RGB8888 prior to outputting the buffer data to the PXP engine&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Tue, 24 Aug 2021 03:46:34 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2021-08-24T03:46:34Z</dc:date>
    <item>
      <title>PXP to only resize a buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328019#M16002</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use PXP to only resize an image? Without any color conversion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Right now I'm using PXP to get data from a 10626 sensor (YUV to RGB888). That part is fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need access to that RGB888 image buffer, so I am using that buffer and then trying to configure PXP again just to do a resize, but I'm getting wrong results&lt;/P&gt;&lt;P&gt;The output buffer config of the first step (from camera to RGB888) is configured like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    /* PS configure. */
    const pxp_output_buffer_config_t outputBufferConfig = {
        .pixelFormat    = kPXP_OutputPixelFormatRGB888P,
        .interlacedMode = kPXP_OutputProgressive,
        .buffer0Addr    = (uint32_t) camera_buffer_rgb24,
        .buffer1Addr    = 0U,
        .pitchBytes     = cameraWidth * 3,
        .width          = cameraWidth,
        .height         = cameraHeight,
    };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works fine! Now I want to just resize that buffer, so the second stage is configured like this:&lt;/P&gt;&lt;P&gt;Output buffer config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    /* PS configure. */
    const pxp_output_buffer_config_t outputBufferConfig = {
        .pixelFormat    = kPXP_OutputPixelFormatRGB888P,
        .interlacedMode = kPXP_OutputProgressive,
        .buffer0Addr    = (uint32_t) input_buffer,
        .buffer1Addr    = 0U,
        .pitchBytes     = output_size * 3,
        .width          = output_size,
        .height         = output_size,
    };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;Input buffer config (from the output of the first stage [YUV to RGB888]):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    /* PS config. */
    inputBufferConfig.pixelFormat = kPXP_PsPixelFormatRGB888;
    inputBufferConfig.bufferAddrU = 0U;
    inputBufferConfig.bufferAddrV = 0U;
    inputBufferConfig.bufferAddr  = (uint32_t) camera_buffer_rgb24;
    inputBufferConfig.pitchBytes  = cameraWidth * 3;
    inputBufferConfig.swapByte    = false;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But the output image is in greyscale (should be colored) and its shifted like in the following picture:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 329px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/153754iFE6537C904D8B2E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;One thing that I noticed is that the enum &lt;STRONG&gt;_pxp_ps_pixel_format&amp;nbsp;&lt;/STRONG&gt;doesn't have the an RGB888 packed format, it only has the&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;kPXP_PsPixelFormatRGB888&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;format which is unpacked (opposed to the enum &lt;STRONG&gt;_pxp_output_pixel_format&lt;/STRONG&gt; which has the format &lt;STRONG&gt;kPXP_OutputPixelFormatRGB888P&amp;nbsp;&lt;/STRONG&gt;which is packed)&lt;BR /&gt;&lt;BR /&gt;Any input will be greatly appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 22:48:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328019#M16002</guid>
      <dc:creator>jose_au_zone</dc:creator>
      <dc:date>2021-08-23T22:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: PXP to only resize a buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328182#M16012</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;I'd like to suggest you configure the sensor to output an RGB8888 format or use an algorithm code to convert RGB888 into RGB8888 prior to outputting the buffer data to the PXP engine&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 03:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328182#M16012</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-24T03:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: PXP to only resize a buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328908#M16032</link>
      <description>&lt;P&gt;Thank you for the reply. My goal was to not use use any software conversion, and let PXP do everything due to time constraints. Is it possible to do just a resizing without color conversion on PXP?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 22:46:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1328908#M16032</guid>
      <dc:creator>jose_au_zone</dc:creator>
      <dc:date>2021-08-24T22:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: PXP to only resize a buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1329262#M16047</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;1) Is it possible to do just a resizing without color conversion on PXP?&lt;BR /&gt;-- No, I'm afraid not, as scaling, color space conversion, rotation is integrated into a single processing engine.&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 08:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1329262#M16047</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2021-08-25T08:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: PXP to only resize a buffer</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1329739#M16060</link>
      <description>&lt;P&gt;Ok thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 19:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/PXP-to-only-resize-a-buffer/m-p/1329739#M16060</guid>
      <dc:creator>jose_au_zone</dc:creator>
      <dc:date>2021-08-25T19:17:06Z</dc:date>
    </item>
  </channel>
</rss>

