RetriveBufferData
Function Usage
Obtains data in a buffer.
This interface is usually called when the MapBuffer interface cannot map the buffer data to the continuous memory. This interface needs to copy the data in the buffer to the memory provided by the caller.
Restrictions
The data in the buffer has been mapped through the MapBuffer interface.
Prototype
int32_t RetriveBufferData(GpuEncoderBufferT &buffer, uint8_t *data, uint32_t memLen, uint32_t &dataLen) = 0
Parameters
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
buffer |
Input |
GpuEncoderBufferT & |
Pointer to the buffer where data needs to be copied. |
data |
Input |
uint8_t * |
Address of the memory space for receiving buffer data. |
memLen |
Input |
uint32_t |
Maximum length of the memory space for receiving buffer data. |
dataLen |
Output |
uint32_t & |
Size of the data to be copied. |
Returns
Data type: GpuEncoderErrorCode
The value can be:
- OK: The buffer data is successfully obtained.
- Other values except OK: The buffer data fails to be obtained.