This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/TDA2SX: VIP Capture resolution changes in VisionSDK

Part Number: TDA2SX
Other Parts Discussed in Thread: DRA752

Tool/software: Linux

Hi.

I am using DRA752 CPU on D3 TDA2x setup with OV10635 LVDS Camera. I am new to this, I tried to change the resolution from 1280x720 to 600x400, But I am getting distorted  image, unable to capture & display proper image.

* I got register settings from OVT for 600x400 (YUV422 & PCLK=24MHz).
* Changed the register values in BSP LVDS Structure.
* Changed 600x400 in Capture link and Display link.
* Written usecases for 1) Capture->Display to display 2) Capture -> Null(A15) to dump.

Then, I run application to capture & display as well as capture & dump, But, i am getting distorted  image in display and dump both.

OVT Suggested, Receiver need to set resolution (image size) properly. Please check if the resolution (image size) setting is correct or not.

Is anywhere, am i missed to set the resolution in visionSDK 3.04?

I am using only VIP capture Link. I am not using SGX  / Encoder also, So I changed in VIP Capture Link and usecase. Is there anywhere i missed ?

Thanks & Regards

ARUNKUMAR V N

  • Hi Arun,

    How are you displaying VGA resolution on 1080p display? 

    Are you enabling scaling in display or just positioning it on display?

    Also is pitch setup correctly?

    If you could set the snap of the output (in yuv format), it would helpful in understanding issue. 

    Rgds,

    Brijesh

  • Hi Brijesh Jadav,

    Sorry for confusion.

    For capture to display, we are using the use-case lvds_vip_single_cam_view_sgx_display i.e..

    [ Capture ->  Sync (A15) ->  SgxFrmcpy (A15) -> Display_M4 (IPU1_0)

    GrpxSrc -> Display_Grpx ]

    after changing the capture sensor width and height in use-case as well as capture link.

    We are assuming the said resolution change, pitch info etc are being taken care by SgxFrmcpy Link.


    Also, for dump use-case we have a chain [ Capture -> Encode -> NULL] and the recorded dump video is identicle to the video seen on HDMI display in former use-case.

    Attaching a image extracted from the dump. I can see image in background but lines are coming in foreground.


    With this additional information about our issue, is there any suggestions you can provide for us to move ahead.


    Best Regards,

    ARUNKUMAR V N

  • Hi Brijesh,

    I am wating for your reply.

    I want to downscale 1280x720 to 600x400. I get vip_capture link yuv422 hex data, but its still shows distorted data. ( i played data hexdump from ffplay)

    • Changed capture width and height in  lvds_vip_single_cam_view_sgx_display.
    • Changed registers to 600x400 resolution.
    • Changed width and height in capturelink drv.c and .h

    After All changes display is completely distorted like above image attached

    CAPTURE: Map Link pVIPcreate mode = 4, width = 0, mode = 0, stream =1
    CAPTURE: Map Link pVIP width = 1280, Height = 720, Dataformat = 6, Scanformat = 1
    CAPTURE : Outprm width = 1280, Height = 720, Dataformat = 7
    CAPTURE: Width = 1280, Height = 720, pitch 1280 1280 0
    CAPTURE: framesize_after = 1382400

    verbose output of D3 shows below in capture link :

     [HOST] [IPU2  ]     56.227414 s:  CAPTURE: Frame 0: FVID2 CH 0: Link CH 0: 0x84203000, 0x842e4000, 1382400 B
     [HOST] [IPU2  ]     56.248917 s:  CAPTURE: Frame 1: FVID2 CH 0: Link CH 0: 0x84355000, 0x84436000, 1382400 B
     [HOST] [IPU2  ]     56.270359 s:  CAPTURE: Frame 2: FVID2 CH 0: Link CH 0: 0x844a7000, 0x84588000, 1382400 B
     [HOST] [IPU2  ]     56.291862 s:  CAPTURE: Frame 3: FVID2 CH 0: Link CH 0: 0x845f9000, 0x846da000, 1382400 B
     [HOST] [IPU2  ]     56.313304 s:  CAPTURE: Frame 4: FVID2 CH 0: Link CH 0: 0x8474b000, 0x8482c000, 1382400 B
     [HOST] [HOST  ]     56.337125 s:  SGXFRMCPY: Create in progress for resolution: 1920x1080 !!!
     [HOST] [IPU2  ]     56.334838 s:  CAPTURE: Frame 5: FVID2 CH 0: Link CH 0: 0x8489d000, 0x8497e000, 1382400 B

    is there anything i missed ?

    thanks & regards

    ARUNKUMAR V N

  • Hi Arunkumar,

    The config wise, it looks ok, but i am not sure which component is adding artifacts. 

    It looks like pitch is wrong somewhere, but not sure.

    Can you dump the frames at the output of each block and check first output is correct, from capture, vpe..

    If they are correct, then it is not configured correctly in the display alone.

    Rgds,

    Brijesh