<?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: iMX6 v4l2 capture 2 buffers queue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-v4l2-capture-2-buffers-queue/m-p/775675#M120441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edison&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers are based on V4L2 Linux standard API specification available at&lt;BR /&gt;v4l2spec.bytesex.org/spec and described in Chapter 9 Video for Linux Two (V4L2) Driver&lt;/P&gt;&lt;P&gt;attached Linux Manual. One can check sources in&amp;nbsp; linux/drivers/media/platform/mxc, in particular&lt;BR /&gt;mxc_v4l_dqueue() in mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;and queue ioctl descriptions on&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.linuxtv.org%2Fdownloads%2Fv4l-dvb-apis-old%2Fvidioc-qbuf.html" rel="nofollow" target="_blank"&gt;https://www.linuxtv.org/downloads/v4l-dvb-apis-old/vidioc-qbuf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 10:36:07 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-02-27T10:36:07Z</dc:date>
    <item>
      <title>iMX6 v4l2 capture 2 buffers queue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-v4l2-capture-2-buffers-queue/m-p/775674#M120440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application where I have my camera configured with a long exposure and I need to capture one frame and analize it to detect a certain event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that, due to the minimum 2 buffers queue that v4l has, when I dqueue a buffer, I get the oldest in the queue and given the long exposure it is too old for the application as I need the frame to be as close as possible to the time I try to dqueue it so my question is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of avoiding this minimum 2 buffers queue? This is, queuing one buffer only.&lt;/P&gt;&lt;P&gt;If not, is there a way of dqueuing the newest buffer in the queue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Edison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-v4l2-capture-2-buffers-queue/m-p/775674#M120440</guid>
      <dc:creator>edison_fernande</dc:creator>
      <dc:date>2018-02-26T18:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 v4l2 capture 2 buffers queue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-v4l2-capture-2-buffers-queue/m-p/775675#M120441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Edison&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drivers are based on V4L2 Linux standard API specification available at&lt;BR /&gt;v4l2spec.bytesex.org/spec and described in Chapter 9 Video for Linux Two (V4L2) Driver&lt;/P&gt;&lt;P&gt;attached Linux Manual. One can check sources in&amp;nbsp; linux/drivers/media/platform/mxc, in particular&lt;BR /&gt;mxc_v4l_dqueue() in mxc_v4l2_capture.c&lt;/P&gt;&lt;P&gt;and queue ioctl descriptions on&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.linuxtv.org%2Fdownloads%2Fv4l-dvb-apis-old%2Fvidioc-qbuf.html" rel="nofollow" target="_blank"&gt;https://www.linuxtv.org/downloads/v4l-dvb-apis-old/vidioc-qbuf.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 10:36:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-v4l2-capture-2-buffers-queue/m-p/775675#M120441</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-02-27T10:36:07Z</dc:date>
    </item>
  </channel>
</rss>

