NvBufSurfaceParams¶
-
struct
NvBufSurfaceParams
Holds information about a single buffer in a batch.
Public Members
-
uint32_t
width
¶ Holds the width of the buffer.
-
uint32_t
height
¶ Holds the height of the buffer.
-
uint32_t
pitch
¶ Holds the pitch of the buffer.
-
NvBufSurfaceColorFormat
colorFormat
¶ Holds the color format of the buffer.
-
NvBufSurfaceLayout
layout
¶ Holds BL or PL.
For dGPU, only PL is valid.
-
uint64_t
bufferDesc
¶ Holds a DMABUF FD.
Valid only for NVBUF_MEM_SURFACE_ARRAY and NVBUF_MEM_HANDLE type memory.
-
uint32_t
dataSize
¶ Holds the amount of allocated memory.
-
void *
dataPtr
¶ Holds a pointer to allocated memory.
Not valid for NVBUF_MEM_SURFACE_ARRAY or NVBUF_MEM_HANDLE.
-
NvBufSurfacePlaneParams
planeParams
¶ Holds planewise information (width, height, pitch, offset, etc.).
-
NvBufSurfaceMappedAddr
mappedAddr
¶ Holds pointers to mapped buffers.
Initialized to NULL when the structure is created.
-
uint32_t