DRIVE OS Linux 5.2.6 and DriveWorks 4.0
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?
There is no input attribute for it. I am checking internally for this issue and update you.
Does NvSciBufImageAttrKey_PlaneBaseAddrAlign works for you?
@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?
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.
Ok. Thank you for your update.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.