Jump to content

NVIDIA Jetson VI Stride Alignment: Difference between revisions

(Created page with "==Overview== The following document gathers together notes about a capture subsystem limitation presented on Jetson platforms and how to deal with it by enabling the "stride alignment" feature. ==VI image size limitation== The capture subsystems found on Jetson platforms (Video Input Unit) have a limitation on data acquisition where the bytes per line on the image should be a number divisible by 64. ===Bytes per line divisible by 64=== VI can capture images where the...")
 
Line 115: Line 115:
* Checking the files, it seems that the stride alignment is selected by <code>TEGRA_SURFACE_ALIGNMENT</code> on '''kernel/nvidia/include/media/vi2_registers.h''' (default 64).
* Checking the files, it seems that the stride alignment is selected by <code>TEGRA_SURFACE_ALIGNMENT</code> on '''kernel/nvidia/include/media/vi2_registers.h''' (default 64).


====VI4 - TX2 (Verified)====
====VI4 - TX2====
* For JP-4.2 and older versions, the stride alignment is selected by <code>TEGRA_STRIDE_ALIGNMENT</code> on '''kernel/nvidia/include/media/tegra_camera_core.h''' (default 1).
* For JP-4.2 and older versions, the stride alignment is selected by <code>TEGRA_STRIDE_ALIGNMENT</code> on '''kernel/nvidia/include/media/tegra_camera_core.h''' (default 1).
* For higher versions than JP-4.2, the stride alignment is selected by <code>RM_SURFACE_ALIGNMENT</code> on '''kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c''' (default 256).
* For higher versions than JP-4.2, the stride alignment is selected by <code>RM_SURFACE_ALIGNMENT</code> on '''kernel/nvidia/drivers/media/platform/tegra/camera/vi/vi4_fops.c''' (default 256).
Line 125: Line 125:
</blockquote>
</blockquote>


====VI5 - Xavier (No tested)====
====VI5 - Xavier ====
* Relevant changes are not found for stride alignment for the latest Kernels. <code>TEGRA_STRIDE_ALIGNMENT</code> should still working.
* The stride alignment is selected by <code>TEGRA_STRIDE_ALIGNMENT</code> on '''kernel/nvidia/include/media/tegra_camera_core.h'''.


[[Category:NVIDIA]][[Category:Jetson]][[Category:TX2]][[Category:Xavier]][[Category:EramirezNotes]]
[[Category:NVIDIA]][[Category:Jetson]][[Category:TX2]][[Category:Xavier]][[Category:EramirezNotes]]
286

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.