调色板

来源:互联网 发布:极大极小算法 编辑:程序博客网 时间:2024/04/28 19:34

// the "framebuffer" is 8bpp

// the framebuffer.framebuffer points to a memory that looks like:

//

// [8 bytes header]

// [1024 bytes for palette]

// [framebuffer.width*framebuffer.height bitmap data]

//

// the header is hard coded - do NOT modify

//

// the palette is 1024 bytes, 256 entries, 4 bytes for each entry

// each entry is defined to be:

//

// [1 byte alpha blending value] 0xff = solid, 0x00 = transparent

// [1 byte Y]

// [1 byte U]

// [1 byte V]