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-J721E: Green Block-like artefacts on LDC out image after LDC tuning

Part Number: PROCESSOR-SDK-J721E

Hi,

This is with regard to the TDA4x LDC block. Build: 7.1.0 (20 Nov 2020).
On a typical single camera pipeline, consisting of capture, VISS, LSC, MSC nodes, after tuning the LDC block, green block-like artefacts are visible on the bottom of the image.


The image size is 1600x1300.

VISS output image does not have the block artefacts.



Below are the Mesh LDC configs:
################################################################################
# Configuration file for TDA4x LDC C Model                                     #
################################################################################
   42     # PRIVATE_MEMSIZE       pixmem_size          Fixed to 42
   30     # PRIVATE_MEMSIZE       pixmem_sizeC         Fixed to 30
   10     # PRIVATE_MEMSIZE       meshmem_size         Fixed to 10
    1     # LDC_CTRL              LDC_EN               LDC Enable, 0: Disable,  1: Enable
    1     # LDC_CTRL              LDMAPEN              LD Mapping enable, 0: disable, 1: enable
    2     # LDC_CTRL              DATAMODE             Input data mode, 0: UYVY,  1: Y only, 2: YUV420SP, 3: UV only
    0     # LDC_CTRL              OP_DATAMODE          Output data mode, 0: keep UYVY; 1: convert to 420
    0     # LDC_CTRL              IP_DFMT              Input pixel format, 0: 8b,  1: 12b packed, 2: 12b unpacked
    1     # LDC_CTRL              PWARPEN              0: Disable perspective warp. 1: Enable perspective warp
    0     # LDC_CFG               YINT_TYP             Interpolation type for Y data.  0: Bicubic,  1: Bilinear
    0     # LDC_CFG               REGMODE_EN           Region mode, 0: disable, 1: enable
    3     # LDC_MESHTABLE_CFG     M                    Mesh table subsampling factor (0-7)
 1600     # LDC_MESH_FRSZ         W                    Mesh frame width (0-8192)
 1300     # LDC_MESH_FRSZ         H                    Mesh frame height (0-8192)
 1600     # LDC_COMPUTE_FRSZ      W                    Compute width (0-8192)
 1304     # LDC_COMPUTE_FRSZ      H                    Compute height (0-8192)
    0     # LDC_INITXY            INITX                Output starting horizontal coordinate (0-8191)
    0     # LDC_INITXY            INITY                Output starting vertical coordinate (0-8191)
 1600     # LDC_INPUT_FRSZ        W                    Input frame width (0-8192)
 1300     # LDC_INPUT_FRSZ        H                    Input frame height (0-8192)
   32     # LDC_BLOCK_SIZE        OBW                  Output block width (0-255)
   32     # LDC_BLOCK_SIZE        OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE        PIXPAD               Pixel pad (0-15)
 4096     # LDC_AB                A                    Affine Transform warp, A S16Q12
    0     # LDC_AB                B                    Affine Transform warp, B S16Q12
    0     # LDC_CD                C                    Affine Transform warp, C S16Q3
    0     # LDC_CD                D                    Affine Transform warp, D S16Q12
 4096     # LDC_EF                E                    Affine Transform warp, E S16Q12
    0     # LDC_EF                F                    Affine Transform warp, F S16Q3  
    0     # LDC_GH                G                    Affine Transform warp, G S16Q23
    0     # LDC_GH                H                    Affine Transform warp, H S16Q23
    0     # LDC_SF_W1             W1                   Width 1 (0-8191)
    0     # LDC_SF_W2             W1                   Width 2 (0-8191)
    0     # LDC_SF_W3             W1                   Width 3 (0-8191)
    0     # LDC_SF_H1             H1                   Height 1 (0-8191)
    0     # LDC_SF_H2             H2                   Height 2 (0-8191)
    0     # LDC_SF_H3             H3                   Height 3 (0-8191)
    0     # LDC_SF_EN0            EN                   Enable
    0     # LDC_BLOCK_SIZE0       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE0       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE0       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN1            EN                   Enable
    0     # LDC_BLOCK_SIZE1       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE1       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE1       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN2            EN                   Enable
    0     # LDC_BLOCK_SIZE2       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE2       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE2       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN3            EN                   Enable
    0     # LDC_BLOCK_SIZE3       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE3       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE3       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN4            EN                   Enable
    0     # LDC_BLOCK_SIZE4       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE4       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE4       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN5            EN                   Enable
    0     # LDC_BLOCK_SIZE5       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE5       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE5       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN6            EN                   Enable
    0     # LDC_BLOCK_SIZE6       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE6       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE6       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN7            EN                   Enable
    0     # LDC_BLOCK_SIZE7       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE7       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE7       PIXPAD               Pixel pad (0-15)
    0     # LDC_SF_EN8            EN                   Enable
    0     # LDC_BLOCK_SIZE8       OBW                  Output block width (0-255)
    0     # LDC_BLOCK_SIZE8       OBH                  Output block height (0-255)
    0     # LDC_BLOCK_SIZE8       PIXPAD               Pixel pad (0-15)
    0     # LDC_DUALOUT_CFG       YLUT_EN              Luma LUT enable (0-1)
    8     # LDC_DUALOUT_CFG       YIN_BITDPTH          Luma input bit depth (8-12)
    8     # LDC_DUALOUT_CFG       YOUT_BITDPTH         Luma output bit depth (8-12)
    0     # LDC_DUALOUT_CFG       CLUT_EN              Chroma LUT enable (0-1)
    8     # LDC_DUALOUT_CFG       CIN_BITDPTH          Chroma input bit depth (8-12)
    8     # LDC_DUALOUT_CFG       COUT_BITDPTH         Chroma output bit depth (8-12)

Any help in this regard is highly appreciated.

Thanks,
Apeksha Chipade

  • Hi Apeksha,

    Do you have the issue on TDA4 EVM with these output block parameters?

       32     # LDC_BLOCK_SIZE        OBW                  Output block width (0-255)
       32     # LDC_BLOCK_SIZE        OBH                  Output block height (0-255)
        0     # LDC_BLOCK_SIZE        PIXPAD               Pixel pad (0-15)

    Typically, you may use TDA4 ISP tuning tool to verify your LDC LUT and block parameters.
    Most likely, there is something wrong in your LDC LUT at the bottom row or the 32x32 block size is too large.

    Best,
    Gang