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.

PROCESSOR-SDK-TDAX: Adding vertical Display to PSDK

Part Number: PROCESSOR-SDK-TDAX


Hey Everyone,

I want to add a custom LCD display to the PSDK 3.4 on a TDA3 D3-RVP board. That display has a resolution of 400 x 1280, so its actually a vertical / portrait display. This display should show frames from a 1920x1080 image sensor via the usecase chains_issIspSimcop_Display. The complete usecase is working fine on another output display (HDMI).

Now I encountered some problems where this unusual resolution led to errors in the code, e.g. in the display driver function VpsCore_dssValidateDssParams (in vpscore_dss.c). There are also some functions where the resolution seems to be forced into a horizontal image (chains_issIspSimcop_Display_SetDisplayPrms).

So first of all: Are there any guides on how to integrate a custom display to the PSDK?

And second: Is it even possible to add a vertical display like mine to the PSDK?

Regards,

Tobias

  • Hi Tobias,

    DSS has scaling limitations: downscaling up to 0.25x.
    You can't downscale from 1920 to 400.
    You can first downscale in VIP and then use the DSS scaler.

    Regards,
    Rishabh
  • Hi Rishabh,

    so in general adding a vertical display is not a problem as long as it fits the DSS limitations? It seems like the usecase itself requires horizontal frames to work (see first lines of chains_issIspSimcop_Display_SetDisplayPrms).

    I was wondering if there's a possibility to handle my display as if it was in normal, horizontal orientation and then just flip it afterwards? Because if it would be used as a 1280x400 display instead of a 400x1280 display, all the limitations would not be a problem.

    Regards,
    Tobias
  • Hi Tobias,

    Yes, vertical display is not the problem. The code in the ISS usecase tries to maintain aspect ration for the given input frame. So if your input frame is 1280x800, it will first calculate scaling factor on the horizontal side and then applies the same scaling factor on the vertical side.
    Can you check if there is any way you could rotate image in the display by 90? Then DSS can output 1280x400 frame size.
    Btw, what is your display input size?

    Regards,
    Brijesh
  • Hi Brijesh,

    The display is used for mirror replacement in a car, so its shaped like an inner rearview mirror. We also want to use it in that horizontal orientation (like a real mirror) but the display itself is designed as a vertical display, so its resolution is 400x1280 (WxH) - see attached graphic. Thats also its input size, if that's what you meant. We cant rotate the output image directly on the display, so we have to add it with this vertical resolution to the PSDK.

    The frame that should be displayed on the display is from an IMX390 (1920x1080) or an OV10640 sensor (1280x800). So our actual problem is, that we need to rotate the horizontal images from the sensors, crop them to fit the display and then display them. Is there a way that we can rotate the sensor frames in the PSDK? Otherwise our output would still be in a wrong orientation - see attached pic, upper right figure.

     

    Regards,

    Tobias

  • Hi Tobias,

    I believe you are using TDA3x and you want to perform 90degree rotation on the ISP output image.
    Unfortunately, as far as i know, there is no hardware which can do 90degree rotation. There is some support for flipping the image in the resizer. You could flip the images in horizontal and/or vertical direction, but it cannot do 90degree rotation.

    Regards,
    Brijesh
  • Hi Brijesh,

    you're right - I need to rotate the frames 90 degrees when I want to use this specific display. But as this isn't possible and there would be other problems because of the display resolution I think we will try to use an other horizontal display. Thanks for your help anyway!

    Are there any guides on how to add a custom display to PSDK by the way?

    Regards,
    Tobias