Re: YUYV capture

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



On Tuesday, 10. December 2002 18:22, you wrote:
> Hi all,
>
> I am developing an app that captures VIDEO_PALETTE_YUYV data frames.
> In order to allocate enough data for the buffer that will hold this
> data, I need to know how YUYV is implemented in the driver/api(???)

YUYV means 
first byte: y first pixel
second byte: u for both pixels
third byte: y second pixel
fourth byte: v for both pixels

the value range of a single byte is  (IIRC) from 16 ... 240

> I'm a bit confused as to where it is implemented. Basically, I'm
> concerned with the packing of the bytes to form a single pixel, which
> should tell me the depth.

the depth is 16 bit per pixel or two bytes.

>
> Can anyone shed some light on this, or at least point me to the right
> direction to find out for myself? Thank you so much.

http://www.inforamp.net/~poynton/PDFs/coloureq.pdf (some basics about 
color)

http://planeta.terra.com.br/informatica/gleicon/video4linux/videodog.html 
(a simple video app)

>
> /G





[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