Page 1 of 1

YUV420 textures

Posted: Sun Jul 06, 2008 7:07 pm
by fcorbier
I'm currently porting the MPlayer media player to the Wii ( http://ronwarez.com/mplayerwii ) and for speed purposes, I'd like to display YUV textures on the screen instead of converting the YUV video source to RGB texture formats on every frame.

By grep-ing, I could see that there are some references to some YUV420p texture format, but I have no idea how to use it. Is there any source code or example available?

Thanks,
-fcorbier

Re: YUV420 textures

Posted: Mon Jul 07, 2008 4:01 pm
by ector
There is none, however, the TEV can be tricked into converting YUV to RGB. You would upload the Y, U and V channel into separate textures, and then combine them in a clever way using multiple texture coordinates and multitexturing.

I don't have a working code example though - I've just seen games doing this in Dolphin :-)

Re: YUV420 textures

Posted: Fri Jul 11, 2008 7:43 pm
by fcorbier
Thanks for the tip, I guess I'm just gonna deal with RGB textures then :)