12.15. VI¶
【Debug Information】
# cat /proc/cvitek/vi
-------------------------------MODULE PARAM-------------------------------------
DetectErrFrame DropErrFrame
0 0
-------------------------------VI MODE------------------------------------------
DevID PrerawFE PrerawBE Postraw Scaler
0 online online offline offline
-------------------------------VI DEV ATTR1-------------------------------------
DevID DevEn BindPipe Width Height IntfM WkM ScanM
0 Y Y 1920 1080 MIPI 1MUX P
-------------------------------VI DEV ATTR2-------------------------------------
DevID AD0 AD1 AD2 AD3 Seq DataType WDRMode
0 -1 -1 -1 -1 N/A RGB None
-------------------------------VI BIND ATTR-------------------------------------
DevID PipeNum PipeId
0 0 0
-------------------------------VI DEV TIMING ATTR-------------------------------
DevID DevTimingEn DevFrmRate DevWidth DevHeight
0 N 0 1920 1080
-------------------------------VI CHN ATTR1-------------------------------------
DevID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt
0 0 1920 1080 N N -1 -1 NV21 SDR8
-------------------------------VI CHN ATT2--------------------------------------
DevID ChnID CompressMode Depth Align
0 0 None 0 32
-------------------------------VI CHN OUTPUT RESOLUTION-------------------------
DevID ChnID Mirror Flip Width Height PixFmt VideoFmt CompressMode FrameRate
0 0 N N 1920 1080 NV21 SDR8 None -1
-------------------------------VI CHN ROTATE INFO-------------------------------
DevID ChnID Rotate
0 0 0
-------------------------------VI CHN EARLY INTERRUPT INFO----------------------
DevID ChnID Enable LineCnt
0 0 N 0
-------------------------------VI CHN CROP INFO---------------------------------
DevID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
0 0 N RAT 0 0 0 0 0 0 0 0
-------------------------------VI CHN STATUS------------------------------------
DevID ChnID Enable FrameRate IntCnt RecvPic LostFrame VbFail Width Height
0 0 N 0 1550 1550 0 0 1920 1080
【Analysis】
Record the property configuration and status information of current video input device and channel.
【Parameter Description】
Parameter |
Decription |
|
---|---|---|
MODULE PARAM |
DetectErrFrame |
When the signal is unstable, the detected error frame image strategy is discarded in real time. This parameter is only used in debugging, and is not recommended in official products. Set this value to 0 and lose the error frame in real time. >0: when the number of consecutive error frames detected is greater than this value, it is considered as timing mismatch, and the subsequent frames will not be discarded; 0: the default value, which means to discard the detected error frame image in real time. < 0: turn off the function of detecting error frame. |
DropErrFrame |
When it is detected that the current frame is an error frame, the next few frames may also be error frames and should be discarded. 0: the default value, which means that the continuous frame loss function is not enabled, and only the current error frame is discarded; >0: this parameter indicates that when an image error is detected, drop_err_frame frames (including the current frame) will be lost continuously, regardless of whether the subsequent image is correct or not. |
|
VI MODE |
DevID |
device number Valid range: [0, VI_MAX_DEV_NUM)。 |
PrerawFE |
PrerawFE (Pre-Raw Front End) working mode. |
|
PrerawBE |
PrerawBE (Pre-Raw Back End) working mode. |
|
Postraw |
Postraw (Post-Raw) working mode |
|
Scaler |
Scaler working mode |
|
VI DEV ATTR1 |
DevID |
device number Valid range: [0, VI_MAX_DEV_NUM)。 |
DevEn |
Equipment enable. N: Close; Y: Open. |
|
BindPipe |
Whether the device is bound to a pipe. N: Unbound; Y: Bound. |
|
Width |
Device width. Unit: pixels |
|
Height |
Device height. Unit: pixels |
|
IntfM |
Input mode. MIPI or BT or LVDS |
|
WkM |
Working mode, now only 1MUX |
|
ScanM |
Interlaced or line by line input. Value : {I,P} VI_SCAN_INTERLACED = I, VI_SCAN_PROGRESSIVE = P |
|
VI DEV ATTR2 |
DevID |
Device number. Valid range: [0, VI_MAX_DEV_NUM)。 |
AD0 |
AD number |
|
AD1 |
AD number |
|
AD2 |
AD number |
|
AD3 |
AD number |
|
Seq |
Data order. Value: {VUVU, UVUV, UYVY, VYUY, YUYV, YVYU}。 |
|
DataType |
Input data type, RGB by default. |
|
WDRMode |
WDR mode. WDR_2L1: two in one line mode WDR_2F1: two in one frame mode WDR_3L1: three in one line mode WDR_3F1: three in one frame mode WDR_4L1: four in oneline mode WDR_4F1: four in oneframe mode |
|
VI BIND ATTR |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
PipeNum |
Pipe number |
|
PipeId |
PIPE ID. Valid range: [0, VI_MAX_PIPE_NUM)。 |
|
VI DEV TIMING ATTR |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
DevTimingEn |
Whether to enable self-generated timing function: (is_offline_preraw) N: Shut down; ; Y: Open ; |
|
DevFrmRate |
The frame rate of self-generating timing set by the user (When it is greater than the maximum frame rate supported by the device, the maximum frame rate of the device is returned.) |
|
DevWidth |
Device width. Unit: pixels |
|
DevHeight |
Device height. Unit: pixels |
|
VI CHN ATTR1 |
ChnID |
Channel ID. |
Width |
Channel output width. |
|
Height |
Channel output height. |
|
Mirror |
mirror enable N: Shut down; Y: Open. |
|
Flip |
flip enable N: Shut down; Y: Open. |
|
SrcFRate |
Source frame rate. |
|
DstFRate |
Destination frame rate. |
|
PixFmt |
Output pixel format. |
|
VideoFmt |
Output video format. |
|
VI CHN ATT2 |
CompressMode |
Whether to compress N: Shut down; Y: Open. |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
|
ChnID |
Channel ID. |
|
Depth |
The user obtains the queue depth of the channel frame. |
|
Align |
The channel image line is stride aligned. |
|
VI CHN OUTPUTRESOLUTION |
ChnID |
Channel ID. |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
|
Mirror |
mirror enable N: Shut down; Y: Open. |
|
Flip |
flip enable N: Shut down; Y: Open. |
|
Width |
Channel output width. |
|
Height |
Channel output height. |
|
PixFmt |
Output pixel format. |
|
VideoFmt |
Output video format. |
|
CompressMode |
Whether to compress N: Shut down; Y: Open. |
|
FrameRate |
Frame rate |
|
VI CHN EARLYINTERRUPT INFO |
ChnID |
Channel ID. |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
|
Enable |
Whether to enable the function of reporting interruption in advance. N: Shut down; Y: Open. |
|
LineCnt |
Number of lines that were reported in advance for interruption. |
|
VI CHN CROP INFO |
ChnID |
Channel ID. |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
|
CropEn |
Whether the CROP function is enabled. (cvi_isp_s_selection,V4L2_SEL_TGT_CROP) N: Shut down; Y: Open. |
|
CoorType |
Coordinate type. RAT: relative coordinate; ABS: absolute coordinates. |
|
CoorX |
Horizontal direction start coordinate. When the coordinate type is relative, the legal value range is [0,999]; When the coordinate type is absolute, the legal value range is [0, VI_CHN_MAX_WIDTH]。 |
|
CoorY |
Starting coordinate in vertical direction. When the coordinate type is relative, the legal value range is [0,999]; When the coordinate type is absolute, the legal value range is [0, VI_CHN_MAX_HEIGHT ]。 |
|
Width |
CROP RECT width. This cannot exceed the maximum image width. |
|
Height |
CROP RECT height. This cannot exceed the maximum image height. |
|
TrimX |
The coordinates of the starting point of the actual image. |
|
TrimY |
The coordinates of the starting point of the actual image. |
|
TrimWid |
Actual image width in pixels. |
|
TrimHgt |
Actual image height in pixels. |
|
VI CHN STATUS |
ChnID |
Channel ID. |
DevID |
Device ID. Valid range: [0, VI_MAX_DEV_NUM)。 |
|
Enable |
Channel enable. 0: not enabled; 1: Enable. |
|
FrameRate |
Frame Rate |
|
IntCnt |
Channel interrupt count. |
|
RecvPic |
Number of images received. |
|
LostFrame |
Channel frame loss |
|
Width |
Channel width |
|
Height |
Channel height |