Struct CPUBuffer¶
Defined in File buffer.h
Struct Documentation¶
-
struct CPUBuffer¶
Contiguous array data on CPU memory.
CPUBuffer represents a multi-dimensional array in CPU memory with shape and data type information. Used for exposing the decoded media frames data to array libraries like NumPy and PyTorch.
Public Functions
-
void *data()¶
Get pointer to the buffer data.
- Returns:
Pointer to the data.
-
void *data()¶