<?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: Alpha test on iMX6Q in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191402#M9755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check unit tests in realease code.&lt;/P&gt;&lt;P&gt;./ltib -m prep -p imx-test&lt;/P&gt;&lt;P&gt;ltib/rpm/BUILD/imx-test-xx.xx.xx/test/mxc_ipudev_test shows how to use IPU for overlay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 02:10:30 GMT</pubDate>
    <dc:creator>hongdong_chu</dc:creator>
    <dc:date>2012-11-08T02:10:30Z</dc:date>
    <item>
      <title>Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191398#M9751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are some test cases used to show alpha effect in previous unit_tests, but it is not found in latest Linux BSP release. So I prepare a simple test code to perform colorkey, global alpha, local alpha or alpha in pixel option for video combining, it could be useful when customer wants to see the effect.&lt;/P&gt;&lt;P&gt;I have checked test code on MX6Q ARM2 board and Linux release package is L3.0.15_12.05.01_ER_source.tar.gz.&lt;/P&gt;&lt;P&gt;Test based on the following assumptions:&lt;/P&gt;&lt;P&gt;1. Video combining is performed by the DP, BG video --&amp;gt; /dev/fb0, FG UI --&amp;gt; /dev/fb1&lt;/P&gt;&lt;P&gt;2. Panel resolution is 1024x768&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are test steps:&lt;/P&gt;&lt;P&gt;1. Play a video or a picture on /dev/fb0.&lt;/P&gt;&lt;P&gt;2. Use fb_setup to setup fb1.&lt;/P&gt;&lt;P&gt;./fb_setup&lt;/P&gt;&lt;P&gt;It will fill pixel value in frame buffer and alpha value in alpha buffer as below.&lt;/P&gt;&lt;P&gt;Frame buffer in RGBA mode:&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; fb_var.yres; i++)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (j = 0; j &amp;lt; fb_var.xres; j++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (i &amp;lt; fb_var.yres / 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pbuf[i * screen_width + j] = 0xFF000080;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Red pixel with alpha value 0x80 in first region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (i &amp;lt; fb_var.yres / 2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pbuf[i * screen_width + j] = 0x00FF00FF;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Green pixel opaque in second region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if (i &amp;lt; fb_var.yres * 3 / 4)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pbuf[i * screen_width + j] = 0x0000FF00;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Blue pixel transparent in third region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pbuf[i * screen_width + j] = 0xFFFFFFFF;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //White pixel opaque in fourth region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Alpha buffer:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(alpbuf, 0xFF, alp_size/4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alpha value is 0xFF in first region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(alpbuf+alp_size/4, 0xAA, alp_size/4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alpha value is 0xAA in second region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(alpbuf+alp_size/2, 0x80, alp_size/4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alpha value is 0x80 in third region&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(alpbuf+alp_size*3/4, 0x55, alp_size/4);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Alpha value is 0x55 in fourth region&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;3. Use alpha_test to check colorkey, global alpha, local alpha and alpha in pixel effect.&lt;/P&gt;&lt;P&gt;colorkey on:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./alpha_test colorkey_on &amp;lt;colorkey value&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //colorkey value, such as 0xFF0000 for red&lt;/P&gt;&lt;P&gt;colorkey off:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./alpha_test colorkey_off&lt;/P&gt;&lt;P&gt;global alpha:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./alpha_test alpha_global &amp;lt;alpha value&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alpha value, such as 0x80&lt;/P&gt;&lt;P&gt;local alpha:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./alpha_test alpha_local&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alpha effect is accordant with alpha buffer set in step 2&lt;/P&gt;&lt;P&gt;alpha in pixel:&amp;nbsp; ./alpha_test alpha_pixel&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //alpha effect is accordant with alpha value in pixel set in step 2&lt;/P&gt;&lt;P&gt;alpha off:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ./alpha_test alpha_off&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336049"&gt;fb_setup.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336049"&gt;alpha_test.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2012 06:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191398#M9751</guid>
      <dc:creator>hongdong_chu</dc:creator>
      <dc:date>2012-09-13T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191399#M9752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please provide the source code for the examples?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2012 16:55:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191399#M9752</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2012-11-06T16:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191400#M9753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 01:33:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191400#M9753</guid>
      <dc:creator>hongdong_chu</dc:creator>
      <dc:date>2012-11-07T01:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191401#M9754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the source code. But this example is not using the IPU device /dev/mxc_ipu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please provide an example that uses the IPU overlay feature?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do scaling and overlaying at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2012 11:28:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191401#M9754</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2012-11-07T11:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191402#M9755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can check unit tests in realease code.&lt;/P&gt;&lt;P&gt;./ltib -m prep -p imx-test&lt;/P&gt;&lt;P&gt;ltib/rpm/BUILD/imx-test-xx.xx.xx/test/mxc_ipudev_test shows how to use IPU for overlay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 02:10:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191402#M9755</guid>
      <dc:creator>hongdong_chu</dc:creator>
      <dc:date>2012-11-08T02:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191403#M9756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I've seen the example. when I enabled the overlay by setting overlay_en=1 in ipudev_config_file it doesn't work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IPU_CHECK_TASK returns IPU_CHECK_ERR_OV_OUT_NO_FIT !&lt;/P&gt;&lt;P&gt;In my application I need to control the BG and FG dimensions independently. For example I need to display video form 4 different cameras to the same screen at the same time each will be displayed in a separate window. In this situation the FG GUI dimensions shouldn't change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tarek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 09:40:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191403#M9756</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2012-11-08T09:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alpha test on iMX6Q</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191404#M9757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I do some testing on the " buffer and alpha value in alpha buffer" feature. There is a strange behavior, it look like the content of the buffer is not a ALPHA coefficent, when we set all the content of the Alpha buffer to 0xff, it look like the background is merged with a blue color, when the alpha value is set to a value near of 0, I saw my backgorund, but it look like the background is modulated with a yellow color????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also try the local alpha (alpha included in the frame buffer buffer image) everything work properly on this way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Mar 2013 18:48:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Alpha-test-on-iMX6Q/m-p/191404#M9757</guid>
      <dc:creator>ericbeaudoin</dc:creator>
      <dc:date>2013-03-25T18:48:31Z</dc:date>
    </item>
  </channel>
</rss>

