修改Qcom450开机画面
概述
定制高通平台显示启动画面。ffmpeg生成文件,通过xxd生成.h
安装ffmpeg
jack@android:~/tools/bootchart/kernel_super$ sudo apt-get install ffmpeg
[sudo] password for jack:
Reading package lists... Done
Building dependency tree
使用
找一张图片
图片转换.raw文件
jack@android:~/tools/bootchart/kernel_super$ ffmpeg -i logo_superh_clut224.png -f rawvideo -pix_fmt bgr24 logo_super.raw
图片转换.raw文件
jack@android:~/tools/bootchart/kernel_super$ xxd -i logo_super.raw > logo.h
jack@android:~/tools/bootchart/kernel_super$
更换图片数组
~jack\git_\android-8953-r7.1\bootable\bootloader\lk\platform\msm_shared\include\splash.h
imageBuffer数组
修改点数组如下目录:
~jack\git_new_base1\android-8953-r7.1\bootable\bootloader\lk\platform\msm_shared\include\splash.h
//xxx开机画面
static char imageBuffer_rgb888[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xec, 0xec, 0xec,
0xf9, 0xf9, 0xf9, 0xf8, 0xf8, 0xf8, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7,
...
0x09, 0x00, 0x09, 0x09, 0x00, 0x09, 0x09, 0x00, 0x09, 0x09, 0x00, 0x09,
0x09, 0x00, 0x09, 0x09, 0x00, 0x09, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};
感谢阅读,祝君成功!
-by aiziyou