---
title: encoderType
description: "编码器类型。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2530/armnative/kunpengcpsvideo_16_0028.html
sourcePath: /source/zh/kunpengboostkithistory/2530/armnative/kunpengcpsvideo_16_0028.html
indexId: ae36b85abb1b1e40e7ef201b26f03c941b5d457b084c392a303c2129f189683077
---
# encoderType

#### 变量说明

编码器类型。


#### 变量数据定义

```
enum EncoderType : uint32_t {
    CPU,                                        // 软编
    VPU,                                        // 编码卡硬件加速
    GPU,                                        // GPU硬件加速
    ENCODE_TYPE_MAX
};
```


#### 约束说明

| 对应属性字段名称 | 字段描述 | 取值范围 | 默认值 |
| --- | --- | --- | --- |
| encoderType | 编码器类型 | 0：CPU（CPU软编码器编码） 1：VPU（外置硬件编码器编码） 2：GPU（仅DC1000支持） | 0，CPU编码 |
