---
title: CreateGpuTurbo
description: "创建GPU加速类实例。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/armnative/kunpengcpsvideo_17_0050.html
sourcePath: /source/zh/kunpengboostkithistory/2300/armnative/kunpengcpsvideo_17_0050.html
indexId: b23d5e7d390361d70f361a349b5a0f54d0bc0e6dd7f50b90b1c93e493418fff377
---
# 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
};
```
