I'm writing my owns tool for converting picture.
I've some problems with the palette of the vmu save icon.
I have an array of Hex value :
const unsigned char vmu_bios_save_icon[544] ={
//Palette
0xF2,0x24,0xF5,0x45,0xF2,0x2C,0xFA,0xBB,
0xF0,0x9F,0xF2,0x01,0xF5,0x68,0xF9,0xAD,
0xFE,0xEE,0xFF,0xFF,0xF7,0xDF,0xF6,0x31,
0xFE,0x61,0xFE,0xB0,0xF2,0x46,0xFA,0x71,
//Icon image
0x77,0x77,0x77,0x77,0x77,0x77,0x77,0x00,
0x00,0x07,0x77,0x77,0x77,0x77,0x77,0x77,
0x77,0x77,0x77,0x77,0x77,0x77,0x71,0x22,
...
pkg.icon_cnt = 1;
memcpy(&pkg.icon_pal[0], vmu_bios_save_icon, 32);
pkg.icon_data = vmu_bios_save_icon + 32;
But I only have blue palette as you can see in the picture. Left original and right vmy icon
I use the define PACK4444(a, r, g, b) ( ((a>>4) << 12) | ((r>>4)<<8) | ((g>>4)<<4) | ((b>>4)) )
For example, the orange value
in ARGB = 255 255 73 26
in Hex = 0xFF,0x41
Green value = 73 decimal => (1001001b>>4)<<4 => 0100 => 0x4