hi_isp_ae_route

Description

Defines the attribute of the AE exposure allocation policy.

Definition

typedef struct { 
    hi_u32 total_num; 
    hi_isp_ae_route_node  route_node[HI_ISP_AE_ROUTE_MAX_NODES]; 
} hi_isp_ae_route;

Members

Member

Description

total_num

Number of nodes on the exposure allocation route. A maximum of 16 nodes are supported currently.

route_node[HI_ISP_AE_ROUTE_MAX_NODES]

Attribute of the nodes on the exposure allocation route

#define HI_ISP_AE_ROUTE_MAX_NODES 	16

Restrictions

  • A maximum of 16 nodes are supported. Each node has the exposure time, gain, and iris components. The gain includes sensor analog gain, sensor digital gain, and ISP digital gain.
  • You can set the route based on the application scenario. The allocation route can be dynamically switched.
  • According to the default AE allocation policy for the DC-Iris and manual iris, the exposure time is allocated first, and then the gain is allocated. If the current exposure does not fall within the configured route range, the default allocation policy is used. When the DC-Iris is being adjusted, the exposure adjustment does not refer to AE_ROUTE. Therefore, AE_ROUTE that takes effect is not updated.
  • According to the default AE allocation policy for the P-Iris, the iris is adjusted to the maximum size, and then the exposure time and gain are allocated in sequence. If the current exposure does not fall within the configured route range, the default allocation policy is used.
  • When the DC-Iris and P-Iris are switched in online mode, the AE route is reset to the default allocation policy that matches the iris type. You can configure the AE route as required when switching the iris type.

    The AE route parameters in the default allocation policy correspond to the minimum/maximum values of the AE exposure time, maximum/minimum values of the AE gain, and maximum/minimum values of the AE iris component. Note: Do not assign a value to iris_type in cmos.c if the iris is switched between the DC-Iris and the P-Iris in online mode, because the AE allocation route can be set in cmos.c. If no value is assigned, the iris type set by the AE algorithm is transferred to cmos.c. In this case, the AE route that matches the iris type can be obtained only by calling back cmos_get_ae_default or cmos_fps_set.