配置和获取设备自动亮度信息
# 配置和获取设备自动亮度信息
# 配置设备自动亮度
Path:
/api/brightcurve
Method: POST
Content-type: application/json; charset=utf-8
接口描述: 配置设备自动亮度功能
请求参数
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
auto | int | 1 | 0关闭自动亮度;1打开自动亮度(暂不用) |
isNewBrightness | int | 1 | 目前新版程序基本都是1,少量C系列程序为0 |
maxPercent | int | 85 | 设置最大亮度百分比 |
maxAdjustValue | int | 100 | 默认为100 |
midPercent | int | 77 | 折线中间点亮度百分比(曲线格式 5 时必要) |
midAdjustValue | int | 55 | 折线中间点亮度值(曲线格式 5 时必要) |
minPercent | int | 15 | 设置最小亮度百分比 |
minAdjustValue | int | 0 | 默认为0 |
sensorErrorDefaultValue | int | 25 | 当获取环境亮度失败时的默认亮度百分比 |
save | int | 5 | 曲线格式;5,折线;6,凸函数;7,凹函数;8,自定义曲线。 |
sensorSource485 | int | 1 | 1表示从rj11口读取数据,不用应设置为0 |
sensorSourceMultifunctionCard | int | 0 | 1表示从多功能卡读取数据,不用应设置为0 |
sensorSourceLight | int | 0 | 1表示从光敏电阻读取数据,不用应设置为0 |
sensorSourceM2 | int | 0 | 1表示从m2读取数据,不用应设置为0 |
noneReverseGammaValues | int[] | ... | gamma数组,参考https://docs.qq.com/doc/DUEpsekFnWWhQYVlQ |
reverseGammaValues | int[] | ... | 反gamma数组,暂时不用 |
- 备注(2022.12.08):由于历史原因,当前大部分播放盒都是以“sensorSource485”字段作为自动亮度开关,目前只有A20B将此错误更正。后续会逐步更新其他播放盒程序。
- 备注(2023.02.13):继续以自动亮度来源决定开关(有一个来源值为1则为打开自动亮度,全为零时关闭自动亮度),不使用字段auto。
请求示例
{
"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
}
# 获取设备自动亮度配置
Path:
/api/brightcurve.json
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 获取设备自动亮度配置
返回数据 返回数据格式同配置自动亮度,见第上一条。
响应示例 返回数据格式同配置自动亮度,见第上一条