> ¼ÛÈ£»ó wrote:
>
> I'm almost beginner at coding and poor at English.
>
> My question is that how I can use v4l api(?) on qt application.
>
> I want to display captured video on Qt widget( I didn't find any
> matching qt class ).
>
> source is RGB24, NTSC.
>
> kind people, just hint me some code.
>
> should I post this message to Qt mailing list?
You really need a combination of X and Qt to do it efficiently (rather
than drawing it pixel by pixel).
Use XCreateImage to create an XImage ZPixmap whose depth and visual
matches your Qt display (QPaintDevice::x11AppDisplay()), then convert
your captured video from the capture format (RGB24) to the XImage
format, and finally draw the XImage to your Qt window by doing an
XPutIMage() to the QWidget::winId() (X windows window ID) of the
application window you want to.
Ben
_______________________________________________
Video4linux-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/video4linux-list