12.15. VIΒΆ

Debugging 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 

Debugging Information Analysis

recordcurrentVideo InputDeviceandChannelAttributeConfigurationandStatusInformation.

Parameter Description

Parameter

Description

MODULE PARAMVI ModuleParameter

DetectErrFrame: video frame

signalnotstabletime, real-timediscardtostrategy. thisParameteronlytodebugtimeUse, production productinnotrecommendUse, thisvalue0, real-timeErrorFrame.

>0: When tocontinuousErrorFramenumbergreater thanthisvaluetime, thenisistiming, aftersurfaceFramenotthendiscard;

0: default value, meansreal-time toErrorFrameImage.

<0: CloseErrorFrameFunction.

DropErrFrame

When tocurrentFrameisErrorFrametime, isconnectundertoFramealsocancanisErrorFrame, shouldthisdiscard.

0: default value, meansnot enabledcontinuousFrameFunction, onlydiscardcurrentErrorFrame;

> 0: thisParametermeansWhen toFigure Errortime, continuousdrop_er r_frameFrame(containscurrentFrame), not aftersurfaceImageWhethercorrect.

VI MODEVI PIPEOperating mode

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

PrerawFE

PrerawFEOperating mode

PrerawBE

PrerawBEOperating mode

Postraw

PostrawOperating mode

Scaler

ScalerOperating mode

VI DEV ATTR1Video InputDevice attributes1

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

DevEn

DeviceEnable.

N: Disabled;

Y: Open.

BindPipe

DeviceWhetherBindpipe.

N: not bound;

Y: already bound.

Width

DeviceWidth, Unit: pixels.

Height

DeviceHeight, Unit: pixels.

IntfM

InputMode. MIPI or BT or LVDS

WkM

Operating mode, inonlyhas1MUX

ScanM

Interlaced or progressive input.

value range: {I, P}. VI_SCAN_INTERLACED= I, VI_SCAN_PROGRESSIVE = P

VI DEV ATTR2Video InputDevice attributes2

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

AD0

AD number.

AD1

AD number.

AD2

AD number.

AD3

AD number.

Seq

Dataorder.

value range: {VUVU, UVUV, UYVY, VYUY, YUYV, YVYU}.

DataType

InputData Types, defaultisRGB.

WDRMode

WDRMode.

WDR_2L1: combinedoneMode

WDR_2F1: combinedoneFrameMode

WDR_3L1: threecombinedoneMode

WDR_3F1: threecombinedoneFrameMode

WDR_4L1: fourcombinedoneMode

WDR_4F1: fourcombinedoneFrameMode

VI BIND ATTRBinding Relationships

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

PipeNum

PipeCount

PipeId

PIPEnumber.

Valid range: [0, VI_MAX_PIPE_NUM).

VI DEV TIMING ATTRautogeneratetimingAttribute

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

DevTimingEn

Whether to enableautogeneratetimingFunction: (is_offline_preraw)

N: Disabled;

Y: Open;

DevFrmRate

UserSet autogeneratetimingFrame rate; (When itsgreater thanDeviceSupportMaximumFrame ratetime, ReturnDeviceMaximumFrame rate)

DevWidth

DeviceWidth, Unit: pixels;

DevHeight

DeviceHeight, Unit: pixels;

VI CHN ATTR1PhysicalChannel attributes1

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

Width

ChannelOutputWidth.

Height

ChannelOutputHeight.

Mirror

mirrorEnable N: Disabled; Y: Open.

Flip

flipEnable N: Disabled; Y: Open.

SrcFRate

sourceFrame rate.

DstFRate

PurposeFrame rate.

PixFmt

OutputPixel format.

VideoFmt

OutputVideo format.

VI CHN ATT2PhysicalChannel attributes2

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

CompressMode

WhetherCompression N: Disabled; Y: Open.

Depth

User GetChannelFramedepth.

Align

ChannelImagestrideAlignment.

VI CHN OUTPUTRESOLUTIONVIChannelOutputImageAttribute

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

Mirror

mirrorEnable N: Disabled; Y: Open.

Flip

flipEnable N: Disabled; Y: Open.

Width

ChannelOutputWidth.

Height

ChannelOutputHeight.

PixFmt

OutputPixel format.

VideoFmt

OutputVideo format.

CompressMode

WhetherCompression N: Disabled; Y: Open.

FrameRate

Frame rate.

VI CHN ROTATE INFOVI ChannelRotationAttribute

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

Rotate

Channel rotation angle.

VI CHN EARLYINTERRUPT INFOprovidebeforeoninterruptInformation

DevID VI_MAX

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

Enable

Whethermake canprovidebeforeoninterruptFunction. N: Disabled; Y: Open.

LineCnt

providebeforeoninterruptnumber.

VI CHN CROP INFOVIChannelCropAttribute

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

CropEn

Whether to enableCROP Function. (cvi_isp_s_select ion, V4L2_SEL_TGT_CROP) N: Disabled; Y: Open.

CoorType

CoordinateType. RAT: RelativeCoordinate; ABS: AbsoluteCoordinate.

CoorX

HorizontaldirectionstartCoordinate. CoordinateTypeisRelative time, validValue Rangeis[0, 999]; CoordinateTypeisAbsolute time, validValue Rangeis[0, VI_CHN_MAX_WIDTH].

CoorY

Starting coordinate in the vertical direction. CoordinateTypeisRelative time, validValue Rangeis[0, 999]; CoordinateTypeisAbsolute time, validValue Rangeis[0, VI_CHN_MAX_HEIGHT ].

Width

CROP RECT width must not exceed the maximum image width.

Height

CROP RECT height must not exceed the maximum image height.

TrimX

Actual image starting-point coordinate.

TrimY

Actual image starting-point coordinate.

TrimWid

Imagewidth, Unit: pixels.

TrimHgt

ImageHigh, Unit: pixels.

VI CHN STATUSChannelStatusInformation

DevID

Device number.Valid range: [0, VI_MAX_DEV_NUM).

ChnID

Channel number.

Enable

ChannelEnable. 0: not enabled; 1: Enable.

FrameRate

Frame rate.

IntCnt

Channelinterruptnumber.

RecvPic

ReceivetoImageCount.

LostFrame

ChannelFramenumber.

VbFail

ChannelGetVBFailurenumber.

Width

ChannelWidth.

Height

ChannelHeight.