Software Version
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
Hardware Platform
DRIVE AGX Xavier
Hi! I want to allocate an NvSciBufObj image with an 32 aligned pitch for all planes. My plan was to set NvSciBufImageAttrKey_PlanePitch, but unfortunately NvSciBufImageAttrKey_PlanePitch seems to be an output attribute (according to the documentation). Is there a way to allocate an NvSciBufObj image with 32 aligned pitch for all planes?
@SivaRamaKrishnaNV at least I can set it without any error :) I haven’t checked if it takes effect. But it aligns only the plane data, and not the individual rows, right?
Dear @AdamBalazsVay,
NvSciBuf doesn’t provide a way to explicitly request a particular pitch.
If there’s a need for a particular alignment, the alignment of each plane can be specified via NvSciBufImageAttrKey_PlaneBaseAddrAlign . Did it help your case?
Dear @SivaRamaKrishnaNV, unfortunately NvSciBufImageAttrKey_PlaneBaseAddrAlign is not enough for us, we need to have an image with a specific pitch. Right now we need to manually copy the data to have the pitch we need. Interesting that setting the pitch is not part of the API :( Thank you for checking it.