YUV420 textures

Post Reply
fcorbier
Posts: 3
Joined: Sun Jul 06, 2008 8:24 am

YUV420 textures

Post by fcorbier » Sun Jul 06, 2008 7:07 pm

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

ector
Posts: 1
Joined: Mon Jul 07, 2008 4:00 pm

Re: YUV420 textures

Post by ector » Mon Jul 07, 2008 4:01 pm

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 :-)

fcorbier
Posts: 3
Joined: Sun Jul 06, 2008 8:24 am

Re: YUV420 textures

Post by fcorbier » Fri Jul 11, 2008 7:43 pm

Thanks for the tip, I guess I'm just gonna deal with RGB textures then :)

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests