<?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 ProcessorsのトピックHow can I detect VSYNC through code?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-detect-VSYNC-through-code/m-p/370806#M52873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are doing video display output from multiple video sources concurrently with Yocto 1.7, Linux 3.10.17, gstreamer 1.2.3, and gstreamer_imx directly to the Linux framebuffer (without X11) on a iMX6 dual processor (GPU is Vivante).&lt;/P&gt;&lt;P&gt;We've noticed video tearing, and want to eliminate that tearing.&amp;nbsp; The video tearing is illustrated here: &lt;A href="http://en.wikipedia.org/wiki/Screen_tearing" title="http://en.wikipedia.org/wiki/Screen_tearing"&gt;Screen tearing - Wikipedia, the free encyclopedia&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;We suspect the video tearing is due to performing OpenGL operations (swapping a buffer to the screen) when the HDMI vsync occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any alternate theories as to why the tearing occurs?&lt;/P&gt;&lt;P&gt;How can I write code that detects when this vsync occurs (polling is fine if that's the only way)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 21:31:20 GMT</pubDate>
    <dc:creator>mikejanzen</dc:creator>
    <dc:date>2015-03-09T21:31:20Z</dc:date>
    <item>
      <title>How can I detect VSYNC through code?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-detect-VSYNC-through-code/m-p/370806#M52873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are doing video display output from multiple video sources concurrently with Yocto 1.7, Linux 3.10.17, gstreamer 1.2.3, and gstreamer_imx directly to the Linux framebuffer (without X11) on a iMX6 dual processor (GPU is Vivante).&lt;/P&gt;&lt;P&gt;We've noticed video tearing, and want to eliminate that tearing.&amp;nbsp; The video tearing is illustrated here: &lt;A href="http://en.wikipedia.org/wiki/Screen_tearing" title="http://en.wikipedia.org/wiki/Screen_tearing"&gt;Screen tearing - Wikipedia, the free encyclopedia&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;We suspect the video tearing is due to performing OpenGL operations (swapping a buffer to the screen) when the HDMI vsync occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there any alternate theories as to why the tearing occurs?&lt;/P&gt;&lt;P&gt;How can I write code that detects when this vsync occurs (polling is fine if that's the only way)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike Janzen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 21:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-detect-VSYNC-through-code/m-p/370806#M52873</guid>
      <dc:creator>mikejanzen</dc:creator>
      <dc:date>2015-03-09T21:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I detect VSYNC through code?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-can-I-detect-VSYNC-through-code/m-p/370807#M52874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not aware of such codes, but seems one can poll&lt;/P&gt;&lt;P&gt;vsync using associated gpio (setting SION bit in its iomux configuration).&lt;/P&gt;&lt;P&gt;HDMI uses for its input IPU DI as described in&lt;/P&gt;&lt;P&gt;iMX6_Firmware_Guide.pdf&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;i.MX 6Series Platform SDK&lt;/A&gt;&amp;nbsp; Chapter 15 Configuring&lt;/P&gt;&lt;P&gt;the HDMI Tx Module . For example IPUx_DIx_PIN03 is used as VSYNC and&lt;/P&gt;&lt;P&gt;according to &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;IMX6DQRM&lt;/A&gt; Chapter 4 External Signals and Pin Multiplexing,&lt;/P&gt;&lt;P&gt;DI0_PIN3 (ALT5) GPIO4_IO19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:42:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-can-I-detect-VSYNC-through-code/m-p/370807#M52874</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-16T14:42:27Z</dc:date>
    </item>
  </channel>
</rss>

