Horizontal cropping for IMX2xx sensors on TX1

Hi,

I’m currently trying to get cropping working properly on the IMX230 sensor, I have been successful cropping the max active frame (5344x4016) when cropping on the vertical axis (the height); so for instance we are able to get properly from the camera frames from the following resolutions:

5344x3016
5344x2016

And so on. However, we are not able to get the frame properly when we crop on the horizontal axis (the width), it seems like the the readout lines are somehow out of order and I get a corrupted frame.

In order to perform the cropping we set the following registers:

To define width:

CROP_X_START_ADDR_MSB 0x0344
CROP_X_START_ADDR_LSB 0x0345
CROP_X_END_ADDR_MSB 0x0348
ROP_X_END_ADDR_LSB 0x0349

To define height:

CROP_Y_START_ADDR_MSB 0x0346
CROP_Y_START_ADDR_LSB 0x0347
CROP_Y_END_ADDR_MSB 0x034A
CROP_Y_END_ADDR_LSB 0x034B

To define the output frame width:

CROP_X_OUTPUT_SIZE_MSB 0x034C
CROP_X_OUTPUT_SIZE_LSB 0x034D

To define the output frame Height:

CROP_Y_OUTPUT_SIZE_MSB 0x034E
CROP_Y_OUTPUT_SIZE_LSB 0x034F

I’ve also tried changing the frame lenght of the frame but had no positive results so far. Has someone ran into this issue with these sensors? Could you point out if we are missing to set a register properly in order to get the cropping working properly on the horizontal axis?

Best regards and thanks in advance,
JJ

@josejich
The sensor REG is too much and to complicate to modify. It’s better to get the setting from sensor vendor.