Convert
Function Usage
Calls the GPU to convert the format. It converts data in the input buffer and writes it 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 whose data format is to be converted. |
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 buffer format is successfully converted.
- Other: Failed to convert the buffer format.
Parent topic: GPU Acceleration APIs (C and C++)