我要评分
获取效率
正确性
完整性
易理解

Convert

Function Usage

Calls the GPU to convert the format. It converts data in the input buffer and writes it to the output buffer.

Restrictions

N/A

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

Input

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.