Libargus setToneMapCurve affects exposure

Hello everyone,
When I use setToneMapCurve auto functions reduce exposure to minimum value for some reason, without setToneMapCurve function, everything works as expected. Why does setToneMapCurve even affect exposure? If I understood it correctly, custom tone map applied after auto functions.

hello grey.man,

how you confirm it’s using different exposure values?
or.. you meant the brightness changes after you apply the settings?

BTW, please refer to developer guide for Argus::IAutoControlSettings::setToneMapCurve.

I meant exposition, so here is logs when I launch my app without enabling tone curve
exposureCount 16591999
exposureCount 16591999
exposureCount 15550552
exposureCount 13537530
exposureCount 12630955
exposureCount 10995887
exposureCount 8333333
exposureCount 8333312
exposureCount 7775258
exposureCount 6768754
exposureCount 5892541
exposureCount 5497934
exposureCount 4786233
exposureCount 4465711
exposureCount 3887625
exposureCount 3627281
exposureCount 3157732
exposureCount 2946269
exposureCount 2564877
exposureCount 2393117
exposureCount 2083330
exposureCount 1706162
exposureCount 1612189
exposureCount 1458106
exposureCount 1395234
exposureCount 1289076
exposureCount 1244621
exposureCount 1168003
exposureCount 1135542
exposureCount 1078142
exposureCount 1053636
exposureCount 1010924
exposureCount 974710
exposureCount 958281
exposureCount 929246
exposureCount 916129
exposureCount 893653
exposureCount 874348
exposureCount 865218
exposureCount 848190
exposureCount 840679
exposureCount 826904
exposureCount 820945
exposureCount 809626
exposureCount 804023
exposureCount 794941
exposureCount 790907
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482
exposureCount 753482

and here logs when I enable tone curve
exposureCount 16591999
exposureCount 16592001
exposureCount 16591999
exposureCount 15550558
exposureCount 14509189
exposureCount 12630988
exposureCount 11785126
exposureCount 10259546
exposureCount 8333333
exposureCount 7775286
exposureCount 6768776
exposureCount 6315494
exposureCount 5497966
exposureCount 4786262
exposureCount 4465737
exposureCount 3887651
exposureCount 3627305
exposureCount 3157755
exposureCount 2748988
exposureCount 2564897
exposureCount 2232873
exposureCount 2083345
exposureCount 1813657
exposureCount 1692203
exposureCount 1473147
exposureCount 1374494
exposureCount 1196565
exposureCount 1116436
exposureCount 971914
exposureCount 906829
exposureCount 789440
exposureCount 687247
exposureCount 598283
exposureCount 520836
exposureCount 485957
exposureCount 423051
exposureCount 394720
exposureCount 343624
exposureCount 320612
exposureCount 279109
exposureCount 260418
exposureCount 226707
exposureCount 211525
exposureCount 184144
exposureCount 171812
exposureCount 149571
exposureCount 130209
exposureCount 121490
exposureCount 113354
exposureCount 98680
exposureCount 92072
exposureCount 80153
exposureCount 69778
exposureCount 65105
exposureCount 56677
exposureCount 53003
exposureCount 47265
exposureCount 45012
exposureCount 41405
exposureCount 39956
exposureCount 37596
exposureCount 36632
exposureCount 35786
exposureCount 34385
exposureCount 33804
exposureCount 32834
exposureCount 32428
exposureCount 31747
exposureCount 31461
exposureCount 30978
exposureCount 30774
exposureCount 30429
exposureCount 30283
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000
exposureCount 29000

as you can see exposureCount stuck at 2900. I used getSensorExposureTime() function for obtaining exposure value.

hello grey.man,

may I know which Jetpack release version you’re working with?
please check $ cat /etc/nv_tegra_release for confirmation.

R32 (release), REVISION: 7.4, GCID: 33514132, BOARD: t210ref, EABI: aarch64, DATE: Fri Jun 9 04:25:08 UTC 2023

hello grey.man,

I cannot reproduce this issue,
the values of getSensorExposureTime() have identical results with/without tone map curve settings.
here’s my code snippet based-on Argus sample, userAutoExposure for calling setToneMapCurve()
for example,

