acupofwater

acupofwater

0个粉丝

1

问答

0

专栏

0

资料

acupofwater  发布于  2021-04-20 15:54:10
采纳率 0%
1个问答
3041

hi3559av100 使用cmos1 输入bt1120,有中断但是图像全部丢失,没有检测到图像宽高

输入的主要配置如下````cpp
combo_dev_attr_t BT1120_DEV1_ATTR =
{
.devno=1,
.input_mode =INPUT_MODE_BT1120,
.data_rate =DATA_RATE_X1,
.img_rect = {0,0,1920,1080},

// {
// .mipi_attr =
// {
// DATA_TYPE_RAW_12BIT,
// HI_MIPI_WDR_MODE_NONE,
// {0, 1, 2, 3, -1, -1, -1, -1}
// }
// }

{
    .mipi_attr =
    {
         DATA_TYPE_RAW_12BIT,
         HI_MIPI_WDR_MODE_NONE,
         {0, 1, 2, 3, -1, -1, -1, -1}
     }
}

};

VI_DEV_ATTR_S DEV_ATTR_FPGA_BT1120_1080P_BASE =
{
VI_MODE_BT1120_STANDARD,
VI_WORK_MODE_1Multiplex,
{0x00FF0000, 0xFF000000},
VI_SCAN_PROGRESSIVE,
{-1, -1, -1, -1},
VI_DATA_SEQ_UVUV,

{

// /port_vsync port_vsync_neg port_hsync port_hsync_neg /
// VI_VSYNC_PULSE, VI_VSYNC_NEG_LOW, VI_HSYNC_VALID_SINGNAL,VI_HSYNC_NEG_HIGH,
// VI_VSYNC_VALID_SINGAL,VI_VSYNC_VALID_NEG_HIGH,

    /*port_vsync   port_vsync_neg     port_hsync        port_hsync_neg        */
    VI_VSYNC_PULSE, VI_VSYNC_NEG_LOW, VI_HSYNC_VALID_SINGNAL,VI_HSYNC_NEG_HIGH,
        VI_VSYNC_VALID_SINGAL,VI_VSYNC_VALID_NEG_HIGH,

/*hsync_hfb    hsync_act    hsync_hhb*/
{0,            1920,        0,
/*vsync0_vhb vsync0_act vsync0_hhb*/
 0,            1080,        0,
/*vsync1_vhb vsync1_act vsync1_hhb*/
 0,            0,            0}
},
VI_DATA_TYPE_YUV,
HI_FALSE,
{1920 , 1080},
{
    {
        {1920 , 1080},
    },
    {
        VI_REPHASE_MODE_NONE,
        VI_REPHASE_MODE_NONE
    }
},
{
    WDR_MODE_NONE,
    1080
},
DATA_RATE_X1

};

VI_PIPE_ATTR_S PIPE_FPGA_BT1120_ATTR_1080P_YUV422 =
{
VI_PIPE_BYPASS_NONE, HI_TRUE, HI_TRUE,
1920, 1080,
PIXEL_FORMAT_YVU_SEMIPLANAR_420,
COMPRESS_MODE_NONE,
DATA_BITWIDTH_8,
HI_FALSE,
{
PIXEL_FORMAT_YVU_SEMIPLANAR_420,
DATA_BITWIDTH_8,
VI_NR_REF_FROM_RFR,
COMPRESS_MODE_NONE
},
HI_FALSE,
{ -1, -1}
};

