NvBufferGetParams failed

Hi,
It is work after set dmabuf=false,but I am concerned about memory copy issues.I don’t want to capture frame data to CPU buffer first and then copy to NvBuffer.
What can I do the next?And if just need to consider the data alignment on width?
That is the reason: