ImportBuffer
Function Usage
Imports a buffer from an external system.
Restrictions
N/A
Prototype
int32_t ImportBuffer(FrameFormat format, uint64_t handle, GpuEncoderBufferT &buffer) = 0
Parameter Description
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
format |
Input |
FrameFormat |
Format of the buffer to be imported. |
handle |
Input |
uint64_t |
Handle or video RAM address corresponding to the buffer to be imported. |
buffer |
Output |
GpuEncoderBufferT & |
Pointer used to mount the buffer after the import. |
Return Value Description
Data type: GpuEncoderErrorCode
The value can be any of the following:
- OK: The buffer is successfully imported.
- Other: Failed to import the buffer.
Parent topic: GPU Acceleration APIs (C and C++)