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