Hey Luca, On Thu, 2003-02-13 at 13:55, Luca wrote: > >> 2) The frames are grabbed using the YUV422-16bit format (original > video), > >> but when xawtv try to display them, the colours vary from green to > >> purple only (i am not an expert, but i think the u or v value > >> is setted to 0). > > >bytes swapped? > > No, it doesn't sound like bytes are swapped.. The zoran driver had byteswappings too (on YUV-4:2:2), which gave exactly the same result - YUYV became UYVY and the picture, when displayed as YUYV, was... green and purple! So I'd say it does... This is easy to check (ugly - but hey, it's for testing ;) ): static inline void swap_bytes (uint8_t *buffer, int length) { uint16_t *words = (uint16_t *) buffer; while (length >= 2) { *words = ((*words >> 8) & 0xff) | ((*words & 0xff) << 8); words++; length -= 2; } } Something like this. Feel free to try it out. Ronald -- Ronald Bultje <rbultje@xxxxxxxxxxxxxxxxxxx> Linux Video/Multimedia developer