Hi Denis,

Denis Oliver Kropp wrote:
> Phil Endecott wrote:
>> Dear All,
>> 
>> I'm trying to understand what the DirectFB video support can do, having 
>> never done anything with video before.
>> 
>> Obviously it can support playing video "layers" in graphics hardware.  
>> But I'm unclear whether I can also use it with, for example, my V4L2 
>> USB webcam.  Is it possible to open this device and copy frames of 
>> video from it to the screen?  I've had a quick go, and it gets as far 
>> as the VIDIOC_S_FBUF ioctl.  Looking at what that does, it doesn't seem 
>> something that it should need to do to just read frames from the 
>> camera.  So I suspect that I'm expecting more from this than I should be.
>
> Using "df_layer /dev/video0" /should/ show your USB camera frames.

Thanks for the suggestion.  I'm still using DirectFB 1.0 where I seem 
to have something called dfblayer; is it the same thing?  I guess not; 
I can't make it do anything.

Anyway I have thrown together some code using the v4l2 API directly and 
it seems to work.  The more complex bit was working out how to decode 
the mjpeg stream, as this format doesn't actually seem to be documented 
anywhere...


Cheers,  Phil.



_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to