7791
- 收藏
- 点赞
- 分享
- 举报
外部模拟sensor通过LVDS发送数据给海思进行抓图调试问题
通过FPGA模拟LVDS时序发送数据给Hi3559AV100,配置好海思VI属性,然后用dump抓取raw图,现在一直出现错误码0xa010800e,查阅文档得知是输入视频缓存为空,查看了很多相关的资料也没有找到解决办法,
获取数据的代码如下:
[code]VI_DUMP_ATTR_S stDumpAttr;
stDumpAttr.bEnable = HI_TRUE;
stDumpAttr.u32Depth = 3;
// 调用 HI_MPI_VI_SetPipeDumpAttr 设置 dump 属性、使能 dump、设置 depth,否则获取不到 raw 数据。
s32Ret = HI_MPI_VI_SetPipeDumpAttr(ViRawOutPipe, &stDumpAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_SetPipeDumpAttr failed with %#x\n", s32Ret);
goto EXIT4;
}
SAMPLE_PRT("test8\n");
for (i = 0; i < 2000; i++)
{
VIDEO_FRAME_INFO_S stRawInfo;
HI_S32 s32MilliSec = 10000;
HI_BOOL bLongExpFrame;
s32Ret = HI_MPI_VI_GetPipeFrame(ViRawOutPipe, &stRawInfo, s32MilliSec);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_GetPipeFrame failed with %#x\n", s32Ret);
continue;
}
/* find the capture raw frame, this is just a demo. */
if (i == 99)
{
s32Ret = SAMPLE_Capture_TriggerFrameProc(ViCapturePipe, ViChn, VencChn, &stRawInfo);
SAMPLE_PRT("test99\n");
for(int j = 0; j < 100; j++)
{
printf("%d\n",stRawInfo.stVFrame.u64HeaderPhyAddr+j);
}
if (HI_SUCCESS != s32Ret)
{
break;
}
/* get jpg */
s32Ret = SAMPLE_COMM_VENC_SaveJpeg(VencChn, 1);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VENC_SaveJpeg failed with %#x\n", s32Ret);
goto EXIT5;
}
printf("Save captured picture successfully.\n");
}
s32Ret = HI_MPI_VI_ReleasePipeFrame(ViRawOutPipe, &stRawInfo);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_ReleasePipeFrame failed with %#x\n", s32Ret);
goto EXIT5;
}
}[/code]
在使用HI_MPI_VI_GetPipeFrame的时候错误提示为0xa010800e,视频输入缓存为空。
获取的mipi有关LVDS的设置如下:
[code]combo_dev_attr_t LVDS_2lane_CHN0_SENSOR_TEST_8BIT_8M_NOWDR_ATTR =
{
.devno = 0,
.input_mode = INPUT_MODE_LVDS,
.data_rate = MIPI_DATA_RATE_X1,
.img_rect = {0, 0, 308, 300},
.lvds_attr =
{
.input_data_type = DATA_TYPE_RAW_10BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SOF,
.vsync_attr = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_attr = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_LITTLE,
.sync_code_endian = LVDS_ENDIAN_LITTLE,
.lane_id = {0, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
.sync_code =
{
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
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},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
}
}
}
};[/code]
出现视频输入缓存为空,vi log 如下:
[code]/proc/umap # cat vi
[VI] Version: [Hi3559AV100_MPP_V2.0.1.0 B092 Release], Build Time[Jul 12 2018, 21:24:43]
-------------------------------MODULE PARAM ---------------------------------------------------------------------------
DetectErrFrame DropErrFrame
0 0
-------------------------------VI MODE --------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode Pipe6Mode Pipe7Mode
offline offline offline offline offline offline offline offline
-------------------------------VPSS MODE ------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode Pipe6Mode Pipe7Mode
offline offline offline offline offline offline offline offline
-------------------------------VI STITCH GRP ATTR----------------------------------------------------------------------
StitchGrp bStitch PipeNum PipeId
-------------------------------VI DEV ATTR1----------------------------------------------------------------------------
DevID DevEn BindPipe Width Height IntfM WkM ComMsk0 ComMsk1 ScanM
0 Y Y 308 300 LVDS 1Mux ff000000 0 P
-------------------------------VI DEV ATTR2----------------------------------------------------------------------------
DevID AD0 AD1 AD2 AD3 Seq DataType DataRev BasW BasH HReph VReph WDRMode DataRate
0 -1 -1 -1 -1 N/A RGB N 308 300 NONE NONE None X1
-------------------------------VI BIND ATTR----------------------------------------------------------------------------
DevID PipeNum PipeId
0 4 0, 1, 2, 3,
-------------------------------VI DEV TIMING ATTR----------------------------------------------------------------------
DevID DevTimingEn DevFrmRate DevWidth DevHeight
-------------------------------VI PIPE ATTR1---------------------------------------------------------------------------
PipeID BypassMode YuvSkip IspBypass Width Height PixFmt BitWidth NrEn SharpenEn CompressMode
0 BypassNone N N 308 300 RAW8 8 Y N Line
1 BypassNone N N 308 296 RAW8 8 Y N Line
2 BypassNone N N 308 296 RAW8 8 Y N Line
3 BypassNone N N 308 296 RAW8 8 Y N Line
-------------------------------VI PIPE ATTR2---------------------------------------------------------------------------
DiscProPic SrcFRate DstFRate FrameSource RepeatMode VCNum
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
-------------------------------VI PIPE CROP ATTR-----------------------------------------------------------------------
PipeID CropEn CoorX CoorY Width Height
-------------------------------VI PIPE NR ATTR-------------------------------------------------------------------------
PipeID BitWidth CompressMode PixFmt RefSrc Intf Version OptMode
0 8 None SP420 RFR NR_X VER_1 MANUAL
1 8 None SP420 RFR NR_X VER_1 MANUAL
2 8 None SP420 RFR NR_X VER_1 MANUAL
3 8 None SP420 RFR NR_X VER_1 MANUAL
-------------------------------VI PIPE NRX_V1 PARAM--------------------------------------------------------------------
PipeID ISO nRef SBS0 SBS1 SBS2 SDS0 SDS1 SDS2 STH0 STH1 STH2 MATH TFS SFC TFC
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-------------------------------VI PIPE USER PIC ATTR-------------------------------------------------------------------
PipeID Enable ChnID Mode BgColor PicID Width Height Stride PixFmt PoolID PhyAddr
-------------------------------VI PIPE DUMP ATTR-----------------------------------------------------------------------
PipeID Enable Depth
0 Y 3
-------------------------------VI PIPE BNR DUMP ATTR-------------------------------------------------------------------
PipeID Enable Depth
-------------------------------VI CHN ATTR1----------------------------------------------------------------------------
PipeID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt DynamicRange
1 0 308 296 N N -1 -1 SP420 LINEAR SDR8
2 0 308 296 N N -1 -1 SP420 LINEAR SDR8
3 0 308 296 N N -1 -1 SP420 LINEAR SDR8
-------------------------------VI CHN ATTR2----------------------------------------------------------------------------
CompressMode Depth Align
None 0 0
None 0 0
None 1 0
-------------------------------VI EXTCHN ATTR1-------------------------------------------------------------------------
PipeID ChnID Source SrcChn Width Height SrcFRate DstFRate PixFmt DynamicRange CompressMode Depth
-------------------------------VI EXTCHN ATTR2-------------------------------------------------------------------------
Align
-------------------------------VI CHN CROP INFO------------------------------------------------------------------------
PipeID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
1 0 N RIT 0 0 0 0 0 0 0 0
2 0 N RIT 0 0 0 0 0 0 0 0
3 0 N RIT 0 0 0 0 0 0 0 0
-------------------------------VI CHN ROTATION INFO--------------------------------------------------------------------
PipeID ChnID Rotation
1 0 0
2 0 0
3 0 0
-------------------------------VI CHN LDC INFO-------------------------------------------------------------------------
PipeID ChnID Enable Aspect XRatio YRatio XYRatio XOffset YOffset DistortionRatio
1 0 N N 0 0 0 0 0 0
2 0 N N 0 0 0 0 0 0
3 0 N N 0 0 0 0 0 0
-------------------------------VI CHN ROTATIO_EX INFO------------------------------------------------------------------
PipeID ChnID Enable ViewType Angle XOffset YOffset Width Height
1 0 N ALL 0 0 0 0 0
2 0 N ALL 0 0 0 0 0
3 0 N ALL 0 0 0 0 0
-------------------------------VI CHN SPREAD INFO----------------------------------------------------------------------
PipeID ChnID Enable OutW OutH Coef
1 0 N 0 0 0
2 0 N 0 0 0
3 0 N 0 0 0
-------------------------------VI EXTCHN FISHEYE ATTR------------------------------------------------------------------
PipeID ChnID Enable MntMode RgnNum BgEnable BgColor LMF HOffset VOffset TCoef FStrength
-------------------------------VI EXTCHN FISHEYE REGION ATTR-----------------------------------------------------------
PipeID ChnID RgnIndex ViewMode InRadius OutRadius Pan Tilt HorZoom VerZoom OutX OutY OutW OutH
-------------------------------VI DIS CONFIG INFO1---------------------------------------------------------------------
PipeID ChnID Mode Motion PdtType BufNum CropRatio FrmRate GyroRange GyroBitWidth CamSteady Scale
-------------------------------VI DIS ATTR INFO------------------------------------------------------------------------
PipeID ChnID DisChn Enable GdcBypass MovSub Roef Timelag ViewAngle bStillCrop HorLimit VerLimit
-------------------------------VI SNAP ATTR INFO-----------------------------------------------------------------------
PipeID Type bLoadCCM FrameCnt rptTimes bZSL FrmDepth RollbaskMs Interval
-------------------------------VI SNAP STATUS INFO---------------------------------------------------------------------
Status bDoublePipe VideoPipe SnapPipe VcNum ProDelayInt
-------------------------------VI CHN OUTPUT RESOLUTION----------------------------------------------------------------
PipeID ChnID Enable Mirror Flip Width Height PixFmt VideoFmt DynamicRange CompressMode FrameRate
1 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
2 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
3 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
-------------------------------VI PIPE STATUS--------------------------------------------------------------------------
PipeID Enable IntCnt FrameRate LostFrame VbFail Width Height
0 Y 0 0 0 0 308 300
1 Y 0 0 0 0 308 296
2 Y 0 0 0 0 308 296
3 Y 0 0 0 0 308 296
-------------------------------VI CHN STATUS---------------------------------------------------------------------------
PipeID ChnID Enable FrameRate LostFrame VbFail Width Height
1 0 Y 0 0 0 0 0
2 0 Y 0 0 0 0 0
3 0 Y 0 0 0 0 0
-------------------------------VI PIPE Statistic-----------------------------------------------------------------------
PipeID RecvPic LostCnt BufCnt CurSoftTm MaxSoftTm CurTaskTm MaxTaskTm
0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
-------------------------------VI HW STATISTIC-------------------------------------------------------------------------
ProcIdx HWCostTm MaxHWCostTm CycleCnt MaxCycleCnt
0 0 0 0 0
1 0 0 0 0
-------------------------------VI DEV DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
0 0 0 0
-------------------------------VI BAS DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
0 0 0 0
-------------------------------VI ISP DETECT INFO----------------------------------------------------------------------
ISPID ValidWidth ValidHeight TotalWidth
0 0 0 0
1 0 0 0
2 0 0 0
3 0 0 0
[/code]
获取hi_mipi的配置信息如下:
[code]/proc/umap # cat hi_mipi
Module: [MIPI], Build Time: [Jan 8 2020, 16:55:24]
-----MIPI LANE DIVIDE MODE---------------------------------------------------------------------------------------------
MODE LANE DIVIDE
11 2+2+2+2+2+2+2+2
-----MIPI DEV ATTR-----------------------------------------------------------------------------------------------------
Devno WorkMode DataRate DataType WDRMode LinkId ImgX ImgY ImgW ImgH
0 LVDS X1 RAW10 None 0 0 0 308 300
-----MIPI LANE INFO-----------------------------------------------------------------------------------------------------
Devno LaneCnt LaneID
0 2 0, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
-----MIPI LINK INFO------------------------------------------------------
LinkIdx LaneCount LaneId PhyData0 PhyData1 AlignedData0 AlignedData1 ValidLane
0 2 0, 2 0x6e 0xcc 0x0 0x0 Invalid
-----LVDS DETECT INFO----------------------------------------------------
Devno VC width height
0 0 0 0
0 1 0 0
0 2 0 0
0 3 0 0
-----LVDS LANE DETECT INFO----------------------------------------------------
Devno Lane width height
0 0 1 0
0 2 1 0
-----LVDS/SUBLVDS/HISPI PHY AND LANE STATUS INFO--------------------------------------
Devno StatErr Link0WErr Link1WErr Link2WErr Link3WErr Link0RErr Link1RErr Link2RErr Link3RErr
0 0 0 0 0 0 0 0 0 0
Devno Lane0Err Lane1Err Lane2Err Lane3Err Lane4Err Lane5Err Lane6Err Lane7Err Lane8Err Lane9Err Lane10Err Lane11Err10s Lane12Err Lane13Err Lane14Err
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-----ALING ERROR INFO--------------------------------------
Devno FIFO_FullErr Lane0Err Lane1Err Lane2Err Lane3Err Lane4Err Lane5Err Lane6Err Lane7Err Lane8Err Lane9Err Lane10Err Lane11Err Lane12Err Lane13Err Lane14Err Lane15Err
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[/code]
我看到在LVDS DETECT INFO 和 LVDS LANE DETECT INFO 中的信息说 width和height都为0,配置完combo_dev_attr_t这个结构体后,会调用相关驱动来设置输入为LVDS模式时的相关属性,所以感觉是软件上关于LVDS设置出现了问题,但是查看代码没有找到出错的原因。请问有没有人做过类似的事情能够解答一下疑惑吗?十分感谢!
获取数据的代码如下:
[code]VI_DUMP_ATTR_S stDumpAttr;
stDumpAttr.bEnable = HI_TRUE;
stDumpAttr.u32Depth = 3;
// 调用 HI_MPI_VI_SetPipeDumpAttr 设置 dump 属性、使能 dump、设置 depth,否则获取不到 raw 数据。
s32Ret = HI_MPI_VI_SetPipeDumpAttr(ViRawOutPipe, &stDumpAttr);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_SetPipeDumpAttr failed with %#x\n", s32Ret);
goto EXIT4;
}
SAMPLE_PRT("test8\n");
for (i = 0; i < 2000; i++)
{
VIDEO_FRAME_INFO_S stRawInfo;
HI_S32 s32MilliSec = 10000;
HI_BOOL bLongExpFrame;
s32Ret = HI_MPI_VI_GetPipeFrame(ViRawOutPipe, &stRawInfo, s32MilliSec);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_GetPipeFrame failed with %#x\n", s32Ret);
continue;
}
/* find the capture raw frame, this is just a demo. */
if (i == 99)
{
s32Ret = SAMPLE_Capture_TriggerFrameProc(ViCapturePipe, ViChn, VencChn, &stRawInfo);
SAMPLE_PRT("test99\n");
for(int j = 0; j < 100; j++)
{
printf("%d\n",stRawInfo.stVFrame.u64HeaderPhyAddr+j);
}
if (HI_SUCCESS != s32Ret)
{
break;
}
/* get jpg */
s32Ret = SAMPLE_COMM_VENC_SaveJpeg(VencChn, 1);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("SAMPLE_COMM_VENC_SaveJpeg failed with %#x\n", s32Ret);
goto EXIT5;
}
printf("Save captured picture successfully.\n");
}
s32Ret = HI_MPI_VI_ReleasePipeFrame(ViRawOutPipe, &stRawInfo);
if (HI_SUCCESS != s32Ret)
{
SAMPLE_PRT("HI_MPI_VI_ReleasePipeFrame failed with %#x\n", s32Ret);
goto EXIT5;
}
}[/code]
在使用HI_MPI_VI_GetPipeFrame的时候错误提示为0xa010800e,视频输入缓存为空。
获取的mipi有关LVDS的设置如下:
[code]combo_dev_attr_t LVDS_2lane_CHN0_SENSOR_TEST_8BIT_8M_NOWDR_ATTR =
{
.devno = 0,
.input_mode = INPUT_MODE_LVDS,
.data_rate = MIPI_DATA_RATE_X1,
.img_rect = {0, 0, 308, 300},
.lvds_attr =
{
.input_data_type = DATA_TYPE_RAW_10BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SOF,
.vsync_attr = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_attr = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_LITTLE,
.sync_code_endian = LVDS_ENDIAN_LITTLE,
.lane_id = {0, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1},
.sync_code =
{
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D}
},
{
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB, 0xB6, 0x80, 0x9D},
{0xAB,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 0xB6, 0x80, 0x9D}
}
}
}
};[/code]
出现视频输入缓存为空,vi log 如下:
[code]/proc/umap # cat vi
[VI] Version: [Hi3559AV100_MPP_V2.0.1.0 B092 Release], Build Time[Jul 12 2018, 21:24:43]
-------------------------------MODULE PARAM ---------------------------------------------------------------------------
DetectErrFrame DropErrFrame
0 0
-------------------------------VI MODE --------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode Pipe6Mode Pipe7Mode
offline offline offline offline offline offline offline offline
-------------------------------VPSS MODE ------------------------------------------------------------------------------
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode Pipe4Mode Pipe5Mode Pipe6Mode Pipe7Mode
offline offline offline offline offline offline offline offline
-------------------------------VI STITCH GRP ATTR----------------------------------------------------------------------
StitchGrp bStitch PipeNum PipeId
-------------------------------VI DEV ATTR1----------------------------------------------------------------------------
DevID DevEn BindPipe Width Height IntfM WkM ComMsk0 ComMsk1 ScanM
0 Y Y 308 300 LVDS 1Mux ff000000 0 P
-------------------------------VI DEV ATTR2----------------------------------------------------------------------------
DevID AD0 AD1 AD2 AD3 Seq DataType DataRev BasW BasH HReph VReph WDRMode DataRate
0 -1 -1 -1 -1 N/A RGB N 308 300 NONE NONE None X1
-------------------------------VI BIND ATTR----------------------------------------------------------------------------
DevID PipeNum PipeId
0 4 0, 1, 2, 3,
-------------------------------VI DEV TIMING ATTR----------------------------------------------------------------------
DevID DevTimingEn DevFrmRate DevWidth DevHeight
-------------------------------VI PIPE ATTR1---------------------------------------------------------------------------
PipeID BypassMode YuvSkip IspBypass Width Height PixFmt BitWidth NrEn SharpenEn CompressMode
0 BypassNone N N 308 300 RAW8 8 Y N Line
1 BypassNone N N 308 296 RAW8 8 Y N Line
2 BypassNone N N 308 296 RAW8 8 Y N Line
3 BypassNone N N 308 296 RAW8 8 Y N Line
-------------------------------VI PIPE ATTR2---------------------------------------------------------------------------
DiscProPic SrcFRate DstFRate FrameSource RepeatMode VCNum
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
N -1 -1 BE NONE 0
-------------------------------VI PIPE CROP ATTR-----------------------------------------------------------------------
PipeID CropEn CoorX CoorY Width Height
-------------------------------VI PIPE NR ATTR-------------------------------------------------------------------------
PipeID BitWidth CompressMode PixFmt RefSrc Intf Version OptMode
0 8 None SP420 RFR NR_X VER_1 MANUAL
1 8 None SP420 RFR NR_X VER_1 MANUAL
2 8 None SP420 RFR NR_X VER_1 MANUAL
3 8 None SP420 RFR NR_X VER_1 MANUAL
-------------------------------VI PIPE NRX_V1 PARAM--------------------------------------------------------------------
PipeID ISO nRef SBS0 SBS1 SBS2 SDS0 SDS1 SDS2 STH0 STH1 STH2 MATH TFS SFC TFC
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-------------------------------VI PIPE USER PIC ATTR-------------------------------------------------------------------
PipeID Enable ChnID Mode BgColor PicID Width Height Stride PixFmt PoolID PhyAddr
-------------------------------VI PIPE DUMP ATTR-----------------------------------------------------------------------
PipeID Enable Depth
0 Y 3
-------------------------------VI PIPE BNR DUMP ATTR-------------------------------------------------------------------
PipeID Enable Depth
-------------------------------VI CHN ATTR1----------------------------------------------------------------------------
PipeID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt DynamicRange
1 0 308 296 N N -1 -1 SP420 LINEAR SDR8
2 0 308 296 N N -1 -1 SP420 LINEAR SDR8
3 0 308 296 N N -1 -1 SP420 LINEAR SDR8
-------------------------------VI CHN ATTR2----------------------------------------------------------------------------
CompressMode Depth Align
None 0 0
None 0 0
None 1 0
-------------------------------VI EXTCHN ATTR1-------------------------------------------------------------------------
PipeID ChnID Source SrcChn Width Height SrcFRate DstFRate PixFmt DynamicRange CompressMode Depth
-------------------------------VI EXTCHN ATTR2-------------------------------------------------------------------------
Align
-------------------------------VI CHN CROP INFO------------------------------------------------------------------------
PipeID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
1 0 N RIT 0 0 0 0 0 0 0 0
2 0 N RIT 0 0 0 0 0 0 0 0
3 0 N RIT 0 0 0 0 0 0 0 0
-------------------------------VI CHN ROTATION INFO--------------------------------------------------------------------
PipeID ChnID Rotation
1 0 0
2 0 0
3 0 0
-------------------------------VI CHN LDC INFO-------------------------------------------------------------------------
PipeID ChnID Enable Aspect XRatio YRatio XYRatio XOffset YOffset DistortionRatio
1 0 N N 0 0 0 0 0 0
2 0 N N 0 0 0 0 0 0
3 0 N N 0 0 0 0 0 0
-------------------------------VI CHN ROTATIO_EX INFO------------------------------------------------------------------
PipeID ChnID Enable ViewType Angle XOffset YOffset Width Height
1 0 N ALL 0 0 0 0 0
2 0 N ALL 0 0 0 0 0
3 0 N ALL 0 0 0 0 0
-------------------------------VI CHN SPREAD INFO----------------------------------------------------------------------
PipeID ChnID Enable OutW OutH Coef
1 0 N 0 0 0
2 0 N 0 0 0
3 0 N 0 0 0
-------------------------------VI EXTCHN FISHEYE ATTR------------------------------------------------------------------
PipeID ChnID Enable MntMode RgnNum BgEnable BgColor LMF HOffset VOffset TCoef FStrength
-------------------------------VI EXTCHN FISHEYE REGION ATTR-----------------------------------------------------------
PipeID ChnID RgnIndex ViewMode InRadius OutRadius Pan Tilt HorZoom VerZoom OutX OutY OutW OutH
-------------------------------VI DIS CONFIG INFO1---------------------------------------------------------------------
PipeID ChnID Mode Motion PdtType BufNum CropRatio FrmRate GyroRange GyroBitWidth CamSteady Scale
-------------------------------VI DIS ATTR INFO------------------------------------------------------------------------
PipeID ChnID DisChn Enable GdcBypass MovSub Roef Timelag ViewAngle bStillCrop HorLimit VerLimit
-------------------------------VI SNAP ATTR INFO-----------------------------------------------------------------------
PipeID Type bLoadCCM FrameCnt rptTimes bZSL FrmDepth RollbaskMs Interval
-------------------------------VI SNAP STATUS INFO---------------------------------------------------------------------
Status bDoublePipe VideoPipe SnapPipe VcNum ProDelayInt
-------------------------------VI CHN OUTPUT RESOLUTION----------------------------------------------------------------
PipeID ChnID Enable Mirror Flip Width Height PixFmt VideoFmt DynamicRange CompressMode FrameRate
1 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
2 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
3 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
-------------------------------VI PIPE STATUS--------------------------------------------------------------------------
PipeID Enable IntCnt FrameRate LostFrame VbFail Width Height
0 Y 0 0 0 0 308 300
1 Y 0 0 0 0 308 296
2 Y 0 0 0 0 308 296
3 Y 0 0 0 0 308 296
-------------------------------VI CHN STATUS---------------------------------------------------------------------------
PipeID ChnID Enable FrameRate LostFrame VbFail Width Height
1 0 Y 0 0 0 0 0
2 0 Y 0 0 0 0 0
3 0 Y 0 0 0 0 0
-------------------------------VI PIPE Statistic-----------------------------------------------------------------------
PipeID RecvPic LostCnt BufCnt CurSoftTm MaxSoftTm CurTaskTm MaxTaskTm
0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
-------------------------------VI HW STATISTIC-------------------------------------------------------------------------
ProcIdx HWCostTm MaxHWCostTm CycleCnt MaxCycleCnt
0 0 0 0 0
1 0 0 0 0
-------------------------------VI DEV DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
0 0 0 0
-------------------------------VI BAS DETECT INFO----------------------------------------------------------------------
DevID ValidWidth ValidHeight TotalWidth
0 0 0 0
-------------------------------VI ISP DETECT INFO----------------------------------------------------------------------
ISPID ValidWidth ValidHeight TotalWidth
0 0 0 0
1 0 0 0
2 0 0 0
3 0 0 0
[/code]
获取hi_mipi的配置信息如下:
[code]/proc/umap # cat hi_mipi
Module: [MIPI], Build Time: [Jan 8 2020, 16:55:24]
-----MIPI LANE DIVIDE MODE---------------------------------------------------------------------------------------------
MODE LANE DIVIDE
11 2+2+2+2+2+2+2+2
-----MIPI DEV ATTR-----------------------------------------------------------------------------------------------------
Devno WorkMode DataRate DataType WDRMode LinkId ImgX ImgY ImgW ImgH
0 LVDS X1 RAW10 None 0 0 0 308 300
-----MIPI LANE INFO-----------------------------------------------------------------------------------------------------
Devno LaneCnt LaneID
0 2 0, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
-----MIPI LINK INFO------------------------------------------------------
LinkIdx LaneCount LaneId PhyData0 PhyData1 AlignedData0 AlignedData1 ValidLane
0 2 0, 2 0x6e 0xcc 0x0 0x0 Invalid
-----LVDS DETECT INFO----------------------------------------------------
Devno VC width height
0 0 0 0
0 1 0 0
0 2 0 0
0 3 0 0
-----LVDS LANE DETECT INFO----------------------------------------------------
Devno Lane width height
0 0 1 0
0 2 1 0
-----LVDS/SUBLVDS/HISPI PHY AND LANE STATUS INFO--------------------------------------
Devno StatErr Link0WErr Link1WErr Link2WErr Link3WErr Link0RErr Link1RErr Link2RErr Link3RErr
0 0 0 0 0 0 0 0 0 0
Devno Lane0Err Lane1Err Lane2Err Lane3Err Lane4Err Lane5Err Lane6Err Lane7Err Lane8Err Lane9Err Lane10Err Lane11Err10s Lane12Err Lane13Err Lane14Err
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
-----ALING ERROR INFO--------------------------------------
Devno FIFO_FullErr Lane0Err Lane1Err Lane2Err Lane3Err Lane4Err Lane5Err Lane6Err Lane7Err Lane8Err Lane9Err Lane10Err Lane11Err Lane12Err Lane13Err Lane14Err Lane15Err
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[/code]
我看到在LVDS DETECT INFO 和 LVDS LANE DETECT INFO 中的信息说 width和height都为0,配置完combo_dev_attr_t这个结构体后,会调用相关驱动来设置输入为LVDS模式时的相关属性,所以感觉是软件上关于LVDS设置出现了问题,但是查看代码没有找到出错的原因。请问有没有人做过类似的事情能够解答一下疑惑吗?十分感谢!
我来回答
回答20个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2021-10-25 10:26:22
-
2019-03-15 11:39:26
-
2022-05-09 11:28:37
-
2018-11-25 11:19:23
-
2019-11-01 08:59:43
-
2023-06-29 20:03:47
-
2015-11-20 10:56:58
-
2020-01-14 11:55:22
-
2020-01-14 11:54:49
-
282018-01-06 17:16:06
-
2014-12-21 08:57:26
-
2024-03-08 14:25:51
-
2024-03-20 16:36:29
-
2023-12-01 14:34:20
-
2021-04-21 09:52:11
-
2015-08-07 16:05:53
-
2022-06-11 17:22:09
-
2019-03-26 15:47:48
-
2016-05-31 09:59:23
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认