using VIDIOC_(D)QBUF

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hello,

I'm having two uncertainties about video4linux2.

1) About how to use VIDIOC_DQBUF. From the v4l2 site:
  "VIDIOC_DQBUF immediately returns an error if there is no buffer
   ready (it never blocks)."
However, when I look in bttc-driver.c, the ioctl handler (VIDIOC_DQBUF):
  "retval = videobuf_waiton(&buf->vb,0,1);"
Which (I'd say) does block for the frame to be completed capturing. Am I
wrong here? Or is the v4l2 API documentation (http://thedirks.org/v4l2/)
outdated and has this been changed?

2) Would it be possible (i.e. allowed) to include a special case
VIDIOC_QBUF with index = -1 in the zoran driver which means to dequeue
(as in 'cancel these queues', not as in 'sync on all buffers') all
buffers and thus effectively stop capturing directly? This is what the
zoran driver is able to do in v4l1 and it'd be nice to have a similar
feature in v4l2. Is this allowed?

Thanks,

Ronald

-- 
-   .-.
-   /V\    | Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx>
-  // \\   | Running: Linux 2.4.18-XFS and OpenBSD 3.0
- /(   )\  | http://ronald.bitfreak.net/
-  ^^-^^





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux