<?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: How to set IMX8MM colour space for G2D conversions in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1448456#M189638</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Any feedback would be appreciated.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 09:58:28 GMT</pubDate>
    <dc:creator>malik_cisse</dc:creator>
    <dc:date>2022-04-25T09:58:28Z</dc:date>
    <item>
      <title>How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986852#M146557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The IMX8MM reference manual section on the G2D specifies support for BT.601 and BT.709 YUV to RGB color conversions, including the formulas used. How are these set as they are not exposed in the G2D API?&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;   &lt;P&gt;&lt;STRONG&gt;14.2.2.4.8 YUV to RGB Conversion&lt;/STRONG&gt;&lt;BR /&gt;YUV data can be converted into 8-bit per component RGB format at the output of the&lt;BR /&gt;cache only. Once converted, there is no way back to YUV format. GPU supports BT.601&lt;BR /&gt;and BT.709 YUV to RGB color conversion standards.&lt;/P&gt;   &lt;P&gt;...&lt;/P&gt; &lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2019 03:02:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986852#M146557</guid>
      <dc:creator>brenhale</dc:creator>
      <dc:date>2019-10-31T03:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986853#M146558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;don't you want to use G2D to convert yuv to rgb?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2019 04:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986853#M146558</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-11-06T04:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986854#M146559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i do want to use the G2D, but I would like to switch between BT.601 and BT.709, and do not understand how.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 20:09:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986854#M146559</guid>
      <dc:creator>brenhale</dc:creator>
      <dc:date>2019-11-21T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986855#M146560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you need to convert BT601 to BT709? I.mx8mm should can support them without conversion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2019 04:48:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986855#M146560</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-12-04T04:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986856#M146561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why does it matter why we need these? Our application requires it. The IMX8MM manual states the G2D supports this, but the supplied G2D&amp;nbsp;library does not appear to actually support it? I would like to understand how we achieve this?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 02:05:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986856#M146561</guid>
      <dc:creator>brenhale</dc:creator>
      <dc:date>2019-12-06T02:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986857#M146562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RM mentions GPU can convert yuv to rgb, and supports BT601 and BT709, not convert BT601 to BT709, that's why I ask this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 07:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986857#M146562</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-12-10T07:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986858#M146563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't want to convert "BT601 to BT709".&amp;nbsp; As per original question I want to&amp;nbsp;configure the G2D to&amp;nbsp;use the correct formulas for a YUV to RGB conversion using either BT601 or BT709 maths. The maths are different for these conversions, and the API does not define how this is configured, despite saying it is supported in the G2D section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 00:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986858#M146563</guid>
      <dc:creator>brenhale</dc:creator>
      <dc:date>2019-12-13T00:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986859#M146564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you use linux bsp, you can use gstreamer command like this to do the color conversion:&lt;/P&gt;&lt;P&gt;"gst-launch-1.0 videotestsrc ! video/x-raw,format=NV12 ! imxvideoconvert_g2d ! video/xraw,&lt;BR /&gt;format=RGB16 ! ximagesink display=:0"&lt;/P&gt;&lt;P&gt;this is just an example, you can change your yuv format and rgb format, then g2d would convert from yuv to rgb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2019 03:18:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/986859#M146564</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2019-12-18T03:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1444132#M189327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am resurrecting this thread since I face the exact same issue.&lt;/P&gt;&lt;P&gt;The same issue is also discussed here without answer:&lt;BR /&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/YUV-to-RGB-conversion/td-p/629789" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/YUV-to-RGB-conversion/td-p/629789&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/165481"&gt;@brenhale&lt;/a&gt; actually clearly specified the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/39586"&gt;@joanxie&lt;/a&gt; suggested to use gstreamer but this is not what I want.&lt;/P&gt;&lt;P&gt;I already wrote a G2D code that implements BT.601:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;g2d_open(&amp;amp;handle);
src.planes[0] = buf_y;
src.planes[1] = buf_u;
src.planes[2] = buf_v;
src.left = crop.left;
src.top = crop.top;
src.right = crop.right;
src.bottom = crop.bottom;
src.stride = y_stride;
src.width = y_width;
src.height = y_height;
src.rot = G2D_ROTATION_0;
src.format = G2D_I420;
dst.planes[0] = buf_rgba;
dst.left = 0;
dst.top = 0;
dst.right = disp_width;
dst.bottom = disp_height;
dst.stride = disp_width;
dst.width = disp_width;
dst.height = disp_height;
dst.rot = G2D_ROTATION_0;
dst.format = G2D_RGBA8888;
g2d_blit(handle, &amp;amp;src, &amp;amp;dst);
g2d_finish(handle);
g2d_close(handle);&lt;/LI-CODE&gt;&lt;P&gt;The problem with this is that it provides RGBA (RGB32) while I want RGB 24bit&lt;/P&gt;&lt;P&gt;From the formula in the imx8mp ref manual it appears BT.709 has only RGB no alpha channel.&lt;/P&gt;&lt;P&gt;The question is:&lt;BR /&gt;How do I configure G2D programmatically to do YUV to RGB conversion?&lt;/P&gt;&lt;P&gt;How do I configure&amp;nbsp;BT.709 ?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 12:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1444132#M189327</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-04-14T12:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1444138#M189328</link>
      <description>&lt;P&gt;Hi Brenhale,&lt;BR /&gt;How did you actually solve this problem?&lt;BR /&gt;thx&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 12:16:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1444138#M189328</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-04-14T12:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1448455#M189637</link>
      <description>&lt;P&gt;Hallo,&lt;BR /&gt;Any feedback would be appreciated.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:57:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1448455#M189637</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-04-25T09:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to set IMX8MM colour space for G2D conversions</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1448456#M189638</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Any feedback would be appreciated.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 09:58:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-set-IMX8MM-colour-space-for-G2D-conversions/m-p/1448456#M189638</guid>
      <dc:creator>malik_cisse</dc:creator>
      <dc:date>2022-04-25T09:58:28Z</dc:date>
    </item>
  </channel>
</rss>

