Capturing odd resolutions on iMX8M mini

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Capturing odd resolutions on iMX8M mini

ソリューションへジャンプ
624件の閲覧回数
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: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com
ラベル(2)
0 件の賞賛
返信
1 解決策
599件の閲覧回数
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: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
611件の閲覧回数
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 件の賞賛
返信
600件の閲覧回数
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: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: www.ridgerun.com
0 件の賞賛
返信