- 收藏
- 点赞
- 分享
- 举报
hi3516av300接入mini640红外模组,采用BT656接口,无法得到图像数据
1、采集图像数据程序是基于sample的vio程序修改,
2、sample_comm_vi.c相关结构体参数配置
combo_dev_attr_t MIPI_BT656_ATTR = {
/ input mode /
.devno = 1,
.input_mode = INPUT_MODE_CMOS, //使MIPI RX PHY处于CMOS模式
.data_rate = MIPI_DATA_RATE_X1,
.img_rect = {0, 0, 640, 512},
{
.mipi_attr = {DATA_TYPE_YUV422_8BIT, HI_MIPI_WDR_MODE_NONE, {-1, -1, -1, -1}}
}
};
VI_DEV_ATTR_S DEV_ATTR_BT656_BASE = {
/ interface mode /
VI_MODE_BT656,
/ multiplex mode /
VI_WORK_MODE_1Multiplex,
/ r_mask g_mask b_mask/
{0xFF000000, 0x0000},
/ progessive or interleaving /
VI_SCAN_PROGRESSIVE, /逐行/
/AdChnId/
{-1, -1, -1, -1},
/enDataSeq, only support yuv/
VI_DATA_SEQ_YUYV,
/ synchronization information /
{
/port_vsync port_vsync_neg port_hsync port_hsync_neg /
VI_VSYNC_PULSE, VI_VSYNC_NEG_HIGH, VI_HSYNC_VALID_SINGNAL,VI_HSYNC_NEG_HIGH,VI_VSYNC_NORM_PULSE,VI_VSYNC_VALID_NEG_HIGH,
/hsync_hfb hsync_act hsync_hhb/
{
0, 0, 0,
/vsync0_vhb vsync0_act vsync0_hhb/
0, 0, 0,
/vsync1_vhb vsync1_act vsync1_hhb/
0, 0, 0
}
},
/ input data type /
VI_DATA_TYPE_YUV,
/ bReverse /
HI_FALSE,
/ input size /
{640, 512},
{{
{640, 512},
},
{VI_REPHASE_MODE_NONE, VI_REPHASE_MODE_NONE}},
{WDR_MODE_NONE, 512},
DATA_RATE_X1
};
VI_PIPE_ATTR_S PIPE_ATTR_BT656 = {
/ bBindDev bYuvSkip /
VI_PIPE_BYPASS_NONE,
HI_FALSE, /YUV skip enable /
HI_TRUE, / ISP Bypass /
640,
512,
PIXEL_FORMAT_YVU_SEMIPLANAR_422,
COMPRESS_MODE_NONE,
DATA_BITWIDTH_8, / bit_width width: 16 illegal, should be when YUV!/
HI_FALSE,
{PIXEL_FORMAT_YVU_SEMIPLANAR_420, DATA_BITWIDTH_8, VI_NR_REF_FROM_RFR,
COMPRESS_MODE_NONE},
HI_FALSE,
{-1, -1}
};
VI_CHN_ATTR_S CHN_ATTR_BT656_420_SDR8_LINEAR = {
{640, 512},
PIXEL_FORMAT_YVU_SEMIPLANAR_420,
DYNAMIC_RANGE_SDR8,
VIDEO_FORMAT_LINEAR,
COMPRESS_MODE_NONE,
0,
0,
0,
{-1, -1}};
3、vi log信息
~ # cat /proc/umap/vi
[VI] Version: [Hi3516CV500_MPP_V2.0.3.0 B050 Release], Build Time[Feb 5 2021, 23:27:33]
———————————————-MODULE PARAM —————————————————————————————————————-
DetectErrFrame DropErrFrame VbSource
0 0 Common
———————————————-VI MODE ——————————————————————————————-
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode
offline offline offline offline
———————————————-VPSS MODE —————————————————————————————-
Pipe0Mode Pipe1Mode Pipe2Mode Pipe3Mode
offline offline offline offline
———————————————-VI DEV ATTR1——————————————————————————————————————
DevID DevEn BindPipe Width Height IntfM WkM ComMsk0 ComMsk1 ScanM
1 Y Y 640 512 BT656 1Mux ff000000 0 P
———————————————-VI DEV ATTR2——————————————————————————————————————
DevID AD0 AD1 AD2 AD3 Seq DataType DataRev BasW BasH HReph VReph WDRMode CacheLine DataRate
1 -1 -1 -1 -1 YUYV YUV N 640 512 NONE NONE None 512 X1
———————————————-VI BIND ATTR——————————————————————————————————————
DevID PipeNum PipeId
1 1 2
———————————————-VI DEV TIMING ATTR———————————————————————————————————
DevID DevTimingEn DevFrmRate DevWidth DevHeight
———————————————-VI PIPE ATTR1—————————————————————————————————————-
PipeID BypassMode YuvSkip IspBypass Width Height PixFmt BitWidth NrEn SharpenEn CompressMode
2 BypassNone N Y 640 512 SP422 8 N N None
———————————————-VI PIPE ATTR2—————————————————————————————————————-
DiscProPic SrcFRate DstFRate FrameSource RepeatMode VCNum IntType EarlyLine VbPoolId
N -1 -1 DEV NONE 0 START 0 -1
———————————————-VI INTERRUPT ONEBUF INFO————————————————————————————————
ProcCostTime CapturedCostTime LowerLine UpperLine WdrExposureInterval
———————————————-VI PIPE PRE CROP ATTR———————————————————————————————————-
PipeID CropEn CoorX CoorY Width Height
———————————————-VI PIPE POST CROP ATTR———————————————————————————————————-
PipeID CropEn CoorX CoorY Width Height
———————————————-VI PIPE NR ATTR————————————————————————————————————-
PipeID BitWidth CompressMode PixFmt RefSrc Intf Version OptMode
———————————————-VI PIPE NRX_V2 PARAM——————————————————————————————————
PipeID ISO SFS1 SFS2 SFS4 SFN0 SFN1 SFN3 STH1 STH3
———————————————-VI PIPE USER PIC ATTR—————————————————————————————————-
PipeID Enable ChnID Mode BgColor PicID Width Height Stride PixFmt PoolID PhyAddr
———————————————-VI PIPE DUMP ATTR———————————————————————————————————-
PipeID Enable Depth DumpType
———————————————-VI CHN ATTR1——————————————————————————————————————
PipeID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt DynamicRange
2 0 640 512 N N -1 -1 SP420 LINEAR SDR8
———————————————-VI CHN ATTR2——————————————————————————————————————
CompressMode Depth Align VbPoolId
None 0 0 -1
———————————————-VI EXTCHN ATTR1————————————————————————————————————-
PipeID ChnID Source SrcChn Width Height SrcFRate DstFRate PixFmt DynamicRange CompressMode Depth
———————————————-VI EXTCHN ATTR2————————————————————————————————————-
Align VbPoolId
———————————————-VI CHN LOW DELAY ATTR—————————————————————————————————-
PipeID ChnID Enable LineCnt Effect
2 0 N 0 N
———————————————-VI CHN CROP INFO————————————————————————————————————
PipeID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
2 0 N RIT 0 0 0 0 0 0 0 0
———————————————-VI CHN ROTATION INFO——————————————————————————————————
PipeID ChnID Rotation
2 0 0
———————————————-VI CHN LDC INFO————————————————————————————————————-
PipeID ChnID Enable Aspect XRatio YRatio XYRatio XOffset YOffset DistortionRatio
2 0 N N 0 0 0 0 0 0
———————————————-VI CHN ROTATIO_EX INFO—————————————————————————————————
PipeID ChnID Enable ViewType Angle XOffset YOffset Width Height
2 0 N ALL 0 0 0 0 0
———————————————-VI CHN SPREAD INFO———————————————————————————————————
PipeID ChnID Enable OutW OutH Coef
2 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 Strength
———————————————-VI DIS PARAM INFO———————————————————————————————————-
PipeID ChnID DisChn LargeMotionStableCoef LowFreqMotionPreserve LowFreqMotionFreq
———————————————-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
2 0 Y N N 0 0 SP420 LINEAR SDR8 None 0
———————————————-VI PIPE STATUS—————————————————————————————————————
PipeID Enable IntCnt FrameRate LostFrame VbFail Width Height
2 Y 0 0 0 0 640 512
———————————————-VI CHN STATUS—————————————————————————————————————-
PipeID ChnID Enable FrameRate LostFrame VbFail Width Height
2 0 Y 0 0 0 0 0
———————————————-VI PIPE Statistic———————————————————————————————————-
PipeID RecvPic LostCnt BufCnt CurSoftTm MaxSoftTm CurTaskTm MaxTaskTm LowBandWidth BeBufNum
2 0 0 0 0 0 0 0 0 0
———————————————-VI HW STATISTIC————————————————————————————————————-
ProcIdx HWCostTm MaxHWCostTm CycleCnt MaxCycleCnt
0 0 0 0 0
———————————————-VI PROC OFFLINE IRQ STATISTIC—————————————————————————————
ProcIdx SubmitCnt IntCnt ListCnt TmOutCnt BusErrCnt DcmpErrCnt StartErrCnt NodeIdErrCnt
0 0 0 0 0 0 0 0 0
———————————————-VI PROC ONLINE IRQ STATISTIC—————————————————————————————-
ProcIdx IntCnt FrmStartCnt FrmErrCnt FrmFlowCnt BusErrCnt DcmpErrCnt CfgLossCnt FirstIntPts
0 0 0 0 0 0 0 0 0
———————————————-VI PROC COST TIME STATISTIC—————————————————————————————-
ProcIdx IntCntPerSec MaxIntCntPerSec CurIntCostTm MaxIntCostTm TotalIntCostTm IntTmPerSec MaxIntTmPerSec
0 0 0 0 0 0 0 0
———————————————-VI DEV DETECT INFO———————————————————————————————————
DevID ValidWidth ValidHeight TotalWidth
1 0 0 0
———————————————-VI BAS DETECT INFO———————————————————————————————————
DevID ValidWidth ValidHeight TotalWidth
———————————————-VI ISP DETECT INFO———————————————————————————————————
ISPID ValidWidth ValidHeight TotalWidth
2 0 0 0
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
-
2019-07-02 18:37:32
-
2020-11-13 10:35:48
-
2019-06-05 16:16:50
-
2019-01-10 11:55:42
-
2019-12-23 20:27:52
-
2019-03-03 02:04:08
-
2023-09-13 15:59:39
-
2023-06-08 14:30:04
-
2016-11-03 09:52:27
-
2021-04-28 16:05:17
-
2020-01-03 14:44:24
-
2020-05-03 18:30:13
-
2015-10-22 14:42:00
-
2019-12-23 10:21:13
-
2020-12-28 19:13:14
-
2023-06-20 15:02:27
-
2019-05-17 12:04:35
-
2022-11-29 17:21:33
-
2019-10-18 19:49:12
-
5SS928的emmc有32GB,bootargs设置使用16GB,但是为啥能用的只有rootfs的大小
-
33SS928怎样烧写ubuntu系统
-
10ToolPlatform下载rootfs提示网络失败
-
10谁有GK7205V500的SDK
-
5Hi3516CV610 烧录不进去
-
10Hi3559AV100 芯片硬解码h265编码格式的视频时出现视频播放错误,解码错误信息 s32PackErr:码流有错
-
5海思SS928 / SD3403的sample_venc.c摄像头编码Demo中,采集到的摄像头的YUV数据在哪个相关的函数中?
-
5海鸥派openEuler无法启动网卡,连接WIFI存在问题
-
66有没有ISP相关的巨佬帮忙看看SS928对接IMX347的图像问题
-
50求助hi3559与FPGA通过SLVS-EC接口对接问题
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明