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
single N input_mem
-------------------------------VPSS GRP ATTR----------------------------------------------
GrpID MaxW MaxH PixFmt SrcFRate DstFRate dev
# 0 1920 1080 YUV_PLANAR_420 -1 -1 0
-------------------------------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
# 0 # 1 Y N N 30 30
0 AUTO 0 0 0 0 0x0
# 0 # 2 N N N 0 0
0 NONE 0 0 0 0 0x0
# 0 # 3 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
-------------------------------VPSS CHN CROP INFO-------------------------
GrpID ChnID CropEn CoorType CoorX CoorY Width Height
# 0 # 0 N RAT 0 0 0 0
# 0 # 1 N RAT 0 0 0 0
# 0 # 2 N RAT 0 0 0 0
# 0 # 3 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
-------------------------------VPSS CHN OUTPUT RESOLUTION-----------------
GrpID ChnID Enable Width Height Pixfmt Videofmt SendOK FrameRate
# 0 # 0 Y 1920 1080 YUV_PLANAR_420 LINEAR 905
24
# 0 # 1 Y 1280 720 YUV_PLANAR_420 LINEAR 905
24
# 0 # 2 N 0 0 RGB_888 LINEAR 0
0
# 0 # 3 N 0 0 RGB_888 LINEAR 0
0
-------------------------------VPSS CHN ROTATE INFO-----------------------
GrpID ChnID Rotate
# 0 # 0 0
# 0 # 1 0
# 0 # 2 0
# 0 # 3 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
# 0 # 1 N N 0 0
0 0 0 0
# 0 # 2 N N 0 0
0 0 0 0
# 0 # 3 N N 0 0
0 0 0 0
------------------------------DRV WORK STATUS------------------------------
dev IspTrigCnt0 IspTrigCnt1 IspTrigFailCnt0 IspTrigFailCnt1
UserTrigCnt UserTrigFailCnt IrqCnt0 IrqCnt1
# 0 0 0 0 0
0 0 0 0
# 1 0 0 0 0
905 0 905 0
-------------------------------VPSS CHN BUF WRAP ATTR---------------------
GrpID ChnID Enable BufLineWrapBufSize
# 0 # 0 N 0 0
# 0 # 1 N 0 0
# 0 # 2 N 0 0
# 0 # 3 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, which is invalid in single mode. By default, it shows 0. |
|
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 WORKSTATUS |
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 OUTPUTRESOLUTION |
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. |
|
SendOK |
Number of images successfully sent. |
|
FrameRate |
Real time frame rate of channel output. |
|
VPSS CHN ROTATEINFO |
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 |
Effective when aspect ratio is not maintained. The Crop scale in the horizontal direction. |
|
YRatio |
Effective when aspect ratio is not maintained. The Crop scale in the vertical direction. |
|
XYRatio |
Effective when aspect ratio is maintained. Overall Crop scale in horizontal and vertical directions. |
|
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 STATUSDriver work status |
dev |
Vpss hardware device number |
IspTrigCnt0 |
Online ISP trigger count for vpss, for sensor0 image. |
|
IspTrigCnt1 |
Online ISP trigger count for vpss, for sensor1 image. |
|
IspTrigFailCnt0 |
Online ISP trigger failure count for vpss, for sensor0 image. |
|
IspTrigFailCnt1 |
Online ISP trigger failure count for vpss, for sensor1 image. |
|
UserTrigCnt |
Offline vpss trigger count. |
|
UserTrigFailCnt |
Offline vpss trigger failure count. |
|
IrqCnt0 |
Interrupt count for sensor0. |
|
IrqCnt1 |
Interrupt count for sensor1. |
|
VPSS CHN BUF WRAPATTR |
GrpID |
Group ID number. |
ChnID |
Channel ID number |
|
Enable |
Enabled or not. |
|
BufLineWrapBufSize |
Size of Slice buffer. |