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

Encode

Function Usage

Calls the GPU for video encoding. It encodes data in the input buffer and writes encoded data to the output buffer.

Prototype

int32_t Encode(GpuEncoderBufferT &inBuffer, GpuEncoderBufferT &outBuffer) = 0

Parameter Description

Field Name

Input/Output

Field Type

Description

inBuffer

Input

GpuEncoderBufferT &

Input buffer whose data is to be encoded.

outBuffer

Output

GpuEncoderBufferT &

Output buffer for receiving encoded data.

Return Value Description

Data type: GpuEncoderErrorCode

The value can be any of the following:

  • OK: The encoding is successful.
  • Other: The encoding fails.