CreateGpuTurbo
函数功能
创建GPU加速类实例。
约束说明
NA
函数原型
void *CreateGpuTurbo(uint32_t type)
参数说明
参数名称 |
输入/输出 |
参数类型 |
参数描述 |
---|---|---|---|
type |
输入 |
uint32_t |
用于指定要用于GPU加速的GPU卡型号。 |
其中,type的可选取值如下。
enum GpuType : uint32_t { GPU_A_W6600 = 0x6600, GPU_A_W6800 = 0x6800, };
返回值说明
数据类型:GpuEncoderBase *
GpuEncoderBase接口类涉及接口
GpuEncoderBase接口类涉及接口详细描述请参见Init,Deinit,Start,Stop,CreateBuffer,ImportBuffer,ReleaseBuffer,MapBuffer,UnmapBuffer,RetriveBufferData,Convert,Encode,SetEncodeParam,Reset。
GpuEncoderBase接口类返回值说明:
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, // 部分编码参数设置后需要reset生效 ERR_UNKNOW };