DragonMinded / libdragon

Open source library for N64 development.
https://libdragon.dev
The Unlicense
667 stars 98 forks source link

Hardware sprite routines do not support YUV #3

Open DragonMinded opened 13 years ago

DragonMinded commented 13 years ago

N64 natively supports YUV texture format, while the sprite routines do not.

rasky commented 5 months ago

On preview, we have a fully working YUV library designed for the standard case of videos but can be used also for drawing sprites. It also offers a rdpq_tex_blit wrapper to allow generic blitting (including rotation) for non interleaved YUV planes.

So while the standard sprite codepath (via mksprite and rdpq_sprite_blit) does not support YUV, I think we are covered with a dedicated library.

Also I think rdpq_tex_blit supports raw surfaces with format YUV though we don't have tests for that so probably there is some small bugs to be fixed