Platform: RK3288
OS: Android 5.1.1
Kernel: v3.10.0
需求:
3288点双屏,客户的整机小屏EDP颜色偏冷,大屏LVDS偏黄,需要调节;同理LVDS+MIPI也可以。
方法:
1、安装BizLineAdjustWithBcsh-release.apk,其中色温范围可以根据需求自行修改,默认是3500、4500、5500、6500、7500、8500、9500;修改源码中BizLineAdjustActivity中的COLOR_TEMPERATURE_VALUE 数组即可。色温的取值范围从1000至25100,必须能被100整除,用于细调;
2、用adb给予dsp_lut 666权限
chmod 666 sys/class/graphics/fb0/dsp_lut
3、打开BizLineAdjustWithBcsh-release应用,调节色温至满意的数值;apk会把对应的lut数据保存到如下文件中:
/data/data/com.rockchip.graphics/files/dsp_lut_bkp;
4、在kernel下打上local_diff.patch
diff --git a/arch/arm/boot/dts/lcd-F402.dtsi b/arch/arm/boot/dts/lcd-F402.dtsi
old mode 100644
new mode 100755
index 0fa4979..8173368
--- a/arch/arm/boot/dts/lcd-F402.dtsi
+++ b/arch/arm/boot/dts/lcd-F402.dtsi
@@ -26,32 +26,135 @@swap-rb = <0>;swap-rg = <0>;swap-gb = <0>;
- dsp-lut = <0x00000000 0x00010101 0x00020202 0x00030303 0x00040404 0x00050505 0x00060606 0x00070707 0x00080808 0x00090909
- 0x000a0a0a 0x000b0b0b 0x000c0c0c 0x000d0d0d 0x000e0e0e 0x000f0f0f 0x00101010 0x00111111 0x00121212 0x00131313
- 0x00141414 0x00151515 0x00161616 0x00171717 0x00181818 0x00191919 0x001a1a1a 0x001b1b1b 0x001c1c1c 0x001d1d1d
- 0x001e1e1e 0x001f1f1f 0x00202020 0x00212121 0x00222222 0x00232323 0x00242424 0x00252525 0x00262626 0x00272727
- 0x00282828 0x00292929 0x002a2a2a 0x002b2b2b 0x002c2c2c 0x002d2d2d 0x002e2e2e 0x002f2f2f 0x00303030 0x00313131
- 0x00323232 0x00333333 0x00343434 0x00353535 0x00363636 0x00373737 0x00383838 0x00393939 0x003a3a3a 0x003b3b3b
- 0x003c3c3c 0x003d3d3d 0x003e3e3e 0x003f3f3f 0x00404040 0x00414141 0x00424242 0x00434343 0x00444444 0x00454545
- 0x00464646 0x00474747 0x00484848 0x00494949 0x004a4a4a 0x004b4b4b 0x004c4c4c 0x004d4d4d 0x004e4e4e 0x004f4f4f
- 0x00505050 0x00515151 0x00525252 0x00535353 0x00545454 0x00555555 0x00565656 0x00575757 0x00585858 0x00595959
- 0x005a5a5a 0x005b5b5b 0x005c5c5c 0x005d5d5d 0x005e5e5e 0x005f5f5f 0x00606060 0x00616161 0x00626262 0x00636363
- 0x00646464 0x00656565 0x00666666 0x00676767 0x00686868 0x00696969 0x006a6a6a 0x006b6b6b 0x006c6c6c 0x006d6d6d
- 0x006e6e6e 0x006f6f6f 0x00707070 0x00717171 0x00727272 0x00737373 0x00747474 0x00757575 0x00767676 0x00777777
- 0x00787878 0x00797979 0x007a7a7a 0x007b7b7b 0x007c7c7c 0x007d7d7d 0x007e7e7e 0x007f7f7f 0x00808080 0x00818181
- 0x00828282 0x00838383 0x00848484 0x00858585 0x00868686 0x00878787 0x00888888 0x00898989 0x008a8a8a 0x008b8b8b
- 0x008c8c8c 0x008d8d8d 0x008e8e8e 0x008f8f8f 0x00909090 0x00919191 0x00929292 0x00939393 0x00949494 0x00959595
- 0x00969696 0x00979797 0x00989898 0x00999999 0x009a9a9a 0x009b9b9b 0x009c9c9c 0x009d9d9d 0x009e9e9e 0x009f9f9f
- 0x00a0a0a0 0x00a1a1a1 0x00a2a2a2 0x00a3a3a3 0x00a4a4a4 0x00a5a5a5 0x00a6a6a6 0x00a7a7a7 0x00a8a8a8 0x00a9a9a9
- 0x00aaaaaa 0x00ababab 0x00acacac 0x00adadad 0x00aeaeae 0x00afafaf 0x00b0b0b0 0x00b1b1b1 0x00b2b2b2 0x00b3b3b3
- 0x00b4b4b4 0x00b5b5b5 0x00b6b6b6 0x00b7b7b7 0x00b8b8b8 0x00b9b9b9 0x00bababa 0x00bbbbbb 0x00bcbcbc 0x00bdbdbd
- 0x00bebebe 0x00bfbfbf 0x00c0c0c0 0x00c1c1c1 0x00c2c2c2 0x00c3c3c3 0x00c4c4c4 0x00c5c5c5 0x00c6c6c6 0x00c7c7c7
- 0x00c8c8c8 0x00c9c9c9 0x00cacaca 0x00cbcbcb 0x00cccccc 0x00cdcdcd 0x00cecece 0x00cfcfcf 0x00d0d0d0 0x00d1d1d1
- 0x00d2d2d2 0x00d3d3d3 0x00d4d4d4 0x00d5d5d5 0x00d6d6d6 0x00d7d7d7 0x00d8d8d8 0x00d9d9d9 0x00dadada 0x00dbdbdb
- 0x00dcdcdc 0x00dddddd 0x00dedede 0x00dfdfdf 0x00e0e0e0 0x00e1e1e1 0x00e2e2e2 0x00e3e3e3 0x00e4e4e4 0x00e5e5e5
- 0x00e6e6e6 0x00e7e7e7 0x00e8e8e8 0x00e9e9e9 0x00eaeaea 0x00ebebeb 0x00ececec 0x00ededed 0x00eeeeee 0x00efefef
- 0x00f0f0f0 0x00f1f1f1 0x00f2f2f2 0x00f3f3f3 0x00f4f4f4 0x00f5f5f5 0x00f6f6f6 0x00f7f7f7 0x00f8f8f8 0x00f9f9f9
- 0x00fafafa 0x00fbfbfb 0x00fcfcfc 0x00fdfdfd 0x00fefefe 0x00ffffff>;
+ dsp-lut = <
+ 0x00000000 0x00000000 0x00100401 0x00200802 0x00300c03 0x00401004 0x00501405 0x00601806
+ 0x00701c07 0x00802008 0x00902409 0x00a0280a 0x00b02c0b 0x00c0300c 0x00d0340d 0x00e0380e
+ 0x00f03c0f 0x01004010 0x01104411 0x01204812 0x01304c13 0x01405014 0x01505415 0x01605816
+ 0x01705c17 0x01806018 0x01906419 0x01a0681a 0x01b06c1b 0x01c0701c 0x01d0741d 0x01e0781e
+ 0x01f07c1f 0x02008020 0x02108421 0x02208822 0x02308c23 0x02409024 0x02509425 0x02609826
+ 0x02709c27 0x0280a028 0x0290a429 0x02a0a82a 0x02b0ac2b 0x02c0b02c 0x02d0b42d 0x02e0b82e
+ 0x02f0bc2f 0x0300c030 0x0310c431 0x0320c832 0x0330cc33 0x0340d034 0x0350d435 0x0360d836
+ 0x0370dc37 0x0380e038 0x0390e439 0x03a0e83a 0x03b0ec3b 0x03c0f03c 0x03d0f43d 0x03e0f83e
+ 0x03f0fc3f 0x04010040 0x04110441 0x04210842 0x04310c43 0x04411044 0x04511445 0x04611846
+ 0x04711c47 0x04812048 0x04912449 0x04a1284a 0x04b12c4b 0x04c1304c 0x04d1344d 0x04e1384e
+ 0x04f13c4f 0x05014050 0x05114451 0x05214852 0x05314c53 0x05415054 0x05515455 0x05615856
+ 0x05715c57 0x05816058 0x05916459 0x05a1685a 0x05b16c5b 0x05c1705c 0x05d1745d 0x05e1785e
+ 0x05f17c5f 0x06018060 0x06118461 0x06218862 0x06318c63 0x06419064 0x06519465 0x06619866
+ 0x06719c67 0x0681a068 0x0691a469 0x06a1a86a 0x06b1ac6b 0x06c1b06c 0x06d1b46d 0x06e1b86e
+ 0x06f1bc6f 0x0701c070 0x0711c471 0x0721c872 0x0731cc73 0x0741d074 0x0751d475 0x0761d876
+ 0x0771dc77 0x0781e078 0x0791e479 0x07a1e87a 0x07b1ec7b 0x07c1f07c 0x07d1f47d 0x07e1f87e
+ 0x07f1fc7f 0x08020080 0x08120481 0x08220882 0x08320c83 0x08421084 0x08521485 0x08621886
+ 0x08721c87 0x08822088 0x08922489 0x08a2288a 0x08b22c8b 0x08c2308c 0x08d2348d 0x08e2388e
+ 0x08f23c8f 0x09024090 0x09124491 0x09224892 0x09324c93 0x09425094 0x09525495 0x09625896
+ 0x09725c97 0x09826098 0x09926499 0x09a2689a 0x09b26c9b 0x09c2709c 0x09d2749d 0x09e2789e
+ 0x09f27c9f 0x0a0280a0 0x0a1284a1 0x0a2288a2 0x0a328ca3 0x0a4290a4 0x0a5294a5 0x0a6298a6
+ 0x0a729ca7 0x0a82a0a8 0x0a92a4a9 0x0aa2a8aa 0x0ab2acab 0x0ac2b0ac 0x0ad2b4ad 0x0ae2b8ae
+ 0x0af2bcaf 0x0b02c0b0 0x0b12c4b1 0x0b22c8b2 0x0b32ccb3 0x0b42d0b4 0x0b52d4b5 0x0b62d8b6
+ 0x0b72dcb7 0x0b82e0b8 0x0b92e4b9 0x0ba2e8ba 0x0bb2ecbb 0x0bc2f0bc 0x0bd2f4bd 0x0be2f8be
+ 0x0bf2fcbf 0x0c0300c0 0x0c1304c1 0x0c2308c2 0x0c330cc3 0x0c4310c4 0x0c5314c5 0x0c6318c6
+ 0x0c731cc7 0x0c8320c8 0x0c9324c9 0x0ca328ca 0x0cb32ccb 0x0cc330cc 0x0cd334cd 0x0ce338ce
+ 0x0cf33ccf 0x0d0340d0 0x0d1344d1 0x0d2348d2 0x0d334cd3 0x0d4350d4 0x0d5354d5 0x0d6358d6
+ 0x0d735cd7 0x0d8360d8 0x0d9364d9 0x0da368da 0x0db36cdb 0x0dc370dc 0x0dd374dd 0x0de378de
+ 0x0df37cdf 0x0e0380e0 0x0e1384e1 0x0e2388e2 0x0e338ce3 0x0e4390e4 0x0e5394e5 0x0e6398e6
+ 0x0e739ce7 0x0e83a0e8 0x0e93a4e9 0x0ea3a8ea 0x0eb3aceb 0x0ec3b0ec 0x0ed3b4ed 0x0ee3b8ee
+ 0x0ef3bcef 0x0f03c0f0 0x0f13c4f1 0x0f23c8f2 0x0f33ccf3 0x0f43d0f4 0x0f53d4f5 0x0f63d8f6
+ 0x0f73dcf7 0x0f83e0f8 0x0f93e4f9 0x0fa3e8fa 0x0fb3ecfb 0x0fc3f0fc 0x0fd3f4fd 0x0fe3f8fe
+ 0x0ff3fcff 0x10040100 0x10140501 0x10240902 0x10340d03 0x10441104 0x10541505 0x10641906
+ 0x10741d07 0x10842108 0x10942509 0x10a4290a 0x10b42d0b 0x10c4310c 0x10d4350d 0x10e4390e
+ 0x10f43d0f 0x11044110 0x11144511 0x11244912 0x11344d13 0x11445114 0x11545515 0x11645916
+ 0x11745d17 0x11846118 0x11946519 0x11a4691a 0x11b46d1b 0x11c4711c 0x11d4751d 0x11e4791e
+ 0x11f47d1f 0x12048120 0x12148521 0x12248922 0x12348d23 0x12449124 0x12549525 0x12649926
+ 0x12749d27 0x1284a128 0x1294a529 0x12a4a92a 0x12b4ad2b 0x12c4b12c 0x12d4b52d 0x12e4b92e
+ 0x12f4bd2f 0x1304c130 0x1314c531 0x1324c932 0x1334cd33 0x1344d134 0x1354d535 0x1364d936
+ 0x1374dd37 0x1384e138 0x1394e539 0x13a4e93a 0x13b4ed3b 0x13c4f13c 0x13d4f53d 0x13e4f93e
+ 0x13f4fd3f 0x14050140 0x14150541 0x14250942 0x14350d43 0x14451144 0x14551545 0x14651946
+ 0x14751d47 0x14852148 0x14952549 0x14a5294a 0x14b52d4b 0x14c5314c 0x14d5354d 0x14e5394e
+ 0x14f53d4f 0x15054150 0x15154551 0x15254952 0x15354d53 0x15555555 0x15555555 0x15655956
+ 0x15755d57 0x15856158 0x15956559 0x15a5695a 0x15b56d5b 0x15c5715c 0x15d5755d 0x15e5795e
+ 0x15f57d5f 0x16058160 0x16158561 0x16258962 0x16358d63 0x16459164 0x16559565 0x16659966
+ 0x16759d67 0x1685a168 0x1695a569 0x16a5a96a 0x16b5ad6b 0x16c5b16c 0x16d5b56d 0x16e5b96e
+ 0x16f5bd6f 0x1705c170 0x1715c571 0x1725c972 0x1735cd73 0x1745d174 0x1755d575 0x1765d976
+ 0x1775dd77 0x1785e178 0x1795e579 0x17a5e97a 0x17b5ed7b 0x17c5f17c 0x17d5f57d 0x17e5f97e
+ 0x17f5fd7f 0x18060180 0x18160581 0x18260982 0x18360d83 0x18461184 0x18561585 0x18661986
+ 0x18761d87 0x18862188 0x18962589 0x18a6298a 0x18b62d8b 0x18c6318c 0x18d6358d 0x18e6398e
+ 0x18f63d8f 0x19064190 0x19164591 0x19264992 0x19364d93 0x19465194 0x19565595 0x19665996
+ 0x19765d97 0x19866198 0x19966599 0x19a6699a 0x19b66d9b 0x19c6719c 0x19d6759d 0x19e6799e
+ 0x19f67d9f 0x1a0681a0 0x1a1685a1 0x1a2689a2 0x1a368da3 0x1a4691a4 0x1a5695a5 0x1a6699a6
+ 0x1a769da7 0x1a86a1a8 0x1a96a5a9 0x1aa6a9aa 0x1ab6adab 0x1ac6b1ac 0x1ad6b5ad 0x1ae6b9ae
+ 0x1af6bdaf 0x1b06c1b0 0x1b16c5b1 0x1b26c9b2 0x1b36cdb3 0x1b46d1b4 0x1b56d5b5 0x1b66d9b6
+ 0x1b76ddb7 0x1b86e1b8 0x1b96e5b9 0x1ba6e9ba 0x1bb6edbb 0x1bc6f1bc 0x1bd6f5bd 0x1be6f9be
+ 0x1bf6fdbf 0x1c0701c0 0x1c1705c1 0x1c2709c2 0x1c370dc3 0x1c4711c4 0x1c5715c5 0x1c6719c6
+ 0x1c771dc7 0x1c8721c8 0x1c9725c9 0x1ca729ca 0x1cb72dcb 0x1cc731cc 0x1cd735cd 0x1ce739ce
+ 0x1cf73dcf 0x1d0741d0 0x1d1745d1 0x1d2749d2 0x1d374dd3 0x1d4751d4 0x1d5755d5 0x1d6759d6
+ 0x1d775dd7 0x1d8761d8 0x1d9765d9 0x1da769da 0x1db76ddb 0x1dc771dc 0x1dd775dd 0x1de779de
+ 0x1df77ddf 0x1e0781e0 0x1e1785e1 0x1e2789e2 0x1e378de3 0x1e4791e4 0x1e5795e5 0x1e6799e6
+ 0x1e779de7 0x1e87a1e8 0x1e97a5e9 0x1ea7a9ea 0x1eb7adeb 0x1ec7b1ec 0x1ed7b5ed 0x1ee7b9ee
+ 0x1ef7bdef 0x1f07c1f0 0x1f17c5f1 0x1f27c9f2 0x1f37cdf3 0x1f47d1f4 0x1f57d5f5 0x1f67d9f6
+ 0x1f77ddf7 0x1f87e1f8 0x1f97e5f9 0x1fa7e9fa 0x1fb7edfb 0x1fc7f1fc 0x1fd7f5fd 0x1fe7f9fe
+ 0x1ff7fdff 0x20080200 0x20180601 0x20280a02 0x20380e03 0x20481204 0x20581605 0x20681a06
+ 0x20781e07 0x20882208 0x20982609 0x20a82a0a 0x20b82e0b 0x20c8320c 0x20d8360d 0x20e83a0e
+ 0x20f83e0f 0x21084210 0x21184611 0x21284a12 0x21384e13 0x21485214 0x21585615 0x21685a16
+ 0x21785e17 0x21886218 0x21986619 0x21a86a1a 0x21b86e1b 0x21c8721c 0x21d8761d 0x21e87a1e
+ 0x21f87e1f 0x22088220 0x22188621 0x22288a22 0x22388e23 0x22489224 0x22589625 0x22689a26
+ 0x22789e27 0x2288a228 0x2298a629 0x22a8aa2a 0x22b8ae2b 0x22c8b22c 0x22d8b62d 0x22e8ba2e
+ 0x22f8be2f 0x2308c230 0x2318c631 0x2328ca32 0x2338ce33 0x2348d234 0x2358d635 0x2368da36
+ 0x2378de37 0x2388e238 0x2398e639 0x23a8ea3a 0x23b8ee3b 0x23c8f23c 0x23d8f63d 0x23e8fa3e
+ 0x23f8fe3f 0x24090240 0x24190641 0x24290a42 0x24390e43 0x24491244 0x24591645 0x24691a46
+ 0x24791e47 0x24892248 0x24992649 0x24a92a4a 0x24b92e4b 0x24c9324c 0x24d9364d 0x24e93a4e
+ 0x24f93e4f 0x25094250 0x25194651 0x25294a52 0x25394e53 0x25495254 0x25595655 0x25695a56
+ 0x25795e57 0x25896258 0x25996659 0x25a96a5a 0x25b96e5b 0x25c9725c 0x25d9765d 0x25e97a5e
+ 0x25f97e5f 0x26098260 0x26198661 0x26298a62 0x26398e63 0x26499264 0x26599665 0x26699a66
+ 0x26799e67 0x2689a268 0x2699a669 0x26a9aa6a 0x26b9ae6b 0x26c9b26c 0x26d9b66d 0x26e9ba6e
+ 0x26f9be6f 0x2709c270 0x2719c671 0x2729ca72 0x2739ce73 0x2749d274 0x2759d675 0x2769da76
+ 0x2779de77 0x2789e278 0x2799e679 0x27a9ea7a 0x27b9ee7b 0x27c9f27c 0x27d9f67d 0x27e9fa7e
+ 0x27f9fe7f 0x280a0280 0x281a0681 0x282a0a82 0x283a0e83 0x284a1284 0x285a1685 0x286a1a86
+ 0x287a1e87 0x288a2288 0x289a2689 0x28aa2a8a 0x28ba2e8b 0x28ca328c 0x28da368d 0x28ea3a8e
+ 0x28fa3e8f 0x290a4290 0x291a4691 0x292a4a92 0x293a4e93 0x294a5294 0x295a5695 0x296a5a96
+ 0x297a5e97 0x298a6298 0x299a6699 0x29aa6a9a 0x29ba6e9b 0x29ca729c 0x29da769d 0x29ea7a9e
+ 0x29fa7e9f 0x2a0a82a0 0x2a1a86a1 0x2a2a8aa2 0x2a3a8ea3 0x2a4a92a4 0x2a5a96a5 0x2a6a9aa6
+ 0x2a7a9ea7 0x2a8aa2a8 0x2aaaaaaa 0x2aaaaaaa 0x2abaaeab 0x2acab2ac 0x2adab6ad 0x2aeabaae
+ 0x2afabeaf 0x2b0ac2b0 0x2b1ac6b1 0x2b2acab2 0x2b3aceb3 0x2b4ad2b4 0x2b5ad6b5 0x2b6adab6
+ 0x2b7adeb7 0x2b8ae2b8 0x2b9ae6b9 0x2baaeaba 0x2bbaeebb 0x2bcaf2bc 0x2bdaf6bd 0x2beafabe
+ 0x2bfafebf 0x2c0b02c0 0x2c1b06c1 0x2c2b0ac2 0x2c3b0ec3 0x2c4b12c4 0x2c5b16c5 0x2c6b1ac6
+ 0x2c7b1ec7 0x2c8b22c8 0x2c9b26c9 0x2cab2aca 0x2cbb2ecb 0x2ccb32cc 0x2cdb36cd 0x2ceb3ace
+ 0x2cfb3ecf 0x2d0b42d0 0x2d1b46d1 0x2d2b4ad2 0x2d3b4ed3 0x2d4b52d4 0x2d5b56d5 0x2d6b5ad6
+ 0x2d7b5ed7 0x2d8b62d8 0x2d9b66d9 0x2dab6ada 0x2dbb6edb 0x2dcb72dc 0x2ddb76dd 0x2deb7ade
+ 0x2dfb7edf 0x2e0b82e0 0x2e1b86e1 0x2e2b8ae2 0x2e3b8ee3 0x2e4b92e4 0x2e5b96e5 0x2e6b9ae6
+ 0x2e7b9ee7 0x2e8ba2e8 0x2e9ba6e9 0x2eabaaea 0x2ebbaeeb 0x2ecbb2ec 0x2edbb6ed 0x2eebbaee
+ 0x2efbbeef 0x2f0bc2f0 0x2f1bc6f1 0x2f2bcaf2 0x2f3bcef3 0x2f4bd2f4 0x2f5bd6f5 0x2f6bdaf6
+ 0x2f7bdef7 0x2f8be2f8 0x2f9be6f9 0x2fabeafa 0x2fbbeefb 0x2fcbf2fc 0x2fdbf6fd 0x2febfafe
+ 0x2ffbfeff 0x300c0300 0x301c0701 0x302c0b02 0x303c0f03 0x304c1304 0x305c1705 0x306c1b06
+ 0x307c1f07 0x308c2308 0x309c2709 0x30ac2b0a 0x30bc2f0b 0x30cc330c 0x30dc370d 0x30ec3b0e
+ 0x30fc3f0f 0x310c4310 0x311c4711 0x312c4b12 0x313c4f13 0x314c5314 0x315c5715 0x316c5b16
+ 0x317c5f17 0x318c6318 0x319c6719 0x31ac6b1a 0x31bc6f1b 0x31cc731c 0x31dc771d 0x31ec7b1e
+ 0x31fc7f1f 0x320c8320 0x321c8721 0x322c8b22 0x323c8f23 0x324c9324 0x325c9725 0x326c9b26
+ 0x327c9f27 0x328ca328 0x329ca729 0x32acab2a 0x32bcaf2b 0x32ccb32c 0x32dcb72d 0x32ecbb2e
+ 0x32fcbf2f 0x330cc330 0x331cc731 0x332ccb32 0x333ccf33 0x334cd334 0x335cd735 0x336cdb36
+ 0x337cdf37 0x338ce338 0x339ce739 0x33aceb3a 0x33bcef3b 0x33ccf33c 0x33dcf73d 0x33ecfb3e
+ 0x33fcff3f 0x340d0340 0x341d0741 0x342d0b42 0x343d0f43 0x344d1344 0x345d1745 0x346d1b46
+ 0x347d1f47 0x348d2348 0x349d2749 0x34ad2b4a 0x34bd2f4b 0x34cd334c 0x34dd374d 0x34ed3b4e
+ 0x34fd3f4f 0x350d4350 0x351d4751 0x352d4b52 0x353d4f53 0x354d5354 0x355d5755 0x356d5b56
+ 0x357d5f57 0x358d6358 0x359d6759 0x35ad6b5a 0x35bd6f5b 0x35cd735c 0x35dd775d 0x35ed7b5e
+ 0x35fd7f5f 0x360d8360 0x361d8761 0x362d8b62 0x363d8f63 0x364d9364 0x365d9765 0x366d9b66
+ 0x367d9f67 0x368da368 0x369da769 0x36adab6a 0x36bdaf6b 0x36cdb36c 0x36ddb76d 0x36edbb6e
+ 0x36fdbf6f 0x370dc370 0x371dc771 0x372dcb72 0x373dcf73 0x374dd374 0x375dd775 0x376ddb76
+ 0x377ddf77 0x378de378 0x379de779 0x37adeb7a 0x37bdef7b 0x37cdf37c 0x37ddf77d 0x37edfb7e
+ 0x37fdff7f 0x380e0380 0x381e0781 0x382e0b82 0x383e0f83 0x384e1384 0x385e1785 0x386e1b86
+ 0x387e1f87 0x388e2388 0x389e2789 0x38ae2b8a 0x38be2f8b 0x38ce338c 0x38de378d 0x38ee3b8e
+ 0x38fe3f8f 0x390e4390 0x391e4791 0x392e4b92 0x393e4f93 0x394e5394 0x395e5795 0x396e5b96
+ 0x397e5f97 0x398e6398 0x399e6799 0x39ae6b9a 0x39be6f9b 0x39ce739c 0x39de779d 0x39ee7b9e
+ 0x39fe7f9f 0x3a0e83a0 0x3a1e87a1 0x3a2e8ba2 0x3a3e8fa3 0x3a4e93a4 0x3a5e97a5 0x3a6e9ba6
+ 0x3a7e9fa7 0x3a8ea3a8 0x3a9ea7a9 0x3aaeabaa 0x3abeafab 0x3aceb3ac 0x3adeb7ad 0x3aeebbae
+ 0x3afebfaf 0x3b0ec3b0 0x3b1ec7b1 0x3b2ecbb2 0x3b3ecfb3 0x3b4ed3b4 0x3b5ed7b5 0x3b6edbb6
+ 0x3b7edfb7 0x3b8ee3b8 0x3b9ee7b9 0x3baeebba 0x3bbeefbb 0x3bcef3bc 0x3bdef7bd 0x3beefbbe
+ 0x3bfeffbf 0x3c0f03c0 0x3c1f07c1 0x3c2f0bc2 0x3c3f0fc3 0x3c4f13c4 0x3c5f17c5 0x3c6f1bc6
+ 0x3c7f1fc7 0x3c8f23c8 0x3c9f27c9 0x3caf2bca 0x3cbf2fcb 0x3ccf33cc 0x3cdf37cd 0x3cef3bce
+ 0x3cff3fcf 0x3d0f43d0 0x3d1f47d1 0x3d2f4bd2 0x3d3f4fd3 0x3d4f53d4 0x3d5f57d5 0x3d6f5bd6
+ 0x3d7f5fd7 0x3d8f63d8 0x3d9f67d9 0x3daf6bda 0x3dbf6fdb 0x3dcf73dc 0x3ddf77dd 0x3def7bde
+ 0x3dff7fdf 0x3e0f83e0 0x3e1f87e1 0x3e2f8be2 0x3e3f8fe3 0x3e4f93e4 0x3e5f97e5 0x3e6f9be6
+ 0x3e7f9fe7 0x3e8fa3e8 0x3e9fa7e9 0x3eafabea 0x3ebfafeb 0x3ecfb3ec 0x3edfb7ed 0x3eefbbee
+ 0x3effbfef 0x3f0fc3f0 0x3f1fc7f1 0x3f2fcbf2 0x3f3fcff3 0x3f4fd3f4 0x3f5fd7f5 0x3f6fdbf6
+ 0x3f7fdff7 0x3f8fe3f8 0x3f9fe7f9 0x3fafebfa 0x3fbfeffb 0x3fcff3fc 0x3fdff7fd 0x3fffffff>; cabc-lut = </*gamma = 2.2*/0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
diff --git a/drivers/video/rockchip/lcdc/rk3288_lcdc.c b/drivers/video/rockchip/lcdc/rk3288_lcdc.c
index f6cd5fe..c0cba0c 100755
--- a/drivers/video/rockchip/lcdc/rk3288_lcdc.c
+++ b/drivers/video/rockchip/lcdc/rk3288_lcdc.c
@@ -79,18 +79,26 @@ static int rk3288_lcdc_set_lut(struct rk_lcdc_driver *dev_drv)lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_DSP_LUT_EN, v_DSP_LUT_EN(0));lcdc_cfg_done(lcdc_dev);mdelay(25);
- for (i = 0; i < 256; i++) {
- v = dev_drv->cur_screen->dsp_lut[i];
- c = lcdc_dev->dsp_lut_addr_base + (i << 2);
- b = (v & 0xff) << 2;
- g = (v & 0xff00) << 4;
- r = (v & 0xff0000) << 6;
- v = r + g + b;
- for (j = 0; j < 4; j++) {
- writel_relaxed(v, c);
- v += (1 + (1 << 10) + (1 << 20)) ;
- c++;
- }
+ if(0){
+ for (i = 0; i < 256; i++) {
+ v = dev_drv->cur_screen->dsp_lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + (i << 2);
+ b = (v & 0xff) << 2;
+ g = (v & 0xff00) << 4;
+ r = (v & 0xff0000) << 6;
+ v = r + g + b;
+ for (j = 0; j < 4; j++) {
+ writel_relaxed(v, c);
+ v += (1 + (1 << 10) + (1 << 20)) ;
+ c++;
+ }
+ }
+ }else{
+ for (i = 0; i < 1024; i++) {
+ v = dev_drv->cur_screen->dsp_lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + i;
+ writel_relaxed(v,c);
+ }}lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_DSP_LUT_EN, v_DSP_LUT_EN(1));@@ -2657,18 +2665,26 @@ static int rk3288_lcdc_early_resume(struct rk_lcdc_driver *dev_drv)v_DSP_LUT_EN(0));lcdc_cfg_done(lcdc_dev);mdelay(25);
- for (i = 0; i < 256; i++) {
- v = dev_drv->cur_screen->dsp_lut[i];
- c = lcdc_dev->dsp_lut_addr_base + (i << 2);
- b = (v & 0xff) << 2;
- g = (v & 0xff00) << 4;
- r = (v & 0xff0000) << 6;
- v = r + g + b;
- for (j = 0; j < 4; j++) {
- writel_relaxed(v, c);
- v += (1 + (1 << 10) + (1 << 20)) ;
- c++;
- }
+ if(0){
+ for (i = 0; i < 256; i++) {
+ v = dev_drv->cur_screen->dsp_lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + (i << 2);
+ b = (v & 0xff) << 2;
+ g = (v & 0xff00) << 4;
+ r = (v & 0xff0000) << 6;
+ v = r + g + b;
+ for (j = 0; j < 4; j++) {
+ writel_relaxed(v, c);
+ v += (1 + (1 << 10) + (1 << 20)) ;
+ c++;
+ }
+ }
+ }else{
+ for(i =0; i<1024;i++){
+ v = dev_drv->cur_screen->dsp_lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + i;
+ writel_relaxed(v,c);
+ }}lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_DSP_LUT_EN,v_DSP_LUT_EN(1));
@@ -3390,20 +3406,30 @@ static int rk3288_set_dsp_lut(struct rk_lcdc_driver *dev_drv, int *lut)lcdc_msk_reg(lcdc_dev, DSP_CTRL1, m_DSP_LUT_EN, v_DSP_LUT_EN(0));lcdc_cfg_done(lcdc_dev);mdelay(25);
- for (i = 0; i < 256; i++) {
- if (dev_drv->cur_screen->dsp_lut)
- dev_drv->cur_screen->dsp_lut[i] = lut[i];
- v = lut[i];
- c = lcdc_dev->dsp_lut_addr_base + (i << 2);
- b = (v & 0xff) << 2;
- g = (v & 0xff00) << 4;
- r = (v & 0xff0000) << 6;
- v = r + g + b;
- for (j = 0; j < 4; j++) {
- writel_relaxed(v, c);
- v += (1 + (1 << 10) + (1 << 20)) ;
- c++;
- }
+ if(0){
+ for (i = 0; i < 256; i++) {
+ if (dev_drv->cur_screen->dsp_lut)
+ dev_drv->cur_screen->dsp_lut[i] = lut[i];
+ v = lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + (i << 2);
+ b = (v & 0xff) << 2;
+ g = (v & 0xff00) << 4;
+ r = (v & 0xff0000) << 6;
+ v = r + g + b;
+ for (j = 0; j < 4; j++) {
+ writel_relaxed(v, c);
+ v += (1 + (1 << 10) + (1 << 20)) ;
+ c++;
+ }
+ }
+ }else{
+ for (i = 0; i < 1024; i++) {
+ if (dev_drv->cur_screen->dsp_lut)
+ dev_drv->cur_screen->dsp_lut[i] = lut[i];
+ v = lut[i];
+ c = lcdc_dev->dsp_lut_addr_base + i;
+ writel_relaxed(v,c);
+ }}do {
diff --git a/drivers/video/rockchip/rkfb_sysfs.c b/drivers/video/rockchip/rkfb_sysfs.c
index cd8af89..662ba2e 100755
--- a/drivers/video/rockchip/rkfb_sysfs.c
+++ b/drivers/video/rockchip/rkfb_sysfs.c
@@ -49,6 +49,8 @@ struct rkfb_sys_trace {};#define DUMP_BUF_PATH "/data/dmp_buf"+int dsp_lut[1024];
+static char *get_format_str(enum data_format format){switch (format) {
@@ -759,25 +761,38 @@ static ssize_t show_dsp_lut(struct device *dev,static ssize_t set_dsp_lut(struct device *dev, struct device_attribute *attr,const char *buf, size_t count){
- int dsp_lut[256];const char *start = buf;
- int i = 256, temp;
+ char flag[1];
+ int i = 1024, temp, dsp_lut_num;int space_max = 10;struct fb_info *fbi = dev_get_drvdata(dev);struct rk_fb_par *fb_par = (struct rk_fb_par *)fbi->par;struct rk_lcdc_driver *dev_drv = fb_par->lcdc_drv;
-
- for (i = 0; i < 256; i++) {
+ strncpy(flag, start, 1);
+ start += 2;
+ if(*flag == 'A'){
+ dsp_lut_num = 0;
+ for (i = 0; i < 1024; i++) {temp = i;/*init by default value*/dsp_lut[i] = temp + (temp << 8) + (temp << 16);
+ }
+ }else if(*flag == 'B'){
+ dsp_lut_num = 256;
+ }else if(*flag == 'C'){
+ dsp_lut_num = 512;
+ }else if(*flag == 'D'){
+ dsp_lut_num = 768;
+ }else{
+ printk(KERN_ALERT "Invalid dsp lut data!!!\n");
+ return -ENOMEM;}/*printk("count:%d\n>>%s\n\n",count,start);*/for (i = 0; i < 256; i++) {space_max = 10; /*max space number 10*/
- temp = simple_strtoul(start, NULL, 10);
- dsp_lut[i] = temp;
+ temp = simple_strtoul(start, NULL, 16);
+ dsp_lut[i + dsp_lut_num] = temp;do {start++;space_max--;
@@ -795,9 +810,10 @@ static ssize_t set_dsp_lut(struct device *dev, struct device_attribute *attr,printk("\n");}#endif
+ if(*flag == 'D'){if (dev_drv->ops->set_dsp_lut)dev_drv->ops->set_dsp_lut(dev_drv, dsp_lut);
-
+ }return count;}
5、仿照内核中的这个文件的做法,把dsp-lut数组加到自己的屏幕文件中,参数使用data下面调节好效果的数据,注意 cabc-lut曲线也要保留。
dsp-lut = <0x00000000 0x00000000 0x00100401 0x00200802 0x00300c03 0x00401004 0x00501405 0x00601806 0x00701c07 0x00802007 0x00902408 0x00a02809 0x00b02c0a 0x00c0300b 0x00d0340c 0x00e0380d 0x00f03c0e 0x01003c0e 0x0110400f 0x01204410 0x01304811 0x01404c12 0x01505013 0x01605414 0x01705815 0x01805c16 0x01906016 0x01a06417 0x01b06818 0x01c06c19 0x01d0701a 0x01e0741b 0x01f0781c 0x0200781d 0x02107c1d 0x0220801e 0x0230841f 0x02408820 0x02508c21 0x02609022 0x02709423 0x02809824 0x02909c25 0x02a0a025 0x02b0a426 0x02c0a827 0x02d0ac28 0x02e0b029 0x02f0b42a 0x0300b42b 0x0310b82c 0x0320bc2c 0x0330c02d 0x0340c42e 0x0350c82f 0x0360cc30 0x0370d031 0x0380d432 0x0390d833 0x03a0dc33 0x03b0e034 0x03c0e435 0x03d0e836 0x03e0ec37 0x03f0f038 0x0400f439 0x0410f43a 0x0420f83b 0x0430fc3b 0x0441003c 0x0451043d 0x0461083e 0x04710c3f 0x04811040 0x04911441 0x04a11842 0x04b11c42 0x04c12043 0x04d12444 0x04e12845 0x04f12c46 0x05013047 0x05113048 0x05213449 0x0531384a 0x05413c4a 0x0551404b 0x0561444c 0x0571484d 0x05814c4e 0x0591504f 0x05a15450 0x05b15851 0x05c15c51 0x05d16052 0x05e16453 0x05f16854 0x06016c55 0x06116c56 0x06217057 0x06317458 0x06417859 0x06517c59 0x0661805a 0x0671845b 0x0681885c 0x06918c5d 0x06a1905e 0x06b1945f 0x06c19860 0x06d19c60 0x06e1a061 0x06f1a462 0x0701a863 0x0711a864 0x0721ac65 0x0731b066 0x0741b467 0x0751b867 0x0761bc68 0x0771c069 0x0781c46a 0x0791c86b 0x07a1cc6c 0x07b1d06d 0x07c1d46e 0x07d1d86f 0x07e1dc6f 0x07f1e070 0x0801e471 0x0811e872 0x0821e873 0x0831ec74 0x0841f075 0x0851f476 0x0861f876 0x0871fc77 0x08820078 0x08920479 0x08a2087a 0x08b20c7b 0x08c2107c 0x08d2147d 0x08e2187e 0x08f21c7e 0x0902207f 0x09122480 0x09222481 0x09322882 0x09422c83 0x09523084 0x09623485 0x09723885 0x09823c86 0x09924087 0x09a24488 0x09b24889 0x09c24c8a 0x09d2508b 0x09e2548c 0x09f2588c 0x0a025c8d 0x0a12608e 0x0a22608f 0x0a326490 0x0a426891 0x0a526c92 0x0a627093 0x0a727494 0x0a827894 0x0a927c95 0x0aa28096 0x0ab28497 0x0ac28898 0x0ad28c99 0x0ae2909a 0x0af2949b 0x0b02989b 0x0b129c9c 0x0b229c9d 0x0b32a09e 0x0b42a49f 0x0b52a8a0 0x0b62aca1 0x0b72b0a2 0x0b82b4a3 0x0b92b8a3 0x0ba2bca4 0x0bb2c0a5 0x0bc2c4a6 0x0bd2c8a7 0x0be2cca8 0x0bf2d0a9 0x0c02d4aa 0x0c12d8aa 0x0c22dcab 0x0c32dcac 0x0c42e0ad 0x0c52e4ae 0x0c62e8af 0x0c72ecb0 0x0c82f0b1 0x0c92f4b2 0x0ca2f8b2 0x0cb2fcb3 0x0cc300b4 0x0cd304b5 0x0ce308b6 0x0cf30cb7 0x0d0310b8 0x0d1314b9 0x0d2318b9 0x0d3318ba 0x0d431cbb 0x0d5320bc 0x0d6324bd 0x0d7328be 0x0d832cbf 0x0d9330c0 0x0da334c0 0x0db338c1 0x0dc33cc2 0x0dd340c3 0x0de344c4 0x0df348c5 0x0e034cc6 0x0e1350c7 0x0e2354c8 0x0e3354c8 0x0e4358c9 0x0e535cca 0x0e6360cb 0x0e7364cc 0x0e8368cd 0x0e936cce 0x0ea370cf 0x0eb374cf 0x0ec378d0 0x0ed37cd1 0x0ee380d2 0x0ef384d3 0x0f0388d4 0x0f138cd5 0x0f2390d6 0x0f3394d7 0x0f4394d7 0x0f5398d8 0x0f639cd9 0x0f73a0da 0x0f83a4db 0x0f93a8dc 0x0fa3acdd 0x0fb3b0de 0x0fc3b4de 0x0fd3b8df 0x0fe3bce0 0x0ff3c0e1 0x1003c4e2 0x1013c8e3 0x1023cce4 0x1033d0e5 0x1043d0e6 0x1053d4e6 0x1063d8e7 0x1073dce8 0x1083e0e9 0x1093e4ea 0x10a3e8eb 0x10b3ecec 0x10c3f0ed 0x10d3f4ed 0x10e3f8ee 0x10f3fcef 0x110400f0 0x111404f1 0x112408f2 0x11340cf3 0x11440cf4 0x115410f5 0x116414f5 0x117418f6 0x11841cf7 0x119420f8 0x11a424f9 0x11b428fa 0x11c42cfb 0x11d430fc 0x11e434fc 0x11f438fd 0x12043cfe 0x121440ff 0x12244500 0x12344901 0x12444902 0x12544d03 0x12645103 0x12745504 0x12845905 0x12945d06 0x12a46107 0x12b46508 0x12c46909 0x12d46d0a 0x12e4710b 0x12f4750b 0x1304790c 0x13147d0d 0x1324810e 0x1334850f 0x13448910 0x13548911 0x13648d12 0x13749112 0x13849513 0x13949914 0x13a49d15 0x13b4a116 0x13c4a517 0x13d4a918 0x13e4ad19 0x13f4b11a 0x1404b51a 0x1414b91b 0x1424bd1c 0x1434c11d 0x1444c51e 0x1454c51f 0x1464c920 0x1474cd21 0x1484d121 0x1494d522 0x14a4d923 0x14b4dd24 0x14c4e125 0x14d4e526 0x14e4e927 0x14f4ed28 0x1504f128 0x1514f529 0x1524f92a 0x1534fd2b 0x1555012c 0x1555012d 0x1565052e 0x1575092f 0x15850d30 0x15951130 0x15a51531 0x15b51932 0x15c51d33 0x15d52134 0x15e52535 0x15f52936 0x16052d37 0x16153137 0x16253538 0x16353939 0x16453d3a 0x16553d3b 0x1665413c 0x1675453d 0x1685493e 0x16954d3f 0x16a5513f 0x16b55540 0x16c55941 0x16d55d42 0x16e56143 0x16f56544 0x17056945 0x17156d46 0x17257146 0x17357547 0x17457948 0x17557d49 0x17657d4a 0x1775814b 0x1785854c 0x1795894d 0x17a58d4e 0x17b5914e 0x17c5954f 0x17d59950 0x17e59d51 0x17f5a152 0x1805a553 0x1815a954 0x1825ad55 0x1835b155 0x1845b556 0x1855b957 0x1865b958 0x1875bd59 0x1885c15a 0x1895c55b 0x18a5c95c 0x18b5cd5c 0x18c5d15d 0x18d5d55e 0x18e5d95f 0x18f5dd60 0x1905e161 0x1915e562 0x1925e963 0x1935ed64 0x1945f164 0x1955f565 0x1965f566 0x1975f967 0x1985fd68 0x19960169 0x19a6056a 0x19b6096b 0x19c60d6b 0x19d6116c 0x19e6156d 0x19f6196e 0x1a061d6f 0x1a162170 0x1a262571 0x1a362972 0x1a462d73 0x1a563173 0x1a663574 0x1a763575 0x1a863976 0x1a963d77 0x1aa64178 0x1ab64579 0x1ac6497a 0x1ad64d7a 0x1ae6517b 0x1af6557c 0x1b06597d 0x1b165d7e 0x1b26617f 0x1b366580 0x1b466981 0x1b566d81 0x1b667182 0x1b767183 0x1b867584 0x1b967985 0x1ba67d86 0x1bb68187 0x1bc68588 0x1bd68989 0x1be68d89 0x1bf6918a 0x1c06958b 0x1c16998c 0x1c269d8d 0x1c36a18e 0x1c46a58f 0x1c56a990 0x1c66ad90 0x1c76ad91 0x1c86b192 0x1c96b593 0x1ca6b994 0x1cb6bd95 0x1cc6c196 0x1cd6c597 0x1ce6c998 0x1cf6cd98 0x1d06d199 0x1d16d59a 0x1d26d99b 0x1d36dd9c 0x1d46e19d 0x1d56e59e 0x1d66e99f 0x1d76e99f 0x1d86eda0 0x1d96f1a1 0x1da6f5a2 0x1db6f9a3 0x1dc6fda4 0x1dd701a5 0x1de705a6 0x1df709a7 0x1e070da7 0x1e1711a8 0x1e2715a9 0x1e3719aa 0x1e471dab 0x1e5721ac 0x1e6725ad 0x1e7729ae 0x1e8729ae 0x1e972daf 0x1ea731b0 0x1eb735b1 0x1ec739b2 0x1ed73db3 0x1ee741b4 0x1ef745b5 0x1f0749b6 0x1f174db6 0x1f2751b7 0x1f3755b8 0x1f4759b9 0x1f575dba 0x1f6761bb 0x1f7765bc 0x1f8765bd 0x1f9769bd 0x1fa76dbe 0x1fb771bf 0x1fc775c0 0x1fd779c1 0x1fe77dc2 0x1ff781c3 0x200785c4 0x201789c4 0x20278dc5 0x203791c6 0x204795c7 0x205799c8 0x20679dc9 0x2077a1ca 0x2087a1cb 0x2097a5cc 0x20a7a9cc 0x20b7adcd 0x20c7b1ce 0x20d7b5cf 0x20e7b9d0 0x20f7bdd1 0x2107c1d2 0x2117c5d3 0x2127c9d3 0x2137cdd4 0x2147d1d5 0x2157d5d6 0x2167d9d7 0x2177ddd8 0x2187ddd9 0x2197e1da 0x21a7e5db 0x21b7e9db 0x21c7eddc 0x21d7f1dd 0x21e7f5de 0x21f7f9df 0x2207fde0 0x221801e1 0x222805e2 0x223809e2 0x22480de3 0x225811e4 0x226815e5 0x227819e6 0x22881de7 0x22981de8 0x22a821e9 0x22b825ea 0x22c829ea 0x22d82deb 0x22e831ec 0x22f835ed 0x230839ee 0x23183def 0x232841f0 0x233845f1 0x234849f1 0x23584df2 0x236851f3 0x237855f4 0x238859f5 0x239859f6 0x23a85df7 0x23b861f8 0x23c865f8 0x23d869f9 0x23e86dfa 0x23f871fb 0x240875fc 0x241879fd 0x24287dfe 0x243881ff 0x24488600 0x24588a00 0x24688e01 0x24789202 0x24889603 0x24989604 0x24a89a05 0x24b89e06 0x24c8a207 0x24d8a607 0x24e8aa08 0x24f8ae09 0x2508b20a 0x2518b60b 0x2528ba0c 0x2538be0d 0x2548c20e 0x2558c60f 0x2568ca0f 0x2578ce10 0x2588d211 0x2598d212 0x25a8d613 0x25b8da14 0x25c8de15 0x25d8e216 0x25e8e616 0x25f8ea17 0x2608ee18 0x2618f219 0x2628f61a 0x2638fa1b 0x2648fe1c 0x2659021d 0x2669061d 0x26790a1e 0x26890e1f 0x26991220 0x26a91221 0x26b91622 0x26c91a23 0x26d91e24 0x26e92225 0x26f92625 0x27092a26 0x27192e27 0x27293228 0x27393629 0x27493a2a 0x27593e2b 0x2769422c 0x2779462c 0x27894a2d 0x27994e2e 0x27a94e2f 0x27b95230 0x27c95631 0x27d95a32 0x27e95e33 0x27f96234 0x28096634 0x28196a35 0x28296e36 0x28397237 0x28497638 0x28597a39 0x28697e3a 0x2879823b 0x2889863b 0x28998a3c 0x28a98a3d 0x28b98e3e 0x28c9923f 0x28d99640 0x28e99a41 0x28f99e42 0x2909a243 0x2919a643 0x2929aa44 0x2939ae45 0x2949b246 0x2959b647 0x2969ba48 0x2979be49 0x2989c24a 0x2999c64a 0x29a9ca4b 0x29b9ca4c 0x29c9ce4d 0x29d9d24e 0x29e9d64f 0x29f9da50 0x2a09de51 0x2a19e251 0x2a29e652 0x2a39ea53 0x2a49ee54 0x2a59f255 0x2a69f656 0x2a79fa57 0x2a89fe58 0x2aaa0259 0x2aaa0659 0x2aba065a 0x2aca0a5b 0x2ada0e5c 0x2aea125d 0x2afa165e 0x2b0a1a5f 0x2b1a1e60 0x2b2a2260 0x2b3a2661 0x2b4a2a62 0x2b5a2e63 0x2b6a3264 0x2b7a3665 0x2b8a3a66 0x2b9a3e67 0x2baa4268 0x2bba4268 0x2bca4669 0x2bda4a6a 0x2bea4e6b 0x2bfa526c 0x2c0a566d 0x2c1a5a6e 0x2c2a5e6f 0x2c3a626f 0x2c4a6670 0x2c5a6a71 0x2c6a6e72 0x2c7a7273 0x2c8a7674 0x2c9a7a75 0x2caa7e76 0x2cba7e77 0x2cca8277 0x2cda8678 0x2cea8a79 0x2cfa8e7a 0x2d0a927b 0x2d1a967c 0x2d2a9a7d 0x2d3a9e7e 0x2d4aa27e 0x2d5aa67f 0x2d6aaa80 0x2d7aae81 0x2d8ab282 0x2d9ab683 0x2daaba84 0x2dbabe85 0x2dcabe85 0x2ddac286 0x2deac687 0x2dfaca88 0x2e0ace89 0x2e1ad28a 0x2e2ad68b 0x2e3ada8c 0x2e4ade8d 0x2e5ae28d 0x2e6ae68e 0x2e7aea8f 0x2e8aee90 0x2e9af291 0x2eaaf692 0x2ebafa93 0x2ecafa94 0x2edafe94 0x2eeb0295 0x2efb0696 0x2f0b0a97 0x2f1b0e98 0x2f2b1299 0x2f3b169a 0x2f4b1a9b 0x2f5b1e9c 0x2f6b229c 0x2f7b269d 0x2f8b2a9e 0x2f9b2e9f 0x2fab32a0 0x2fbb36a1 0x2fcb36a2 0x2fdb3aa3 0x2feb3ea3 0x2ffb42a4 0x300b46a5 0x301b4aa6 0x302b4ea7 0x303b52a8 0x304b56a9 0x305b5aaa 0x306b5eab 0x307b62ab 0x308b66ac 0x309b6aad 0x30ab6eae 0x30bb72af 0x30cb72b0 0x30db76b1 0x30eb7ab2 0x30fb7eb2 0x310b82b3 0x311b86b4 0x312b8ab5 0x313b8eb6 0x314b92b7 0x315b96b8 0x316b9ab9 0x317b9eb9 0x318ba2ba 0x319ba6bb 0x31abaabc 0x31bbaebd 0x31cbb2be 0x31dbb2bf 0x31ebb6c0 0x31fbbac1 0x320bbec1 0x321bc2c2 0x322bc6c3 0x323bcac4 0x324bcec5 0x325bd2c6 0x326bd6c7 0x327bdac8 0x328bdec8 0x329be2c9 0x32abe6ca 0x32bbeacb 0x32cbeecc 0x32dbeecd 0x32ebf2ce 0x32fbf6cf 0x330bfad0 0x331bfed0 0x332c02d1 0x333c06d2 0x334c0ad3 0x335c0ed4 0x336c12d5 0x337c16d6 0x338c1ad7 0x339c1ed7 0x33ac22d8 0x33bc26d9 0x33cc2ada 0x33dc2adb 0x33ec2edc 0x33fc32dd 0x340c36de 0x341c3adf 0x342c3edf 0x343c42e0 0x344c46e1 0x345c4ae2 0x346c4ee3 0x347c52e4 0x348c56e5 0x349c5ae6 0x34ac5ee6 0x34bc62e7 0x34cc66e8 0x34dc6ae9 0x34ec6aea 0x34fc6eeb 0x350c72ec 0x351c76ed 0x352c7aed 0x353c7eee 0x354c82ef 0x355c86f0 0x356c8af1 0x357c8ef2 0x358c92f3 0x359c96f4 0x35ac9af5 0x35bc9ef5 0x35cca2f6 0x35dca6f7 0x35eca6f8 0x35fcaaf9 0x360caefa 0x361cb2fb 0x362cb6fc 0x363cbafc 0x364cbefd 0x365cc2fe 0x366cc6ff 0x367ccb00 0x368ccf01 0x369cd302 0x36acd703 0x36bcdb04 0x36ccdf04 0x36dce305 0x36ece306 0x36fce707 0x370ceb08 0x371cef09 0x372cf30a 0x373cf70b 0x374cfb0b 0x375cff0c 0x376d030d 0x377d070e 0x378d0b0f 0x379d0f10 0x37ad1311 0x37bd1712 0x37cd1b12 0x37dd1f13 0x37ed1f14 0x37fd2315 0x380d2716 0x381d2b17 0x382d2f18 0x383d3319 0x384d371a 0x385d3b1a 0x386d3f1b 0x387d431c 0x388d471d 0x389d4b1e 0x38ad4f1f 0x38bd5320 0x38cd5721 0x38dd5b21 0x38ed5f22 0x38fd5f23 0x390d6324 0x391d6725 0x392d6b26 0x393d6f27 0x394d7328 0x395d7729 0x396d7b29 0x397d7f2a 0x398d832b 0x399d872c 0x39ad8b2d 0x39bd8f2e 0x39cd932f 0x39dd9730 0x39ed9b30 0x39fd9b31 0x3a0d9f32 0x3a1da333 0x3a2da734 0x3a3dab35 0x3a4daf36 0x3a5db337 0x3a6db738 0x3a7dbb38 0x3a8dbf39 0x3a9dc33a 0x3aadc73b 0x3abdcb3c 0x3acdcf3d 0x3addd33e 0x3aedd73f 0x3afdd73f 0x3b0ddb40 0x3b1ddf41 0x3b2de342 0x3b3de743 0x3b4deb44 0x3b5def45 0x3b6df346 0x3b7df746 0x3b8dfb47 0x3b9dff48 0x3bae0349 0x3bbe074a 0x3bce0b4b 0x3bde0f4c 0x3bee134d 0x3bfe134e 0x3c0e174e 0x3c1e1b4f 0x3c2e1f50 0x3c3e2351 0x3c4e2752 0x3c5e2b53 0x3c6e2f54 0x3c7e3355 0x3c8e3755 0x3c9e3b56 0x3cae3f57 0x3cbe4358 0x3cce4759 0x3cde4b5a 0x3cee4f5b 0x3cfe535c 0x3d0e535d 0x3d1e575d 0x3d2e5b5e 0x3d3e5f5f 0x3d4e6360 0x3d5e6761 0x3d6e6b62 0x3d7e6f63 0x3d8e7364 0x3d9e7764 0x3dae7b65 0x3dbe7f66 0x3dce8367 0x3dde8768 0x3dee8b69 0x3dfe8f6a 0x3e0e8f6b 0x3e1e936c 0x3e2e976c 0x3e3e9b6d 0x3e4e9f6e 0x3e5ea36f 0x3e6ea770 0x3e7eab71 0x3e8eaf72 0x3e9eb373 0x3eaeb773 0x3ebebb74 0x3ecebf75 0x3edec376 0x3eeec777 0x3efecb78 0x3f0ecb79 0x3f1ecf7a 0x3f2ed37a 0x3f3ed77b 0x3f4edb7c 0x3f5edf7d 0x3f6ee37e 0x3f7ee77f 0x3f8eeb80 0x3f9eef81 0x3faef382 0x3fbef782 0x3fcefb83 0x3fdeff84 0x3fff0385 >;
cabc-lut = <
/*gamma = 2.0*/0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x000000000x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x000000000x00000001 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 0x00000001 0x000000020x00000002 0x00000002 0x00000002 0x00000002 0x00000003 0x00000003 0x00000003 0x000000030x00000004 0x00000004 0x00000004 0x00000004 0x00000005 0x00000005 0x00000005 0x000000050x00000006 0x00000006 0x00000006 0x00000007 0x00000007 0x00000007 0x00000008 0x000000080x00000009 0x00000009 0x00000009 0x0000000a 0x0000000a 0x0000000b 0x0000000b 0x0000000b0x0000000c 0x0000000c 0x0000000d 0x0000000d 0x0000000e 0x0000000e 0x0000000f 0x0000000f0x00000010 0x00000010 0x00000011 0x00000011 0x00000012 0x00000012 0x00000013 0x000000130x00000014 0x00000014 0x00000015 0x00000016 0x00000016 0x00000017 0x00000017 0x000000180x00000019 0x00000019 0x0000001a 0x0000001b 0x0000001b 0x0000001c 0x0000001d 0x0000001d0x0000001e 0x0000001f 0x0000001f 0x00000020 0x00000021 0x00000021 0x00000022 0x000000230x00000024 0x00000024 0x00000025 0x00000026 0x00000027 0x00000028 0x00000028 0x000000290x0000002a 0x0000002b 0x0000002c 0x0000002c 0x0000002d 0x0000002e 0x0000002f 0x000000300x00000031 0x00000032 0x00000032 0x00000033 0x00000034 0x00000035 0x00000036 0x000000370x00000038 0x00000039 0x0000003a 0x0000003b 0x0000003c 0x0000003d 0x0000003e 0x0000003f0x00000040 0x00000041 0x00000042 0x00000043 0x00000044 0x00000045 0x00000046 0x000000470x00000048 0x00000049 0x0000004a 0x0000004b 0x0000004c 0x0000004d 0x0000004f 0x000000500x00000051 0x00000052 0x00000053 0x00000054 0x00000055 0x00000057 0x00000058 0x000000590x0000005a 0x0000005b 0x0000005d 0x0000005e 0x0000005f 0x00000060 0x00000061 0x000000630x00000064 0x00000065 0x00000066 0x00000068 0x00000069 0x0000006a 0x0000006c 0x0000006d0x0000006e 0x00000070 0x00000071 0x00000072 0x00000074 0x00000075 0x00000076 0x000000780x00000079 0x0000007a 0x0000007c 0x0000007d 0x0000007f 0x00000080 0x00000081 0x000000830x00000084 0x00000086 0x00000087 0x00000089 0x0000008a 0x0000008c 0x0000008d 0x0000008f0x00000090 0x00000092 0x00000093 0x00000095 0x00000096 0x00000098 0x00000099 0x0000009b0x0000009c 0x0000009e 0x000000a0 0x000000a1 0x000000a3 0x000000a4 0x000000a6 0x000000a80x000000a9 0x000000ab 0x000000ac 0x000000ae 0x000000b0 0x000000b1 0x000000b3 0x000000b50x000000b6 0x000000b8 0x000000ba 0x000000bc 0x000000bd 0x000000bf 0x000000c1 0x000000c30x000000c4 0x000000c6 0x000000c8 0x000000ca 0x000000cb 0x000000cd 0x000000cf 0x000000d10x000000d3 0x000000d4 0x000000d6 0x000000d8 0x000000da 0x000000dc 0x000000de 0x000000e00x000000e1 0x000000e3 0x000000e5 0x000000e7 0x000000e9 0x000000eb 0x000000ed 0x000000ef0x000000f1 0x000000f3 0x000000f5 0x000000f7 0x000000f9 0x000000fb 0x000000fd 0x000000ff>;