Rate This Document
Findability
Accuracy
Completeness
Readability

Encode

Function Usage

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

Restrictions

N/A

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.