<?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>i.MX GraphicsのトピックRe: g2d api input output buffer size with alignment</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/g2d-api-input-output-buffer-size-with-alignment/m-p/2204001#M989</link>
    <description>&lt;P&gt;for the g2d alignment, you can refer to the chapter&amp;nbsp;2.2.7 g2d_surface structure of enclosed file, the sample code is RGB as src and dst, for the RGB,&amp;nbsp;RGB pixel buffer only uses planes [0], buffer address is with 16 bytes alignment on i.MX 6 (except i.MX 6Quad&lt;BR /&gt;Plus), 1 pixel alignment on i.MX 6Quad Plus, i.MX 7ULP and i.MX 8 family devices&lt;/P&gt;</description>
    <pubDate>Thu, 13 Nov 2025 01:31:36 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2025-11-13T01:31:36Z</dc:date>
    <item>
      <title>g2d api input output buffer size with alignment</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/g2d-api-input-output-buffer-size-with-alignment/m-p/2203345#M988</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am writing an application run on IMX8MPLUS EVK that crop and convert format frame input from v4l2 dev video device, that mean some resolution on list format support of dev video that not align to 16 such as 1920x1080.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But to use the hardware accelerate g2d to do this task, i reference to the source code testing imx g2d hardware on&amp;nbsp;g2d-samples/basic_test/g2d_basic.c that int input test witdth and height need to algin to 16 before using g2d api to process the buffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phuongnguyen1_0-1762932337215.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365169i57FC0E72D5A87C4A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="phuongnguyen1_0-1762932337215.png" alt="phuongnguyen1_0-1762932337215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; So my question is it must be align a image buffer to 16 before process with g2d or not.&lt;/P&gt;&lt;P&gt;and if yes is input buffer not align make the hardware imx_g2d process slower? and if not do have a best way exept using cpu to clone new frame with alignment from old frame buffer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 07:32:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/g2d-api-input-output-buffer-size-with-alignment/m-p/2203345#M988</guid>
      <dc:creator>phuongnguyen1</dc:creator>
      <dc:date>2025-11-12T07:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: g2d api input output buffer size with alignment</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/g2d-api-input-output-buffer-size-with-alignment/m-p/2204001#M989</link>
      <description>&lt;P&gt;for the g2d alignment, you can refer to the chapter&amp;nbsp;2.2.7 g2d_surface structure of enclosed file, the sample code is RGB as src and dst, for the RGB,&amp;nbsp;RGB pixel buffer only uses planes [0], buffer address is with 16 bytes alignment on i.MX 6 (except i.MX 6Quad&lt;BR /&gt;Plus), 1 pixel alignment on i.MX 6Quad Plus, i.MX 7ULP and i.MX 8 family devices&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2025 01:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/g2d-api-input-output-buffer-size-with-alignment/m-p/2204001#M989</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-11-13T01:31:36Z</dc:date>
    </item>
  </channel>
</rss>

