NvSciBuf allocation with pitch

Software Version
DRIVE OS Linux 5.2.6 and DriveWorks 4.0

Hardware Platform

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?

Dear @AdamBalazsVay,
There is no input attribute for it. I am checking internally for this issue and update you.

Thanks a lot @SivaRamaKrishnaNV

Dear @AdamBalazsVay,
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?

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.

1 Like

Dear @AdamBalazsVay,
Ok. Thank you for your update.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.