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

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.