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.

TDA4AL-Q1: AE convergence unstable and hunting

Part Number: TDA4AL-Q1

Tool/software:

Hi TI experts,

HW information

Module: Imx729

Platform: TDA4AL-Q1

We found the AE convergence unstable and hunting

After analysis, we have some questions

1. If the other gain is set, the Imx729 needs two frames operating

logs show that the Imx729 needs two frames operating

Again from sp1hAgain: 28245 to sp1hAgain: 35306 to sp1hAgain: 44132

The curY=34 = sp1hAgain: 28245

Then the Again set to sp1hAgain: 44132 but the curY still = curY=34

[MCU2_0] 67.241669 s: [IMX728_FIH_SetAeParams, 1217] sp1hAgain: 28245, 0x121, fps: 40
[MCU2_0] 67.241712 s: [IMX728_FIH_SetAeParams, 1218] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400

...

[MCU2_0] 67.566727 s: [IMX728_FIH_SetAeParams, 1217] sp1hAgain: 35306, 0x134, fps: 40
[MCU2_0] 67.566773 s: [IMX728_FIH_SetAeParams, 1218] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
[MCU2_0] 67.591120 s: AE debug: R = 21, G = 42, B = 21
[MCU2_0] 67.591179 s: AE debug: curY=34, avgY=34, locked=0, lockcnt=0
[MCU2_0] 67.591227 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
[MCU2_0] 67.591267 s: AE debug: i=0, r=1, num=1
[MCU2_0] 67.591298 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 35306, 256
[MCU2_0] 67.591337 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 44132, 256, r=1
[MCU2_0] 67.591647 s: [IMX728_FIH_SetAeParams, 1217] sp1hAgain: 44132, 0x147, fps: 40
[MCU2_0] 67.591693 s: [IMX728_FIH_SetAeParams, 1218] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
[MCU2_0] 67.616198 s: AE debug: R = 21, G = 42, B = 21
[MCU2_0] 67.616256 s: AE debug: curY=34, avgY=34, locked=0, lockcnt=0
[MCU2_0] 67.616301 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
[MCU2_0] 67.616340 s: AE debug: i=0, r=1, num=1
[MCU2_0] 67.616373 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 44132, 256
[MCU2_0] 67.616413 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 55165, 256, r=1
[MCU2_0] 67.616729 s: [IMX728_FIH_SetAeParams, 1217] sp1hAgain: 55165, 0x15b, fps: 40
[MCU2_0] 67.616773 s: [IMX728_FIH_SetAeParams, 1218] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
[MCU2_0] 67.641112 s: AE debug: R = 27, G = 53, B = 26
[MCU2_0] 67.641172 s: AE debug: curY=42, avgY=34, locked=0, lockcnt=0

I thought that because of the gain and curY inconsistency it causes the AE hunting

How can we control the gain and curY consistent in two frames?

2. The gain step almost = 1000gain

28245 to 35306

Could we control the step value?

