How to display pictures on IMX8QXP M4 core

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to display pictures on IMX8QXP M4 core

1,663 次查看
relax-wu
Contributor IV

CPU:imx8qx6avlf
SDK:Android Q10.0.0_2.2.0_AUTO
lunch mek_8q_car_userdebug

We noticed that the NXP logo will be displayed when the machine is turned on. It is converted into an array and placed in rear_view_camera/nxp_logo.h.

/*
 * Copyright 2018 NXP
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#define NXP_LOGO_WIDTH (200)
#define NXP_LOGO_HEIGHT (150)

static const uint8_t NXP_logo[NXP_LOGO_WIDTH * NXP_LOGO_HEIGHT * 2 + 1] =
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
    "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
//······
}

relax-wu_1-1620807162231.png

How do you convert the picture into an array? I want to replace the NXP logo with my own picture.

0 项奖励
回复
5 回复数

1,630 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Unfortunately, I cannot find a script to change the image.

According to the code rear_view_camera.c, there is a #define "APP_MAKE_COLOR(red, green, blue)". And for an example, the white color is define as APP_COLOR_WHITE APP_MAKE_COLOR(0x1F, 0x3F, 0x1F). I think you may search any tool (e.g. from google) to convert the image file to RGB hex. And then use the APP_MAKE_COLOR(red, green, blue) to create an array of your logo image to replace the NXP logo.

0 项奖励
回复

1,625 次查看
relax-wu
Contributor IV

Sorry, I made a mistake. We don't know how to customize the boot animation. Because M4 controls the display at the beginning, and finally Android controls the display.

0 项奖励
回复

1,621 次查看
jimmychan
NXP TechSupport
NXP TechSupport

I think it is the logo for u-boot and for Android.

FYI. I hope this link can help you.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Patch-to-support-uboot-logo-keep-from-ub...

 

 

0 项奖励
回复

1,616 次查看
relax-wu
Contributor IV

Refer attachment 8.1.1 Interfaces to control the EVS function

relax-wu_0-1622711088403.png

This is in M4.

0 项奖励
回复

1,613 次查看
jimmychan
NXP TechSupport
NXP TechSupport

For the EVS, I need to check with the internal AE. I will let you know when I get the reply.

0 项奖励
回复