Re: Video4Linux with Qt

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



> ¼ÛÈ£»ó 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





[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