Hi all,
I’m working with a sensor that outputs 1296 pixels per line in Y10 format (Jetson Xavier AGX, JetPack 4.5.1), this means 2592 bytes per line but on the output frame I received 2624 bytes, this added 16 pixels as padding.
We are working with V4L2 utils.
I calculated that the padding is caused because 2592 is not a dividable by 64 but 2624 does.
I’m not sure about the origin of the 64 value, however, the stride alignment is defined here in the sources
/kernel/nvidia/include/media/tegra_camera_core.h
as 1 I changed that values to 32 and the padding was removed, the output frames now have the correct size.
Why is that value defined as 1?
Is it safe to change the defined value to other values?
It solved my padding problem but I’m not sure if this will cause other problems that I have not detected. Could you provide any extra information/warning about changing that value?
Thanks.