Convert
Function Usage
Calls the GPU to convert the format. It converts the data in the input buffer, and writes it to the output buffer.
Restrictions
N/A
Prototype
int32_t Convert(GpuEncoderBufferT &inBuffer, GpuEncoderBufferT &outBuffer) = 0
Parameters
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
inBuffer |
Input |
GpuEncoderBufferT & |
Input buffer of which the data format is to be converted. |
outBuffer |
Input |
GpuEncoderBufferT & |
Output buffer for receiving data after format conversion. |
Returns
Data type: GpuEncoderErrorCode
The value can be:
- OK: The buffer format is successfully converted.
- Other values except OK: The buffer format fails to be converted.