Thanks

  • Hi Will,

    logs show that the Imx729 needs two frames operating

    That is the delay of between sending exposure change request and image exposure getting changed in the received image.

    How can we control the gain and curY consistent in two frames?

    I am not sure if I understand your question.
    We could either run AE once every a few frames (so that exposure is changed before AE takes next action) or use small exposure change steps every frame.

    The first option may be slow since sensor exposure changes at a lower frequency or it is more subject to flickering if large step size is required.With the second option, we reduce the exposure steps in the AE code as below.

    https://git.ti.com/cgit/processor-sdk/imaging/tree/algos/ae/src/TI_aaa_ae.c?h=main#n446

    There should be no large exposure change at each frame and sensor exposure is changed frame by frame for faster AE response.
    With small AE step sizes, output video should have no obvious flickering for WDR sensors.

    2. The gain step almost = 1000gain

    28245 to 35306

    Could we control the step value?

    It is fine if these values are in linear gain format, i.e., 35306/28245 = 1.25x.

    If they are in dB format, the gain change is probably too large.

    Gain values in AE are supposed to be linear.

  • Module: Imx729

    BTW, which module is this?

  • Hi Gang,

    Sorry, the sensor is IMX728

    That is the delay of between sending exposure change request and image exposure getting changed in the received image.

    Yes, because of the 2 frame delay from the sensor image, it causes the AE hunting

    For example:

    First frame: curY=10 and AE increase the gain from 10 to 20

    Second frame: the curY still = 10 and AE increase the gain from 20 to 30(because the curY still = 10)

    Thrid frame: the curY still = 10 and AE increase the gain from 30 to 40 (because the curY still = 10)

    It causes the AE overexposure, so AE needs to reconverge again 

    Can this platform support this issue?

    If I increase the Again then skip 2 times curY calculation

    Thanks

  • Hi Will,

    Yes, because of the 2 frame delay from the sensor image, it causes the AE hunting

    Yes, that may happen sometimes when your AE change step size is too large so that overshooting and undershooting happens.

    It causes the AE overexposure, so AE needs to reconverge again 

    It depends on the AE adjustment strategy and exposure change step sizes.

    Can this platform support this issue?

    As I explained above, there are a few options.

    1. Reduce the frequency of AE sending exposure changes to sensor (e.g., AE runs once every 3 frames).
    That can be done by setting the AE skip period in openvx aewb kernel (aewb_config->ae_num_skip_frames) or in AE (h->frame_num_period).
    This works well for linear sensors, but may have flickering sometimes for WDR sensors if per frame exposure changes is large because of tone mapping.

    https://git.ti.com/cgit/processor-sdk/imaging/tree/kernels/aewb/arm/vx_aewb_target.c?h=main#n671

    https://git.ti.com/cgit/processor-sdk/imaging/tree/algos/ae/src/TI_aaa_ae.c?h=main#n150

    2. Let AE to run and make sensor exposure changes every frame with controlled step sizes so that AE converges fast and without obvious flickering (as explained above and in current SDK with IMX728/IMX390 drivers).

  • Hi Gang Hua,

    Recently we find some code related to step size modification in TI_aaa_ae.c.

    (1) For below code, It seems to limilt the range of step size and adjust it as integer, but we're not sure if it can be used to modify step size of AEC convergence.

    static int search_range_ATG_dec_gain(int32_t adjRatio,
            int32_t cA, int32_t cT, int32_t cAG, int32_t cDG,
            tiae_range_t rA, tiae_range_t rT, tiae_range_t rAG,
            tiae_range_t rDG, int32_t Tstep, int32_t *pA, int32_t *pT,
            int32_t *pAG, int32_t *pDG)
    {
        int32_t Tmin = (rT.min+Tstep-1) / Tstep * Tstep;
        int32_t Tmax = rT.max / Tstep * Tstep;
        if (Tmin > Tmax || Tmin <= 0)
        {
            Tmin = Tmax;
    (2) As we checked in debug log, while adjRatio > 1280, it will use (1280/1024=1.25)as step size to do AE convergernce.
    We'd like to know if we should use below code for AEC step size modification.
    if (currentY < 1) currentY = 1;
        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        if (adjRatio > 1280)
        {
            adjRatio = 1280;
        }
        else if (adjRatio < 819)
        {
            adjRatio = 819;
        }
        else if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
        }
     
  • Hi Taylar,

    It seems to limilt the range of step size and adjust it as integer, but we're not sure if it can be used to modify step size of AEC convergence.

    That is the piece of code for deciding the AE adjustment step size.
    We limit the step to be small enough such that it helps reducing flickering for WDR sensors such as IMX623/IMX728.
    I am not sure if I understand your question though.

  • Hi Gang Hua,

    So, may I know if below description is correct? 

    (1) is for reducing flickering for WDR sensors such as IMX623/IMX728

    (2) is for AE convergence use 

  • Hi Taylar,

    We limit the step to be small enough such that it helps reducing flickering for WDR sensors such as IMX623/IMX728.

    That is what I meant.

  • Hi Gang Hua,

    Is below code for AE convergence use?

    if (currentY < 1) currentY = 1;
        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        if (adjRatio > 1280)
        {
            adjRatio = 1280;
        }
        else if (adjRatio < 819)
        {
            adjRatio = 819;
        }
        else if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
  • Is below code for AE convergence use?

    Yes, that is for deciding the exposure adjustment step size.

  • Hi Gang Hua,

    Thanks for your help.

    We decreased the maximum adjRatio to 1024/40 (2.5%)

    The flicker is mitigated, and we will try to find the adaptive adjRatio

    As you mentioned before, the WDR causes the image flicker

    How could we mitigate the flicker issue if we want to keep a large adjRatio for convergence speed?

    By TI tuning parameters or by sensor settings?

    Thanks

  • Hi Will,

    The small delta (1024/40) is needed for relatively stable conditions.

    The large one (1280, 819) is for catching up large changes quickly (e.g., going into or out of a tunnel).

  • Hi Gang Hua,

    Is it okay if I say it like this? The flicker issue is sensor WDR mode phenomenon
    If I want to improve this issue, we need the module vendor to improve it
    TI platform does not cause the frame flicker

    Thanks

  • Hi Gang Hua,

    let me make some additional remarks about our experiments

    Actually there was a brief flicker when AE convergence.

    With TI default code in TI_aaa_ae.c :

        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        if (adjRatio > 1280)
        {
            adjRatio = 1280;
        }
        else if (adjRatio < 819)
        {
            adjRatio = 819;
        }
        else if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
        }

    We observe the flicker during AE convergence.

    After I comment the code to limit adjRatio to +/- 2.5%, the flicker phenomenon is gone.

        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        // if (adjRatio > 1280)
        // {
        //     adjRatio = 1280;
        // }
        // else if (adjRatio < 819)
        // {
        //     adjRatio = 819;
        // }
        // else if (adjRatio > 1024 + delta)
        if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
        }

    We are not sure why AE flickers during TI AE algo.

    Is it caused by IMX728 with WDR mode setting ?

  • Hi Will,

    Is it okay if I say it like this? The flicker issue is sensor WDR mode phenomenon
    If I want to improve this issue, we need the module vendor to improve it
    TI platform does not cause the frame flicker

    Flickering could happen for different reasons.
    The issue we are discussing should be related to AE adjustment step size and local tone mapping (GLBCE) context.

    GLBCE has one frame of delay for statistics context collection and application.
    In general, AE should use small step size so that it does not go into racing condition with GLBCE 

  • Hi Steven,

    Thanks for sharing the video!

    Is it caused by IMX728 with WDR mode setting ?

    I cannot tell for sure what is happening.
    It seems that AE has to increase exposure in this case and the step size is too large.
    Could you please print out the AE information about average brightness and change decisions?

    I am not sure how much darker the scene has changed for AE to compensate.
    Visually, it does not look like much for AE to change in large steps.
    You may try numbers smaller than 2.5% to see when it would be better.

    BTW, SDK AE/AWB code is for reference and demo only (not production ready).
    We expect some issues to happen while working with your sensor.

  • Hi Gang Hua,

    Thanks for the explanation!

    Could you please print out the AE information about average brightness and change decisions?

    --> Of course, I enabled AE_DEBUG in TI_aaa_ae.c and provide corresponding video & logs below:

    Experiment 1. TI default adjRatio setting ( AE flickers during brightness changes):

        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        if (adjRatio > 1280)
        {
            adjRatio = 1280;
        }
        else if (adjRatio < 819)
        {
            adjRatio = 819;
        }
        else if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
        }
    

    Video:

    corresponding AE logs of above video: 

    [MCU2_0]    204.291982 s: AE debug: R = 35, G = 65, B = 32
    [MCU2_0]    204.292044 s: AE debug: curY=52, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.342006 s: AE debug: R = 35, G = 65, B = 32
    [MCU2_0]    204.342068 s: AE debug: curY=52, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.391971 s: AE debug: R = 35, G = 65, B = 32
    [MCU2_0]    204.392051 s: AE debug: curY=52, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.441996 s: AE debug: R = 35, G = 65, B = 32
    [MCU2_0]    204.442055 s: AE debug: curY=52, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.491989 s: AE debug: R = 35, G = 64, B = 32
    [MCU2_0]    204.492051 s: AE debug: curY=52, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.541984 s: AE debug: R = 34, G = 64, B = 31
    [MCU2_0]    204.542043 s: AE debug: curY=51, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.591985 s: AE debug: R = 34, G = 64, B = 31
    [MCU2_0]    204.592044 s: AE debug: curY=51, avgY=52, locked=1, lockcnt=3
    [MCU2_0]    204.642001 s: AE debug: R = 34, G = 64, B = 31
    [MCU2_0]    204.642061 s: AE debug: curY=51, avgY=51, locked=1, lockcnt=3
    [MCU2_0]    204.691994 s: AE debug: R = 35, G = 64, B = 32
    [MCU2_0]    204.692058 s: AE debug: curY=52, avgY=51, locked=1, lockcnt=3
    [MCU2_0]    204.741985 s: AE debug: R = 35, G = 64, B = 32
    [MCU2_0]    204.742049 s: AE debug: curY=52, avgY=51, locked=1, lockcnt=3
    [MCU2_0]    204.791974 s: AE debug: R = 35, G = 64, B = 32
    [MCU2_0]    204.792037 s: AE debug: curY=52, avgY=51, locked=1, lockcnt=3
    [MCU2_0]    204.841985 s: AE debug: R = 33, G = 61, B = 30
    [MCU2_0]    204.842045 s: AE debug: curY=49, avgY=51, locked=1, lockcnt=3
    [MCU2_0]    204.891971 s: AE debug: R = 19, G = 36, B = 18
    [MCU2_0]    204.892031 s: AE debug: curY=29, avgY=49, locked=1, lockcnt=3
    [MCU2_0]    204.941942 s: AE debug: R = 5, G = 10, B = 5
    [MCU2_0]    204.942004 s: AE debug: curY=8, avgY=44, locked=1, lockcnt=3
    [MCU2_0]    204.991953 s: AE debug: R = 2, G = 4, B = 1
    [MCU2_0]    204.992016 s: AE debug: curY=3, avgY=39, locked=1, lockcnt=3
    [MCU2_0]    205.041958 s: AE debug: R = 2, G = 4, B = 1
    [MCU2_0]    205.042021 s: AE debug: curY=3, avgY=35, locked=1, lockcnt=3
    [MCU2_0]    205.091966 s: AE debug: R = 1, G = 3, B = 1
    [MCU2_0]    205.092031 s: AE debug: curY=3, avgY=30, locked=1, lockcnt=2
    [MCU2_0]    205.141961 s: AE debug: R = 1, G = 3, B = 1
    [MCU2_0]    205.142024 s: AE debug: curY=3, avgY=25, locked=1, lockcnt=1
    [MCU2_0]    205.142071 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.142111 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.142145 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 25690, 256
    [MCU2_0]    205.142184 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 32112, 256, r=1
    [MCU2_0]    205.142497 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 32112, 0x12c, fps: 40
    [MCU2_0]    205.142543 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.191958 s: AE debug: R = 1, G = 3, B = 1
    [MCU2_0]    205.192022 s: AE debug: curY=2, avgY=20, locked=0, lockcnt=0
    [MCU2_0]    205.192068 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.192109 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.192143 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 32112, 256
    [MCU2_0]    205.192183 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 40140, 256, r=1
    [MCU2_0]    205.192499 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 40140, 0x13f, fps: 40
    [MCU2_0]    205.192546 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.241957 s: AE debug: R = 2, G = 4, B = 1
    [MCU2_0]    205.242016 s: AE debug: curY=3, avgY=15, locked=0, lockcnt=0
    [MCU2_0]    205.242061 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.242101 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.242135 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 40140, 256
    [MCU2_0]    205.242176 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 50175, 256, r=1
    [MCU2_0]    205.242491 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 50175, 0x153, fps: 40
    [MCU2_0]    205.242535 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.291969 s: AE debug: R = 2, G = 4, B = 2
    [MCU2_0]    205.292032 s: AE debug: curY=3, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    205.292080 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.292119 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.292155 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 50175, 256
    [MCU2_0]    205.292194 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 62718, 256, r=1
    [MCU2_0]    205.292516 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 62718, 0x166, fps: 40
    [MCU2_0]    205.292572 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.341941 s: AE debug: R = 2, G = 5, B = 2
    [MCU2_0]    205.342003 s: AE debug: curY=4, avgY=6, locked=0, lockcnt=0
    [MCU2_0]    205.342050 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.342089 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.342122 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 62718, 256
    [MCU2_0]    205.342164 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 78397, 256, r=1
    [MCU2_0]    205.342488 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 78397, 0x179, fps: 40
    [MCU2_0]    205.342536 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.391938 s: AE debug: R = 3, G = 7, B = 3
    [MCU2_0]    205.391998 s: AE debug: curY=5, avgY=3, locked=0, lockcnt=0
    [MCU2_0]    205.392043 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.392083 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.392117 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 78397, 256
    [MCU2_0]    205.392157 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 97996, 256, r=1
    [MCU2_0]    205.392480 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 97996, 0x18d, fps: 40
    [MCU2_0]    205.392524 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.441946 s: AE debug: R = 4, G = 9, B = 4
    [MCU2_0]    205.442010 s: AE debug: curY=7, avgY=3, locked=0, lockcnt=0
    [MCU2_0]    205.442055 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.442096 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    205.442129 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 97996, 256
    [MCU2_0]    205.442171 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 122494, 256, r=1
    [MCU2_0]    205.442492 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 122494, 0x1a0, fps: 40
    [MCU2_0]    205.442538 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [app_run_graph, 1532]  i 500...
    [MCU2_0]    205.491970 s: AE debug: R = 5, G = 11, B = 5
    [MCU2_0]    205.492029 s: AE debug: curY=9, avgY=4, locked=0, lockcnt=0
    [MCU2_0]    205.492076 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.492110 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.492142 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 122494, 256
    [MCU2_0]    205.492183 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.492506 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 128914, 0x1a4, fps: 40
    [MCU2_0]    205.492564 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    205.541939 s: AE debug: R = 7, G = 14, B = 6
    [MCU2_0]    205.542001 s: AE debug: curY=11, avgY=5, locked=0, lockcnt=0
    [MCU2_0]    205.542048 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.542082 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.542114 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.542154 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.591961 s: AE debug: R = 7, G = 15, B = 7
    [MCU2_0]    205.592022 s: AE debug: curY=12, avgY=5, locked=0, lockcnt=0
    [MCU2_0]    205.592067 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.592101 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.592133 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.592176 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.641960 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.642020 s: AE debug: curY=12, avgY=6, locked=0, lockcnt=0
    [MCU2_0]    205.642065 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.642100 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.642133 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.642174 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.691947 s: AE debug: R = 7, G = 15, B = 7
    [MCU2_0]    205.692006 s: AE debug: curY=12, avgY=7, locked=0, lockcnt=0
    [MCU2_0]    205.692049 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.692083 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.692114 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.692155 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.741948 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.742008 s: AE debug: curY=12, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    205.742051 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.742089 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.742122 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.742163 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.791953 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.792014 s: AE debug: curY=12, avgY=9, locked=0, lockcnt=0
    [MCU2_0]    205.792057 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.792093 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.792124 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.792166 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.841959 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.842020 s: AE debug: curY=12, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    205.842069 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.842105 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.842138 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.842179 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.891945 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.892004 s: AE debug: curY=12, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    205.892055 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.892091 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.892126 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.892166 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.941927 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.941989 s: AE debug: curY=12, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    205.942038 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.942074 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.942107 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.942148 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    205.991953 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    205.992017 s: AE debug: curY=12, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    205.992063 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    205.992100 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    205.992134 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    205.992175 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.041933 s: AE debug: R = 7, G = 14, B = 6
    [MCU2_0]    206.041995 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.042045 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.042079 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.042111 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.042151 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.091967 s: AE debug: R = 7, G = 14, B = 6
    [MCU2_0]    206.092030 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.092080 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.092116 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.092147 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.092186 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.141944 s: AE debug: R = 7, G = 14, B = 6
    [MCU2_0]    206.142001 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.142048 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.142084 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.142117 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.142157 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.191927 s: AE debug: R = 7, G = 14, B = 6
    [MCU2_0]    206.191994 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.192042 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.192076 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.192110 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.192150 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.241939 s: AE debug: R = 7, G = 13, B = 6
    [MCU2_0]    206.241998 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.242046 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.242082 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.242115 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.242155 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.291950 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    206.292008 s: AE debug: curY=11, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.292054 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.292088 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.292121 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.292162 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.341940 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    206.342003 s: AE debug: curY=10, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.342051 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.342086 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.342119 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.342160 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.391925 s: AE debug: R = 11, G = 22, B = 11
    [MCU2_0]    206.391985 s: AE debug: curY=18, avgY=11, locked=0, lockcnt=0
    [MCU2_0]    206.392032 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.392067 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    206.392100 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.392141 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    206.441946 s: AE debug: R = 105, G = 135, B = 99
    [MCU2_0]    206.442008 s: AE debug: curY=122, avgY=22, locked=0, lockcnt=0
    [MCU2_0]    206.442056 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.442096 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.442128 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    206.442169 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 103106, 256, r=1
    [MCU2_0]    206.442492 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 103106, 0x191, fps: 40
    [MCU2_0]    206.442536 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.491929 s: AE debug: R = 134, G = 160, B = 127
    [MCU2_0]    206.491990 s: AE debug: curY=149, avgY=36, locked=0, lockcnt=0
    [MCU2_0]    206.492037 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.492078 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.492111 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 103106, 256
    [MCU2_0]    206.492151 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 82464, 256, r=1
    [MCU2_0]    206.492472 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 82464, 0x17e, fps: 40
    [MCU2_0]    206.492522 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.541962 s: AE debug: R = 121, G = 151, B = 114
    [MCU2_0]    206.542028 s: AE debug: curY=138, avgY=49, locked=0, lockcnt=0
    [MCU2_0]    206.542078 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.542119 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.542152 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 82464, 256
    [MCU2_0]    206.542193 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 65955, 256, r=1
    [MCU2_0]    206.542508 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 65955, 0x16a, fps: 40
    [MCU2_0]    206.542566 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.591975 s: AE debug: R = 109, G = 142, B = 103
    [MCU2_0]    206.592038 s: AE debug: curY=128, avgY=60, locked=0, lockcnt=1
    [MCU2_0]    206.592084 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.592124 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.592157 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 65955, 256
    [MCU2_0]    206.592196 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 52751, 256, r=1
    [MCU2_0]    206.592509 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 52751, 0x157, fps: 40
    [MCU2_0]    206.592567 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.641940 s: AE debug: R = 92, G = 130, B = 85
    [MCU2_0]    206.642002 s: AE debug: curY=114, avgY=71, locked=0, lockcnt=0
    [MCU2_0]    206.642049 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.642090 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.642125 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 52751, 256
    [MCU2_0]    206.642166 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 42190, 256, r=1
    [MCU2_0]    206.642481 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 42190, 0x143, fps: 40
    [MCU2_0]    206.642524 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.691935 s: AE debug: R = 75, G = 119, B = 69
    [MCU2_0]    206.691997 s: AE debug: curY=100, avgY=80, locked=0, lockcnt=0
    [MCU2_0]    206.692048 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.692091 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.692127 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 42190, 256
    [MCU2_0]    206.692167 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 33743, 256, r=1
    [MCU2_0]    206.692479 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 33743, 0x130, fps: 40
    [MCU2_0]    206.692526 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.741940 s: AE debug: R = 59, G = 106, B = 55
    [MCU2_0]    206.742002 s: AE debug: curY=86, avgY=87, locked=0, lockcnt=0
    [MCU2_0]    206.742052 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.742096 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.742129 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 33743, 256
    [MCU2_0]    206.742169 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 26987, 256, r=1
    [MCU2_0]    206.742478 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 26987, 0x11d, fps: 40
    [MCU2_0]    206.742523 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.791951 s: AE debug: R = 48, G = 90, B = 44
    [MCU2_0]    206.792014 s: AE debug: curY=72, avgY=93, locked=0, lockcnt=0
    [MCU2_0]    206.792062 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.792104 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.792140 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 26987, 256
    [MCU2_0]    206.792180 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 21584, 256, r=1
    [MCU2_0]    206.792489 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 21584, 0x109, fps: 40
    [MCU2_0]    206.792532 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.841950 s: AE debug: R = 39, G = 72, B = 35
    [MCU2_0]    206.842013 s: AE debug: curY=58, avgY=98, locked=0, lockcnt=0
    [MCU2_0]    206.842059 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.842098 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.842131 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 21584, 256
    [MCU2_0]    206.842172 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17262, 256, r=1
    [MCU2_0]    206.842479 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17262, 0xf6, fps: 40
    [MCU2_0]    206.842525 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.891936 s: AE debug: R = 31, G = 57, B = 28
    [MCU2_0]    206.891996 s: AE debug: curY=46, avgY=101, locked=0, lockcnt=0
    [MCU2_0]    206.892044 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.892086 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.892121 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17262, 256
    [MCU2_0]    206.892163 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 16874, 256, r=1
    [MCU2_0]    206.892473 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 16874, 0xf4, fps: 40
    [MCU2_0]    206.892520 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.941938 s: AE debug: R = 25, G = 46, B = 23
    [MCU2_0]    206.941999 s: AE debug: curY=37, avgY=92, locked=0, lockcnt=1
    [MCU2_0]    206.942048 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.942087 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.942119 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 16874, 256
    [MCU2_0]    206.942159 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17285, 256, r=1
    [MCU2_0]    206.942464 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17285, 0xf6, fps: 40
    [MCU2_0]    206.942511 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    206.991919 s: AE debug: R = 24, G = 45, B = 22
    [MCU2_0]    206.991981 s: AE debug: curY=37, avgY=81, locked=0, lockcnt=0
    [MCU2_0]    206.992029 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    206.992071 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    206.992105 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17285, 256
    [MCU2_0]    206.992145 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17706, 256, r=1
    [MCU2_0]    206.992455 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17706, 0xf8, fps: 40
    [MCU2_0]    206.992500 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.041932 s: AE debug: R = 25, G = 46, B = 23
    [MCU2_0]    207.041993 s: AE debug: curY=37, avgY=71, locked=0, lockcnt=0
    [MCU2_0]    207.042036 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    207.042078 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    207.042112 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17706, 256
    [MCU2_0]    207.042152 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 18138, 256, r=1
    [MCU2_0]    207.042461 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 18138, 0xfa, fps: 40
    [MCU2_0]    207.042508 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.091934 s: AE debug: R = 25, G = 47, B = 23
    [MCU2_0]    207.091996 s: AE debug: curY=38, avgY=62, locked=0, lockcnt=0
    [MCU2_0]    207.092044 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    207.092084 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    207.092117 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 18138, 256
    [MCU2_0]    207.092155 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 18580, 256, r=1
    [MCU2_0]    207.092465 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 18580, 0xfc, fps: 40
    [MCU2_0]    207.092508 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.141926 s: AE debug: R = 26, G = 48, B = 24
    [MCU2_0]    207.141988 s: AE debug: curY=39, avgY=55, locked=0, lockcnt=0
    [MCU2_0]    207.142037 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    207.142076 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    207.142111 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 18580, 256
    [MCU2_0]    207.142151 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19033, 256, r=1
    [MCU2_0]    207.142462 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19033, 0xfe, fps: 40
    [MCU2_0]    207.142506 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.191918 s: AE debug: R = 26, G = 49, B = 24
    [MCU2_0]    207.191977 s: AE debug: curY=40, avgY=49, locked=0, lockcnt=0
    [MCU2_0]    207.192025 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    207.192065 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    207.192100 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 19033, 256
    [MCU2_0]    207.192141 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19497, 256, r=1
    [MCU2_0]    207.192448 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19497, 0x100, fps: 40
    [MCU2_0]    207.192495 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.241907 s: AE debug: R = 27, G = 51, B = 25
    [MCU2_0]    207.241969 s: AE debug: curY=41, avgY=44, locked=0, lockcnt=1
    [MCU2_0]    207.242015 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    207.242056 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    207.242090 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 19497, 256
    [MCU2_0]    207.242129 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19973, 256, r=1
    [MCU2_0]    207.242438 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19973, 0x103, fps: 40
    [MCU2_0]    207.242486 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    207.291933 s: AE debug: R = 28, G = 52, B = 25
    [MCU2_0]    207.291996 s: AE debug: curY=42, avgY=41, locked=0, lockcnt=2
    [MCU2_0]    207.341938 s: AE debug: R = 29, G = 54, B = 26
    [MCU2_0]    207.342002 s: AE debug: curY=43, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    207.391921 s: AE debug: R = 29, G = 54, B = 26
    [MCU2_0]    207.391982 s: AE debug: curY=43, avgY=39, locked=1, lockcnt=3
    [MCU2_0]    207.441911 s: AE debug: R = 29, G = 54, B = 26
    [MCU2_0]    207.441972 s: AE debug: curY=43, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    207.491919 s: AE debug: R = 29, G = 54, B = 26
    [MCU2_0]    207.491980 s: AE debug: curY=43, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    207.541943 s: AE debug: R = 29, G = 54, B = 26
    [MCU2_0]    207.542003 s: AE debug: curY=43, avgY=41, locked=1, lockcnt=3
    [MCU2_0]    207.591926 s: AE debug: R = 29, G = 53, B = 26
    [MCU2_0]    207.591985 s: AE debug: curY=43, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    207.641913 s: AE debug: R = 29, G = 53, B = 26
    [MCU2_0]    207.641974 s: AE debug: curY=43, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    207.691914 s: AE debug: R = 29, G = 53, B = 26
    [MCU2_0]    207.691981 s: AE debug: curY=43, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    207.741917 s: AE debug: R = 29, G = 53, B = 26
    [MCU2_0]    207.741977 s: AE debug: curY=43, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    207.791922 s: AE debug: R = 28, G = 53, B = 26
    [MCU2_0]    207.791984 s: AE debug: curY=43, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    207.841930 s: AE debug: R = 28, G = 53, B = 26
    [MCU2_0]    207.841991 s: AE debug: curY=43, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    207.891914 s: AE debug: R = 28, G = 52, B = 26
    [MCU2_0]    207.891972 s: AE debug: curY=42, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    207.941910 s: AE debug: R = 28, G = 51, B = 25
    [MCU2_0]    207.941971 s: AE debug: curY=41, avgY=42, locked=1, lockcnt=3
    [app_run_graph, 1532]  i 600...
    [MCU2_0]    207.991911 s: AE debug: R = 27, G = 50, B = 25
    [MCU2_0]    207.991977 s: AE debug: curY=41, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    208.041890 s: AE debug: R = 27, G = 50, B = 24
    [MCU2_0]    208.041951 s: AE debug: curY=40, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    208.091916 s: AE debug: R = 26, G = 49, B = 24
    [MCU2_0]    208.091975 s: AE debug: curY=40, avgY=41, locked=1, lockcnt=3
    [MCU2_0]    208.141896 s: AE debug: R = 26, G = 48, B = 24
    [MCU2_0]    208.141955 s: AE debug: curY=39, avgY=41, locked=1, lockcnt=3
    [MCU2_0]    208.191901 s: AE debug: R = 23, G = 43, B = 21
    [MCU2_0]    208.191962 s: AE debug: curY=35, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    208.241906 s: AE debug: R = 21, G = 40, B = 19
    [MCU2_0]    208.241968 s: AE debug: curY=32, avgY=39, locked=1, lockcnt=3
    [MCU2_0]    208.291904 s: AE debug: R = 11, G = 22, B = 10
    [MCU2_0]    208.291969 s: AE debug: curY=17, avgY=37, locked=1, lockcnt=3
    [MCU2_0]    208.341890 s: AE debug: R = 9, G = 17, B = 8
    [MCU2_0]    208.341950 s: AE debug: curY=14, avgY=34, locked=1, lockcnt=3
    [MCU2_0]    208.391901 s: AE debug: R = 8, G = 15, B = 7
    [MCU2_0]    208.391960 s: AE debug: curY=12, avgY=31, locked=1, lockcnt=2
    [MCU2_0]    208.441898 s: AE debug: R = 7, G = 14, B = 7
    [MCU2_0]    208.441958 s: AE debug: curY=11, avgY=28, locked=1, lockcnt=1
    [MCU2_0]    208.442007 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.442047 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.442083 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 19973, 256
    [MCU2_0]    208.442123 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 24966, 256, r=1
    [MCU2_0]    208.442434 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 24966, 0x116, fps: 40
    [MCU2_0]    208.442477 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.491888 s: AE debug: R = 6, G = 12, B = 6
    [MCU2_0]    208.491949 s: AE debug: curY=10, avgY=25, locked=0, lockcnt=0
    [MCU2_0]    208.491991 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.492034 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.492066 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 24966, 256
    [MCU2_0]    208.492107 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 31207, 256, r=1
    [MCU2_0]    208.492419 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 31207, 0x129, fps: 40
    [MCU2_0]    208.492468 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.541906 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    208.541966 s: AE debug: curY=10, avgY=22, locked=0, lockcnt=0
    [MCU2_0]    208.542013 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.542052 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.542084 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 31207, 256
    [MCU2_0]    208.542123 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 39008, 256, r=1
    [MCU2_0]    208.542435 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 39008, 0x13d, fps: 40
    [MCU2_0]    208.542481 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.591890 s: AE debug: R = 6, G = 12, B = 6
    [MCU2_0]    208.591950 s: AE debug: curY=10, avgY=19, locked=0, lockcnt=0
    [MCU2_0]    208.591997 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.592036 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.592070 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 39008, 256
    [MCU2_0]    208.592111 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 48760, 256, r=1
    [MCU2_0]    208.592424 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 48760, 0x150, fps: 40
    [MCU2_0]    208.592468 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.641876 s: AE debug: R = 5, G = 9, B = 4
    [MCU2_0]    208.641939 s: AE debug: curY=8, avgY=15, locked=0, lockcnt=0
    [MCU2_0]    208.641985 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.642025 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.642058 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 48760, 256
    [MCU2_0]    208.642099 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 60950, 256, r=1
    [MCU2_0]    208.642419 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 60950, 0x163, fps: 40
    [MCU2_0]    208.642468 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.691880 s: AE debug: R = 2, G = 5, B = 2
    [MCU2_0]    208.691940 s: AE debug: curY=4, avgY=12, locked=0, lockcnt=0
    [MCU2_0]    208.691989 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.692030 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.692062 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 60950, 256
    [MCU2_0]    208.692102 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 76187, 256, r=1
    [MCU2_0]    208.692420 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 76187, 0x177, fps: 40
    [MCU2_0]    208.692464 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.741902 s: AE debug: R = 3, G = 6, B = 3
    [MCU2_0]    208.741967 s: AE debug: curY=5, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    208.742012 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.742053 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.742087 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 76187, 256
    [MCU2_0]    208.742126 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 95233, 256, r=1
    [MCU2_0]    208.742449 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 95233, 0x18a, fps: 40
    [MCU2_0]    208.742495 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.791903 s: AE debug: R = 3, G = 7, B = 3
    [MCU2_0]    208.791966 s: AE debug: curY=6, avgY=9, locked=0, lockcnt=0
    [MCU2_0]    208.792014 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.792056 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    208.792088 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 95233, 256
    [MCU2_0]    208.792130 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 119041, 256, r=1
    [MCU2_0]    208.792453 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 119041, 0x19e, fps: 40
    [MCU2_0]    208.792500 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.841853 s: AE debug: R = 4, G = 9, B = 4
    [MCU2_0]    208.841919 s: AE debug: curY=7, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    208.841967 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.842003 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    208.842035 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 119041, 256
    [MCU2_0]    208.842076 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    208.842398 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 128914, 0x1a4, fps: 40
    [MCU2_0]    208.842444 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    208.891877 s: AE debug: R = 6, G = 12, B = 5
    [MCU2_0]    208.891936 s: AE debug: curY=9, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    208.891982 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.892018 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    208.892051 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    208.892092 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    208.941886 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    208.941943 s: AE debug: curY=10, avgY=7, locked=0, lockcnt=0
    [MCU2_0]    208.941989 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.942024 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    208.942058 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    208.942100 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    208.991873 s: AE debug: R = 6, G = 12, B = 6
    [MCU2_0]    208.991934 s: AE debug: curY=10, avgY=7, locked=0, lockcnt=0
    [MCU2_0]    208.991981 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    208.992018 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    208.992051 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    208.992092 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.041877 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.041940 s: AE debug: curY=10, avgY=7, locked=0, lockcnt=0
    [MCU2_0]    209.041985 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.042020 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.042052 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.042093 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.091862 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.091923 s: AE debug: curY=11, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    209.091970 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.092004 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.092037 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.092077 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.141872 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.141932 s: AE debug: curY=10, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    209.141977 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.142012 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.142047 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.142087 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.191863 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.191923 s: AE debug: curY=10, avgY=8, locked=0, lockcnt=0
    [MCU2_0]    209.191967 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.192001 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.192034 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.192076 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.241879 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.241937 s: AE debug: curY=10, avgY=9, locked=0, lockcnt=0
    [MCU2_0]    209.241981 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.242015 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.242047 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.242088 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.291880 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.291941 s: AE debug: curY=10, avgY=9, locked=0, lockcnt=0
    [MCU2_0]    209.291989 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.292024 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.292058 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.292099 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.341862 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.341924 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.341970 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.342007 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.342039 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.342079 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.391860 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.391922 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.391969 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.392002 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.392035 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.392076 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.441862 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.441921 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.441968 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.442001 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.442035 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.442075 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.491869 s: AE debug: R = 6, G = 13, B = 6
    [MCU2_0]    209.491929 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.491974 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.492009 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.492042 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.492082 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.541871 s: AE debug: R = 6, G = 12, B = 5
    [MCU2_0]    209.541931 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.541975 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.542009 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.542041 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.542082 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.591857 s: AE debug: R = 6, G = 12, B = 6
    [MCU2_0]    209.591919 s: AE debug: curY=10, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.591970 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.592006 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.592040 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.592082 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.641852 s: AE debug: R = 8, G = 15, B = 7
    [MCU2_0]    209.641913 s: AE debug: curY=12, avgY=10, locked=0, lockcnt=0
    [MCU2_0]    209.641960 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.641994 s: AE debug: i=0, r=0, num=1
    [MCU2_0]    209.642028 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.642070 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 128914, 256, r=0
    [MCU2_0]    209.691882 s: AE debug: R = 66, G = 104, B = 64
    [MCU2_0]    209.691943 s: AE debug: curY=88, avgY=18, locked=0, lockcnt=0
    [MCU2_0]    209.691987 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.692026 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.692061 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 128914, 256
    [MCU2_0]    209.692104 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 103106, 256, r=1
    [MCU2_0]    209.692424 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 103106, 0x191, fps: 40
    [MCU2_0]    209.692470 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.741875 s: AE debug: R = 133, G = 159, B = 126
    [MCU2_0]    209.741937 s: AE debug: curY=148, avgY=31, locked=0, lockcnt=0
    [MCU2_0]    209.741983 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.742022 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.742057 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 103106, 256
    [MCU2_0]    209.742099 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 82464, 256, r=1
    [MCU2_0]    209.742415 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 82464, 0x17e, fps: 40
    [MCU2_0]    209.742462 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.791894 s: AE debug: R = 121, G = 151, B = 114
    [MCU2_0]    209.791962 s: AE debug: curY=138, avgY=44, locked=0, lockcnt=0
    [MCU2_0]    209.792010 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.792049 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.792084 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 82464, 256
    [MCU2_0]    209.792122 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 65955, 256, r=1
    [MCU2_0]    209.792438 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 65955, 0x16a, fps: 40
    [MCU2_0]    209.792488 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.841885 s: AE debug: R = 108, G = 141, B = 102
    [MCU2_0]    209.841952 s: AE debug: curY=127, avgY=56, locked=0, lockcnt=1
    [MCU2_0]    209.842000 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.842039 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.842073 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 65955, 256
    [MCU2_0]    209.842112 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 52751, 256, r=1
    [MCU2_0]    209.842426 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 52751, 0x157, fps: 40
    [MCU2_0]    209.842472 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.891867 s: AE debug: R = 91, G = 130, B = 84
    [MCU2_0]    209.891928 s: AE debug: curY=113, avgY=66, locked=0, lockcnt=0
    [MCU2_0]    209.891975 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.892015 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.892048 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 52751, 256
    [MCU2_0]    209.892088 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 42190, 256, r=1
    [MCU2_0]    209.892407 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 42190, 0x143, fps: 40
    [MCU2_0]    209.892452 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.941870 s: AE debug: R = 74, G = 119, B = 68
    [MCU2_0]    209.941930 s: AE debug: curY=100, avgY=75, locked=0, lockcnt=0
    [MCU2_0]    209.941978 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.942020 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.942054 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 42190, 256
    [MCU2_0]    209.942093 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 33743, 256, r=1
    [MCU2_0]    209.942404 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 33743, 0x130, fps: 40
    [MCU2_0]    209.942451 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    209.991867 s: AE debug: R = 59, G = 106, B = 54
    [MCU2_0]    209.991929 s: AE debug: curY=86, avgY=83, locked=0, lockcnt=0
    [MCU2_0]    209.991975 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    209.992015 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    209.992052 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 33743, 256
    [MCU2_0]    209.992093 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 26987, 256, r=1
    [MCU2_0]    209.992405 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 26987, 0x11d, fps: 40
    [MCU2_0]    209.992448 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.041872 s: AE debug: R = 48, G = 89, B = 44
    [MCU2_0]    210.041931 s: AE debug: curY=72, avgY=89, locked=0, lockcnt=0
    [MCU2_0]    210.041980 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.042020 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.042051 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 26987, 256
    [MCU2_0]    210.042092 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 21584, 256, r=1
    [MCU2_0]    210.042397 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 21584, 0x109, fps: 40
    [MCU2_0]    210.042442 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.091851 s: AE debug: R = 39, G = 72, B = 35
    [MCU2_0]    210.091914 s: AE debug: curY=58, avgY=94, locked=0, lockcnt=0
    [MCU2_0]    210.091959 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.091998 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.092033 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 21584, 256
    [MCU2_0]    210.092073 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17262, 256, r=1
    [MCU2_0]    210.092384 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17262, 0xf6, fps: 40
    [MCU2_0]    210.092428 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.141873 s: AE debug: R = 31, G = 57, B = 28
    [MCU2_0]    210.141933 s: AE debug: curY=46, avgY=97, locked=0, lockcnt=0
    [MCU2_0]    210.141983 s: AE debug: dec Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.142028 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.142066 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17262, 256
    [MCU2_0]    210.142105 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 16874, 256, r=1
    [MCU2_0]    210.142412 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 16874, 0xf4, fps: 40
    [MCU2_0]    210.142457 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.191871 s: AE debug: R = 25, G = 46, B = 23
    [MCU2_0]    210.191932 s: AE debug: curY=37, avgY=92, locked=0, lockcnt=1
    [MCU2_0]    210.191983 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.192023 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.192056 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 16874, 256
    [MCU2_0]    210.192095 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17285, 256, r=1
    [MCU2_0]    210.192400 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17285, 0xf6, fps: 40
    [MCU2_0]    210.192447 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.241881 s: AE debug: R = 24, G = 45, B = 22
    [MCU2_0]    210.241944 s: AE debug: curY=37, avgY=81, locked=0, lockcnt=0
    [MCU2_0]    210.241990 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.242029 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.242061 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17285, 256
    [MCU2_0]    210.242100 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 17706, 256, r=1
    [MCU2_0]    210.242403 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 17706, 0xf8, fps: 40
    [MCU2_0]    210.242448 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.291869 s: AE debug: R = 25, G = 46, B = 23
    [MCU2_0]    210.291932 s: AE debug: curY=37, avgY=71, locked=0, lockcnt=0
    [MCU2_0]    210.291976 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.292017 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.292049 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 17706, 256
    [MCU2_0]    210.292089 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 18138, 256, r=1
    [MCU2_0]    210.292399 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 18138, 0xfa, fps: 40
    [MCU2_0]    210.292446 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.341852 s: AE debug: R = 25, G = 48, B = 23
    [MCU2_0]    210.341913 s: AE debug: curY=38, avgY=62, locked=0, lockcnt=0
    [MCU2_0]    210.341961 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.342000 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.342032 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 18138, 256
    [MCU2_0]    210.342071 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 18580, 256, r=1
    [MCU2_0]    210.342377 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 18580, 0xfc, fps: 40
    [MCU2_0]    210.342423 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.391862 s: AE debug: R = 26, G = 49, B = 24
    [MCU2_0]    210.391924 s: AE debug: curY=39, avgY=55, locked=0, lockcnt=0
    [MCU2_0]    210.391972 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.392014 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.392045 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 18580, 256
    [MCU2_0]    210.392085 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19033, 256, r=1
    [MCU2_0]    210.392390 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19033, 0xfe, fps: 40
    [MCU2_0]    210.392433 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.441858 s: AE debug: R = 27, G = 50, B = 24
    [MCU2_0]    210.441921 s: AE debug: curY=40, avgY=49, locked=0, lockcnt=0
    [MCU2_0]    210.441967 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.442006 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.442038 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 19033, 256
    [MCU2_0]    210.442079 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19497, 256, r=1
    [MCU2_0]    210.442388 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19497, 0x100, fps: 40
    [MCU2_0]    210.442433 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [app_run_graph, 1532]  i 700...
    [MCU2_0]    210.491846 s: AE debug: R = 27, G = 51, B = 25
    [MCU2_0]    210.491909 s: AE debug: curY=41, avgY=44, locked=0, lockcnt=1
    [MCU2_0]    210.491955 s: AE debug: inc Tmin=11000000, Tmax=11000000, Tstep=1
    [MCU2_0]    210.491995 s: AE debug: i=0, r=1, num=1
    [MCU2_0]    210.492027 s: AE debug: cA, cT, cAG, cDG = 1, 11000000, 19497, 256
    [MCU2_0]    210.492067 s: AE debug: nA, nT, nAG, nDG = 1, 11000000, 19973, 256, r=1
    [MCU2_0]    210.492373 s: [IMX728_FIH_SetAeParams, 1179] sp1hAgain: 19973, 0x103, fps: 40
    [MCU2_0]    210.492421 s: [IMX728_FIH_SetAeParams, 1180] exposureTime: 11000000, exposureTimeLines: 1056, vmax: 2400
    [MCU2_0]    210.541842 s: AE debug: R = 28, G = 52, B = 26
    [MCU2_0]    210.541906 s: AE debug: curY=42, avgY=41, locked=0, lockcnt=2
    [MCU2_0]    210.591841 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.591900 s: AE debug: curY=44, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    210.641851 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.641913 s: AE debug: curY=44, avgY=39, locked=1, lockcnt=3
    [MCU2_0]    210.691858 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.691920 s: AE debug: curY=43, avgY=40, locked=1, lockcnt=3
    [MCU2_0]    210.741852 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.741916 s: AE debug: curY=44, avgY=41, locked=1, lockcnt=3
    [MCU2_0]    210.791843 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.791906 s: AE debug: curY=44, avgY=41, locked=1, lockcnt=3
    [MCU2_0]    210.841837 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.841903 s: AE debug: curY=43, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    210.891853 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.891913 s: AE debug: curY=44, avgY=42, locked=1, lockcnt=3
    [MCU2_0]    210.941852 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.941911 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    210.991834 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    210.991896 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.041831 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.041895 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.091822 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.091878 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.141834 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.141895 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.191850 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.191910 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.241838 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.241899 s: AE debug: curY=43, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.291815 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.291874 s: AE debug: curY=43, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.341816 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.341875 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    [MCU2_0]    211.391819 s: AE debug: R = 29, G = 54, B = 27
    [MCU2_0]    211.391881 s: AE debug: curY=44, avgY=43, locked=1, lockcnt=3
    

    Experiment 2. Limit adjRatio to 2.5% (we won't see obvious flickers during brightness changes, AE converge seems more smooth):

        int32_t adjRatio = exp_prog->target_brightness * 1024 / currentY;
        int32_t delta = 1024/40;
        
        // if (adjRatio > 1280)
        // {
        //     adjRatio = 1280;
        // }
        // else if (adjRatio < 819)
        // {
        //     adjRatio = 819;
        // }
        // else if (adjRatio > 1024 + delta)
        if (adjRatio > 1024 + delta)
        {
            adjRatio = 1024 + delta;
        }
        else if (adjRatio < 1024 - delta)
        {
            adjRatio = 1024 - delta;
        }
        

    Video:

    corresponding AE logs of above video: 2235.0424_TI_remove_adjRatio_1280_and_819_setting.txt

    So could we confirm that the AE flickering is caused by the larger adjRatio (step size) ? Even though I observed that both curY and sp1hAgain increase/decrease sequentially in both Experiment 1 and 2's AE log?

    Thanks

  • Hi Steven,

    Thanks for sharing!

    Even though I observed that both curY and sp1hAgain increase/decrease sequentially in both Experiment 1 and 2's AE log?

    That seems correct as I don't see any obvious undershooting/overshooting from AE output either.

    So could we confirm that the AE flickering is caused by the larger adjRatio (step size) ?

    I cannot tell for sure.
    The same step sizes were tested on on cars carefully by a collaborator of TI with IMX623 and no bad flickering was observed.
    I am not sure what matters among possible differences between your IMX728 setup and IMX623.

    We would need a large step size for quickly adjusting exposure when the scene goes brighter and darker quickly.

  • Hi Gang Hua,

    Thanks for the reply.

    Since the same step size works fine on IMX623, and our AE output of both curY and sp1hAgain has no obvious undershooting/overshooting,

    I then check the GLBCE function in our IMX728 tuning parameters (IMX728_viss_glbce.xml) by your previous suggestion.

    Our current GLBCE setting are as follows (the flicker exists during brightness change):

    <viss_glbce_dcc type="viss_glbce">
    			{
                    255, //strength
                    12,  //intensity_var
                    7,   //space_var
                    64,  //slope_min_lim
                    72,  //slope_max_lim
                    1,
                    {    //fwd_prcpt_lut
                        0, 4622, 8653, 11684, 14195, 16380, 18335, 20118, 21766, 23304,
                        24751, 26119, 27422, 28665, 29857, 31003, 32108, 33176, 34209, 35211,
                        36185, 37132, 38055, 38955, 39834, 40693, 41533, 42355, 43161, 43951,
                        44727, 45488, 46236, 46971, 47694, 48405, 49106, 49795, 50475, 51145,
                        51805, 52456, 53099, 53733, 54360, 54978, 55589, 56193, 56789, 57379,
                        57963, 58539, 59110, 59675, 60234, 60787, 61335, 61877, 62414, 62946,
                        63473, 63996, 64513, 65026, 65535,
    
                    },
                    1,
                    {    //rev_prcpt_lut
                        0, 228, 455, 683, 910, 1138, 1369, 1628, 1912, 2221,
                        2556, 2916, 3304, 3717, 4158, 4626, 5122, 5645, 6197, 6777,
                        7386, 8024, 8691, 9387, 10113, 10869, 11654, 12471, 13317, 14194,
                        15103, 16042, 17012, 18014, 19048, 20113, 21210, 22340, 23501, 24696,
                        25922, 27182, 28475, 29800, 31159, 32552, 33977, 35437, 36930, 38458,
                        40019, 41615, 43245, 44910, 46609, 48343, 50112, 51916, 53755, 55630,
                        57539, 59485, 61466, 63482, 65535
                    },
                    {    //asym_lut
    				  #include "asym_lut.txt"
                    },
    			  }
                </viss_glbce_dcc>

    Then I set strength from 255 to 0, the preview seems darker but no flicker phenomenon during brightness change.

    So I would like to check whether the cause is from GLBCE.

    But the document (VPAC3_CFA_WDR_plugin_guide.pdf) in DCC tool has not much explanation about GLBCE tuning parameters.

    Is there other guide for us to do some GLBCE adjustment?

    Thanks a lot!

  • Hi Steven,

    Then I set strength from 255 to 0, the preview seems darker but no flicker phenomenon during brightness change.

    This disables GLBCE.

    So I would like to check whether the cause is from GLBCE.

    GLBCE is part of the problem for sure as we discussed previously.

    We have to limit AE step size such that AE and GLBCE won't get into a racing condition.

    But the document (VPAC3_CFA_WDR_plugin_guide.pdf) in DCC tool has not much explanation about GLBCE tuning parameters.

    Is there other guide for us to do some GLBCE adjustment?

    That is included in the TRM.

  • Hi Gang Hua,

    Thanks for the explanation 

    About the document VPAC3_CFA_WDR_plugin_guide.pdf

    Gamma – WDR block applies a global tone map from (Decompanded bit width) => (Output bit width)

    For e.g. is the sensor generates 20-bit output, companded to 12-bits, WDR block will decompand 12b => 20b and then apply a GTM to convert 20b => 16b

    It means the sensor output WDR image and Decompand from 12b to 20b, and TI will apply a GTM and convert 20b => 16b?

    So the final image effect is sensor WDR + GTM? 

    Is it possible to tune the below values to make the AE more stable?

    Thanks

  • Hi Will,

    It means the sensor output WDR image and Decompand from 12b to 20b, and TI will apply a GTM and convert 20b => 16b?

    Yes, this is for converting WDR images to the ISP internal bit-depth of 16-bit for processing.

    It will be reverted after GLBCE and before CFAI to get linear color back.

    Is it possible to tune the below values to make the AE more stable?

    It is possible that GLBCE parameters may have different response to temporal delay of the statistics context.
    But, GLBCE parameters are mostly for intra-frame behavior.

  • Hi Gang Hua,

    Thanks for reply !

    We have a TRM document "SPRUJ52B - J782S4 Technical Reference Manual.pdf".

    The chapter 6.7.3.5.5 states that GLBCE generates statistic base on frame N and then apply to frame N+1.

    To my understanding, if brightness change is huge between frame N and N+1 (e.g. when the car is entering or exiting a tunnel), the GLBCE may not well suit for frame N+1 due to GLBCE algorithm design has one frame delay to apply, is that correct ?

    If so, since our application is for ADAS use, 

    while minimizing changes to AE step size as much as possible (to maintain AE converge speed),

    is there any related GLBCE parameters to alleviate or even eliminate the flicker problem ?

    Or is there one way to decrease AE step sizes a little bit plus some modification of GLBCE to reach my purpose ?

    Thanks,

    Steven

  • Hi Steven,

    To my understanding, if brightness change is huge between frame N and N+1 (e.g. when the car is entering or exiting a tunnel), the GLBCE may not well suit for frame N+1 due to GLBCE algorithm design has one frame delay to apply, is that correct ?

    Yes, it is about the difference between the frames and continuity.
    There is a racing condition between AE and GLBCE.
    Both may brighten the image at the same time at frame N, which makes frame N brighter than expected.
    If there only a one large exposure change at frame N (no more changes after), frame N+1 will be darker and frame N is an overshoot (flickering).

    So, we would like to change exposure in smaller steps to mitigate the flickering.

    Practically, exposure change is gradual compare to sensor frame rate (never a single frame change).

    If so, since our application is for ADAS use, 

    while minimizing changes to AE step size as much as possible (to maintain AE converge speed),

    I don't know all the details about final applications, but many ADAS customers adjust AE step sizes and frame rate so that AE speed is fast enough for possible road conditions.