Set and Retrieve Auto-Brightness
# Set and Retrieve Auto-Brightness
# Set Auto-Brightness
Path:
/api/brightcurve
Method: POST
Content-type: application/json; charset=utf-8
API Description: This can be used to set auto-brightness.
Request
Name | Type | Example | Description |
---|---|---|---|
auto | int | 1 | 0: Disable auto-brightness; 1: Enable auto-brightness (not needed temporarily). |
isNewBrightness | int | 1 | 1 for most new programs; 0 for few C-series programs. |
maxPercent | int | 85 | Set the maximum brightness percentage. |
maxAdjustValue | int | 100 | 100 (default). |
midPercent | int | 77 | Brightness percentage of the midpoint of polyline (required when the curve format is 5). |
midAdjustValue | int | 55 | Brightness value of the midpoint of polyline (required when the curve format is 5). |
minPercent | int | 15 | Set the minimum brightness percentage. |
minAdjustValue | int | 0 | 0 (default). |
sensorErrorDefaultValue | int | 25 | Default brightness percentage when retrieving ambient brightness fails. |
save | int | 5 | Curve formats. 5: Polyline; 6: Convex function; 7: Concave function; 8: Custom curve. |
sensorSource485 | int | 1 | 1: Read data from RJ11 connector; 0: Set as 0 when idle. |
sensorSourceMultifunctionCard | int | 0 | 1: Read data from multi-function card; 0: Set as 0 when idle. |
sensorSourceLight | int | 0 | 1: Read data from photoresistor; 0: Set as 0 when idle. |
sensorSourceM2 | int | 0 | 1: Read data from m2; 0: Set as 0 when idle. |
noneReverseGammaValues | int[] | ... | Gamma array. Refer to https://docs.qq.com/doc/DUEpsekFnWWhQYVlQ |
reverseGammaValues | int[] | ... | Inverse gamma array (not needed temporarily). |
- Note (2022.12.08):
sensorSource485
is the auto-brightness switch for most players due to historical reasons. This error has been fixed for A20B. The programs of other players will also be updated. - Note (2023.02.13): Enable or disable this function according to the sensor source (enable auto-brightness when there's a value 1, and disable auto-brightness when the values are 0).
auto
is not allowed.
Example
{
"auto": 1,
"isNewBrightness": 1,
"maxAdjustValue": 100,
"maxOriginalValue": 0,
"maxPercent": 100,
"method": 0,
"midAdjustValue": 50,
"midPercent": 50,
"minAdjustValue": 0,
"minOriginalValue": 0,
"minPercent": 5,
"noneReverseGammaValues": [
3277,3277,3277,3278,3279,3280,3282,3285,3288,3291,3296,
3301,3307,3313,3321,3329,3338,3348,3359,3371,3384,3398,
3413,3429,3446,3464,3483,3504,3525,3548,3572,3598,3624,
3652,3681,3711,3743,3776,3810,3846,3883,3922,3962,4004,
4047,4091,4137,4185,4234,4284,4337,4390,4446,4503,4562,
4622,4684,4747,4813,4880,4949,5019,5092,5166,5241,5319,
5399,5480,5563,5648,5735,5824,5914,6007,6101,6198,6296,
6396,6498,6603,6709,6817,6927,7040,7154,7271,7389,7510,
7632,7757,7884,8013,8144,8278,8413,8551,8691,8833,8977,
9124,9273,9424,9577,9732,9890,10050,10213,10378,10545,
10714,10886,11060,11236,11415,11596,11780,11966,12155,
12346,12539,12735,12933,13134,13337,13543,13751,13962,
14175,14391,14609,14830,15053,15280,15508,15739,15973,
16210,16449,16690,16935,17182,17431,17684,17939,18196,
18457,18720,18985,19254,19525,19799,20076,20355,20638,
20923,21211,21501,21795,22091,22390,22692,22997,23305,
23615,23928,24245,24564,24886,25211,25539,25869,26203,
26540,26879,27222,27568,27916,28268,28622,28979,29340,
29703,30070,30440,30812,31188,31566,31948,32333,32721,
33112,33506,33903,34304,34707,35114,35524,35936,36352,
36772,37194,37620,38048,38480,38915,39354,39795,40240,
40688,41140,41594,42052,42513,42977,43445,43916,44390,
44867,45348,45832,46320,46811,47305,47802,48303,48807,
49315,49826,50340,50858,51379,51904,52432,52963,53498,
54036,54578,55123,55672,56224,56779,57338,57901,58467,
59037,59610,60186,60766,61350,61937,62528,63122,63720,
64321,64926,65535
],
"reverseGammaValues": [
19773,19773,19773,19776,19778,19780,19785,19792,19800,
19807,19819,19831,19845,19860,19879,19898,19920,19943,
19970,19998,20029,20062,20097,20135,20175,20217,20261,
20310,20359,20412,20467,20526,20585,20649,20714,20782,
20853,20927,21002,21081,21162,21246,21333,21423,21515,
21608,21705,21805,21907,22010,22119,22226,22339,22454,
22571,22689,22810,22933,23060,23187,23318,23449,23585,
23722,23859,24000,24144,24288,24435,24583,24734,24887,
25040,25197,25354,25514,25675,25837,26001,26169,26336,
26505,26675,26848,27021,27197,27373,27551,27729,27910,
28092,28275,28459,28645,28831,29020,29209,29399,29589,
29782,29976,30170,30365,30561,30758,30956,31156,31357,
31558,31759,31962,32165,32369,32574,32780,32987,33194,
33403,33612,33821,34032,34242,34454,34666,34879,35093,
35307,35522,35737,35953,36169,36386,36604,36822,37040,
37260,37480,37700,37920,38142,38363,38585,38808,39030,
39253,39477,39701,39925,40151,40376,40601,40828,41054,
41281,41508,41736,41963,42192,42420,42649,42878,43107,
43337,43567,43797,44028,44259,44490,44722,44954,45185,
45418,45650,45883,46116,46350,46583,46817,47050,47284,
47519,47753,47989,48224,48459,48694,48930,49166,49402,
49638,49874,50111,50348,50585,50822,51059,51297,51534,
51772,52010,52248,52487,52725,52964,53202,53442,53680,
53920,54159,54399,54638,54878,55118,55358,55598,55838,
56079,56319,56560,56800,57042,57283,57524,57765,58006,
58247,58489,58731,58972,59214,59456,59699,59941,60183,
60425,60668,60910,61153,61396,61639,61881,62124,62368,
62611,62854,63097,63341,63584,63828,64071,64315,64559,
64803,65047,65291,65535
],
"save": 7,
"sensitivity": 0,
"sensorErrorDefaultValue": 64,
"sensorSource485": 1,
"sensorSourceMultifunctionCard": 0
}
# Retrieve Auto-Brightness
Path:
/api/brightcurve.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to retrieve the auto-brightness.
Response The returned data format is the same as that of "Set Auto-brightness", see the previous section.
Example The returned data format is the same as that of "Set Auto-brightness", see the previous section.