Convert
Function Usage
Calls the GPU to convert the format of data in the input buffer and writes the converted data to the output buffer.
Prototype
int32_t Convert(GpuEncoderBufferT &inBuffer, GpuEncoderBufferT &outBuffer) = 0
Parameter Description
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
inBuffer |
Input |
GpuEncoderBufferT & |
Input buffer containing the data requiring format conversion. |
outBuffer |
Output |
GpuEncoderBufferT & |
Output buffer for receiving data after format conversion. |
Return Value Description
Data type: GpuEncoderErrorCode
The value can be any of the following:
- OK: The data format conversion is successful.
- Other: Failed to convert the data format.
Parent topic: GPU Acceleration APIs (C and C++)