Re: YUYV capture

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



Franz Reinhardt (fre@xxxxxxxxxx):

> 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

  Cb/Cr is 16-240 centered at 128 (this is the digital representation of
U and V), and Y' is from 16-235.  This is all on Poynton's site.

  Also, the Cb/Cr sample isn't really for both pixels, it's a sample
sited at the first pixel's location.  To get a value for the second
pixel's chroma, you should interpolate using a filter, the wider the
better.

-- 
Billy Biggs
vektor@xxxxxxxxxxxx





[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