hi_vpc_chn_attr

Description

Defines the attributes of an image processing channel.

Prototype

typedef struct {
    hi_s32 attr; 
    hi_u32 pic_width; 
    hi_u32 pic_height; 
} hi_vpc_chn_attr;

Members

Member

Description

attr

Task queue depth, in the range of [0, 350]. A larger value indicates that the queue depth is deeper and more tasks can be delivered in a channel, but leads to linearly increased memory consumption in the system.

attr is in the range of [0, 350].

  • If this parameter is set to 0, the value 32 is used by default.
  • If this parameter is set to [1, 10), VPC automatically sets the queue depth to 10 to implement batch processing (for example, hi_mpi_vpc_batch_crop_resize_paste).
  • If this parameter is set to [10, 350], the value configured by the user is used.
NOTE:

If the task queue depth is greater than 350, the value 350 is used in the current version. To avoid incompatibility with future versions, you are advised to set the task queue depth to a value in the range of [Minimum queue depth, 350].

In the scenario where a VPC channel is associated with n threads, you are advised to increase the task queue depth to prevent task delivery from being blocked due to full channel queues.

pic_width

Maximum channel width in pixels. Reserved. Manually set this parameter to 0 to avoid incompatibility with future versions.

This is a static attribute.

pic_height

Maximum channel height in pixels. Reserved. Manually set this parameter to 0 to avoid incompatibility with future versions.

This is a static attribute.