diff --git a/public/samples/userAutoExposure/main.cpp b/public/samples/userAutoExposure/main.cpp
index 1653965..583e395 100644
--- a/public/samples/userAutoExposure/main.cpp
+++ b/public/samples/userAutoExposure/main.cpp
@@ -256,6 +256,19 @@ static bool execute(const UserAutoExposureSampleOptions& options)
     EXIT_IF_NOT_OK(iSourceSettings->setGainRange(Range<float>(sensorModeAnalogGainRange.min())),
         "Unable to set the Source Settings Gain Range");
 
+#if 1
+    std::vector<float> value;
+    float vvv[129] = {0.000000, 0.056696, 0.112414, 0.159335, 0.193548, 0.226784, 0.254154, 0.282502, 0.304008, 0.324536, 0.346041, 0.364614, 0.384164, 0.399805, 0.416422, 0.431085, 0.443793, 0.457478, 0.471163, 0.481916, 0.494624, 0.506354, 0.517107, 0.529814, 0.542522, 0.555230, 0.566960, 0.577713, 0.588465, 0.599218, 0.609971, 0.619746, 0.629521, 0.639296, 0.649071, 0.657869, 0.665689, 0.674487, 0.682307, 0.690127, 0.697947, 0.705767, 0.714565, 0.722385, 0.730205, 0.738025, 0.745846, 0.753666, 0.761486, 0.767351, 0.773216, 0.777126, 0.782014, 0.786901, 0.791789, 0.795699, 0.800587, 0.804497, 0.809384, 0.813294, 0.817204, 0.821114, 0.825024, 0.828934, 0.832845, 0.836755, 0.840665, 0.844575, 0.847507, 0.851417, 0.855327, 0.858260, 0.862170, 0.865103, 0.869013, 0.871945, 0.874878, 0.878788, 0.881720, 0.884653, 0.887586, 0.890518, 0.893451, 0.896383, 0.899316, 0.902248, 0.905181, 0.908113, 0.911046, 0.913979, 0.916911, 0.918866, 0.921799, 0.924731, 0.927664, 0.929619, 0.932551, 0.935484, 0.937439, 0.940371, 0.942326, 0.945259, 0.948192, 0.950147, 0.952102, 0.955034, 0.956989, 0.959922, 0.960899, 0.962854, 0.965787, 0.967742, 0.969697, 0.972630, 0.974585, 0.976540, 0.978495, 0.981427, 0.983382, 0.985337, 0.987292, 0.989247, 0.991202, 0.993157, 0.995112, 0.997067, 0.998045, 0.999022, 1.000000};
+
+    for (int a = 0; a < 129; a++)
+        value.push_back(vvv[a]);
+
+    ac->setToneMapCurve(RGB_CHANNEL_R, value);
+    ac->setToneMapCurve(RGB_CHANNEL_G, value);
+    ac->setToneMapCurve(RGB_CHANNEL_B, value);
+#endif
+
+
     if (options.useAverageMap())

I do not see setToneCurveEnable() function in your code snippet, maybe that’s why exposure do not change in your case. When I used tone curve that you provided and set setToneCurveEnable(true) function I got the same behavior as in my message.

it’s same by adding setToneCurveEnable(true).
here’re test result comparison for your reference.

