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.

TDA4VH-Q1: ISP uses LSC module, the output image appears red stripe.

Part Number: TDA4VH-Q1

Tool/software:

I added the LSC module to the ISP, where the LSC LUT used the MATLAB code provided by the TI official documentation, and the data format tried U8Q8 + 1 and U6Q6 + 1, but the LSC module did not seem to work properly, the resulting image shows an unusual red stripe, as shown below. However, when I set LSC LUT's gain to 1, the image output is normal without the red stripe

  • Hi es,

    Do you get the issue in tuning tool or on H/W?

    I suppose you are working with J721s2 (VPAC3).

    Please share your LSC xml file.

  • on H/W,and this is the xml file.the data format is U8Q6+1.

    lsc_lut_dec.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    34,34,34,34,
    34,34,34,34,
    34,34,34,34,
    34,34,34,34,
    33,33,33,33,
    22,22,22,22,
    13,13,13,13,
    7,7,7,7,
    4,4,4,4,
    2,2,2,2,
    2,2,2,2,
    2,2,2,2,
    1,1,1,1,
    1,1,1,1,
    1,1,1,1,
    1,1,1,1,
    1,1,1,1,
    1,1,1,1,
    1,1,1,1,
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi es,

    That is the LUT text file (not the xml file).

    Could you please share the complete LSC xml file exported from tuning tool?

  • Do you mean the full configuration includes XML like GAINFMT? I didn't used the tuning tool, I just configure the following.

    GAINFMT: U6Q6 + 1,

    Horzdsfactor: 64

    vertdsfactor: 64

    numtblentry: 1891

  • What is the raw image size?

  • 3840*1888

  • The LUT size and content look correct for 3840x1888.

    Do you store and pass the LUT to VISS driver correctly?

  • I confirm that this is true, and the fact that there are no exceptions when Lut's gain is all 1 should also prove this

  • Hi es,

    I suppose you don't use xml files and DCC for configuring LSC.
    Do you use both PDK driver and tiovx kernel for VISS?

    There is no known LSC issues on our side in either PDK driver or tiovx.

    Could you please share a test case with the problem?

  • BTW, I have confirmed that your LUT above is correct.

  • Can I read the parameters I set? This will make sure that what I write is the same as what I set. If there is such an interface, please provide it to me

  • Hi es,

    Can I read the parameters I set?

    There is no known issues in PDK for LSC.
    As long as you pass the correct LSC parameters to PDK driver, LSC should work properly.
    You may print or check the LSC parameters while calling the PDK driver.

  • Hi es,

    We tried using your LUT with tuning tool generated LSC xml file on J784S4 EVM and it works well.
    You might have some bug in your code.