• TI Thinks Resolved

RTOS: tidl to display

Tool/software: TI-RTOS

hi,

    i have a problem with myself chain, which is 

   capture(1280x720 16bits raw data, but i set the format yuv422i, both input and output format is yuv422i)

->vpe(to 1024x512)

->preprocess( yuv422 to rgb)

->tidl

->postprocess(to 1024x512 yuv420sp)

->display

  and i use a 16bits wide but 12bits valid data mono-chroma sensor, so i do transform in capture process function, and transform the data to yuv422. then i can not see the correct display. before this work, i try the capture->vpe->display, the chain is ok, i can see the correct display.

i need your help, thank you very much. by the way ,how can i know my part number? i use tda2sx chip. 

  • log:

    [2018/12/4 10:59:58] [IPU1-0] 36.227627 s: [chains_tidlDsp_SetLinkId] CaptureLinkID= 64
    [2018/12/4 10:59:58] [IPU1-0] 36.227749 s: [chains_tidlDsp_SetLinkId] VPELinkID= 71
    [2018/12/4 10:59:58] [IPU1-0] 36.227810 s: [chains_tidlDsp_SetLinkId] IPCOut_IPU1_0_A15_0_0LinkID= 0
    [2018/12/4 10:59:58] [IPU1-0] 36.227902 s: [chains_tidlDsp_SetLinkId] IPCIn_A15_0_IPU1_0_0LinkID= 33554442
    [2018/12/4 10:59:58] [IPU1-0] 36.227993 s: [chains_tidlDsp_SetLinkId] Alg_tidlpreprocLinkID= 33554481
    [2018/12/4 10:59:58] [IPU1-0] 36.228085 s: [chains_tidlDsp_SetLinkId] IPCOut_A15_0_DSP1_0LinkID= 33554432
    [2018/12/4 10:59:58] [IPU1-0] 36.228176 s: [chains_tidlDsp_SetLinkId] IPCIn_DSP1_A15_0_0LinkID= 50331658
    [2018/12/4 10:59:58] [IPU1-0] 36.228237 s: [chains_tidlDsp_SetLinkId] Alg_tidl_1LinkID= 50331697
    [2018/12/4 10:59:58] [IPU1-0] 36.228329 s: [chains_tidlDsp_SetLinkId] IPCOut_DSP1_A15_0_0LinkID= 50331649
    [2018/12/4 10:59:58] [IPU1-0] 36.228451 s: [chains_tidlDsp_SetLinkId] IPCIn_A15_0_DSP1_0LinkID= 33554443
    [2018/12/4 10:59:58] [IPU1-0] 36.228542 s: [chains_tidlDsp_SetLinkId] Alg_tidlpostprocLinkID= 33554482
    [2018/12/4 10:59:58] [IPU1-0] 36.228634 s: [chains_tidlDsp_SetLinkId] IPCOut_A15_0_IPU1_0_0LinkID= 33554433
    [2018/12/4 10:59:58] [IPU1-0] 36.228725 s: [chains_tidlDsp_SetLinkId] IPCIn_IPU1_0_A15_0_0LinkID= 10
    [2018/12/4 10:59:58] [IPU1-0] 36.228817 s: [chains_tidlDsp_SetLinkId] Display_VideoLinkID= 68
    [2018/12/4 10:59:58] [IPU1-0] 36.228878 s: [chains_tidlDsp_SetLinkId] SYSTEM_LINK_ID_DISPLAY_0= 67
    [2018/12/4 10:59:58] [IPU1-0] 36.228969 s: [chains_tidlDsp_Create] set link id done
    [2018/12/4 10:59:58] [IPU1-0] 36.229091 s: [chains_tidlDsp_Create] reset link id done
    [2018/12/4 10:59:58] [IPU1-0] 36.229183 s: [chains_tidlDsp_Create] setPrms done
    [2018/12/4 10:59:58] [IPU1-0] 36.229732 s: [ChainsCommon_SingleCam_SetCapturePrms] 123 capture in width 1280, height 720, out width 1280, height 720
    [2018/12/4 10:59:58] [IPU1-0] 36.229976 s: [ChainsCommon_SingleCam_SetCapturePrms],line = 214
    [2018/12/4 10:59:58] [IPU1-0] 36.230311 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 0,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.230677 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.231074 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 1,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.231440 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.231806 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 2,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.232141 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.232568 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 3,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.232904 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.233270 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 4,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.233636 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.234002 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 5,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.234337 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.234917 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 6,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.235252 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.235679 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 7,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.235984 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.236411 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 8,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.236747 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.237143 s: [ChainsCommon_SingleCam_SetCapturePrms] input para: vip[id 9,mode 4,bitwidth 4] format 1,with 1280,height 720, scan 1
    [2018/12/4 10:59:58] [IPU1-0] 36.237509 s: [ChainsCommon_SingleCam_SetCapturePrms] output para: format 1,with 1280,height 720, scale 0
    [2018/12/4 10:59:58] [IPU1-0] 36.237601 s: [chains_tidlDsp_SetAppPrms] malloc memSize w*h*4=1280*720
    [2018/12/4 10:59:58] [IPU1-0] 36.347800 s: [chains_tidlDsp_SetAppPrms] malloc memAddr 8a00de00
    [2018/12/4 10:59:58] [IPU1-0] 36.347922 s: [chains_vipSingleCam_Display_SetVPEPrms] vpe display w 1024, h 512, input w 1280,h 720
    [2018/12/4 10:59:58] [IPU1-0] 36.352803 s: [chains_tidlDsp_Create] setAppPrms done
    [2018/12/4 10:59:58] [IPU1-0] 36.352894 s: [chains_tidlDsp_Create] connect link id done
    [2018/12/4 10:59:58] [IPU1-0] 36.352986 s: CAPTURE: Create in progress !!!
    [2018/12/4 10:59:58] [IPU1-0] 36.353260 s: CAPTURE: VIP1 Slice0 PortA capture mode is [16-bit] !!!
    [2018/12/4 10:59:58] [IPU1-0] 36.353931 s: CAPTURE: WARNING: Create args numBufs[2] < min[4]. Overriding create args !!!
    [2018/12/4 10:59:58] [IPU1-0] 36.354084 s: CAPTURE: Frame 0: FVID2 CH 0: Link CH 0: 0x8a00de00, 0x8a00de00, 1843200 B
    [2018/12/4 10:59:58] [IPU1-0] 36.354206 s: CAPTURE: Frame 1: FVID2 CH 0: Link CH 0: 0x8a1cfe00, 0x8a1cfe00, 1843200 B
    [2018/12/4 10:59:58] [IPU1-0] 36.354328 s: CAPTURE: Frame 2: FVID2 CH 0: Link CH 0: 0x8a391e00, 0x8a391e00, 1843200 B
    [2018/12/4 10:59:58] [IPU1-0] 36.354511 s: CAPTURE: Frame 3: FVID2 CH 0: Link CH 0: 0x8a553e00, 0x8a553e00, 1843200 B
    [2018/12/4 10:59:58] [IPU1-0] 36.354663 s: [CaptureLink_InitSystemBuffer] videoFrames idx 0,planes 0,addr 8a00de00
    [2018/12/4 10:59:58] [IPU1-0] 36.354785 s: [CaptureLink_InitSystemBuffer] videoFrames idx 0,planes 1,addr 8a00de00
    [2018/12/4 10:59:58] [IPU1-0] 36.354877 s: [CaptureLink_InitSystemBuffer] videoFrames idx 0,planes 2,addr 0
    [2018/12/4 10:59:58] [IPU1-0] 36.354968 s: [CaptureLink_InitSystemBuffer] videoFrames idx 1,planes 0,addr 8a1cfe00
    [2018/12/4 10:59:58] [IPU1-0] 36.355090 s: [CaptureLink_InitSystemBuffer] videoFrames idx 1,planes 1,addr 8a1cfe00
    [2018/12/4 10:59:58] [IPU1-0] 36.355182 s: [CaptureLink_InitSystemBuffer] videoFrames idx 1,planes 2,addr 0
    [2018/12/4 10:59:58] [IPU1-0] 36.355304 s: [CaptureLink_InitSystemBuffer] videoFrames idx 2,planes 0,addr 8a391e00
    [2018/12/4 10:59:58] [IPU1-0] 36.355426 s: [CaptureLink_InitSystemBuffer] videoFrames idx 2,planes 1,addr 8a391e00
    [2018/12/4 10:59:58] [IPU1-0] 36.355517 s: [CaptureLink_InitSystemBuffer] videoFrames idx 2,planes 2,addr 0
    [2018/12/4 10:59:58] [IPU1-0] 36.355609 s: [CaptureLink_InitSystemBuffer] videoFrames idx 3,planes 0,addr 8a553e00
    [2018/12/4 10:59:58] [IPU1-0] 36.355731 s: [CaptureLink_InitSystemBuffer] videoFrames idx 3,planes 1,addr 8a553e00
    [2018/12/4 10:59:58] [IPU1-0] 36.355822 s: [CaptureLink_InitSystemBuffer] videoFrames idx 3,planes 2,addr 0
    [2018/12/4 10:59:58] [IPU1-0] 36.356127 s: CAPTURE: Create Done !!!
    [2018/12/4 10:59:58] [IPU1-0] 36.356432 s: create CaptureLinkID done
    [2018/12/4 10:59:58] [IPU1-0] 36.356524 s: VPE: Create in progress !!!
    [2018/12/4 10:59:58] [IPU1-0] 36.479015 s: VPE: Loading Down-scaling Co-effs
    [2018/12/4 10:59:58] [IPU1-0] 36.479259 s: VPE: Co-effs Loading ... DONE !!!
    [2018/12/4 10:59:59] [IPU1-0] 36.479503 s: VPE: Create Done !!!
    [2018/12/4 10:59:59] [IPU1-0] 36.479777 s: create VPELinkID done
    [2018/12/4 11:00:00] [IPU1-0] 36.479869 s: IPC_OUT_0 : Create in progress !!!
    [2018/12/4 11:00:07] [IPU1-0] 36.480204 s: IPC_OUT_0 : Create Done !!!
    [2018/12/4 11:00:07] [IPU1-0] 36.480326 s: create IPCOut_IPU1_0_A15_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 36.480875 s: create IPCIn_A15_0_IPU1_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 36.484658 s: create Alg_tidlpreprocLinkID done
    [2018/12/4 11:00:07] [IPU1-0] 36.484871 s: create IPCOut_A15_0_DSP1_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 36.485451 s: create IPCIn_DSP1_A15_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.046086 s: create Alg_tidl_1LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.046452 s: create IPCOut_DSP1_A15_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.046788 s: create IPCIn_A15_0_DSP1_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.049106 s: create Alg_tidlpostprocLinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.049289 s: create IPCOut_A15_0_IPU1_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.049594 s: IPC_IN_0 : Create in progress !!!
    [2018/12/4 11:00:07] [IPU1-0] 37.050631 s: IPC_IN_0 : Create Done !!!
    [2018/12/4 11:00:07] [IPU1-0] 37.050753 s: create IPCIn_IPU1_0_A15_0_0LinkID done
    [2018/12/4 11:00:07] [IPU1-0] 37.050875 s: DISPLAY: Create in progress !!!
    [2018/12/4 11:00:07] [IPU1-0] 37.050936 s: [test_endian] short data 1234, byte0 address 868ac274,data 34, byte1 addr 868ac275, data 12
    [2018/12/4 11:00:07] [IPU1-0] 37.051119 s: DISPLAY: choose DISPLAY_LINK_INST_DSS_VID1
    [2018/12/4 11:00:07] [IPU1-0] 37.051271 s: Fvid2CbParams_init done
    [2018/12/4 11:00:07] [IPU1-0] 37.051332 s: VpsDispCreateParams_init done
    [2018/12/4 11:00:07] [IPU1-0] 37.051546 s: FVID2_create done
    [2018/12/4 11:00:07] [IPU1-0] 37.051637 s: VpsDispDssParams_init done
    [2018/12/4 11:00:07] [IPU1-0] 37.051698 s: VpsDssDispcVidConfig_init done
    [2018/12/4 11:00:07] [IPU1-0] 37.051759 s: VpsDssDispcGfxConfig_init done
    [2018/12/4 11:00:08] [IPU1-0] 37.051820 s: VpsDssDispcAdvDmaConfig_init done
    [2018/12/4 11:00:08] [IPU1-0] 37.051881 s: [DisplayLink_drvDisplayCreate] dataformat 7, from flags of prev link, SYSTEM_DF_RAW16=91
    [2018/12/4 11:00:08] [IPU1-0] 37.051973 s: [DisplayLink_drvDisplayCreate] in width 1024,height 512,pitch012[2048 2048 2048]
    [2018/12/4 11:00:08] [IPU1-0] 37.052125 s: DisplayLink_drvDisplayCreate will call FVID2_control
    [2018/12/4 11:00:08] [IPU1-0] 37.052247 s: hal/src/vpshal_dssDispcVid.c @ Line 980:
    [2018/12/4 11:00:08] [IPU1-0] 37.052339 s: VpsHal_dssConfVidPipe input format 7, width 1024, height 512
    [2018/12/4 11:00:08] [IPU1-0] 37.052491 s: hal/src/vpshal_dssDispcVid.c @ Line 1587:
    [2018/12/4 11:00:08] [IPU1-0] 37.052583 s: dssVidPipe and dssWbPipe are both yes!
    [2018/12/4 11:00:08] [IPU1-0] 37.052735 s: FVID2_control status 0, tar w 1280, h 720, format 7, bpp 3
    [2018/12/4 11:00:08] [IPU1-0] 37.053010 s: DISPLAY: Create Done !!!
    [2018/12/4 11:00:08] [IPU1-0] 37.053223 s: [DisplayLink_tskMain] DisplayLink_drvCreate done, cmd = 0
    [2018/12/4 11:00:08] [IPU1-0] 37.053345 s: create Display_VideoLinkID done
    [2018/12/4 11:00:08] [IPU1-0] 37.053589 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:08] [IPU1-0] 37.053711 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 246904 B (241 KB)
    [2018/12/4 11:00:08] [IPU1-0] 37.053864 s: SYSTEM: Heap = SR_OCMC @ 0x00000000, Total size = 0 B (0 KB), Free size = 0 B (0 KB)
    [2018/12/4 11:00:08] [IPU1-0] 37.054016 s: SYSTEM: Heap = SR_DDR_CACHED @ 0x89d03000, Total size = 368037888 B (350 MB), Free size = 295283712 B (281 MB)
    [2018/12/4 11:00:08] [IPU1-0] 37.054199 s: SYSTEM: Heap = SR_DDR_NON_CACHED @ 0xbfc00000, Total size = 127360 B (0 MB), Free size = 92800 B (0 MB)
    [2018/12/4 11:00:08] [IPU1-0] 37.063655 s: CHAINS: Sensor create in progress
    [2018/12/4 11:00:08] [IPU1-0] 37.063838 s: dqy VIDEO_SENSOR: Bsp_boardSetPinMux->5
    [2018/12/4 11:00:08] [IPU1-0] 37.064112 s: RawRead8 I2C1: DEV 0x26: RD 0x08 = 0xff
    [2018/12/4 11:00:08] [IPU1-0] 37.064234 s: RawRead8 I2C1: DEV 0x26: RD 0x09 = 0xff
    [2018/12/4 11:00:08] [IPU1-0] 37.064631 s: RawWrite8 I2C1: DEV 0x26:
    [2018/12/4 11:00:08] [IPU1-0] 37.064722 s: 0xfb
    [2018/12/4 11:00:08] [IPU1-0] 37.064753 s: 0xff
    [2018/12/4 11:00:08] [IPU1-0] 37.064814 s:
    [2018/12/4 11:00:08] [IPU1-0] 37.064875 s: VIDEO_SENSOR: INST0 : I2C1 : I2C Addr = 0x10
    [2018/12/4 11:00:08] [IPU1-0] 37.064966 s: VIDEO_SENSOR: calling Fvid2_create: sensorDrvId = 4611
    [2018/12/4 11:00:09] [IPU1-0] 37.075520 s: probe @0x6f: ok
    [2018/12/4 11:00:09] [IPU1-0] 37.075886 s: Write8 I2C1: DEV 0x6f: WR 0x07 = 0xb0
    [2018/12/4 11:00:09] [IPU1-0] 37.076099 s: Write8 I2C1: DEV 0x6f: WR 0x08 = 0x20
    [2018/12/4 11:00:09] [IPU1-0] 37.076313 s: Write8 I2C1: DEV 0x6f: WR 0x10 = 0x20
    [2018/12/4 11:00:09] [IPU1-0] 37.076587 s: Write8 I2C1: DEV 0x6f: WR 0x09 = 0x1a
    [2018/12/4 11:00:09] [IPU1-0] 37.076801 s: Write8 I2C1: DEV 0x6f: WR 0x11 = 0x1a
    [2018/12/4 11:00:09] [IPU1-0] 37.986579 s: I2C1: Passed for address 0x26 !!!
    [2018/12/4 11:00:09] [IPU1-0] 38.002165 s: I2C1: Passed for address 0x32 !!!
    [2018/12/4 11:00:09] [IPU1-0] 38.051332 s: I2C1: Passed for address 0x58 !!!
    [2018/12/4 11:00:09] [IPU1-0] 38.053955 s: I2C1: Passed for address 0x5a !!!
    [2018/12/4 11:00:09] [IPU1-0] 38.081223 s: I2C1: Passed for address 0x6f !!!
    [2018/12/4 11:00:09] [IPU1-0] 38.103214 s: probe @0x6f: ok
    [2018/12/4 11:00:09] [IPU1-0] 38.104709 s: probe @0x58: ok
    [2018/12/4 11:00:09] [IPU1-0] 38.115018 s: Write8 I2C1: DEV 0x58: WR 0x0d = 0x10
    [2018/12/4 11:00:09] [IPU1-0] 38.976178 s: Write8 I2C1: DEV 0x58: WR 0x0d = 0x90
    [2018/12/4 11:00:09] [IPU1-0] 39.857835 s: I2C1: Passed for address 0x10 !!!
    [2018/12/4 11:00:09] [IPU1-0] 39.886384 s: I2C1: Passed for address 0x26 !!!
    [2018/12/4 11:00:09] [IPU1-0] 39.902000 s: I2C1: Passed for address 0x32 !!!
    [2018/12/4 11:00:09] [IPU1-0] 39.951198 s: I2C1: Passed for address 0x58 !!!
    [2018/12/4 11:00:09] [IPU1-0] 39.953821 s: I2C1: Passed for address 0x5a !!!
    [2018/12/4 11:00:09] [IPU1-0] 39.981119 s: I2C1: Passed for address 0x6f !!!
    [2018/12/4 11:00:09] [IPU1-0] 40.866741 s: probe @0xd: fail(exposure LED)
    [2018/12/4 11:00:09] [IPU1-0] 45.259928 s: Write16 I2C1: DEV 0x10: WR 0x3028 = 0x0010
    [2018/12/4 11:00:09] [IPU1-0] 45.260995 s: Write16 I2C1: DEV 0x10: WR 0x302a = 0x0006
    [2018/12/4 11:00:09] [IPU1-0] 45.262063 s: Write16 I2C1: DEV 0x10: WR 0x302c = 0x0001
    [2018/12/4 11:00:09] [IPU1-0] 45.263130 s: Write16 I2C1: DEV 0x10: WR 0x302e = 0x0002
    [2018/12/4 11:00:09] [IPU1-0] 45.264228 s: Write16 I2C1: DEV 0x10: WR 0x3030 = 0x0024
    [2018/12/4 11:00:10] [IPU1-0] 45.265296 s: Write16 I2C1: DEV 0x10: WR 0x3032 = 0x0000
    [2018/12/4 11:00:10] [IPU1-0] 45.266394 s: Write16 I2C1: DEV 0x10: WR 0x30b0 = 0x0480
    [2018/12/4 11:00:10] [IPU1-0] 45.353687 s: Write16 I2C1: DEV 0x10: WR 0x301a = 0x00d8
    [2018/12/4 11:00:10] [IPU1-0] 45.354877 s: Write16 I2C1: DEV 0x10: WR 0x301a = 0x10dc
    [2018/12/4 11:00:10] [IPU1-0] 45.442688 s: Write16 I2C1: DEV 0x10: WR 0x3002 = 0x0078
    [2018/12/4 11:00:10] [IPU1-0] 45.443725 s: Write16 I2C1: DEV 0x10: WR 0x3004 = 0x0000
    [2018/12/4 11:00:10] [IPU1-0] 45.444885 s: Write16 I2C1: DEV 0x10: WR 0x3006 = 0x0347
    [2018/12/4 11:00:10] [IPU1-0] 45.446013 s: Write16 I2C1: DEV 0x10: WR 0x3008 = 0x04ff
    [2018/12/4 11:00:10] [IPU1-0] 45.447081 s: Write16 I2C1: DEV 0x10: WR 0x300a = 0x02eb
    [2018/12/4 11:00:10] [IPU1-0] 45.448148 s: Write16 I2C1: DEV 0x10: WR 0x300c = 0x0672
    [2018/12/4 11:00:10] [IPU1-0] 45.449216 s: Write16 I2C1: DEV 0x10: WR 0x3012 = 0x0064
    [2018/12/4 11:00:10] [IPU1-0] 45.450283 s: Write16 I2C1: DEV 0x10: WR 0x3014 = 0x0000
    [2018/12/4 11:00:10] [IPU1-0] 45.451381 s: Write16 I2C1: DEV 0x10: WR 0x30a6 = 0x0001
    [2018/12/4 11:00:10] [IPU1-0] 45.452479 s: Write16 I2C1: DEV 0x10: WR 0x308c = 0x0004
    [2018/12/4 11:00:10] [IPU1-0] 45.453516 s: Write16 I2C1: DEV 0x10: WR 0x308a = 0x0002
    [2018/12/4 11:00:10] [IPU1-0] 45.454584 s: Write16 I2C1: DEV 0x10: WR 0x3090 = 0x03c3
    [2018/12/4 11:00:10] [IPU1-0] 45.455865 s: Write16 I2C1: DEV 0x10: WR 0x308e = 0x0501
    [2018/12/4 11:00:10] [IPU1-0] 45.456993 s: Write16 I2C1: DEV 0x10: WR 0x30aa = 0x047d
    [2018/12/4 11:00:10] [IPU1-0] 45.458061 s: Write16 I2C1: DEV 0x10: WR 0x3016 = 0x0206
    [2018/12/4 11:00:10] [IPU1-0] 45.459128 s: Write16 I2C1: DEV 0x10: WR 0x3018 = 0x0384
    [2018/12/4 11:00:10] [IPU1-0] 45.460196 s: Write16 I2C1: DEV 0x10: WR 0x30a8 = 0x0001
    [2018/12/4 11:00:10] [IPU1-0] 45.461263 s: Write16 I2C1: DEV 0x10: WR 0x3040 = 0x0000
    [2018/12/4 11:00:10] [IPU1-0] 45.462331 s: Write16 I2C1: DEV 0x10: WR 0x3064 = 0x1802
    [2018/12/4 11:00:10] [IPU1-0] 45.463399 s: Write16 I2C1: DEV 0x10: WR 0x31c6 = 0x8008
    [2018/12/4 11:00:11] [IPU1-0] 45.464436 s: Write16 I2C1: DEV 0x10: WR 0x3046 = 0x0100
    [2018/12/4 11:00:11] [IPU1-0] 45.465503 s: Write16 I2C1: DEV 0x10: WR 0x305e = 0x0080
    [2018/12/4 11:00:11] [IPU1-0] 45.465625 s: VIDEO_SENSOR: calling Fvid2_control
    [2018/12/4 11:00:11] [IPU1-0] 45.466906 s: Read16 I2C1: DEV 0x10: RD 0x3000 = 0x0000
    [2018/12/4 11:00:11] [IPU1-0] 45.468248 s: Read16 I2C1: DEV 0x10: RD 0x3001 = 0x0000
    [2018/12/4 11:00:11] [IPU1-0] 45.468340 s: VIDEO_SENSOR: VIP 0: DRV ID 1203 (I2C ADDR 0x10): 0554:0000:0000
    [2018/12/4 11:00:11] [IPU1-0] 45.468462 s: CHAINS: Sensor create ... DONE !!!
    [2018/12/4 11:00:11] [IPU1-0] 45.468706 s: [DisplayLink_tskMain] get cmd SYSTEM_CMD_START
    [2018/12/4 11:00:11] [IPU1-0] 45.468797 s: DISPLAY: Start in progress !!!
    [2018/12/4 11:00:11] [IPU1-0] 45.468858 s: DISPLAY: Start Done !!!
    [2018/12/4 11:00:11] [IPU1-0] 45.469011 s: [DisplayLink_tskMain] DisplayLink_drvStart done
    [2018/12/4 11:00:11] [IPU1-0] 45.470139 s: CAPTURE: Start in progress !!!
    [2018/12/4 11:00:11] [IPU1-0] 45.471878 s: CAPTURE: Start Done !!!
    [2018/12/4 11:00:11] [IPU1-0] 45.474257 s:
    [2018/12/4 11:00:11] [IPU1-0]
    [2018/12/4 11:00:11] [IPU1-0] ====================
    [2018/12/4 11:00:11] [IPU1-0] Chains Run-time Menu
    [2018/12/4 11:00:11] [IPU1-0] ====================
    [2018/12/4 11:00:11] [IPU1-0]
    [2018/12/4 11:00:11] [IPU1-0] 0: Stop Chain
    [2018/12/4 11:00:11] [IPU1-0]
    [2018/12/4 11:00:11] [IPU1-0] p: Print Statistics
    [2018/12/4 11:00:11] [IPU1-0]
    [2018/12/4 11:00:11] [IPU1-0] Enter Choice:
    [2018/12/4 11:00:11] [IPU1-0]
    [2018/12/4 11:00:11] [IPU1-1] 37.054748 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:11] [IPU1-1] 37.054901 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 655360 B (640 KB), Free size = 643408 B (628 KB)
    [2018/12/4 11:00:11] [HOST ] 36.480479 s: IPC_IN_0 : Create in progress !!!
    [2018/12/4 11:00:11] [HOST ] 36.480784 s: IPC_IN_0 : Create Done !!!
    [2018/12/4 11:00:11] [HOST ] 36.480997 s: ALGORITHM: Create in progress (algId = 12) !!!
    [2018/12/4 11:00:11] [HOST ] 36.484566 s: UTILS: DMA: Allocated CH (TCC) = 0 (0)
    [2018/12/4 11:00:11] [HOST ] 36.484566 s: UTILS: DMA: 0 of 1: Allocated PaRAM = 0 (0x43305600)
    [2018/12/4 11:00:11] [HOST ] 36.484566 s: ALGORITHM: Create Done (algId = 12) !!!
    [2018/12/4 11:00:11] [HOST ] 36.484780 s: IPC_OUT_0 : Create in progress !!!
    [2018/12/4 11:00:11] [HOST ] 36.484810 s: IPC_OUT_0 : Create Done !!!
    [2018/12/4 11:00:11] [HOST ] 37.046574 s: IPC_IN_1 : Create in progress !!!
    [2018/12/4 11:00:11] [HOST ] 37.046727 s: IPC_IN_1 : Create Done !!!
    [2018/12/4 11:00:11] [HOST ] 37.046910 s: ALGORITHM: Create in progress (algId = 13) !!!
    [2018/12/4 11:00:11] [HOST ] 37.049014 s: UTILS: DMA: Allocated CH (TCC) = 1 (1)
    [2018/12/4 11:00:11] [HOST ] 37.049014 s: UTILS: DMA: 0 of 1: Allocated PaRAM = 1 (0x43305620)
    [2018/12/4 11:00:11] [HOST ] 37.049045 s: ALGORITHM: Create Done (algId = 13) !!!
    [2018/12/4 11:00:11] [HOST ] 37.049228 s: IPC_OUT_1 : Create in progress !!!
    [2018/12/4 11:00:11] [HOST ] 37.049258 s: IPC_OUT_1 : Create Done !!!
    [2018/12/4 11:00:11] [HOST ] 37.055236 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:11] [HOST ] 37.055236 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 6291456 B (6144 KB), Free size = 6233712 B (6087 KB)
    [2018/12/4 11:00:12] [DSP1 ] 36.485085 s: IPC_IN_0 : Create in progress !!!
    [2018/12/4 11:00:12] [DSP1 ] 36.485329 s: IPC_IN_0 : Create Done !!!
    [2018/12/4 11:00:12] [DSP1 ] 36.485603 s: ALGORITHM: Create in progress (algId = 36) !!!
    [2018/12/4 11:00:12] [DSP1 ] 37.045964 s: ALGORITHM: Create Done (algId = 36) !!!
    [2018/12/4 11:00:12] [DSP1 ] 37.046239 s: IPC_OUT_1 : Create in progress !!!
    [2018/12/4 11:00:12] [DSP1 ] 37.046330 s: IPC_OUT_1 : Create Done !!!
    [2018/12/4 11:00:12] [DSP1 ] 37.055358 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:12] [DSP1 ] 37.055389 s: SYSTEM: Heap = LOCAL_L2 @ 0x00800000, Total size = 227264 B (221 KB), Free size = 65600 B (64 KB)
    [2018/12/4 11:00:12] [DSP1 ] 37.055450 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 524288 B (512 KB), Free size = 503856 B (492 KB)
    [2018/12/4 11:00:12] [DSP2 ] 37.055664 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:12] [DSP2 ] 37.055694 s: SYSTEM: Heap = LOCAL_L2 @ 0x00800000, Total size = 227264 B (221 KB), Free size = 227264 B (221 KB)
    [2018/12/4 11:00:12] [DSP2 ] 37.055755 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 524288 B (512 KB), Free size = 514584 B (502 KB)
    [2018/12/4 11:00:12] [EVE1 ] 37.056152 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:12] [EVE1 ] 37.056457 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 22528 B (22 KB), Free size = 22528 B (22 KB)
    [2018/12/4 11:00:12] [EVE1 ] 37.057097 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 252432 B (246 KB)
    [2018/12/4 11:00:12] [EVE2 ] 37.058012 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:12] [EVE2 ] 37.058317 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 22528 B (22 KB), Free size = 22528 B (22 KB)
    [2018/12/4 11:00:12] [EVE2 ] 37.058866 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 252432 B (246 KB)
    [2018/12/4 11:00:13] [EVE3 ] 37.059842 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:13] [EVE3 ] 37.060147 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 22528 B (22 KB), Free size = 22528 B (22 KB)
    [2018/12/4 11:00:13] [EVE3 ] 37.060696 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 252432 B (246 KB)
    [2018/12/4 11:00:13] [EVE4 ] 37.061642 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:13] [EVE4 ] 37.061916 s: SYSTEM: Heap = LOCAL_L2 @ 0x40020000, Total size = 22528 B (22 KB), Free size = 22528 B (22 KB)
    [2018/12/4 11:00:13] [EVE4 ] 37.062496 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 252432 B (246 KB)
    [2018/12/4 11:00:13] [IPU2 ] 37.063258 s: SYSTEM: SW Message Box Msg Pool, Free Msg Count = 1023
    [2018/12/4 11:00:13] [IPU2 ] 37.063411 s: SYSTEM: Heap = LOCAL_DDR @ 0x00000000, Total size = 262144 B (256 KB), Free size = 250184 B (244 KB)


    and tidl is on dsp , not eve.
  • In reply to bin li2:

    Hi,

    TIDL_OD usecase only supported with input files not the real time capture.

    Regards,
    Anuj
  • In reply to Anuj Gupta:

    i only wanna to see the result, whatever the perfermance. shall i go on this usecase what i build?
  • In reply to bin li2:

    Hi,

    If you are not worried about the performance and output result then please take a reference of the below usecase
    vision_sdk\apps\src\rtos\usecases\semSeg

    Please try to feed tidl_precproc link in the same data format(SYSTEM_DF_YUV420SP_UV) as its been done in the above usecase.

    Regards,
    Anuj
  • In reply to Anuj Gupta:

    thank you very much! i have done this operation. now my chain is like this:

    capture(yuv422 720p)->vpe(yuv422 720p to yuv420sp 1024x512)->tidl_preproc(y2r)->tidl->tidl_postproc(to yuv420sp 1024x512)->display

    but now i only can see one dark green slice and one light green slice in the screen.

    i check the print log in tidl_preproc and tidl_postproc, the format maybe ok. i don't know why.
  • In reply to bin li2:

    my set enviroment is :

    chains_tidlAppObj *pObj = (chains_tidlAppObj*)appObj;

    //set display type and capture type
    pObj->chainsCfg->displayType = CHAINS_DISPLAY_TYPE_HDMI_720P;
    pObj->chainsCfg->captureSrc = CHAINS_CAPTURE_SRC_OV10635;

    ChainsCommon_SingleCam_SetCapturePrms(&pUcObj->CapturePrm,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT,
    pObj->chainsCfg->captureSrc
    );
    pUcObj->CapturePrm.vipInst[0].numBufs = 5;

    /* memory for self format buffer's */
    pUcObj->CapturePrm.memAllocInfo.memSize =
    CAPTURE_SENSOR_WIDTH * CAPTURE_SENSOR_HEIGHT *
    pUcObj->CapturePrm.vipInst[0].numBufs * 3;
    Vps_printf("[%s] malloc memSize w*h*3=%d*%d\n",__FUNCTION__,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT);

    pUcObj->CapturePrm.memAllocInfo.memAddr =
    (UInt32)Utils_memAlloc(
    UTILS_HEAPID_DDR_CACHED_SR,
    pUcObj->CapturePrm.memAllocInfo.memSize,
    128
    );
    Vps_printf("[%s] malloc memAddr %x\n",__FUNCTION__,pUcObj->CapturePrm.memAllocInfo.memAddr);
    UTILS_assert(pUcObj->CapturePrm.memAllocInfo.memAddr!=NULL);

    ChainsCommon_SetDisplayPrms(&pUcObj->Display_VideoPrm,
    NULL,
    pObj->chainsCfg->displayType,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT
    );


    /*VPE, just set yuv420sp, and copy from semSeg usecase*/
    chains_vipSingleCam_Display_SetVPEPrms(
    &pUcObj->VPEPrm,
    1,
    1024,
    512,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT);

    /* TIDL Pre Process */
    pUcObj->Alg_tidlpreprocPrm.outPad = TIDL_MAX_PAD_SIZE;
    pUcObj->Alg_tidlpreprocPrm.numOutputQueues = 1;
    pUcObj->Alg_tidlpreprocPrm.procMode = TIDLPREPROC_LINK_PROCMODE_Y2R;

    /* TIDL Post Process */
    /* bitmap color table look up
    There are 5 palettes */
    pObj->colPalette[0] = \
    rgb2uv(PALETTE_NONE_RED, PALETTE_NONE_GREEN, PALETTE_NONE_BLUE);
    pObj->colPalette[1] = \
    rgb2uv(PALETTE_ROAD_RED, PALETTE_ROAD_GREEN, PALETTE_ROAD_BLUE);
    pObj->colPalette[2] = \
    rgb2uv(PALETTE_PED_RED, PALETTE_PED_GREEN, PALETTE_PED_BLUE);
    pObj->colPalette[3] = \
    rgb2uv(PALETTE_SIGN_RED, PALETTE_SIGN_GREEN, PALETTE_SIGN_BLUE);
    pObj->colPalette[4] = \
    rgb2uv(PALETTE_VEH_RED, PALETTE_VEH_GREEN, PALETTE_VEH_BLUE);

    pUcObj->Alg_tidlpostprocPrm.outDataFormat = SYSTEM_DF_YUV420SP_UV;
    pUcObj->Alg_tidlpostprocPrm.outWidth = SEMSEG_INPUT_WIDTH;
    pUcObj->Alg_tidlpostprocPrm.outHeight = SEMSEG_INPUT_HEIGHT;
    pUcObj->Alg_tidlpostprocPrm.colPalette565 = pObj->colPalette;
    pUcObj->Alg_tidlpostprocPrm.inPad = TIDL_MAX_PAD_SIZE;
    pUcObj->Alg_tidlpostprocPrm.numInputQueues = 1;
    pUcObj->Alg_tidlpostprocPrm.mode = TIDLPOSTPROC_MODE_CLUT;



    /*
    * Set the TIDL algorithm parameters for all the 'NUM_PIPELINES' instances.
    */

    /* TIDL on DSP1 */
    pUcObj->Alg_tidl_1Prm.cacheInvInBuf = 1;
    pUcObj->Alg_tidl_1Prm.cacheWbOutBuf = 1;
    pUcObj->Alg_tidl_1Prm.pAlgCreateParams = pObj->pAlgCreateParams;
    pUcObj->Alg_tidl_1Prm.curCoreId = TIDL_COREID_EVE1;
    pUcObj->Alg_tidl_1Prm.currLayersGroupId = TIDL_LAYER_GROUPID_EVE1;
    pUcObj->Alg_tidl_1Prm.ocmcAddr = NULL;


    ChainsCommon_StartDisplayCtrl(
    pObj->chainsCfg->displayType,
    CAPTURE_SENSOR_WIDTH,
    CAPTURE_SENSOR_HEIGHT
    );
  • In reply to Anuj Gupta:

    now i dump the data in tidl_preprocess, and use tool to check the yuv420sp data, it is correct. 

    and then i dont know whether i made some mistake in tidl, tidl_postprocess or not?

  • In reply to bin li2:

    done!
    i found a bug in PROCESSOR_SDK_VISION_03_01_00_00 sdk in tidl postprocess link.
    AlgorithmLink_tidlpostprocProcess this function when process yuv420p format data, it will only dump uv data ,but the output address is wrong!
    original code is like this:
    /* UV address */
    outAddr565 = (UInt16*)pOutVidBuf->bufAddr[0];


    and you can see the address when create process. so i change it to bufAddr[1].
    and now my chain works well!

    thank you very much!
  • In reply to bin li2:

    my mistake.

    when i use semseg usecase , and change the input from h264 file to capture, it works, but bufAddr[0] i changed before should not be changed in this usecase.

  • In reply to bin li2:

    Okay, Thanks for the information.

    I hope now its working fine.

    Regards,
    Anuj