CreateGpuTurbo
Function Usage
Creates a GPU-accelerated instance.
Restrictions
N/A
Prototype
void *CreateGpuTurbo(uint32_t type)
Parameters
Parameter |
Input/Output |
Class |
Description |
|---|---|---|---|
type |
Input |
uint32_t |
Specifies the GPU model to be used for GPU acceleration. |
The option values of type are as follows:
enum GpuType : uint32_t {
GPU_A_W6600 = 0x6600,
GPU_A_W6800 = 0x6800,
};
Returns
Data type: GpuEncoderBase *
Involved Functions of the GpuEncoderBase Interface Class
For details about the involved functions, see Init, Deinit, Start, Stop, CreateBuffer, ImportBuffer, ReleaseBuffer, MapBuffer, UnmapBuffer, RetriveBufferData, Convert, Encode, SetEncodeParam, and Reset.
Returns of the GpuEncoderBase interface class:
enum GpuEncoderErrorCode : uint32_t {
OK,
ERR_INVALID_STATUS,
ERR_INVALID_DEVICE,
ERR_INVALID_PARAM,
ERR_OUT_OF_MEM,
ERR_UNEXPECT_STATUS,
ERR_UNSUPPORT_FORMAT,
ERR_UNSUPPORT_OPERATION,
ERR_INTERNAL_ERROR,
ERR_NEED_RESET, // Some encoding parameters need to be reset to take effect.
ERR_UNKNOW
};