hi_vpc_chn_attr
Description
Defines the VPC attributes.
Prototype
hi_vpc_chn_attr = {"attr": attr,
"pic_width": pic_width, # RW; reserved
"pic_height": pic_height} # RW; reserved
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].
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 processing channel is associated with n threads, to prevent task delivery from being blocked due to full channel queue, you are advised to increase the task queue depth to ensure performance. When the number of threads is less than or equal to 32, the default queue depth 32 can be used. If the number of threads is greater than or equal to 32, set the queue depth to a number that is greater than or equal to the number of threads. |
pic_width |
Int, maximum width of the processed image supported by a channel, in pixels. Reserved. Manually set this parameter to 0 to avoid incompatibility with future versions. This is a static attribute. |
pic_height |
Int, maximum height of the processed image supported by a channel, in pixels. Reserved. Manually set this parameter to 0 to avoid incompatibility with future versions. This is a static attribute. |