---
title: hi_isp_clut_attr
description: "定义CLUT的增益。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/ispdevug/ispdevapi_0275.html
sourcePath: /source/zh/canncommercial/900/others/ispdevug/ispdevapi_0275.html
indexId: c757f58f98a2b8b2399aecf19182c66d9f0e9232fcc047ce25c29a02a247910f65
---
# hi_isp_clut_attr

#### 说明

定义CLUT的增益。


#### 定义

```
typedef struct {
hi_bool
enable;
hi_u32
gain_r;
hi_u32
gain_g;
hi_u32
gain_b;
} hi_isp_clut_attr;
```


#### 成员

| 成员名称 | 描述 |
| --- | --- |
| enable | CLUT使能， 取值范围：HI\_FALSE：关闭， HI\_TRUE：使能。 |
| gain\_r | R通道增益，取值范围：[0,4095]。 |
| gain\_g | G通道增益，取值范围：[0,4095]。 |
| gain\_b | B通道增益，取值范围：[0,4095]。 |


#### 注意事项

增益设定为512时，相当于增益是1.0。增益和LUT查表得出的调整量相乘，得到实际调整量。实际调整量和输入RGB值相加得到输出RGB值。
