Sample v4l driver reads video file?

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



I'm poking around the v4l sample application and sample driver v4lcap
and wondered it was possible to use this sample driver as a model to
"read" a video file through the v4l device. I thought this might be an
interesting project to learn a few things...

In place of the static color bar image, perhaps one could read a frame
from a file instead. I have a question:

Are the v4l capture buffers filled as part of an interrupt handler? Or
more generally how are interrupts handled in v4l? Reading a file from
inside a driver (while normally dumb? needs happen within a process
context and so I'd need to figure that out...)

I've read a bit about wait queues so perhaps I need to put each frame
read onto the scheduler queue (or my own queue) to provide a process
context. Then tell the capture to wait until my task has returned. Not
sure about any of this as kernel stuff is new to me.
-- 





[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