TDA4VEN-Q1: [TDA4VEN][J722S] [SDK10.1]Setting ltm lut caused flicker on the screen with two 3M camera

Part Number: TDA4VEN-Q1
Other Parts Discussed in Thread: TDA4VL

Tool/software:

Hi Ti team

there are two camera with 1920*1536 resolution on J722s platform in SDK 10.1 

when we set lookup Table of glbce to isp driver . one camera stream is ok,

but the other camera is flicking on the screen .

when we don't set the   lookup Table of glbce , both of  two cameras are ok .

please help me check.

best regards

sungenben 

  • Hi sungenben,

    Which sdk release are you using? Are both of these camera complete different? Is GLBCE context save and restore are enabled for these camera? 

    Regards,

    Brijesh

  • Hi Brijesh

    we use sdk 10.1 

    yes both of two cameras are the same ,but have own parameters .

    yes we are enable the save and restore as below

    vissDrvPrms->enableGlbceSaveRestoreCtx=TRUE;

    BTW ,if we set the same lookup Table of glbce for two cameras ,

    both of camera streams are ok .

    best regards

    sungenben

  • Hi Brijesh

    I had added my source code ,could you help me check?

    vx_vpac_ce_viss_target.c
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    /*******************************************************************************
    * vx_vpac_ce_viss_target.c
    *
    * Target of ISP kernel for Cogent ISP framework.
    *
    * Copyright (c) 2015-2020 Cogent Embedded Inc.
    * ALL RIGHTS RESERVED.
    *
    * The source code contained or described herein and all documents related to the
    * source code("Software") or their modified versions are owned by
    * Cogent Embedded Inc. or its affiliates.
    *
    * No part of the Software may be used, copied, reproduced, modified, published,
    * uploaded, posted, transmitted, distributed, or disclosed in any way without
    * prior express written permission from Cogent Embedded Inc.
    *
    * Cogent Embedded Inc. grants a nonexclusive, non-transferable, royalty-free
    * license to use the Software to Licensee without the right to sublicense.
    * Licensee agrees not to distribute the Software to any third-party without
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    best regards

    sungenben

  • hi sungenben,

    but here i see below code, which means glbce context save/restore is not enabled for J722S device. 

    #if !defined(SOC_AM62A) && !defined(SOC_J722S)

    Can you please check in the file ti-processor-sdk-rtos-j722s-evm-10_01_00_04\imaging\utils\hwa\src\app_hwa.c, below code is present? 

    #if defined(MCU_PLUS_SDK)
    initPrms.udmaDrvHndl = drvHandle;
    initPrms.udmaDrvHndlBcdma = drvHandleBcdma;
    /* enable config through UDMA */
    initPrms.configThroughUdmaFlag = gConfigThroughUDMA;
    initPrms.copyGlbceCtxThroughBcdmaFlag = true;
    #else
    initPrms.udmaDrvHndl = appUdmaGetObj();
    /* Set configThroughUDMA to true to support multi handle */
    initPrms.configThroughUdmaFlag = true;
    #endif

    status = Vhwa_m2mVissInit(&initPrms);

    Regards,

    Brijesh

  • Hi Brijesh 

    yes  , I can see the source the same as you show .

    what can I do for support two cameras ?

    best regards

    sungenben 

  • Hi sun genben,

    Then the GLBCE context save/restore is already enabled. Most likely this flicker in one camera is not coming because of GLBCE, is Exposure changing very frequently? This could be one reason why you are observing flicker. 

    Regards,

    Brijesh 

  • Hi Brijesh 

    you can see the video that I had attached .

    currently we set the GLBCE every frame with the different environment .

    we had checked the flicker caused by GPBCE .

    if we use the same GBLCE for two cameras , the streams don't occur flicker

    best regards

    sungenben 

  • Hi sungenben,

    Sorry, did not get the last statement, what do you mean by "same GBLCE for two cameras"? Is GLBCE settings are different for both the cameras? 

    Regards,

    Brijesh 

  • Hi Brijesh 

    if we set different look lut of GLBCE for two cameras every frame , one screen is flickering ,the other is ok .

    if we set look lut of GLBCE for A camera every frame (different look lut), B camera is set the same look lut with A every frame .  both two camera streams are ok ,no flicker occur.

    if we don't update Look lut of GLBCE ,both two camera streams are ok ,no flicker occur.

    best regards

    sungenben.

  • Hi sungenben,

    Which look lut do you mean here? 

    Regards,

    Brijesh

  • Hi Brijesh

        uint32_t                    asymLut[GLBCE_ASYMMETRY_LUT_SIZE];

    which is in the glbce_cfg.h in the below path

    rtos_sdk/mcu_plus_sdk_j722s/source/drivers/vhwa/include/

    best regards

    sungenben

  • Hi sungenben,

    Yes, if you hare Asym LUT difference for both the cameras, you need to see them to both the camera before submitting the frame. Any specific reason for using different Aym Lut for both these cameras? 

    Regards,

    Brijesh

  • Hi Brijesh

    currently our production is CMS , the cameras are located both side of car 

    we are dynamic to adjust the  asymLut with environment , so if different environment in two cameras , the asymLut is different .

    In order to have own parameters for different cameras ,so TI set the save/restore function 

    is that right ?  we had used our algorithms in the TDA4VL ,and It's OK 

    best regards

    sungenben 

  • Hi sungenben,

    on TDA4VL, we have support for restoring the context for each camera on every frame. This feature is not yet supported on TDA4AEN. This is why GLBCE Asym Lut is not being restored and we will need to explicitly set it in the Node.. You might have update the node to call API for setting GLBCE settings for both the cameras. 

    Regards,

    Brijesh

  • Hi Brijesh

    ->on TDA4VL, we have support for restoring the context for each camera on every frame. This feature is not yet supported on TDA4AEN

    when does TI plan to achieve this feature on TDA4VEN?

    best regards

    sungenben 

  • Hi sungenben,

    Please refer to roadmap slides for this. Only GLBCE context save and restore is supported on TDA4AEN. 

    Regards,

    Brijesh

  • Hi Brijesh 

    Could you help me check  because I don't know the roadmap slides ?

    best regards

    sungenben

  • Hi sungenben,

    ok, let me check with the team. 

    Regards,

    Brijesh

  • Hi sungenben,

    As per the current plan, this feature will be available in the SDK11.2 timeframe. 

    Regards,

    Brijesh 

  • Hi sungenben,

    you can see the video that I had attached .

    currently we set the GLBCE every frame with the different environment .

    Is that a horizontal tearing line in your attached video?