hi_isp_expander_attr

说明

定义Expander结构体。

定义

typedefstruct {
    hi_bool enable;
    hi_u8   bit_depth_in;            /* RW;Range:[0xC,0x14];Format:5.0;The Bit depth of input */
    hi_u8   bit_depth_out;           /* RW;Range:[0xC,0x14];Format:5.0;The Bit depth of output */
    hi_u16  expander_point_num;      /* Range:[1, 256] */
    hi_isp_cmos_expander_point expander_point[HI_ISP_EXPANDER_POINT_NUM_MAX];
} hi_isp_expander_attr;

成员

成员名称

描述

enable

expander模块的使能。

  • HI_FALSE:关闭;
  • HI_TRUE:使能。

只能在sensor built-in模式下使能expander。

bit_depth_in

输入数据位宽。

取值范围:[0xC,0x14],只能配置为偶数。

bit_depth_out

输出数据位宽。

取值范围:[0xC,0x14],只能配置为偶数。

expander_point_num

拐点坐标的数目。取值范围:[1,256]。

expander_point

解压的拐点(包括横纵坐标)。

坐标必须是单调递增的。

#define HI_ISP_EXPANDER_POINT_NUM_MAX (HI_ISP_EXPANDER_NODE_NUM - 1)

注意事项

在sensor手册中会给出sensor在sensor-built-in模式下内部压缩时使用的拐点配置,需要将这几个拐点配置按照对应的原则进行转换,然后配置到expander_point中即可。