RE: Saving YUVY image from V4L2 buffer to file

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


Do most of Webcams have no RGB support? I'm not experienced on that. Does
anybody know the percentage of RGB support by Webcams?


-----Original Message-----
From: Devin Heitmueller [mailto:dheitmueller@xxxxxxxxxxxxxx] 
Sent: Wednesday, February 03, 2010 11:19 AM
To: Charlie X. Liu
Cc: Owen O' Hehir; video4linux-list@xxxxxxxxxx
Subject: Re: Saving YUVY image from V4L2 buffer to file

On Wed, Feb 3, 2010 at 1:57 PM, Charlie X. Liu <charlie@xxxxxxxxxxxx> wrote:
> Why don't you directly set it with: fmt.fmt.pix.pixelformat =
> V4L2_PIX_FMT_BGR24, instead of converting?

That only really works if the hardware supports providing RGB data as
opposed to YUYV (which many do not).  Or, it would work if you link
against libv4l to do the conversion in userland.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Linux Kernel]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [DVB Maintainers]     [Linux USB]     [Yosemite Information]

Add to Google Powered by Linux