How to setting the android HAL ,to use IPU format YUV422 to YUV420

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

How to setting the android HAL ,to use IPU format YUV422 to YUV420

1,328 次查看
jack-cap
Contributor III

Hi NXP:

  I am working on imx6q with android7.1 platform ,I want to setting the Max9286Mipi.cpp ,pass the parameters to IPU.

We want change the camera module image from YUV422(UYVY) to NV21,when I did not change the parameters,the camera app preview is normal,but capture the video,the video file is abnormal.(attachment: VID_19700101_000326.yuv)

when I change the  

sensorFormats[index] = v4l2_fourcc('Y', 'U', 'Y', 'V');---->sensorFormats[index] = v4l2_fourcc('N', 'V', '1', '2'); 

 availFormats[index++] = v4l2_fourcc('Y', 'U', 'Y', 'V');

the system camera can not open.

is any wrong for my change?

thanks

标签 (1)
0 项奖励
回复
3 回复数

1,172 次查看
joanxie
NXP TechSupport
NXP TechSupport

how do you change the parameter? change the yuv to NV12 by IPU ? could you give me your detailed operation steps?

0 项奖励
回复

1,172 次查看
jack-cap
Contributor III

I change the parameter from HAL layer Max9286.cpp  

It seems that  the IPU only support NV12

0 项奖励
回复

1,172 次查看
joanxie
NXP TechSupport
NXP TechSupport

if you  mean set the csi format, you need set the CSI0_SENS_
DATA_FORMAT in the register IPU_CSI_SENS_CONF

0 项奖励
回复