Originally Posted by RandomGuy723842
Hi, need your help to create a logo for Xiaomi Redmi Go or at least determine how BMPs are packed there. (remove space in the link)
1 - Since there are no "BM" headers in splash.img (open file in hex editor), we can not extract BMPs from it.
2 - RawPixels.net shows eccentric MI logo for Redmi Go resolution (720x1280), I guess we can convert some RAW RGB24 to PNG and edit it and revert it to RAW RGB24 and integrate in splash.img.
3 - If run
"FFMPEG -hide_banner -s 720x1280-f rawvideo -vcodec rawvideo -pix_fmt rgb24 -i splash.img logo_%04d.png"
you will got eccentric/cutted 4 PNG with MI logo, FastBoot,MI logo unlocked and System error, with bad colors.
So need, to cut off header (1/2/4/16/20 kb) and use brg24/bgr24/grb24 or some else color table.
But none of them are good and color table is bgr24.
4 - reverting last one, this is good, to BMP with
"FFMPEG -s 720x1280 -vcodec png -i logo_0004.png -vcodec rawvideo -f rawvideo -pix_fmt bgr24 4.bmp"
we got 2.764.800 bytes BMP. Header + 4 that size = 11.061.248 bytes splash.img so header is 2048 bytes...Nope, bootload is different resolution...3rd and 4th bitmap are good, but 1st and 2nd are not...
5 - If use MI6 bitmaps and resize to RedMi Go res...could be used in splash.img..but how to do that some other time...
but let have experiment - 2kb header from ReadMiGo and 4 bitmaps from MI6 - does it works for you?