{
    "commit_version": "If you change the version number, you should only change the 4th digit. The first three digits are controlled by the SDK, and checked in SDK's code.",
    "version": "1.0.1.0",

    "baseConfig": {
        "comment_runMode": "if run in async model, 0 - sync, 1 - async",
        "runMode": 0,

        "comment_downscale": "downscale ratio on input image. valid values: 1, 2, 4",
        "downscale": 2,

        "comment_inverTone": "0: disable inverseTone，for input without toneMapping 1: enable inverseTone，for input with toneMapping, 0 for mtk, 1 for qcom",
        "inverTone": 1
    },

    "MotionMeteringConfig": {
        "gyroConfig": {
            "comment_gyro": "phoneMotionMode, take gyro data from gyrot0 seconds to gyrot1 before current frame",
            "gyrot0": 1.5,
            "gyrot1": 0.4,

            "comment_avgGyroNum": "num of frame to calculate phone mode",
            "avgGyroNum": 5,

            "comment_gyroNumPerSecond": "input max num of gyro per second, eg: preview max 30fps, process 1 frame per 4 frames, every time 40 gyro, the gyroNumPerSecond is 30fps/4*40 = 300",
            "gyroNumPerSecond": 416,

            "comment_tripodThresh": "gyro threshold to classify tripod and handle",
            "tripodThreshLow": 0.004,
            "tripodThreshHigh": 0.008,

            "comment_focalLength_gyro": "calibration data for specific device, do not change once calibrated",
            "focalLength": 1175,
            "gyroDelay": 516444,
            "gyroDriftX": -3.29439e-05,
            "gyroDriftY": -7.24828e-06,
            "gyroDriftZ": -1.59536e-05
        },

        "aligningConfig": {
            "comment_method": "1 - align_off; 2 - lk optical flow; 3 - gyro intergeral; 4 - gyro divided; 5 - gyro rolling shutter; 6 - gyro calibrate lk",
            "method": 2,

            "comment_calcBrightConfig": "configure for brightness calculation",
            "calcBrightConfig": {
                "comment_method": "0:off; 1: gamma; 2: Histogram Equalization; 3: CLAHE",
                "method": 0,

                "comment_enableBrightCompensation": "0:disable brightness compensation; 1:enable",
                "enableBrightCompensation": 1
            }
        },

        "meteringConfig": {
            "comment_method": "0 - global align and local dis; 1 - global align and local diff; 2 - local diff; 3 - bounded flow; 4 - global align and bounded flow; 5 - motion capture",
            "method": 3,

            "comment_BlockNum": "how to split image.",
            "horBlockNum": 12,
            "verBlockNum": 12,

            "comment_blockWeight": "weight of each block to calculate global move value.",
            "blockWeight": [
                [ 0, 0,  0,  0,   0,   0,   0,   0,   0,   0,  0,  0 ],
                [ 0, 60, 60, 60,  60,  60,  60,  60,  60,  60, 60, 0 ],
                [ 0, 60, 90, 90,  90,  90,  90,  90,  90,  90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 100, 100, 100, 100, 100, 100, 90, 60, 0 ],
                [ 0, 60, 90, 90,  90,  90,  90,  90,  90,  90, 60, 0 ],
                [ 0, 60, 60, 60,  60,  60,  60,  60,  60,  60, 60, 0 ],
                [ 0, 0,  0,  0,   0,   0,   0,   0,   0,   0,  0,  0 ]
            ],

            "comment_smoothFactor": "smooth current motion and previous motion",
            "smoothFactor": 0,

            "comment_mdLocalTh": "threshold to classify current loacal motion",
            "mdLocalTh": 10,

            "coment_mdGlobalTh": "threshold to classify current global motion",
            "mdGlobalTh": 2,

            "comment_mdConfirmTh": "threshold to finally judgement wheather obj moves",
            "mdConfirmTh": 50,

            "comment_thresMotion": "frame diff threshold",
            "thresMotion": 0.0,

            "comment_diffSensitivity": "frame diff threshold",
            "diffSensitivity": 7.0,

            "comment_gradSensitivity": "gradiant threshold",
            "gradSensitivity": 6.0,

            "comment_noiseSensitivity": "noise filter coefficient",
            "noiseSensitivity": 2.5,

            "comment_motionClassifyThresh": "threshold to classify motion, this param should match skip frame number",
            "motionClassifyThresh": 3.0,

            "comment_motionSmoothRate": "the rate of smoothing the current motion and previous motion, in (0.0, 1.0). 1.0 means totally depending on current motion",
            "motionSmoothRate": 0.5,

            "comment_motionPercent": "select strongest percent grid to classify motion mode",
            "motionPercent": 0.95,

            "comment_lowLight": "combine gyro and motion low light point",
            "lowLight": 150,

            "comment_highLight": "combine gyro and motion high light point",
            "highLight": 235,

            "comment_gyroMag": "gyro coefficient to match motion in magnitude",
            "gyroMag": 0.2,

            "comment_totalMvStatMethod": "method of calculating local Mv, 0: average, 1: percentage",
            "totalMvStatMethod": 0,

            "comment_localMvStatMethod": "method of calculating local Mv, 0: average, 1: percentage",
            "localMvStatMethod": 0,

            "comment_bodyMvMag": "local mv mag for human body attention areas",
            "bodyMvMag": 3.0,

            "comment_MVThresh": "move velocity thresholds",
            "MVThresh": {
                "comment_globalMvLevelThresh": "Level threshold of global motion - homogarphy",
                "globalMvLevelThresh": [ 100.0, 200.0, 400.0, 600.0, 800.0 ],

                "comment_totalMvLevelThresh": "Level threshold of local motion average",
                "totalMvLevelThresh": [ 0.75, 1.0, 2.0, 3.0, 4.0 ],

                "comment_localMvLevelThresh": "motion threshold of local motion for motion statistic",
                "localMvLevelThresh": [ 3.0, 7.0, 12.0, 16.0, 20.0 ],

                "comment_bodyMvLevelThresh": "level threshold of local motion in body area",
                "bodyMvLevelThresh": [ 10.0, 25.0, 40.0, 50.0, 70.0 ],

                "comment_localCountThresh": "count threshold for each level",
                "localCountThresh": [ 1, 2, 3, 3, 3 ]
            },

            "predictConfig": {
                "comment_method": "0: equal current frame motion 1:mean of previous avgFrameNum frame motion 2:GMM(Gaussian Mixture Mode), 3: kalman filter",
                "method": 3,

                "comment_avgFrameNum": "num of frame in mean method(pmmPredictMethod=1) to predict motion",
                "avgFrameNum": 4,

                "comment_iterConvergence": "num of iteration in GMM method(pmmPredictMethod=2) to predict motion, in [250,1000]",
                "iterConvergence": 1000,

                "comment_gmmClusterNum": "num of cluster in GMM method(pmmPredictMethod=2) to predict motion, max value is 3",
                "gmmClusterNum": 3,

                "comment_gmmFrameNum": "num of frame in GMM method(pmmPredictMethod=2) to predict motion",
                "gmmFrameNum": 10,

                "comment_gmmConf": "confidence to get one clear frame at least in next gmmKFrameK frame in GMM method",
                "gmmConf": 0.99,

                "comment_gmmKFrame": "num of capturing frame for using",
                "gmmKFrame": 4,

                "comment_kalmanQ_kalmanR": "kalman predict param Q and R",
                "kalmanQ": 1e-3,
                "kalmanR": 5e-3
            }
        },

        "hdrDetectingConfig": {
            "comment_highLightThresh": "",
            "highLightThresh" : 227.0,
            "comment_rGammaTable": "red gain table, size 256",
            "rGammaTable" : [0,0,0,0,0,1,1,1,1,2,2,2,3,3,3,4,4,4,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,10,10,10,11,11,11,11,12,12,12,13,13,13,14,14,14,15,15,15,16,16,16,17,17,17,18,18,19,19,19,20,20,20,21,21,21,22,22,23,23,23,24,24,25,25,25,26,26,27,27,27,28,28,29,29,30,30,30,31,31,32,32,33,33,34,34,35,35,35,36,36,37,37,38,38,39,39,40,40,41,41,42,43,43,44,44,45,45,46,47,47,48,48,49,50,50,51,52,52,53,54,54,55,56,57,57,58,59,59,60,61,62,63,63,64,65,66,67,68,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,88,89,90,91,92,93,95,96,97,99,100,101,103,104,106,107,109,110,111,113,114,116,117,119,120,122,123,125,127,129,131,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,163,165,167,169,171,173,176,178,180,183,185,188,190,192,195,197,200,203,205,207,210,212,215,218,221,224,226,229,232,234,237,240,242,245,248,250,253,255],
            "comment_gGammaTable": "green gain table, size 256",
            "gGammaTable" : [0,4,7,11,14,17,19,22,26,29,33,36,40,43,46,49,52,55,58,60,63,66,69,71,74,76,79,81,84,86,88,91,93,95,97,99,102,104,106,108,110,112,114,115,117,119,121,122,124,126,127,129,130,132,133,135,136,137,139,140,142,143,144,145,147,148,149,150,151,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,171,172,173,174,175,176,177,177,178,179,180,180,181,182,183,183,184,185,185,186,187,187,188,189,190,190,191,192,192,193,194,194,195,196,196,197,198,198,199,199,200,200,201,201,202,203,203,204,204,205,205,206,206,207,207,208,208,209,209,210,210,211,211,212,212,213,213,214,214,215,215,216,216,217,217,217,218,218,219,219,220,220,221,221,222,222,223,223,223,224,224,225,225,226,226,226,227,227,228,228,228,229,229,230,230,231,231,231,232,232,233,233,233,234,234,234,235,235,236,236,237,237,237,238,238,239,239,239,240,240,240,241,241,241,242,242,242,243,243,244,244,244,245,245,245,246,246,247,247,247,248,248,248,249,249,250,250,250,251,251,251,252,252,253,253,253,254,255],
            "comment_drcCurve1": "drc = 1, Interpolate between two intervals",
            "drcCurve1": [0,48,112,176,240,304,368,432,496,560,624,688,752,816,880,944,1008,1072,1136,1200,1264,1328,1392,1456,1520,1584,1648,1712,1776,1840,1904,1968,2032,2096,2160,2224,2288,2352,2416,2480,2544,2608,2672,2736,2800,2864,2928,2992,3056,3120,3184,3248,3312,3376,3440,3504,3568,3632,3696,3760,3824,3888,3952,4016,4095],
            "comment_drcCurve2": "drc = 2, Interpolate between two intervals",
            "drcCurve2": [0,96,224,352,480,608,736,859,971,1079,1181,1277,1366,1449,1527,1601,1670,1736,1800,1861,1919,1976,2031,2085,2138,2189,2239,2289,2338,2386,2433,2481,2527,2574,2620,2666,2712,2757,2803,2849,2894,2940,2986,3032,3078,3124,3170,3217,3264,3311,3359,3407,3455,3504,3554,3604,3654,3705,3757,3809,3862,3916,3970,4026,4095],
            "comment_drcCurve3": "drc = 3, Interpolate between two intervals",
            "drcCurve3": [0,144,336,528,720,898,1053,1188,1304,1405,1495,1576,1651,1720,1784,1845,1903,1958,2012,2063,2113,2162,2209,2256,2301,2346,2390,2434,2477,2519,2562,2604,2645,2687,2728,2770,2811,2852,2893,2935,2976,3018,3059,3101,3143,3185,3228,3271,3314,3358,3402,3446,3491,3537,3583,3629,3676,3724,3773,3822,3872,3923,3975,4028,4095],
            "comment_drcCurve4": "drc = 4, Interpolate between two intervals",
            "drcCurve4": [0,192,448,704,936,1120,1265,1382,1481,1567,1644,1714,1780,1841,1898,1953,2005,2056,2105,2152,2198,2243,2287,2330,2373,2415,2456,2497,2538,2578,2618,2658,2697,2737,2776,2816,2855,2894,2933,2973,3012,3052,3092,3132,3172,3213,3254,3295,3337,3379,3421,3464,3507,3551,3596,3641,3687,3733,3780,3828,3877,3927,3978,4030,4095],
            "comment_drcCurve5": "drc = 5, Interpolate between two intervals",
            "drcCurve5": [0,360,836,1119,1285,1406,1505,1589,1663,1731,1793,1852,1907,1959,2010,2058,2105,2150,2194,2237,2279,2320,2361,2401,2441,2480,2519,2557,2595,2633,2671,2709,2746,2784,2821,2859,2896,2934,2971,3009,3047,3085,3124,3162,3201,3240,3279,3319,3359,3400,3441,3482,3524,3567,3610,3653,3698,3743,3789,3835,3883,3931,3981,4031,4095],
            "comment_drcCurve6": "drc = 6, Interpolate between two intervals",
            "drcCurve6": [0,432,956,1203,1352,1463,1555,1634,1705,1770,1830,1887,1940,1991,2040,2087,2132,2176,2219,2261,2303,2343,2383,2422,2461,2500,2538,2575,2613,2650,2688,2725,2761,2798,2835,2872,2909,2946,2983,3020,3058,3095,3133,3171,3209,3248,3287,3326,3366,3406,3446,3487,3529,3571,3613,3657,3701,3745,3791,3837,3884,3932,3981,4032,4095]
        }
    },

    "BackLightDetectingConfig": {
    }
}
