Capturing odd resolutions on iMX8M mini

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

Capturing odd resolutions on iMX8M mini

跳至解决方案
1,775 次查看
alejandro_flores
Contributor I

Hello,

I am working on a sensor driver for an iMX8M mini module. This sensor allows resolutions with odd Height values, for example width=240 x height=135.

I've noticed that every time I input an odd Height, this value is rounded to the next even number, in this example, is rounded from 135 to 136.

Is this some platform specific limitation? Is there any reason why odd resolutions could not be supported?

 

Thank you.

Alejandro Flores
Embedded SW Engineer at RidgeRun
Contact us: [email protected]
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com
0 项奖励
回复
1 解答
1,750 次查看
alejandro_flores
Contributor I

 

Hello @joanxie, thanks for your answer.

I am using multiple formats, however, that register that you mentioned gave me a huge hint of what might be the issue.

The documentation of the CSI_IMAG_PARA register states the following:

  • If the input data from the sensor is 8-bit/pixel format, the IMAGE_WIDTH should be a multiple of 8 pixels.
  • If the input data from the sensor is 10-bit/pixel or 16-bit/pixel format, the IMAGE_WIDTH should be a multiple of 4 pixels.

I believe that this the limitation that I was looking for, with this information I should be able to limit which resolutions can be used or not.

Thank you.

Alejandro Flores
Embedded SW Engineer at RidgeRun
Contact us: [email protected]
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,762 次查看
joanxie
NXP TechSupport
NXP TechSupport

what format of data from your camera? pls refer to the CSI_IMAG_PARA in the reference manual and read this register to check

0 项奖励
回复
1,751 次查看
alejandro_flores
Contributor I

 

Hello @joanxie, thanks for your answer.

I am using multiple formats, however, that register that you mentioned gave me a huge hint of what might be the issue.

The documentation of the CSI_IMAG_PARA register states the following:

  • If the input data from the sensor is 8-bit/pixel format, the IMAGE_WIDTH should be a multiple of 8 pixels.
  • If the input data from the sensor is 10-bit/pixel or 16-bit/pixel format, the IMAGE_WIDTH should be a multiple of 4 pixels.

I believe that this the limitation that I was looking for, with this information I should be able to limit which resolutions can be used or not.

Thank you.

Alejandro Flores
Embedded SW Engineer at RidgeRun
Contact us: [email protected]
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com
0 项奖励
回复