$ ./argus_userautoexposure_tc 
Executing Argus Sample: argus_userautoexposure_tc
USER AUTO EXPOSURE SAMPLE: Argus Version: 0.99.3.3 (multi-process)
PREVIEW CONSUMER: Creating OpenGL context.
PREVIEW CONSUMER: Connecting to EGLStream(s).
PREVIEW CONSUMER: Connected to stream(s).
PREVIEW CONSUMER: Waiting until producer(s) connect...
USER AUTO EXPOSURE SAMPLE: Sensor Exposure Range min 30000, max 660000000
USER AUTO EXPOSURE SAMPLE: Sensor Analog Gain range min 1.011580, max 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure target range is from 0.170000 to 0.190000
PREVIEW CONSUMER: Producer(s) connected; continuing.
PREVIEW CONSUMER: Acquired frame 1. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 2. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 3. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 4. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 5. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 6. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 7. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 8. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 9. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 10. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 11. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 12. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 13. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 14. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 15. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 16. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 17. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 18. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 19. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 20. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 21. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 22. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 23. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 24. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 25. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 26. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 27. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 28. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 29. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 30. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 31. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 32. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 33. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 34. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 35. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 36. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 37. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 38. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 39. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 40. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 41. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 42. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 43. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 44. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 45. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 46. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 47. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 48. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 49. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 50. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 51. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 52. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 53. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 54. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 55. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 56. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 57. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 58. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 59. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 60. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 61. Rendering.
PREVIEW CONSUMER: Acquired frame 62. Rendering.
PREVIEW CONSUMER: Acquired frame 63. Rendering.
PREVIEW CONSUMER: Acquired frame 64. Rendering.
PREVIEW CONSUMER: Acquired frame 65. Rendering.
PREVIEW CONSUMER: No more frames. Cleaning up.
$ ./argus_userautoexposure_notc 
Executing Argus Sample: argus_userautoexposure_notc
USER AUTO EXPOSURE SAMPLE: Argus Version: 0.99.3.3 (multi-process)
PREVIEW CONSUMER: Creating OpenGL context.
PREVIEW CONSUMER: Connecting to EGLStream(s).
PREVIEW CONSUMER: Connected to stream(s).
PREVIEW CONSUMER: Waiting until producer(s) connect...
USER AUTO EXPOSURE SAMPLE: Sensor Exposure Range min 30000, max 660000000
USER AUTO EXPOSURE SAMPLE: Sensor Analog Gain range min 1.011580, max 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure target range is from 0.170000 to 0.190000
PREVIEW CONSUMER: Producer(s) connected; continuing.
PREVIEW CONSUMER: Acquired frame 1. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 2. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 3. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 4. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 5. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 6. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 1.011580
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 46.613586
PREVIEW CONSUMER: Acquired frame 7. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 8. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 9. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 10. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 11. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 12. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 46.613586
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing analog gain to 251.188705
PREVIEW CONSUMER: Acquired frame 13. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 14. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 15. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 16. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 17. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 18. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 29999, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.004, increasing Exposure Time to 1382354
PREVIEW CONSUMER: Acquired frame 19. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 20. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 21. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 22. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 23. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 24. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1382353, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.211, decreasing Exposure Time to 1179607
PREVIEW CONSUMER: Acquired frame 25. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 26. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 27. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 28. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 29. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 30. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 31. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 32. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 33. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 34. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 35. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 36. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 37. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 38. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 39. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 40. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 41. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 42. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 43. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 44. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 45. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 46. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 47. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 48. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 49. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 50. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.184, currently within target range
PREVIEW CONSUMER: Acquired frame 51. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 52. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 53. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 54. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 55. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.184, currently within target range
PREVIEW CONSUMER: Acquired frame 56. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 57. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 58. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 59. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 60. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 1179607, Analog Gain 251.188705
USER AUTO EXPOSURE SAMPLE: Exposure level at 0.180, currently within target range
PREVIEW CONSUMER: Acquired frame 61. Rendering.
PREVIEW CONSUMER: Acquired frame 62. Rendering.
PREVIEW CONSUMER: Acquired frame 63. Rendering.
PREVIEW CONSUMER: Acquired frame 64. Rendering.
PREVIEW CONSUMER: Acquired frame 65. Rendering.
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.

Well, you use userAutoExposure sample that, as I understand, changes exposure on the client side using functions setExposureTimeRange, and calculating range of exposure time, again on the client, so I’m assuming that it isn’t relevant example for the problem, because exposure range just can’t be lower than range that has been calculated by the app. Here you can see logs of userAutoExposure with the exposure time range output:

USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 96. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 97. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 98. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 99. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 100. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 1,000000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing analog gain to 10,625000
Exposure time range: 12999  12999
PREVIEW CONSUMER: Acquired frame 101. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 102. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 103. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 104. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 105. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 106. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 12999, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,004, increasing Exposure Time to 598993
Exposure time range: 598993  598993
PREVIEW CONSUMER: Acquired frame 107. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,039, increasing Exposure Time to 2760155
Exposure time range: 2760155  2760155
PREVIEW CONSUMER: Acquired frame 108. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,035, increasing Exposure Time to 3066839
Exposure time range: 3066839  3066839
PREVIEW CONSUMER: Acquired frame 109. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,039, increasing Exposure Time to 2760155
Exposure time range: 2760155  2760155
PREVIEW CONSUMER: Acquired frame 110. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,039, increasing Exposure Time to 2760155
Exposure time range: 2760155  2760155
PREVIEW CONSUMER: Acquired frame 111. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,039, increasing Exposure Time to 2760155
Exposure time range: 2760155  2760155
PREVIEW CONSUMER: Acquired frame 112. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 598992, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,035, increasing Exposure Time to 3066839
Exposure time range: 3066839  3066839
PREVIEW CONSUMER: Acquired frame 113. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2760154, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,172, currently within target range
PREVIEW CONSUMER: Acquired frame 114. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 3066838, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,191, decreasing Exposure Time to 2884079
Exposure time range: 2884079  2884079
PREVIEW CONSUMER: Acquired frame 115. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2760154, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,172, currently within target range
PREVIEW CONSUMER: Acquired frame 116. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2760154, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,172, currently within target range
PREVIEW CONSUMER: Acquired frame 117. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2760154, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,172, currently within target range
PREVIEW CONSUMER: Acquired frame 118. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 3066838, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,191, decreasing Exposure Time to 2884079
Exposure time range: 2884079  2884079
PREVIEW CONSUMER: Acquired frame 119. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2884079, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,180, currently within target range
PREVIEW CONSUMER: Acquired frame 120. Rendering.
USER AUTO EXPOSURE SAMPLE: Frame metadata ExposureTime 2884079, Analog Gain 10,625000
USER AUTO EXPOSURE SAMPLE: Exposure level at 0,180, currently within target range
USER AUTO EXPOSURE SAMPLE: No events in queue
PREVIEW CONSUMER: No more frames. Cleaning up.
PREVIEW CONSUMER: Done.

So if you want to see the relevant sample, you should use something like eglImage. Here is changed eglImage sample (sorry about .txt extension, i can’t upload .cpp)
main.txt (18.2 KB)
So if you will set setToneMapCurveEnable to true , you will see what I am talking about. And if you will set it to false all will be fine, and auto exposure will work as expected

hello grey.man,

am still unable to repo this locally. (though I’m testing on r35.4.1 for quick checking)

Can you try it on nano with L4T32.7.4 ?

hello grey.man,

FYI, we’ve tested and confirmed (Nano/r32.7.3) preview brightness are all the same with/without the tonemapcurve changes.

Can you send me the logs that proves it and sample of code that you used in your tests. Also I would like to see i2c log, nvargus log and dmesg log. What camera did you use ?

i2c log instruction:

  1. Enable i2c logs
        foo@bar:~$ sudo su
        foo@bar:~$ echo 1 > /sys/kernel/debug/tracing/events/i2c/enable
        foo@bar:~$ echo "" > /sys/kernel/debug/tracing/trace
  1. Run sample that you used for testing, wait till it ends
  2. Print log to terminal
        foo@bar:~$ cat /sys/kernel/debug/tracing/trace | grep i2c-$1

nvargus log instruction

        foo@bar:~$ sudo service nvargus-daemon stop
        foo@bar:~$ sudo su
        foo@bar:~$ export enableCamPclLogs=5
        foo@bar:~$ export enableCamScfLogs=5
        foo@bar:~$ /usr/sbin/nvargus-daemon

Then you need to execute sample from another terminal

Hmm, now when i think about it, if your camera has built-in ISP, then, as i understand, you won’t notice any difference with or without enabled tone curve, because all of the calculations executes inside the camera, and not on the jetson integrated ISP. But I use camera without integrated ISP so I can see difference on image.

hello grey.man,

we’re tested with bayer raw camera sensor, (i.e. Raspberry pi v2, imx219) which process the frames by Jetson ISP.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.