12.17. VPSS¶
【Debug Information】
# cat /proc/cvitek/vpss
Module: [VPSS], Build Time[#1 SMP PREEMPT Wed Feb 24 15:02:47 CST 2021]
-------------------------------MODULE PARAM-------------------------------
vpss_vb_source vpss_split_node_num
0 1
-------------------------------VPSS MODE----------------------------------
vpss_mode dev0 dev1
dual input_isp input_mem
-------------------------------VPSS GRP ATTR----------------------------------------------
GrpID MaxW MaxH PixFmt SrcFRate DstFRate dev
# 0 1920 1080 YUV_PLANAR_420 -1 -1 0
# 1 1920 1080 YUV_PLANAR_420 -1 -1 1
-------------------------------VPSS CHN ATTR------------------------------
GrpID PhyChnID Enable MirrorEn FlipEn SrcFRate DstFRate
Depth Aspect videoX videoY videoW videoH BgColor
# 0 # 0 Y N N 30 30
0 AUTO 0 0 0 0 0x0
# 1 # 0 Y N N 30 30
0 AUTO 0 0 0 0 0x0
# 1 # 1 Y N N 0 0
0 NONE 0 0 0 0 0x0
# 1 # 2 N N N 0 0
0 NONE 0 0 0 0 0x0
-------------------------------VPSS GRP CROP INFO-------------------------
GrpID CropEn CoorType CoorX CoorY Width Height
# 0 N RAT 0 0 0 0
# 0 N RAT 0 0 0 0
-------------------------------VPSS CHN CROP INFO-------------------------
GrpID ChnID CropEn CoorType CoorX CoorY Width Height
# 0 # 0 N RAT 0 0 0 0
# 1 # 0 N RAT 0 0 0 0
# 1 # 1 N RAT 0 0 0 0
# 1 # 2 N RAT 0 0 0 0
-------------------------------VPSS GRP WORK STATUS-----------------------------------------------------
GrpID RecvCnt LostCnt StartFailCnt bStart CostTime(us) MaxCostTime(us)
HwCostTime(us) HwMaxCostTime(us)
# 0 905 0 0 Y 7241 9007
7029 7038
# 1 905 0 0 Y 7241 9007
7029 7038
-------------------------------VPSS CHN OUTPUT RESOLUTION-----------------
GrpID ChnID Enable Width Height Pixfmt Videofmt VbPool SendOK FrameRate
# 0 # 0 Y 1920 1080 YUV_PLANAR_420 LINEAR 0* 905 24
# 1 # 0 Y 1280 720 YUV_PLANAR_420 LINEAR 1 905 24
# 1 # 1 Y 1280 720 RGB_888 LINEAR 1 905 24
# 1 # 2 N 0 0 RGB_888 LINEAR 0 0 0
-------------------------------VPSS CHN ROTATE INFO-----------------------
GrpID ChnID Rotate
# 0 # 0 0
# 1 # 0 0
# 1 # 1 0
# 1 # 2 0
-------------------------------VPSS CHN LDC INFO-----------------------
GrpID ChnID Enable Aspect XRatio YRatio
XYRatio XOffset YOffset DistortionRatio
# 0 # 0 N N 0 0
0 0 0 0
# 1 # 0 N N 0 0
0 0 0 0
# 1 # 1 N N 0 0
0 0 0 0
# 1 # 2 N N 0 0
0 0 0 0
------------------------------DRV WORK STATUS DEV0------------------------------
GrpID Cnt FailCnt IrqCnt OverFlowCnt
# 0 905 0 905 0
# 1 0 0 0 0
# 2 0 0 0 0
# 3 0 0 0 0
# 4 0 0 0 0
------------------------------DRV WORK STATUS DEV1------------------------------
UserTrigCnt UserTrigFailCnt IrqCnt
905 0 905
-------------------------------VPSS CHN BUF WRAP ATTR---------------------
GrpID ChnID Enable BufLineWrapBufSize
# 0 # 0 N 0 0
# 1 # 0 N 0 0
# 1 # 1 N 0 0
# 1 # 2 N 0 0
【Analysis】
Record the current VPSS attribute configuration and status information.
【Parameter Description】
Parameter |
Decription |
|
---|---|---|
MODULE PARAM |
vpss_vb_source |
Video cache pool type. 0: public VB 1: Reserve 2: UserVB |
vpss_split_node_num |
The number of block nodes. |
|
VPSS MODE |
vpss_mode |
VPSS mode Single or Dual mode. |
dev0 |
The input source of VPSS dev0. ISP or memory. |
|
dev1 |
The input source of VPSS dev1. ISP or memory. In single mode, only dev1 is available. |
|
VPSS GRP ATTR |
GrpID |
GRP ID. Valid Range: [0,VPSS_MAX_GRP_NUM)。 |
MaxW |
Group input image maximum width. |
|
MaxH |
Group input image maximum height. |
|
PixFmt |
Group input image pixel format. |
|
SrcFRate |
GRP source frame rate. |
|
DstFRate |
GRP target frame rate. |
|
Dev |
The hardware dev number used by Group. |
|
VPSS CHN ATTR |
GrpID |
GRP ID. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
PhyChnID |
Physical channel ID number. Valid range: [0, VPSS_MAX_PHY_CHN_NUM)。 |
|
Enable |
Whether the channel is enabled. N: Shut down; Y: Open. |
|
MirrorEn |
mirror enable N: Shut down; Y: Open. |
|
FlipEn |
flip enable N: Shut down; Y: Open. |
|
SrcFRate |
Channel frame rate control: source frame rate. |
|
DstFRate |
Channel frame rate control: target frame rate. |
|
Depth |
The length of the queue for the user to obtain the channel image. |
|
Aspect |
Amplitude shape ratio mode. NONE: turn off the amplitude shape ratio AUTO: automatic mode MANUAL: manual mode |
|
videoX |
X coordinate of video position. Manual mode is valid. |
|
videoY |
Y coordinate of video position. Manual mode is valid. |
|
videoW |
Video width. Manual mode is valid. |
|
videoH |
Video height. Manual mode is valid. |
|
BgColor |
Aspect ratio background color. Valid range: [0x0, 0xFFFFFF] |
|
VPSS GRP CROP INFO |
GrpID |
GRP ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
CropEn |
Whether to enable CROP function. N: Shut down; Y: Open. |
|
CoorType |
Coordinate type. RAT: relative coordinate; ABS: absolute coordinates. |
|
CoorX |
Horizontal initial coordinates. |
|
CoorY |
Vertical initial coordinates. |
|
Width |
CROP RECT width. This cannot exceed the maximum image width. |
|
Height |
CROP RECT height. This cannot exceed the maximum image height. |
|
VPSS CHN CROP INFO |
GrpID |
ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
ChnID |
CHN ID number. Valid range: [0, VPSS_MAX_PHY_CHN_NUM)。 |
|
CropEn |
Whether to enable CROP function. N: Shut down; Y: Open. |
|
CoorType |
Coordinate type. RAT: relative coordinate; ABS: absolute coordinates. |
|
CoorX |
Horizontal initial coordinates. |
|
CoorY |
Vertical initial coordinates. |
|
Width |
CROP RECT width. This cannot exceed the maximum image width. |
|
Height |
CROP RECT height. This cannot exceed the maximum image height. |
|
VPSS GRP WORK STATUS |
GrpID |
GRP ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
RecvCnt |
Number of images received |
|
LostCnt |
The number of images discarded because the queue is full. |
|
StartFailCnt |
The number of Start task failures. |
|
bStart |
Whether to start receiving images. |
|
CostTime(us) |
The time taken to complete the current task. |
|
MaxCostTime(us) |
The execution time of the longest task in history. |
|
HwCostTime(us) |
The current hardware processing time for the completed task. |
|
HwMaxCostTime(us) |
The execution time of the longest historical task in terms of hardware processing time. |
|
VPSS CHN OUTPUT RESOLUTION |
GrpID |
GRP ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
ChnID |
Channel ID number. Valid range: [0, VPSS_MAX_PHY_CHN_NUM)。 |
|
Enable |
Whether to enable the channel. N: Shut down; Y: Open. |
|
Width |
The width of the target image in pixels. |
|
Height |
The height of the target image in pixels. |
|
Pixfmt |
The pixel format of the target image. |
|
Videofmt |
The video format of the target image. |
|
VbPool |
The vb pool of the channel. “*” means the vb pool is attached by the channel. |
|
SendOK |
Number of images successfully sent. |
|
FrameRate |
Real time frame rate of channel output. |
|
VPSS CHN ROTATE INFO |
GrpID |
GRP ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
ChnID |
channel ID number. Valid range: [0, VPSS_MAX_PHY_CHN_NUM)。 |
|
Rotate |
Enumeration of rotation angles. |
|
VPSS CHN LDC INFO |
GrpID |
GRP ID number. Valid range: [0, VPSS_MAX_GRP_NUM)。 |
ChnID |
channel ID number. Valid range: [0, VPSS_MAX_PHY_CHN_NUM)。 |
|
Enable |
LDC switch. N: Shut down; Y: open |
|
Aspect |
Whether to maintain the aspect ratio. N: not to maintain the aspect ratio; Y: maintain the aspect ratio |
|
XRatio |
Field angle ration of horizontal. Valid aspect ratio is not maintained. |
|
YRatio |
Field angle ration of vertical. Valid aspect ratio is not maintained. |
|
XYRatio |
Field angle ration of all,valid when maintain the aspect ratio. |
|
XOffset |
Correct the X-coordinate offset of the center point. |
|
YOffset |
Correct the Y-coordinate offset of the center point. |
|
DistortionRatio |
Coefficient of correction intensity. |
|
DRV WORK STATUS DEV0/DEV1 |
GrpId |
Group ID number, valid when vpss-vi is online. |
TrigCnt |
Online ISP trigger count for vpss. |
|
FailCnt |
Online ISP trigger failure count for vpss. |
|
IrqCnt |
Interrupt count. |
|
OverFlowCnt |
Online ISP over flow count. |
|
UserTrigCnt |
Offline vpss trigger count. |
|
UserTrigFailCnt |
Offline vpss trigger failure count. |
|
IrqCnt |
Interrupt count. |
|
VPSS CHN BUF WRAPATTR |
GrpID |
Group ID number. |
ChnID |
Channel ID number |
|
Enable |
Enabled or not. |
|
BufLineWrapBufSize |
Size of Slice buffer. |