Encode
Function Usage
Calls the GPU for video encoding. It encodes the data in the input buffer, and writes it to the output buffer.
Restrictions
N/A
Prototype
int32_t Encode(GpuEncoderBufferT &inBuffer, GpuEncoderBufferT &outBuffer) = 0
Parameters
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
inBuffer |
Input |
GpuEncoderBufferT & |
Input buffer to be encoded. |
outBuffer |
Input |
GpuEncoderBufferT & |
Output buffer for receiving encoded data. |
Returns
Data type: GpuEncoderErrorCode
The value can be:
- OK: The encoding is successful.
- Other values except OK: The encoding fails.