* Re: how to make qbuf
2009-07-07 6:44 how to make qbuf 서정민
@ 2009-07-07 13:23 ` Rafael Diniz
2009-07-08 15:57 ` Lamarque Vieira Souza
2009-07-09 2:53 ` Dongsoo, Nathaniel Kim
2 siblings, 0 replies; 4+ messages in thread
From: Rafael Diniz @ 2009-07-07 13:23 UTC (permalink / raw)
To: video4linux-list
Hi 서정민,
mplayer already have a v4l2 driver, right?
bye,
rafael diniz
Em Terça-feira 07 Julho 2009, às 03:44:41, 서정민 escreveu:
> Hi.
>
> I'm making V4l2 device driver for mplayer.
> But
> It's too difficult to understand V4l2 driver internal structure.
>
> I can't understand how to use VIDIOC_QBUF, VIDIOC_DQBUF ioctl and 'struct
> videobuf_queue'
>
> Why does v4l2 driver need to use 'videobuf_queue'?
>
> Please. tell me v4l2 driver internal operation.
>
> Thanks.
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to make qbuf
2009-07-07 6:44 how to make qbuf 서정민
2009-07-07 13:23 ` Rafael Diniz
@ 2009-07-08 15:57 ` Lamarque Vieira Souza
2009-07-09 2:53 ` Dongsoo, Nathaniel Kim
2 siblings, 0 replies; 4+ messages in thread
From: Lamarque Vieira Souza @ 2009-07-08 15:57 UTC (permalink / raw)
To: video4linux-list
Em Tuesday 07 July 2009, 서정민 escreveu:
> Hi.
Hi,
> I'm making V4l2 device driver for mplayer.
mplayer already implements v4l2 specification, you do not need to implement a
driver for it.
> But
> It's too difficult to understand V4l2 driver internal structure.
>
> I can't understand how to use VIDIOC_QBUF, VIDIOC_DQBUF ioctl and 'struct
> videobuf_queue'
VIDIOC_QBUF queues a buffer (struct v4l2_buffer) to a buffer list managed by
the device driver (usually a kernel module). The driver fills the buffer with
needed information (image data, compression type, etc) and the application
must use VIDIOC_DQBUF to get the filled buffer from the device driver's buffer
list. Applications, such as mplayer must use VIDIOC_QBUF and VIDIOC_DQBUF.
videobuf_queue is used by the device driver (kernel space) to manage the
buffer list. If you are creating/changing an application (mplayer) you do not
need to know about videobuf_queue. If you are creating a device driver for a
capture device (webcam, etc) in kernel space then using videobuf_queue will
make your life easier.
> Why does v4l2 driver need to use 'videobuf_queue'?
videobuf_queue is not mandatory but it will make it easier to manage video
frames and implement some needed ioctls in the device driver.
> Please. tell me v4l2 driver internal operation.
You can read more bout v4l2 here http://v4l2spec.bytesex.org/spec-
single/v4l2.html
> Thanks.
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
--
Lamarque V. Souza
http://www.geographicguide.com/brazil.htm
Linux User #57137 - http://counter.li.org/
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to make qbuf
2009-07-07 6:44 how to make qbuf 서정민
2009-07-07 13:23 ` Rafael Diniz
2009-07-08 15:57 ` Lamarque Vieira Souza
@ 2009-07-09 2:53 ` Dongsoo, Nathaniel Kim
2 siblings, 0 replies; 4+ messages in thread
From: Dongsoo, Nathaniel Kim @ 2009-07-09 2:53 UTC (permalink / raw)
To: 서정민; +Cc: video4linux-list
Hello,
I suppose you can have more comments if you post on the current v4l2 list.
I mean, linux-media@vger.kernel.org
And also you can find latest v4l2 works at linuxtv.org the leading
community of v4l2.
I think I can help you if you give me more specific question about
what makes you confused.
Cheers,
On Tue, Jul 7, 2009 at 3:44 PM, 서정민<sirseo@gmail.com> wrote:
> Hi.
>
> I'm making V4l2 device driver for mplayer.
> But
> It's too difficult to understand V4l2 driver internal structure.
>
> I can't understand how to use VIDIOC_QBUF, VIDIOC_DQBUF ioctl and 'struct
> videobuf_queue'
>
> Why does v4l2 driver need to use 'videobuf_queue'?
>
> Please. tell me v4l2 driver internal operation.
>
> Thanks.
> --
> video4linux-list mailing list
> Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/video4linux-list
>
--
=
DongSoo, Nathaniel Kim
Engineer
Mobile S/W Platform Lab.
Digital Media & Communications R&D Centre
Samsung Electronics CO., LTD.
e-mail : dongsoo.kim@gmail.com
dongsoo45.kim@samsung.com
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] 4+ messages in thread