Capturing odd resolutions on iMX8M mini

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capturing odd resolutions on iMX8M mini

Jump to solution
431 Views
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
0 Kudos
Reply
1 Solution
406 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
418 Views
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 Kudos
Reply
407 Views
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 Kudos
Reply