Is the buffer corresponding to the bufferdesc parameter CPU buffer or DMA buffer

  1. No. For the Jetson device, the memType value shows the hardware buffer type. NVBUF_MEM_DEFAULT, NVBUF_MEM_SURFACE_ARRAY and NVBUF_MEM_HANDLE are different types of hardware buffers. I think NVBUF_MEM_HANDLE type is what you call DMA buffer.
  2. NvBuffer and NvBufsurface are totally different.
  3. You can refer to What's the difference between LAYOUT_PITCH and LAYOUT_BLOCKLINEAR?