//cyclone fpga bt1120 input
VI_CHN_ATTR_S CHN_FPGA_BT1120_ATTR_1920x1080_420_SDR8_LINEAR =
{
{1920, 1080},
PIXEL_FORMAT_YUV_SEMIPLANAR_420,
DYNAMIC_RANGE_SDR8,
VIDEO_FORMAT_LINEAR,
COMPRESS_MODE_NONE,
0, 0,
0,
{


使用cat /proc/umap/vi显示如下
```cpp
~ # cat /proc/umap/vi

[VI] Version: [Hi3559AV100_MPP_V2.0.0.6 B020 Release], Build Time[Apr  3 2018, 18:11:00]

-------------------------------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
       7       Y         Y      1920      1080             BT1120S    1Mux      ff0000    ff000000       P

-------------------------------VI DEV ATTR2----------------------------------------------------------------
   DevID   AD0   AD1   AD2   AD3     Seq  DataType   DataRev    BasW    BasH   HReph   VReph   WDRMode  DataRate
       7    -1    -1    -1    -1    UVUV       YUV         N    1920    1080    NONE    NONE      None        X1

-------------------------------VI BIND ATTR----------------------------------------------------------------
 MipiDev   DevID PipeNum              PipeId
      -1       7       1                  0,

-------------------------------VI DEV TIMING ATTR----------------------------------------------------------
   DevID DevTimingEn  DevFrmRate  DevWidth   DevHeight

-------------------------------VI PIPE ATTR----------------------------------------------------------------
  PipeID  BypassMode YuvSkip IspBypass     Width    Height    PixFmt  BitWidth    NrEn SharpenEn  CompressMode  DiscProPic    SrcFRate    DstFRate
       0  BypassNone       Y         Y      1920      1080     SP420         8       N         N          None           N          -1          -1

-------------------------------VI PIPE NR ATTR----------------------------------------------------------------
  PipeID        BitWidth    CompressMode          PixFmt          RefSrc

-------------------------------VI PIPE DUMP ATTR--------------------------------------------------------
  PipeID    Enable     Depth

-------------------------------VI CHN ATTR----------------------------------------------------------------
  PipeID   ChnID   Width    Height    Mirror    Flip    SrcFRate    DstFRate    PixFmt      VideoFmt  DynamicRange  CompressMode     Depth     Align
       0       0    1920      1080         N       N          -1          -1     SP420        LINEAR          SDR8          None         0         0

-------------------------------VI EXTCHN ATTR----------------------------------------------------------------
  PipeID   ChnID  SrcChn   Width    Height    SrcFRate    DstFRate    PixFmt  DynamicRange  CompressMode     Depth     Align

-------------------------------VI CHN CROP INFO----------------------------------------------------------------
  PipeID   ChnID  CropEn  CoorType   CoorX   CoorY   Width  Height   TrimX   TrimY TrimWid TrimHgt
       0       0       N       RIT       0       0       0       0       0       0       0       0

-------------------------------VI CHN ROTATION INFO----------------------------------------------------------------
  PipeID   ChnID    Rotation
       0       0           0

-------------------------------VI CHN LDC INFO----------------------------------------------------------------
  PipeID   ChnID  Enable  Aspect  XRatio  YRatio   XYRatio   XOffset   YOffset     DistortionRatio
       0       0       N       N       0       0         0         0         0                   0

-------------------------------VI CHN ROTATIO_EX INFO----------------------------------------------------------------
  PipeID   ChnID  Enable  ViewType   Angle   XOffset   YOffset     Width    Height
       0       0       N       ALL       0         0         0         0         0

-------------------------------VI CHN SPREAD INFO----------------------------------------------------------------
  PipeID   ChnID  Enable    OutW    OutH      Coef
       0       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 INFO-------------------------------------------------------------
  PipeID   ChnID        Mode  Motion PdtType  BufNum CropRatio FrmRate   GyroRange  GyroBitWidth   CamSteady   Scale          RotateMatrix

-------------------------------VI DIS ATTR INFO------------------------------------------------------------------
  PipeID   ChnID  DisChn    Enable      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
       0       0       Y       N       N       0       0   SP420    LINEAR          SDR8          None         0

-------------------------------VI PIPE STATUS-------------------------------------------------------------
  PipeID  Enable    IntCnt FrameRate LostFrame  VbFail   Width  Height
       0       Y     32539         0     32537       0    1920    1080

-------------------------------VI CHN STATUS--------------------------------------------------------------
  PipeID   ChnID  Enable FrameRate LostFrame  VbFail   Width  Height
       0       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

-------------------------------VI HW STATISTIC------------------------------------------------------------
 ProcIdx    HWCostTm MaxHWCostTm    CycleCnt MaxCycleCnt
       0           0           0           0           0
       1           0           0           0           0

可以看到IntCnt和LostFrame都在同步增长,没有接收到有效的图像数据,求助```cpp
~ # cat /proc/umap/vi

[VI] Version: [Hi3559AV100_MPP_V2.0.0.6 B020 Release], Build Time[Apr 3 2018, 18:11:00]

———————————————-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
7 Y Y 1920 1080 BT1120S 1Mux ff0000 ff000000 P

———————————————-VI DEV ATTR2————————————————————————————————
DevID AD0 AD1 AD2 AD3 Seq DataType DataRev BasW BasH HReph VReph WDRMode DataRate
7 -1 -1 -1 -1 UVUV YUV N 1920 1080 NONE NONE None X1

———————————————-VI BIND ATTR————————————————————————————————
MipiDev DevID PipeNum PipeId
-1 7 1 0,

———————————————-VI DEV TIMING ATTR—————————————————————————————
DevID DevTimingEn DevFrmRate DevWidth DevHeight

———————————————-VI PIPE ATTR————————————————————————————————
PipeID BypassMode YuvSkip IspBypass Width Height PixFmt BitWidth NrEn SharpenEn CompressMode DiscProPic SrcFRate DstFRate
0 BypassNone Y Y 1920 1080 SP420 8 N N None N -1 -1

———————————————-VI PIPE NR ATTR————————————————————————————————
PipeID BitWidth CompressMode PixFmt RefSrc

———————————————-VI PIPE DUMP ATTR————————————————————————————
PipeID Enable Depth

———————————————-VI CHN ATTR————————————————————————————————
PipeID ChnID Width Height Mirror Flip SrcFRate DstFRate PixFmt VideoFmt DynamicRange CompressMode Depth Align
0 0 1920 1080 N N -1 -1 SP420 LINEAR SDR8 None 0 0

———————————————-VI EXTCHN ATTR————————————————————————————————
PipeID ChnID SrcChn Width Height SrcFRate DstFRate PixFmt DynamicRange CompressMode Depth Align

———————————————-VI CHN CROP INFO————————————————————————————————
PipeID ChnID CropEn CoorType CoorX CoorY Width Height TrimX TrimY TrimWid TrimHgt
0 0 N RIT 0 0 0 0 0 0 0 0

———————————————-VI CHN ROTATION INFO————————————————————————————————
PipeID ChnID Rotation
0 0 0

———————————————-VI CHN LDC INFO————————————————————————————————
PipeID ChnID Enable Aspect XRatio YRatio XYRatio XOffset YOffset DistortionRatio
0 0 N N 0 0 0 0 0 0

———————————————-VI CHN ROTATIO_EX INFO————————————————————————————————
PipeID ChnID Enable ViewType Angle XOffset YOffset Width Height
0 0 N ALL 0 0 0 0 0

———————————————-VI CHN SPREAD INFO————————————————————————————————
PipeID ChnID Enable OutW OutH Coef
0 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 INFO——————————————————————————————-
PipeID ChnID Mode Motion PdtType BufNum CropRatio FrmRate GyroRange GyroBitWidth CamSteady Scale RotateMatrix

———————————————-VI DIS ATTR INFO—————————————————————————————————
PipeID ChnID DisChn Enable 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
0 0 Y N N 0 0 SP420 LINEAR SDR8 None 0

———————————————-VI PIPE STATUS——————————————————————————————-
PipeID Enable IntCnt FrameRate LostFrame VbFail Width Height
0 Y 32539 0 32537 0 1920 1080

———————————————-VI CHN STATUS———————————————————————————————
PipeID ChnID Enable FrameRate LostFrame VbFail Width Height
0 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

———————————————-VI HW STATISTIC——————————————————————————————
ProcIdx HWCostTm MaxHWCostTm CycleCnt MaxCycleCnt
0 0 0 0 0
1 0 0 0 0

```

我来回答
回答1个
时间排序
认可量排序

acupofwater

0个粉丝

1

问答

0

专栏

0

资料

acupofwater 2021-04-20 17:08:58
认可0

而且中断的频率远远大于图像的帧频

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区