Re: YUV 4:2:0 and RGB24...

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



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





[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