hi_vpss_grp_attr

Function

Defines the VPSS group attributes.

Definition

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;

For details about basic data types hi_u32 and hi_bool, see Basic Data Types.

Members

Member

Description

max_width

Maximum width of the input image.

It is a static attribute. It cannot be changed after being set when a group is created.

max_height

Maximum height of the input image.

It is a static attribute. It cannot be changed after being set when a group is created.

pixel_format

Pixel format of the input image. For details, see hi_pixel_format.

It is a static attribute. It cannot be changed after being set when a group is created.

  • 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. The value must be set to 0. For details, see hi_dynamic_range.

frame_rate

Group frame rate. For details, see hi_frame_rate_ctrl.

nr_en

Whether to enable NR.

Value range:

  • HI_FALSE: Disables this function.
  • HI_TRUE: Enables this function.

nr_attr

NR attribute. For details, see hi_vpss_nr_attr.

reserved

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