hi_vpss_grp_attr

Description

Defines the VPSS group attributes.

Prototype

typedef struct {
    hi_u32                     max_width;
    hi_u32                     max_height;
    hi_pixel_format            pixel_format;
    hi_dynamic_range           dynamic_range;
    hi_frame_rate_ctrl         frame_rate;
    hi_bool                    nr_en;
    hi_vpss_nr_attr            nr_attr;
    hi_u32                     reserved[20];
} hi_vpss_grp_attr;

Members

Member

Description

max_width

Maximum width of the input image.

It is a static attribute. That is, it is set when a group is created, and its value cannot be changed.

max_height

Maximum height of the input image.

It is a static attribute. That is, it is set when a group is created, and its value cannot be changed.

pixel_format

Pixel format of the input image.

It is a static attribute. That is, it is set when a group is created, and its value cannot be changed.

  • When the VPSS group ID is within the range of [0, 256), the following formats are supported: HI_PIXEL_FORMAT_YVU_SEMIPLANAR_420 and HI_PIXEL_FORMAT_YUV_SEMIPLANAR_420.
  • When the VPSS group ID is within the range of [256, 264), the following formats are supported: HI_PIXEL_FORMAT_YVU_SEMIPLANAR_422, HI_PIXEL_FORMAT_YUV_SEMIPLANAR_422, HI_PIXEL_FORMAT_YVU_SEMIPLANAR_420, HI_PIXEL_FORMAT_YUV_SEMIPLANAR_420,

    and HI_PIXEL_FORMAT_YUV_400.

dynamic_range

Reserved and value must be set to 0.

frame_rate

Group frame rate.

nr_en

Whether to enable NR.

The options are as follows:

  • HI_FALSE: disabled.
  • HI_TRUE: enabled.

nr_attr

NR attribute.

reserved

Reserved. To ensure compatibility in later versions, use the memset struct for resetting and initialization. Do not explicitly access the reserved field in the code.