Their are routines in both ffmpeg and mpeg_encode that do this conversion. You might also check libmjpeg. On Friday 08 February 2002 06:03 am, you wrote: > Hello, > > I'm trying to get pictures from my webcam (toucam pro - philips) and send > them to the screen using svgalib. > Everything works fine, but the camera only uses YUV4:2:0 for palette, so I > have to convert it to RGB24 to draw the pixels... > I don't know how !! > Second problem is that the picture printed on the screen is small, double, > and with bad colours... is my vga.config file wrong ? or is it coming from > the capture ? > > Thank you for any help, > > Vincent > > PS i tried the formulas : > B = 1.164(Y - 16) + 2.018(U - 128) > G = 1.164(Y - 16) - 0.813(V - 128) - 0.391(U - 128) > R = 1.164(Y - 16) + 1.596(V - 128) > but they give wrong colours... > > > > _______________________________________________ > Video4linux-list mailing list > Video4linux-list@xxxxxxxxxx > https://listman.redhat.com/mailman/listinfo/video4linux-list