Posted June 24, 2023 by Crit Chance Studios
Quick little update for Dreambox!
This fixes a bug which meant texture memory was being improperly tracked (and wouldn't go down after releasing a texture), but also adds a brand new texture format: YUV420!
This is a planar YCrCb texture with 4:2:0 chroma subsampling, 8 bits per pixel. You may either upload contiguous plane data using the existing set_texture_data call (plane order is Y, then U, then V), or alternatively you can upload separate Y, U, and V planes using the new set_texture_data_yuv call.
YUV420 textures also have the power of two size requirement lifted (though dimensions must still be divisible by 2), and are intended to assist with fullscreen YCbCr video playback.
For now, mipmapping is disabled on these textures and partial region updates with set_texture_data_region are not supported.