Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

Picture clean-up (Anime4K Restore) and auto block smoothing

Rafael Abud Ferreira0c18b4490d6a
diff --git a/ROADMAP.md b/ROADMAP.md
index c1de6da..b60e9a2 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -4,7 +4,7 @@ Where PSBox Cloud Gaming goes next, most valuable first. Each item says why it
matters, what "done" looks like, and how it is measured on the console.
Status: **next** (being worked on), **planned**, **later**, **dropped**.
-Last update: 2026-10-08, after v0.5.0 (items 1-3 and more on the way to v0.6.0).
+Last update: 2026-10-08, after v0.7.0.
## Now
@@ -77,13 +77,19 @@ the Xbox ends or turns off the stream.
offered once delivered. The own Xbox is always asked for its top tier:
~15.7 Mbps instead of ~9.5.
+### Picture clean-up — v0.8.0
+- **Anime4K Restore (S)** before the upscale, for FSR and Anime4K alike
+ ("+ clean-up" in the game menu, the default with FSR): on Fortnite at
+ ~5 Mbps, edges 50% stronger with the same noise in flat areas, and no
+ measurable latency (on screen 26-29 ms either way).
+- **Auto block smoothing**: high below ~5 Mbps, low up to ~10, off above,
+ with 1 Mbps margins and 3 s before a change (the default).
+
## Next
| Item | Why | Size |
| --- | --- | --- |
-| Anime4K Restore + Upscale | Cleans compression noise before Anime4K sharpens it | small |
| TLS errors (-110) | Seen at start (title list, prices) and on images, here and in #10 | small |
-| Adaptive block smoothing | Stronger below ~4 Mbps, off above ~10 Mbps, automatically | small |
| Voice chat (microphone) | xCloud has a chat channel; needs PS5 audio capture | large |
| USB keyboard and mouse | Some xCloud games accept them | medium |
| Split `ps5_main.cpp` | 1,100+ lines mixing the stream screen, autoplay and settings | medium |
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index ee1dc15..a9cfbca 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -80,6 +80,6 @@ Copyright (c) 2021 Advanced Micro Devices, Inc.: see `extern/fsr1/LICENSE.txt`.
## Anime4K
`extern/anime4k/` (bloc97, MIT, see `extern/anime4k/LICENSE`): the
-Upscale_CNN_x2 networks; `tools/gen-anime4k.py` turns their passes, weights
-unchanged, into `src/display/shaders/a4k_*.comp`. Brought to our attention by
+Upscale_CNN_x2 networks and Restore_CNN_S (v4.0.1); `tools/gen-anime4k.py`
+turns their passes, weights unchanged, into `src/display/shaders/a4k_*.comp`. Brought to our attention by
sainsaji's EVO Player for PS5, which runs them in its own pipeline.
diff --git a/extern/anime4k/Anime4K_Restore_CNN_S.glsl b/extern/anime4k/Anime4K_Restore_CNN_S.glsl
new file mode 100644
index 0000000..209bfbb
--- /dev/null
+++ b/extern/anime4k/Anime4K_Restore_CNN_S.glsl
@@ -0,0 +1,137 @@
+// MIT License
+
+// Copyright (c) 2019-2021 bloc97
+// All rights reserved.
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+
+//!DESC Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x3
+//!HOOK MAIN
+//!BIND MAIN
+//!SAVE conv2d_tf
+//!WIDTH MAIN.w
+//!HEIGHT MAIN.h
+//!COMPONENTS 4
+#define go_0(x_off, y_off) (MAIN_texOff(vec2(x_off, y_off)))
+vec4 hook() {
+ vec4 result = mat4(-0.19288683, -0.21397883, 0.111997396, -0.04791413, -0.26682988, -0.06144587, -0.03601853, -0.16693151, 0.038494494, -0.16651472, 0.147657, -0.083003886, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(-0.14286195, 0.08746566, -0.40107322, 0.12390977, -0.33392772, -0.18703035, -0.21326795, 0.04780781, -0.15155545, -0.0010025925, -0.1554875, -0.10676251, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(0.28095165, 0.022872915, -0.21342312, -0.29982176, 0.025937587, -0.055012174, -0.33779636, 0.0015666655, 0.076416336, 0.06656033, -0.1557806, 0.1078894, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(-0.31584853, 0.07527119, 0.30713862, -0.34014285, -0.50103146, -0.07217874, 0.512807, -0.09597398, -0.32097813, -0.051580857, -0.022466356, 0.01148551, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.026032459, -0.04193211, 0.37703893, -0.031916667, -0.27421117, 1.0906446, -0.049654085, -0.19814016, 0.07819544, 0.06003738, 0.1405805, -0.0064135445, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.041450135, 0.11319654, -0.23237701, 0.08443178, 0.53344345, 0.30857387, -0.057264958, -0.1575803, 0.2325609, -0.027797326, -0.04544767, -0.18720597, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0);
+ result += mat4(0.2531829, -0.074966915, -0.27800754, -0.3146097, 0.20126024, -0.5380133, -0.15082566, -0.19021043, 0.29951036, 0.17123336, -0.01681872, -0.12574998, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0);
+ result += mat4(0.25203633, 0.19882993, 0.14906439, 0.13593598, 0.40712556, 0.084902965, 0.42969635, 0.2961132, -0.057267334, -0.030388135, 8.8084314e-05, 0.0210724, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0);
+ result += mat4(-0.13459359, -0.12199573, 0.12591946, 0.24736497, 0.2033463, -0.09388599, -0.094370656, 0.1071285, -0.18479438, -0.066625565, 0.08279283, 0.20130983, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0);
+ result += vec4(-0.011108127, -0.07481861, 0.07640154, 0.4964964);
+ return result;
+}
+//!DESC Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_tf
+//!SAVE conv2d_1_tf
+//!WIDTH conv2d_tf.w
+//!HEIGHT conv2d_tf.h
+//!COMPONENTS 4
+#define go_0(x_off, y_off) (max((conv2d_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(-0.056432575, 0.0028165397, -0.026325442, -0.14802271, 0.16885762, -0.062179096, -0.2332292, 0.17513658, -0.08011296, 0.02947316, 0.014771492, -0.17946689, 0.026012989, -0.09823925, 0.036625937, -0.06924322) * go_0(-1.0, -1.0);
+ result += mat4(-0.13571467, 0.09831142, 0.12911566, 0.06305893, -0.07188695, -0.20161287, 0.3858435, -0.21069056, -0.12294444, -0.1404628, -0.022659872, 0.23008968, 0.10969853, 0.17640765, 0.39796907, 0.20413099) * go_0(-1.0, 0.0);
+ result += mat4(-0.0061665224, 0.055102807, -0.0059629944, -0.021429887, 0.061626043, 0.16898955, -0.21215646, 0.16510476, 0.2238265, 0.19429931, 0.09874656, 0.06828208, -0.122404456, -0.00026717107, -0.28203064, -0.29979932) * go_0(-1.0, 1.0);
+ result += mat4(-0.22735378, 0.14538136, 0.11549746, 0.194148, -0.09841722, -0.0661309, 0.348576, -0.017375294, -0.044078812, 0.1298332, 0.04793373, -0.30687734, 0.08353025, 0.083519086, 0.10766399, 0.31796935) * go_0(0.0, -1.0);
+ result += mat4(0.048365135, -0.17566709, -0.33212858, -0.052667376, -0.26443407, -0.010216014, 0.1573303, 0.05725314, 0.08140953, -0.09664591, 0.076109104, -0.026773714, 0.07732627, 0.10188082, -0.28266954, -0.16230233) * go_0(0.0, 0.0);
+ result += mat4(0.29931107, 0.117944, -0.10414009, 0.12795551, 0.12576093, 0.17082554, -0.15803693, 0.13430743, -0.025801308, -0.10797019, 0.0721032, 0.2825884, -0.11025257, 0.12798019, 0.081827976, -0.050441865) * go_0(0.0, 1.0);
+ result += mat4(-0.11827391, 0.08306765, -0.3430314, 0.07898041, -0.023839617, -0.019507334, 0.23176382, -0.40992323, 0.09411734, 0.38415068, -0.25845516, -0.29984522, 0.1470966, -0.0684779, -0.07071314, -0.026773235) * go_0(1.0, -1.0);
+ result += mat4(0.19091596, 0.082110435, -0.5266589, -0.1744098, -0.015838385, -0.046316292, 0.023171103, -0.03731331, 0.2642396, 0.31824252, -0.041754793, -0.09525519, -0.14696182, 0.052168854, 0.039857205, -0.027555354) * go_0(1.0, 0.0);
+ result += mat4(0.15207373, 0.09845733, 0.0142631065, 0.096375965, 0.06089903, 0.17902578, -0.42391995, 0.22475442, 0.016356342, -0.06277531, -0.12173141, -0.18635495, -0.0013459618, 0.15725887, 0.019310836, 0.20293565) * go_0(1.0, 1.0);
+ result += mat4(-0.18395247, 0.30672902, 0.09034339, 0.1821889, -0.0419004, -0.2169228, -0.14052129, 0.11006559, 0.1709272, 0.51062274, 0.13758625, -0.2242552, -0.030382963, 0.3357568, -0.26491287, 0.02501938) * go_1(-1.0, -1.0);
+ result += mat4(0.040511727, 0.12523083, -0.27318433, 0.08388512, 0.25354835, 0.3404216, -0.2632471, -0.17784123, 0.2732347, 0.4468553, 0.084667034, -0.1856242, 0.034099877, -0.00954992, -0.32751867, -0.062207516) * go_1(-1.0, 0.0);
+ result += mat4(0.17564747, 0.11645554, -0.16362113, 0.105654195, -0.2762563, -0.1413764, 0.23264363, -0.14000498, 0.095402054, 0.0715738, -0.19346157, -0.028285999, 0.009799127, 0.04059529, 0.19688335, 0.1282381) * go_1(-1.0, 1.0);
+ result += mat4(0.23575781, -0.11446148, -0.20504695, 0.035568226, 0.36890212, -0.85968876, -0.18545328, 0.33796397, -0.30916876, -0.10445518, -0.3046253, 0.33271998, -0.06263589, -0.2160114, -0.16383372, -0.31173357) * go_1(0.0, -1.0);
+ result += mat4(0.20469664, 0.4039374, -0.070057206, 0.030353077, 0.39843914, -0.15490077, -0.24476516, 0.38238233, -0.21809858, 0.23496576, -0.051794037, 0.033664484, -0.14411364, -0.2515329, 0.124655396, -0.05818785) * go_1(0.0, 0.0);
+ result += mat4(-0.09065731, -0.16787091, 0.013269188, 0.23687351, -0.41504318, -0.048163068, 0.31760025, -0.33648986, 0.29752317, 0.2926866, 0.14408836, -0.33382463, -0.15873958, -0.121961035, 0.11797893, 0.09000567) * go_1(0.0, 1.0);
+ result += mat4(0.13356976, 0.013763947, 0.012169505, -0.109594524, 0.03417223, 0.7031121, 0.65146804, 0.5250268, -0.50132495, -0.419648, 0.2940041, 0.83051753, -0.17595838, 0.1633008, -0.018587278, 0.079596795) * go_1(1.0, -1.0);
+ result += mat4(0.07570128, -0.1581438, 0.03904949, 0.14890033, -0.054611947, 0.17469402, -0.44252598, 0.036181703, -0.4981031, -0.37507218, -0.18466389, 0.2645845, 0.25189674, -0.025896115, 0.034307647, -0.020462232) * go_1(1.0, 0.0);
+ result += mat4(-0.11645865, 0.02296537, 0.040909223, 0.015069485, 0.062284566, -0.22526766, 0.09241534, -0.32623053, 0.18208642, 0.3954284, 0.2884468, -0.25137675, -0.037232924, -0.10185309, -0.17956531, 0.018966453) * go_1(1.0, 1.0);
+ result += vec4(-0.16371979, -0.024620198, -0.035754893, 0.04176776);
+ return result;
+}
+//!DESC Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_1_tf
+//!SAVE conv2d_2_tf
+//!WIDTH conv2d_1_tf.w
+//!HEIGHT conv2d_1_tf.h
+//!COMPONENTS 4
+#define go_0(x_off, y_off) (max((conv2d_1_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_1_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(0.01921286, -0.26684764, -0.12663573, 0.31641877, -0.25313398, 0.12264074, 0.58750325, -0.14084283, 0.5837018, -0.042300556, -0.20435576, -0.009954825, 0.060783498, 0.05540401, 0.2205112, -0.06578902) * go_0(-1.0, -1.0);
+ result += mat4(-0.21930243, -0.03774968, 0.22615197, 0.18338196, 0.011201461, -0.271034, 0.00573116, -0.12248194, 0.47990513, 0.2982416, -0.1087603, -0.050099242, -0.07620939, -0.07148229, 0.03691984, -0.16796488) * go_0(-1.0, 0.0);
+ result += mat4(-0.14962853, -0.053769328, 0.02387081, 0.22002189, 0.052237745, -0.26160842, -0.08603077, 0.012542448, 0.08119985, 0.075785555, -0.33437458, -0.43373227, -0.13206963, -0.08759176, -0.03288923, -0.09799959) * go_0(-1.0, 1.0);
+ result += mat4(-0.1305593, -0.5974288, 0.06058367, 0.08406488, 0.013692483, 0.06646377, 0.16469325, 0.08990975, 0.42217395, -0.11289523, -0.06165009, 0.48556912, -0.15702641, -0.19922857, -0.0035429662, -0.0022089656) * go_0(0.0, -1.0);
+ result += mat4(-0.1964807, 0.038099788, 0.21587034, 0.039734077, -0.07063389, 0.11604167, -0.24558097, -0.08900199, -0.7684516, -0.1037487, -0.09380674, 0.33144563, -0.16653742, 0.0028585843, -0.33774406, -0.0528696) * go_0(0.0, 0.0);
+ result += mat4(-0.27298656, -0.05665099, 0.09661685, 0.19780266, 0.1025106, -0.22055034, -0.21218458, -0.040628925, 0.0095010325, 0.13118382, -0.42582452, -0.22197723, 0.21006055, -0.06189587, -0.15285942, -0.09526762) * go_0(0.0, 1.0);
+ result += mat4(-0.14494462, -0.046788953, 0.065877035, 0.09911713, 0.35096622, 0.16682479, 0.028363144, 0.36037162, 0.29413632, 0.28212717, -0.025364442, -0.3406269, 0.047262143, -0.11892685, -0.008032766, 0.29743317) * go_0(1.0, -1.0);
+ result += mat4(-0.15191558, -0.36980554, 0.14555687, 0.0043930537, -0.012661432, 0.15737776, -0.115250416, 0.10324491, 0.24491951, -0.15575431, -0.27802598, 0.21959937, 0.18063772, 0.4455559, -0.09693302, 0.33382267) * go_0(1.0, 0.0);
+ result += mat4(0.2717801, 0.13452889, 0.14105384, 0.16324317, -0.40111846, 0.1154301, -0.0076733204, -0.09697362, 0.44306824, -0.02831414, -0.2153124, -0.12075326, 0.060776163, 0.30347148, -0.0036976219, -0.12070682) * go_0(1.0, 1.0);
+ result += mat4(-0.39780128, -0.29875937, -0.12952097, 0.080333896, 0.07520163, 0.021689568, -0.23121156, -0.038140096, -0.1593877, 0.017156163, -0.06038025, 0.009244022, -0.13917233, 0.30957314, 0.243109, -0.104947075) * go_1(-1.0, -1.0);
+ result += mat4(-0.07965157, 0.06776501, -0.13288979, 0.005851189, -0.08768168, -0.03689969, 0.12034646, 0.22441491, 0.14453568, -0.17648841, -0.3378289, -0.018329712, 0.11722939, -0.34161824, 0.08424494, -0.01400687) * go_1(-1.0, 0.0);
+ result += mat4(0.08153887, 0.07222914, -0.14663404, -0.038526025, -0.07385973, 0.18440577, 0.35890242, 0.17084727, 0.26345527, 0.15280858, -0.007446105, -0.024403179, -0.30336383, -0.22978698, 0.11612946, -0.23614909) * go_1(-1.0, 1.0);
+ result += mat4(-0.07447396, 0.09023449, -0.13798, -0.086943336, -0.30787337, 0.15087669, 0.14418626, -0.03371195, 0.048989657, -0.13075387, -0.13458036, -0.059836224, 0.06495196, 0.269715, 0.3674355, 0.38956037) * go_1(0.0, -1.0);
+ result += mat4(0.34981915, -0.048779126, 0.31717536, 0.38080826, -0.20149232, -0.82969636, -0.10167862, 0.6382858, 0.25976858, 0.4370118, -0.04724865, -0.10014156, 0.19380626, -0.080370255, 0.09578106, -0.035166856) * go_1(0.0, 0.0);
+ result += mat4(-0.026443917, 0.4132611, 0.01822534, 0.12742202, -0.26652107, -0.2996705, 0.30905882, 0.07989903, 0.38249823, 0.21486135, 0.025314959, -0.14717339, -0.13344015, -0.32088286, -0.2833883, -0.30973712) * go_1(0.0, 1.0);
+ result += mat4(0.021517841, 0.006556378, 0.2025686, -0.12044382, -0.38583103, -0.0027515136, -0.06556736, -0.097090125, 0.04676486, -0.11954886, -0.051612873, 0.07831412, -0.18823163, -0.16542958, 0.04245155, 0.6437998) * go_1(1.0, -1.0);
+ result += mat4(-0.39475346, -0.2936861, 0.26768062, -0.28151843, 0.21935691, 0.2101108, -0.15455097, 0.19548604, 0.09188909, -0.020147726, 0.103328265, -0.12574542, -0.34167948, 0.07523185, -0.17669058, 0.62446547) * go_1(1.0, 0.0);
+ result += mat4(-0.37661025, -0.29630858, 0.05451026, 0.1611643, 0.14079669, -0.2170294, -0.038716137, 0.13514164, -0.21235192, -0.07860726, -0.005749412, 0.025625167, -0.13297133, 0.33012658, -0.27434957, -0.18416783) * go_1(1.0, 1.0);
+ result += vec4(-0.0036821906, -0.050239526, -0.01355402, 0.00048220603);
+ return result;
+}
+//!DESC Anime4K-v4.0-Restore-CNN-(S)-Conv-3x3x3x8
+//!HOOK MAIN
+//!BIND MAIN
+//!BIND conv2d_2_tf
+//!SAVE MAIN
+//!WIDTH conv2d_2_tf.w
+//!HEIGHT conv2d_2_tf.h
+#define go_0(x_off, y_off) (max((conv2d_2_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_2_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(0.15873, 0.17989138, 0.14648493, 0.0, -0.017379675, -0.017363746, -0.019855022, 0.0, 0.009670625, 0.0070157526, 0.0075994316, 0.0, 0.025388412, 0.027231036, 0.024052646, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(0.048195973, 0.041760173, 0.037366055, 0.0, -0.115950756, -0.12887983, -0.12535639, 0.0, 0.032125086, 0.03397254, 0.032950625, 0.0, 0.01223746, 0.020822672, 0.0161561, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(0.0890567, 0.094453335, 0.09014035, 0.0, 0.016081346, 0.017434116, 0.020783134, 0.0, -0.011775135, -0.010094134, -0.018522855, 0.0, 0.072103254, 0.07940666, 0.065876864, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(-0.04841196, -0.06963968, -0.056574684, 0.0, 0.10912542, 0.11813441, 0.10643838, 0.0, -0.013013885, -0.01562045, -0.013802797, 0.0, 0.037505716, 0.04352026, 0.04645123, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.3472869, -0.36243078, -0.33530185, 0.0, 0.23654196, 0.2305048, 0.22150646, 0.0, -0.045226905, -0.041799217, -0.042511635, 0.0, -0.10267792, -0.1123385, -0.10845448, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.011987401, 0.012285043, 0.007813165, 0.0, -0.15911353, -0.17523928, -0.1535267, 0.0, 0.15675929, 0.16531634, 0.15948962, 0.0, -0.09240023, -0.09513292, -0.084187366, 0.0) * go_0(0.0, 1.0);
+ result += mat4(0.069052905, 0.07278333, 0.0756627, 0.0, -0.012180326, -0.018794727, -0.031050753, 0.0, -0.044663202, -0.04362803, -0.038904265, 0.0, -0.008540197, -0.011201734, -0.01556625, 0.0) * go_0(1.0, -1.0);
+ result += mat4(-0.08261173, -0.09042543, -0.07589266, 0.0, 0.043515377, 0.045066774, 0.04037769, 0.0, -0.06262993, -0.07469342, -0.058593787, 0.0, 0.026696987, 0.028740842, 0.037405368, 0.0) * go_0(1.0, 0.0);
+ result += mat4(0.07975598, 0.09597654, 0.08997132, 0.0, -0.07844719, -0.07880916, -0.06835411, 0.0, 0.05668995, 0.050163813, 0.053357534, 0.0, -0.020040333, -0.019867316, -0.01907621, 0.0) * go_0(1.0, 1.0);
+ result += mat4(-0.017078733, -0.017393313, -0.008266595, 0.0, -0.0033478448, -0.0027439648, -0.0042334674, 0.0, -0.06354017, -0.062058125, -0.04652064, 0.0, -0.010787706, -0.0062706997, -0.007573461, 0.0) * go_1(-1.0, -1.0);
+ result += mat4(-0.019895451, -0.016341688, -0.008712399, 0.0, 0.026231976, 0.023955572, 0.0216376, 0.0, -0.061950512, -0.05481285, -0.05261985, 0.0, -0.018804235, -0.016235247, -0.0131616965, 0.0) * go_1(-1.0, 0.0);
+ result += mat4(-0.055628926, -0.063315354, -0.057192408, 0.0, -0.0256364, -0.028660972, -0.02937357, 0.0, -0.017604912, -0.020851422, -0.016070362, 0.0, -0.0870202, -0.0832279, -0.07525406, 0.0) * go_1(-1.0, 1.0);
+ result += mat4(0.062738225, 0.07106593, 0.061644047, 0.0, -0.06068257, -0.06983662, -0.066070385, 0.0, 0.024919355, 0.03227179, 0.028569462, 0.0, -0.07866227, -0.098967604, -0.092128105, 0.0) * go_1(0.0, -1.0);
+ result += mat4(0.040397774, 0.047241107, 0.03962998, 0.0, -0.09112752, -0.10057507, -0.09301817, 0.0, 0.10833967, 0.101835825, 0.10027467, 0.0, 0.27189335, 0.27433604, 0.26781923, 0.0) * go_1(0.0, 0.0);
+ result += mat4(-0.044211388, -0.042373534, -0.03658007, 0.0, 0.113148406, 0.12423258, 0.107804194, 0.0, -0.17081551, -0.18562958, -0.17475435, 0.0, 0.09636739, 0.10763415, 0.093332425, 0.0) * go_1(0.0, 1.0);
+ result += mat4(-0.03798545, -0.047811143, -0.050768293, 0.0, 0.018775463, 0.026812987, 0.03452908, 0.0, 0.0055677597, 0.0039081173, -0.0017878668, 0.0, -0.10728597, -0.12618187, -0.109045394, 0.0) * go_1(1.0, -1.0);
+ result += mat4(0.06359783, 0.064184755, 0.04934199, 0.0, -0.009819327, -0.006616115, -0.007431496, 0.0, 0.025055679, 0.024787048, 0.017360551, 0.0, -0.047140837, -0.061695747, -0.06440822, 0.0) * go_1(1.0, 0.0);
+ result += mat4(0.060199022, 0.06482763, 0.059514645, 0.0, 0.026998974, 0.028776823, 0.024897143, 0.0, 0.17968474, 0.19337215, 0.16760105, 0.0, 0.0075838566, 0.010503482, 0.011993149, 0.0) * go_1(1.0, 1.0);
+ result += vec4(-0.0052927984, -0.0060193934, -0.0048643993, 0.0);
+ return result + MAIN_tex(MAIN_pos);
+}
diff --git a/ps5/release/README.txt b/ps5/release/README.txt
index bc020c5..3b48201 100644
--- a/ps5/release/README.txt
+++ b/ps5/release/README.txt
@@ -63,11 +63,12 @@ In game: the DualSense acts as an Xbox controller
Game menu
---------
OPTIONS + TOUCHPAD during a game: the Xbox button (opens the Xbox
-guide), the statistics line over the game, upscaling (FSR, or AI:
-Anime4K, crisper outlines and text but it also sharpens compression
-noise), sharpness (off / low / medium / high: sharpens the picture's
-edges), block smoothing (off / low / high: smooths the squares
-compression leaves in dark, flat areas; low keeps textures best),
+guide), the statistics line over the game, upscaling (FSR or AI, each
+with or without "clean-up": Anime4K Restore takes the blur and noise of
+compression off the picture first; "FSR + clean-up" is the default),
+sharpness (off / low / medium / high: sharpens the picture's edges),
+block smoothing (off / low / high, or auto: smooths the squares
+compression leaves in dark, flat areas, stronger as the bitrate falls),
stream resolution (720p / 1080p, and 1440p where a stream delivered
it: the app measures it),
and leave the game. Circle closes it (and asks for a clean picture).
diff --git a/src/app/ps5_main.cpp b/src/app/ps5_main.cpp
index f8887f8..1891358 100644
--- a/src/app/ps5_main.cpp
+++ b/src/app/ps5_main.cpp
@@ -150,7 +150,7 @@ void updateTextInput(app::StreamPlayer* player) {
// buy far down the list instead of playing, saves detail.ppm), imetest (opens
// the system keyboard on the home screen), menutest (in the game: the menu,
// 720p, back to 1080p), res=720p|1080p|1080p-hq|1440p, sharp=0..3 and
-// deband=0..2 and ai (Anime4K) instead of the settings.
+// deband=0..3 and ai (Anime4K) instead of the settings.
// The title "BENCH" decodes <dataDir>/sample.h264 instead.
std::string g_autoplayTitle;
@@ -168,13 +168,31 @@ bool g_autoplayLibraryTest = false; // open "Your games", save it at 4 s and 25
bool g_autoplayVkTest = false; // the GPU presenting instead of the CPU display
bool g_autoplayCpuDisplay = false;
int g_autoplayUpscaler = -1; // ai: Anime4K instead of the setting
+bool g_autoplayRestore = false; // restore: Anime4K Restore before the upscale
+
+// The game menu's upscaling: 0 FSR, 1 Anime4K, 2 FSR + clean-up, 3 Anime4K +
+// clean-up (Anime4K Restore before the upscale).
+void applyUpscaler(int mode) {
+ display::setUpscaler(mode & 1);
+ display::setRestore(mode >= 2);
+}
bool g_autoplayDropTest = false; // droptest: the connection dropped at 20 s
bool g_autoplayHwDecode = false; // hwdecode: the hardware decoder alongside, logged // the CPU display even where the GPU comes up
bool g_autoplayVibeTest = false; // each motor alone, with a notification
bool g_autoplayImeTest = false; // open the system keyboard on the home screen
bool g_autoplayMenuTest = false; // in the game: open the menu, switch to 720p
int g_decodeThreads = 1;
-int g_autoplayDeband = -1; // deband=0..2: instead of the setting
+int g_autoplayDeband = -1; // deband=0..3: instead of the setting
+
+// Block smoothing "auto": the level for a bitrate (Mbps) coming from `now`,
+// stronger as it falls (high below ~5 Mbps, off above ~10). A 1 Mbps margin
+// each way keeps a bitrate near a limit from flipping it; -1 = no measure.
+int debandForMbps(double mbps, int now) {
+ if (mbps <= 0) return -1;
+ if (now == 2) return mbps >= 6 ? (mbps >= 11 ? 0 : 1) : 2;
+ if (now == 1) return mbps < 4 ? 2 : mbps >= 11 ? 0 : 1;
+ return mbps < 4 ? 2 : mbps < 9 ? 1 : 0;
+}
int g_autoplaySharpness = -1; // sharp=0..3: instead of the setting
std::string g_autoplayResolution; // res=720p|1080p|1440p: instead of the setting
std::atomic<bool> g_syntheticA{false};
@@ -215,6 +233,7 @@ void loadAutoplay() {
if (opt == "hwdecode") g_autoplayHwDecode = true;
if (opt == "droptest") g_autoplayDropTest = true;
if (opt == "ai") g_autoplayUpscaler = 1;
+ if (opt == "restore") g_autoplayRestore = true;
if (opt.rfind("swap=", 0) == 0) display::gpu::setSwapImages(std::atoi(opt.c_str() + 5));
if (opt == "nopace") display::gpu::setPresentWait(false);
if (opt == "detailtest") g_autoplayDetailTest = true;
@@ -1016,7 +1035,11 @@ int main(int argc, char** argv) {
} swipe;
bool swipeMenu = false; // a swipe asked for the game menu
int sharpness = 0; // 0..3, as Settings::sharpness
- int deband = 1; // 0..2, as Settings::deband
+ int deband = 3; // 0..3, as Settings::deband
+ // "Auto": the level in use, and a new one waiting for 3 s of its bitrate.
+ int debandInUse = 1, debandNext = -1, debandStreak = 0, debandSeconds = 0;
+ uint32_t debandSeq = 0;
+ auto applyDeband = [&] { display::setDeband(deband == 3 ? debandInUse : deband); };
int upscaler = 0; // as Settings::upscaler
// How much CAS each sharpness level mixes in (display::setSharpness).
static constexpr int kSharpAmount[] = {0, 96, 176, 256};
@@ -1167,9 +1190,14 @@ int main(int argc, char** argv) {
sharpness = g_autoplaySharpness >= 0 ? g_autoplaySharpness : g_settings.sharpness;
display::setSharpness(kSharpAmount[std::clamp(sharpness, 0, 3)]);
deband = g_autoplayDeband >= 0 ? g_autoplayDeband : g_settings.deband;
- display::setDeband(deband);
+ debandInUse = 1;
+ debandNext = -1;
+ debandStreak = 0;
+ debandSeconds = 0;
+ applyDeband();
upscaler = g_autoplayUpscaler >= 0 ? g_autoplayUpscaler : g_settings.upscaler;
- display::setUpscaler(upscaler);
+ if (g_autoplayRestore) upscaler = (upscaler & 1) | 2;
+ applyUpscaler(upscaler);
overlaySeq = 0;
}
if (g_player) {
@@ -1184,6 +1212,7 @@ int main(int argc, char** argv) {
std::lock_guard<std::mutex> settingsLock(g_settingsMutex);
allow1440 = allow1440Locked();
}
+ menu.setDebandInUse(debandInUse);
menu.open(streamResolution, showStats, sharpness, deband, upscaler, g_playingHome, allow1440);
overlaySeq = 0;
} else if (wasOpen) {
@@ -1214,7 +1243,7 @@ int main(int argc, char** argv) {
}
case ui::MenuAction::Upscaler: {
upscaler = menu.upscaler();
- display::setUpscaler(upscaler);
+ applyUpscaler(upscaler);
std::lock_guard<std::mutex> settingsLock(g_settingsMutex);
g_settings.upscaler = upscaler;
g_settings.save(settingsPath());
@@ -1222,7 +1251,7 @@ int main(int argc, char** argv) {
}
case ui::MenuAction::Deband: {
deband = menu.deband();
- display::setDeband(deband);
+ applyDeband();
std::lock_guard<std::mutex> settingsLock(g_settingsMutex);
g_settings.deband = deband;
g_settings.save(settingsPath());
@@ -1299,6 +1328,30 @@ int main(int argc, char** argv) {
// The overlay: the menu, else the statistics line, redrawn when
// the numbers or the menu change.
uint32_t seq = g_infoSeq;
+ if (deband == 3 && seq != debandSeq) {
+ // Auto block smoothing, once a second: a new level after 3 s.
+ debandSeq = seq;
+ double mbps;
+ {
+ std::lock_guard<std::mutex> infoLock(g_infoMutex);
+ mbps = g_streamInfo.mbps;
+ }
+ // Not in the first 5 s: the bitrate is still climbing.
+ int want = ++debandSeconds <= 5 ? -1 : debandForMbps(mbps, debandInUse);
+ if (want < 0 || want == debandInUse) {
+ debandStreak = 0;
+ } else if (want == debandNext && ++debandStreak >= 3) {
+ debandInUse = want;
+ debandStreak = 0;
+ applyDeband();
+ menu.setDebandInUse(debandInUse);
+ overlaySeq = 0;
+ XC_LOGI("block smoothing auto: %s at %.1f Mbps", want == 2 ? "high" : want == 1 ? "low" : "off", mbps);
+ } else if (want != debandNext) {
+ debandNext = want;
+ debandStreak = 1;
+ }
+ }
if (overlaySeq != seq + 1) {
overlaySeq = seq + 1;
ui::StreamInfo info;
diff --git a/src/app/settings.cpp b/src/app/settings.cpp
index 7c52069..b11fcdb 100644
--- a/src/app/settings.cpp
+++ b/src/app/settings.cpp
@@ -24,8 +24,8 @@ bool Settings::load(const std::string& path) {
librarySort = (*j)["librarySort"].str(librarySort);
streamStats = (*j)["streamStats"].asBool(streamStats);
sharpness = static_cast<int>(std::clamp<int64_t>((*j)["sharpness"].asInt(sharpness), 0, 3));
- deband = static_cast<int>(std::clamp<int64_t>((*j)["deband"].asInt(deband), 0, 2));
- upscaler = static_cast<int>(std::clamp<int64_t>((*j)["upscaler"].asInt(upscaler), 0, 1));
+ deband = static_cast<int>(std::clamp<int64_t>((*j)["deband"].asInt(deband), 0, 3));
+ upscaler = static_cast<int>(std::clamp<int64_t>((*j)["upscaler"].asInt(upscaler), 0, 3));
deadzone = static_cast<int>(std::clamp<int64_t>((*j)["deadzone"].asInt(deadzone), 0, 50));
triggerRumble = (*j)["triggerRumble"].asBool(triggerRumble);
circleConfirms = (*j)["circleConfirms"].asBool(circleConfirms);
diff --git a/src/app/settings.h b/src/app/settings.h
index d4384a2..2413ae5 100644
--- a/src/app/settings.h
+++ b/src/app/settings.h
@@ -23,10 +23,12 @@ struct Settings {
bool streamStats = false;
// Sharpening of the game picture: 0 off, 1..3 low, medium, high.
int sharpness = 0;
- // Smoothing of compression blocks (GPU display): 0 off, 1 low, 2 high.
- int deband = 1;
- // Upscaling to the 4K display (GPU): 0 FSR 1, 1 Anime4K.
- int upscaler = 0;
+ // Smoothing of compression blocks (GPU display): 0 off, 1 low, 2 high,
+ // 3 auto (stronger as the bitrate falls).
+ int deband = 3;
+ // Upscaling to the 4K display (GPU): 0 FSR 1, 1 Anime4K, 2 FSR and 3
+ // Anime4K after Anime4K Restore (the clean-up of compression artefacts).
+ int upscaler = 2;
// Controller: stick dead zone (percent), vibration in the triggers,
// Circle as the confirm button (Xbox A).
int deadzone = 15;
diff --git a/src/display/display.cpp b/src/display/display.cpp
index a389255..a1d775e 100644
--- a/src/display/display.cpp
+++ b/src/display/display.cpp
@@ -501,6 +501,7 @@ void setSharpness(int amount) {
void setDeband(int level) { gpu::setDeband(level); }
void setUpscaler(int mode) { gpu::setUpscaler(mode); }
+void setRestore(bool on) { gpu::setRestore(on); }
uint64_t lastPresentId() { return gpu::ready() ? gpu::lastPresentId() : 0; }
bool lastShown(uint64_t& id, uint64_t& atUs) { return gpu::ready() && gpu::lastShown(id, atUs); }
@@ -534,6 +535,7 @@ void setOverlay(const uint32_t*, int, int, int, int, uint8_t) {}
void setSharpness(int) {}
void setDeband(int) {}
void setUpscaler(int) {}
+void setRestore(bool) {}
uint64_t lastPresentId() { return 0; }
bool lastShown(uint64_t&, uint64_t&) { return false; }
bool readBackRgb(std::vector<uint8_t>&, int&, int&) { return false; }
diff --git a/src/display/display.h b/src/display/display.h
index 5e10239..40a02bd 100644
--- a/src/display/display.h
+++ b/src/display/display.h
@@ -42,6 +42,8 @@ void setSharpness(int amount);
void setDeband(int level);
// GPU only: 0 FSR 1, 1 Anime4K (gpu::setUpscaler).
void setUpscaler(int mode);
+// Anime4K Restore before the upscale (GPU only).
+void setRestore(bool on);
// GPU only: the id of the last present(), and the last frame known to be on
// the screen (its id, and platform::nowUs() then). False on the CPU path.
diff --git a/src/display/gpu.cpp b/src/display/gpu.cpp
index f8a4dbf..54279e8 100644
--- a/src/display/gpu.cpp
+++ b/src/display/gpu.cpp
@@ -16,6 +16,10 @@
#include <string>
#include "display/shaders/a4k_d2s.spv.h"
+#include "display/shaders/a4k_r_conv0.spv.h"
+#include "display/shaders/a4k_r_conv1.spv.h"
+#include "display/shaders/a4k_r_conv2.spv.h"
+#include "display/shaders/a4k_r_conv3.spv.h"
#include "display/shaders/a4k_s_conv0.spv.h"
#include "display/shaders/a4k_s_conv1.spv.h"
#include "display/shaders/a4k_s_conv2.spv.h"
@@ -111,6 +115,11 @@ struct State {
Pipeline a4kConv[4], a4kD2s;
VkDescriptorSet a4kConvSets[4]{}, a4kD2sSet = VK_NULL_HANDLE;
bool a4kReady = false;
+ // Anime4K Restore (S): four convolutions that clean compression artefacts
+ // off the picture before it is upscaled (FSR or Anime4K), in place.
+ Pipeline restoreConv[4];
+ VkDescriptorSet restoreSets[4]{};
+ bool restoreReady = false;
VkDescriptorPool descriptors = VK_NULL_HANDLE;
VkDescriptorSet yuvSet = VK_NULL_HANDLE, easuVideoSet = VK_NULL_HANDLE, easuUiSet = VK_NULL_HANDLE;
VkDescriptorSet rcasSets[8]{};
@@ -136,6 +145,7 @@ bool g_overlayDirty = false, g_overlayShown = false;
std::atomic<int> g_sharpness{0};
std::atomic<int> g_deband{1};
std::atomic<int> g_upscaler{0}; // 0 FSR (EASU), 1 Anime4K
+std::atomic<bool> g_restore{false}; // Anime4K Restore before the upscale
uint32_t g_frame = 0;
uint32_t g_swapImages = 2;
bool g_noPresentWait = false;
@@ -523,6 +533,13 @@ bool createPipelines() {
g.a4kReady = createPipeline(g.a4kD2s, kShader_a4k_d2s, sizeof kShader_a4k_d2s, d2s, 3, 0);
for (int i = 0; i < 4 && g.a4kReady; ++i) g.a4kReady = createPipeline(g.a4kConv[i], code[i], bytes[i], conv, 2, 0);
if (!g.a4kReady) XC_LOGW("gpu: no Anime4K pipelines; FSR only");
+ const uint32_t* rcode[4] = {kShader_a4k_r_conv0, kShader_a4k_r_conv1, kShader_a4k_r_conv2, kShader_a4k_r_conv3};
+ const size_t rbytes[4] = {sizeof kShader_a4k_r_conv0, sizeof kShader_a4k_r_conv1, sizeof kShader_a4k_r_conv2,
+ sizeof kShader_a4k_r_conv3};
+ g.restoreReady = g.a4kReady; // it uses the same feature maps
+ for (int i = 0; i < 4 && g.restoreReady; ++i)
+ g.restoreReady = createPipeline(g.restoreConv[i], rcode[i], rbytes[i], conv, 2, 0);
+ if (g.a4kReady && !g.restoreReady) XC_LOGW("gpu: no Anime4K Restore pipelines");
}
const VkDescriptorPoolSize sizes[] = {{sampled, 32}, {storage, 32}};
VkDescriptorPoolCreateInfo pool{VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO};
@@ -538,6 +555,8 @@ bool createPipelines() {
for (int i = 0; i < 4; ++i) g.a4kConvSets[i] = allocateSet(g.a4kConv[i]);
g.a4kD2sSet = allocateSet(g.a4kD2s);
}
+ if (g.restoreReady)
+ for (int i = 0; i < 4; ++i) g.restoreSets[i] = allocateSet(g.restoreConv[i]);
// The images every frame uses; the video's come with its first picture.
const VkImageUsageFlags upload = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
@@ -604,6 +623,15 @@ bool videoImages(uint32_t w, uint32_t h) {
writeStorage(g.a4kD2sSet, 0, g.features[1].view);
writeSampled(g.a4kD2sSet, 1, g.rgb.view, g.linear);
writeStorage(g.a4kD2sSet, 2, g.upscaled.view);
+ if (g.restoreReady) {
+ // picture -> f0 -> f1 -> f0 -> (+ picture) -> picture
+ const VkImageView rin[4] = {g.rgb.view, g.features[0].view, g.features[1].view, g.features[0].view};
+ const VkImageView rout[4] = {g.features[0].view, g.features[1].view, g.features[0].view, g.rgb.view};
+ for (int i = 0; i < 4; ++i) {
+ writeStorage(g.restoreSets[i], 0, rin[i]);
+ writeStorage(g.restoreSets[i], 1, rout[i]);
+ }
+ }
}
}
XC_LOGI("gpu: video images %ux%u", w, h);
@@ -707,6 +735,20 @@ bool beginFrame(bool wait) {
// `input` (the RGB picture, w x h) upscaled with EASU, sharpened with RCAS,
// the overlay on top, into the acquired image.
+// Anime4K Restore on the RGB picture, in place.
+void recordRestore(uint32_t w, uint32_t h) {
+ if (!g.restoreReady || g.features[0].w != w || g.features[0].h != h) return;
+ barrier(g.features[0].image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
+ barrier(g.features[1].image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
+ for (int i = 0; i < 4; ++i) {
+ vkCmdBindPipeline(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.restoreConv[i].pipeline);
+ vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.restoreConv[i].layout, 0, 1, &g.restoreSets[i],
+ 0, nullptr);
+ vkCmdDispatch(g.cmd, (w + 7) / 8, (h + 7) / 8, 1);
+ memoryBarrier();
+ }
+}
+
// Anime4K x2 into `upscaled`; false (nothing recorded) when it doesn't fit:
// only the video, and only a picture of exactly half the display.
bool recordAnime4K(uint32_t w, uint32_t h) {
@@ -818,6 +860,7 @@ bool drawYuv420(const uint8_t* y, const uint8_t* u, const uint8_t* v, int stride
vkCmdPushConstants(g.cmd, g.yuv.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof yuvPc, &yuvPc);
vkCmdDispatch(g.cmd, (g.rgb.w + 7) / 8, (g.rgb.h + 7) / 8, 1);
memoryBarrier();
+ if (g_restore) recordRestore(g.rgb.w, g.rgb.h);
recordUpscale(g.easuVideoSet, g.rgb.w, g.rgb.h, g_sharpness, overlay, g_upscaler == 1);
return true;
}
@@ -895,6 +938,8 @@ void setDeband(int level) { g_deband = std::clamp(level, 0, 2); }
void setUpscaler(int mode) { g_upscaler = std::clamp(mode, 0, 1); }
+void setRestore(bool on) { g_restore = on; }
+
void setPresentWait(bool on) { g_noPresentWait = !on; }
uint64_t lastPresentId() { return g.presented; }
diff --git a/src/display/gpu.h b/src/display/gpu.h
index 95f77bf..63102f3 100644
--- a/src/display/gpu.h
+++ b/src/display/gpu.h
@@ -39,6 +39,8 @@ void setDeband(int level);
// The upscaler: 0 FSR 1 (EASU), 1 Anime4K x2 (1080p pictures only; others
// keep FSR). RCAS sharpens after either.
void setUpscaler(int mode);
+// Anime4K Restore (S) before the upscale: cleans compression artefacts.
+void setRestore(bool on);
// Before init(): swapchain images (2 = lowest latency, the default).
void setSwapImages(int count);
// Before init(): waiting for each frame to reach the screen before the next
diff --git a/src/display/shaders/a4k_r_conv0.comp b/src/display/shaders/a4k_r_conv0.comp
new file mode 100644
index 0000000..4590f46
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv0.comp
@@ -0,0 +1,54 @@
+#version 450
+// MIT License
+
+// Copyright (c) 2019-2021 bloc97
+// All rights reserved.
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+// Generated by tools/gen-anime4k.py from Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x3 (input MAIN); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba8) uniform readonly image2D inputImage;
+layout(binding = 1, rgba16f) uniform writeonly image2D outputImage;
+
+ivec2 pixel;
+vec4 load_input(vec2 offset) {
+ ivec2 size = imageSize(inputImage);
+ return imageLoad(inputImage, clamp(pixel + ivec2(offset), ivec2(0), size - 1));
+}
+#define go_0(x_off, y_off) (load_input(vec2(x_off, y_off)))
+vec4 hook() {
+ vec4 result = mat4(-0.19288683, -0.21397883, 0.111997396, -0.04791413, -0.26682988, -0.06144587, -0.03601853, -0.16693151, 0.038494494, -0.16651472, 0.147657, -0.083003886, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(-0.14286195, 0.08746566, -0.40107322, 0.12390977, -0.33392772, -0.18703035, -0.21326795, 0.04780781, -0.15155545, -0.0010025925, -0.1554875, -0.10676251, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(0.28095165, 0.022872915, -0.21342312, -0.29982176, 0.025937587, -0.055012174, -0.33779636, 0.0015666655, 0.076416336, 0.06656033, -0.1557806, 0.1078894, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(-0.31584853, 0.07527119, 0.30713862, -0.34014285, -0.50103146, -0.07217874, 0.512807, -0.09597398, -0.32097813, -0.051580857, -0.022466356, 0.01148551, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.026032459, -0.04193211, 0.37703893, -0.031916667, -0.27421117, 1.0906446, -0.049654085, -0.19814016, 0.07819544, 0.06003738, 0.1405805, -0.0064135445, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.041450135, 0.11319654, -0.23237701, 0.08443178, 0.53344345, 0.30857387, -0.057264958, -0.1575803, 0.2325609, -0.027797326, -0.04544767, -0.18720597, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0);
+ result += mat4(0.2531829, -0.074966915, -0.27800754, -0.3146097, 0.20126024, -0.5380133, -0.15082566, -0.19021043, 0.29951036, 0.17123336, -0.01681872, -0.12574998, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0);
+ result += mat4(0.25203633, 0.19882993, 0.14906439, 0.13593598, 0.40712556, 0.084902965, 0.42969635, 0.2961132, -0.057267334, -0.030388135, 8.8084314e-05, 0.0210724, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0);
+ result += mat4(-0.13459359, -0.12199573, 0.12591946, 0.24736497, 0.2033463, -0.09388599, -0.094370656, 0.1071285, -0.18479438, -0.066625565, 0.08279283, 0.20130983, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0);
+ result += vec4(-0.011108127, -0.07481861, 0.07640154, 0.4964964);
+ return result;
+}
+
+void main() {
+ pixel = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(outputImage);
+ if (pixel.x >= size.x || pixel.y >= size.y) return;
+ imageStore(outputImage, pixel, hook());
+}
diff --git a/src/display/shaders/a4k_r_conv0.spv.h b/src/display/shaders/a4k_r_conv0.spv.h
new file mode 100644
index 0000000..6a87f72
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv0.spv.h
@@ -0,0 +1,201 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_r_conv0[] = {
+ 0x07230203,0x00010600,0x0008000b,0x00000129,0x00000000,0x00020011,0x00000001,0x00020011,
+ 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
+ 0x00000000,0x00000001,0x0009000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000017,
+ 0x0000001c,0x00000103,0x0000010b,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,
+ 0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,
+ 0x00060005,0x0000000c,0x64616f6c,0x706e695f,0x76287475,0x003b3266,0x00040005,0x0000000b,
+ 0x7366666f,0x00007465,0x00040005,0x0000000f,0x6b6f6f68,0x00000028,0x00040005,0x00000014,
+ 0x657a6973,0x00000000,0x00050005,0x00000017,0x75706e69,0x616d4974,0x00006567,0x00040005,
+ 0x0000001c,0x65786970,0x0000006c,0x00040005,0x0000002c,0x75736572,0x0000746c,0x00040005,
+ 0x00000042,0x61726170,0x0000006d,0x00040005,0x00000056,0x61726170,0x0000006d,0x00040005,
+ 0x0000006d,0x61726170,0x0000006d,0x00040005,0x00000083,0x61726170,0x0000006d,0x00040005,
+ 0x00000099,0x61726170,0x0000006d,0x00040005,0x000000af,0x61726170,0x0000006d,0x00040005,
+ 0x000000c5,0x61726170,0x0000006d,0x00040005,0x000000db,0x61726170,0x0000006d,0x00040005,
+ 0x000000f1,0x61726170,0x0000006d,0x00080005,0x00000103,0x475f6c67,0x61626f6c,0x766e496c,
+ 0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000108,0x657a6973,0x00000000,0x00050005,
+ 0x0000010b,0x7074756f,0x6d497475,0x00656761,0x00030047,0x00000017,0x00000018,0x00040047,
+ 0x00000017,0x00000021,0x00000000,0x00040047,0x00000017,0x00000022,0x00000000,0x00040047,
+ 0x00000103,0x0000000b,0x0000001c,0x00030047,0x0000010b,0x00000019,0x00040047,0x0000010b,
+ 0x00000021,0x00000001,0x00040047,0x0000010b,0x00000022,0x00000000,0x00020013,0x00000002,
+ 0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007,
+ 0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040017,0x00000009,
+ 0x00000006,0x00000004,0x00040021,0x0000000a,0x00000009,0x00000008,0x00030021,0x0000000e,
+ 0x00000009,0x00040015,0x00000011,0x00000020,0x00000001,0x00040017,0x00000012,0x00000011,
+ 0x00000002,0x00040020,0x00000013,0x00000007,0x00000012,0x00090019,0x00000015,0x00000006,
+ 0x00000001,0x00000000,0x00000000,0x00000000,0x00000002,0x00000004,0x00040020,0x00000016,
+ 0x00000000,0x00000015,0x0004003b,0x00000016,0x00000017,0x00000000,0x00040020,0x0000001b,
+ 0x00000006,0x00000012,0x0004003b,0x0000001b,0x0000001c,0x00000006,0x0004002b,0x00000011,
+ 0x00000021,0x00000000,0x0005002c,0x00000012,0x00000022,0x00000021,0x00000021,0x0004002b,
+ 0x00000011,0x00000024,0x00000001,0x00040020,0x0000002b,0x00000007,0x00000009,0x00040018,
+ 0x0000002d,0x00000009,0x00000004,0x0004002b,0x00000006,0x0000002e,0xbe458420,0x0004002b,
+ 0x00000006,0x0000002f,0xbe5b1d44,0x0004002b,0x00000006,0x00000030,0x3de55ee4,0x0004002b,
+ 0x00000006,0x00000031,0xbd44419b,0x0007002c,0x00000009,0x00000032,0x0000002e,0x0000002f,
+ 0x00000030,0x00000031,0x0004002b,0x00000006,0x00000033,0xbe889ded,0x0004002b,0x00000006,
+ 0x00000034,0xbd7baeaa,0x0004002b,0x00000006,0x00000035,0xbd13882b,0x0004002b,0x00000006,
+ 0x00000036,0xbe2af018,0x0007002c,0x00000009,0x00000037,0x00000033,0x00000034,0x00000035,
+ 0x00000036,0x0004002b,0x00000006,0x00000038,0x3d1dac67,0x0004002b,0x00000006,0x00000039,
+ 0xbe2a82d6,0x0004002b,0x00000006,0x0000003a,0x3e173366,0x0004002b,0x00000006,0x0000003b,
+ 0xbda9fdf1,0x0007002c,0x00000009,0x0000003c,0x00000038,0x00000039,0x0000003a,0x0000003b,
+ 0x0004002b,0x00000006,0x0000003d,0x00000000,0x0007002c,0x00000009,0x0000003e,0x0000003d,
+ 0x0000003d,0x0000003d,0x0000003d,0x0007002c,0x0000002d,0x0000003f,0x00000032,0x00000037,
+ 0x0000003c,0x0000003e,0x0004002b,0x00000006,0x00000040,0xbf800000,0x0005002c,0x00000007,
+ 0x00000041,0x00000040,0x00000040,0x0004002b,0x00000006,0x00000045,0xbe124a67,0x0004002b,
+ 0x00000006,0x00000046,0x3db32132,0x0004002b,0x00000006,0x00000047,0xbecd5978,0x0004002b,
+ 0x00000006,0x00000048,0x3dfdc468,0x0007002c,0x00000009,0x00000049,0x00000045,0x00000046,
+ 0x00000047,0x00000048,0x0004002b,0x00000006,0x0000004a,0xbeaaf893,0x0004002b,0x00000006,
+ 0x0000004b,0xbe3f84e2,0x0004002b,0x00000006,0x0000004c,0xbe5a62ea,0x0004002b,0x00000006,
+ 0x0000004d,0x3d43d21f,0x0007002c,0x00000009,0x0000004e,0x0000004a,0x0000004b,0x0000004c,
+ 0x0000004d,0x0004002b,0x00000006,0x0000004f,0xbe1b315a,0x0004002b,0x00000006,0x00000050,
+ 0xba83696c,0x0004002b,0x00000006,0x00000051,0xbe1f381d,0x0004002b,0x00000006,0x00000052,
+ 0xbddaa64e,0x0007002c,0x00000009,0x00000053,0x0000004f,0x00000050,0x00000051,0x00000052,
+ 0x0007002c,0x0000002d,0x00000054,0x00000049,0x0000004e,0x00000053,0x0000003e,0x0005002c,
+ 0x00000007,0x00000055,0x00000040,0x0000003d,0x0004002b,0x00000006,0x0000005b,0x3e8fd8e5,
+ 0x0004002b,0x00000006,0x0000005c,0x3cbb5ffb,0x0004002b,0x00000006,0x0000005d,0xbe5a8b97,
+ 0x0004002b,0x00000006,0x0000005e,0xbe99823d,0x0007002c,0x00000009,0x0000005f,0x0000005b,
+ 0x0000005c,0x0000005d,0x0000005e,0x0004002b,0x00000006,0x00000060,0x3cd47b10,0x0004002b,
+ 0x00000006,0x00000061,0xbd615472,0x0004002b,0x00000006,0x00000062,0xbeacf3a5,0x0004002b,
+ 0x00000006,0x00000063,0x3acd5892,0x0007002c,0x00000009,0x00000064,0x00000060,0x00000061,
+ 0x00000062,0x00000063,0x0004002b,0x00000006,0x00000065,0x3d9c802b,0x0004002b,0x00000006,
+ 0x00000066,0x3d8850c8,0x0004002b,0x00000006,0x00000067,0xbe1f84f3,0x0004002b,0x00000006,
+ 0x00000068,0x3ddcf51e,0x0007002c,0x00000009,0x00000069,0x00000065,0x00000066,0x00000067,
+ 0x00000068,0x0007002c,0x0000002d,0x0000006a,0x0000005f,0x00000064,0x00000069,0x0000003e,
+ 0x0004002b,0x00000006,0x0000006b,0x3f800000,0x0005002c,0x00000007,0x0000006c,0x00000040,
+ 0x0000006b,0x0004002b,0x00000006,0x00000072,0xbea1b6e6,0x0004002b,0x00000006,0x00000073,
+ 0x3d9a27c8,0x0004002b,0x00000006,0x00000074,0x3e9d4146,0x0004002b,0x00000006,0x00000075,
+ 0xbeae2734,0x0007002c,0x00000009,0x00000076,0x00000072,0x00000073,0x00000074,0x00000075,
+ 0x0004002b,0x00000006,0x00000077,0xbf004399,0x0004002b,0x00000006,0x00000078,0xbd93d272,
+ 0x0004002b,0x00000006,0x00000079,0x3f034752,0x0004002b,0x00000006,0x0000007a,0xbdc48e02,
+ 0x0007002c,0x00000009,0x0000007b,0x00000077,0x00000078,0x00000079,0x0000007a,0x0004002b,
+ 0x00000006,0x0000007c,0xbea4573f,0x0004002b,0x00000006,0x0000007d,0xbd534673,0x0004002b,
+ 0x00000006,0x0000007e,0xbcb80b5d,0x0004002b,0x00000006,0x0000007f,0x3c3c2db8,0x0007002c,
+ 0x00000009,0x00000080,0x0000007c,0x0000007d,0x0000007e,0x0000007f,0x0007002c,0x0000002d,
+ 0x00000081,0x00000076,0x0000007b,0x00000080,0x0000003e,0x0005002c,0x00000007,0x00000082,
+ 0x0000003d,0x00000040,0x0004002b,0x00000006,0x00000088,0xbcd54206,0x0004002b,0x00000006,
+ 0x00000089,0xbd2bc101,0x0004002b,0x00000006,0x0000008a,0x3ec10b3f,0x0004002b,0x00000006,
+ 0x0000008b,0xbd02bb0d,0x0007002c,0x00000009,0x0000008c,0x00000088,0x00000089,0x0000008a,
+ 0x0000008b,0x0004002b,0x00000006,0x0000008d,0xbe8c6568,0x0004002b,0x00000006,0x0000008e,
+ 0x3f8b9a3e,0x0004002b,0x00000006,0x0000008f,0xbd4b6215,0x0004002b,0x00000006,0x00000090,
+ 0xbe4ae541,0x0007002c,0x00000009,0x00000091,0x0000008d,0x0000008e,0x0000008f,0x00000090,
+ 0x0004002b,0x00000006,0x00000092,0x3da024ee,0x0004002b,0x00000006,0x00000093,0x3d75e9c1,
+ 0x0004002b,0x00000006,0x00000094,0x3e0ff456,0x0004002b,0x00000006,0x00000095,0xbbd228b6,
+ 0x0007002c,0x00000009,0x00000096,0x00000092,0x00000093,0x00000094,0x00000095,0x0007002c,
+ 0x0000002d,0x00000097,0x0000008c,0x00000091,0x00000096,0x0000003e,0x0005002c,0x00000007,
+ 0x00000098,0x0000003d,0x0000003d,0x0004002b,0x00000006,0x0000009e,0x3d29c79e,0x0004002b,
+ 0x00000006,0x0000009f,0x3de7d396,0x0004002b,0x00000006,0x000000a0,0xbe6df43d,0x0004002b,
+ 0x00000006,0x000000a1,0x3dacea92,0x0007002c,0x00000009,0x000000a2,0x0000009e,0x0000009f,
+ 0x000000a0,0x000000a1,0x0004002b,0x00000006,0x000000a3,0x3f088fc0,0x0004002b,0x00000006,
+ 0x000000a4,0x3e9dfd65,0x0004002b,0x00000006,0x000000a5,0xbd6a8ea9,0x0004002b,0x00000006,
+ 0x000000a6,0xbe215cbb,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,0x000000a5,
+ 0x000000a6,0x0004002b,0x00000006,0x000000a8,0x3e6e2472,0x0004002b,0x00000006,0x000000a9,
+ 0xbce3b738,0x0004002b,0x00000006,0x000000aa,0xbd3a2756,0x0004002b,0x00000006,0x000000ab,
+ 0xbe3fb2ec,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,0x000000ab,
+ 0x0007002c,0x0000002d,0x000000ad,0x000000a2,0x000000a7,0x000000ac,0x0000003e,0x0005002c,
+ 0x00000007,0x000000ae,0x0000003d,0x0000006b,0x0004002b,0x00000006,0x000000b4,0x3e81a130,
+ 0x0004002b,0x00000006,0x000000b5,0xbd998841,0x0004002b,0x00000006,0x000000b6,0xbe8e5701,
+ 0x0004002b,0x00000006,0x000000b7,0xbea11486,0x0007002c,0x00000009,0x000000b8,0x000000b4,
+ 0x000000b5,0x000000b6,0x000000b7,0x0004002b,0x00000006,0x000000b9,0x3e4e172a,0x0004002b,
+ 0x00000006,0x000000ba,0xbf09bb3d,0x0004002b,0x00000006,0x000000bb,0xbe1a720b,0x0004002b,
+ 0x00000006,0x000000bc,0xbe42c686,0x0007002c,0x00000009,0x000000bd,0x000000b9,0x000000ba,
+ 0x000000bb,0x000000bc,0x0004002b,0x00000006,0x000000be,0x3e99596c,0x0004002b,0x00000006,
+ 0x000000bf,0x3e2f57cc,0x0004002b,0x00000006,0x000000c0,0xbc89c76a,0x0004002b,0x00000006,
+ 0x000000c1,0xbe00c49a,0x0007002c,0x00000009,0x000000c2,0x000000be,0x000000bf,0x000000c0,
+ 0x000000c1,0x0007002c,0x0000002d,0x000000c3,0x000000b8,0x000000bd,0x000000c2,0x0000003e,
+ 0x0005002c,0x00000007,0x000000c4,0x0000006b,0x00000040,0x0004002b,0x00000006,0x000000ca,
+ 0x3e810ae8,0x0004002b,0x00000006,0x000000cb,0x3e4b9a13,0x0004002b,0x00000006,0x000000cc,
+ 0x3e18a456,0x0004002b,0x00000006,0x000000cd,0x3e0b32cd,0x0007002c,0x00000009,0x000000ce,
+ 0x000000ca,0x000000cb,0x000000cc,0x000000cd,0x0004002b,0x00000006,0x000000cf,0x3ed072c3,
+ 0x0004002b,0x00000006,0x000000d0,0x3dade19b,0x0004002b,0x00000006,0x000000d1,0x3edc0129,
+ 0x0004002b,0x00000006,0x000000d2,0x3e979c26,0x0007002c,0x00000009,0x000000d3,0x000000cf,
+ 0x000000d0,0x000000d1,0x000000d2,0x0004002b,0x00000006,0x000000d4,0xbd6a9127,0x0004002b,
+ 0x00000006,0x000000d5,0xbcf8f08a,0x0004002b,0x00000006,0x000000d6,0x38b8b9e8,0x0004002b,
+ 0x00000006,0x000000d7,0x3caca007,0x0007002c,0x00000009,0x000000d8,0x000000d4,0x000000d5,
+ 0x000000d6,0x000000d7,0x0007002c,0x0000002d,0x000000d9,0x000000ce,0x000000d3,0x000000d8,
+ 0x0000003e,0x0005002c,0x00000007,0x000000da,0x0000006b,0x0000003d,0x0004002b,0x00000006,
+ 0x000000e0,0xbe09d2e7,0x0004002b,0x00000006,0x000000e1,0xbdf9d8e6,0x0004002b,0x00000006,
+ 0x000000e2,0x3e00f108,0x0004002b,0x00000006,0x000000e3,0x3e7d4d3e,0x0007002c,0x00000009,
+ 0x000000e4,0x000000e0,0x000000e1,0x000000e2,0x000000e3,0x0004002b,0x00000006,0x000000e5,
+ 0x3e503a03,0x0004002b,0x00000006,0x000000e6,0xbdc0474c,0x0004002b,0x00000006,0x000000e7,
+ 0xbdc14567,0x0004002b,0x00000006,0x000000e8,0x3ddb6630,0x0007002c,0x00000009,0x000000e9,
+ 0x000000e5,0x000000e6,0x000000e7,0x000000e8,0x0004002b,0x00000006,0x000000ea,0xbe3d3abd,
+ 0x0004002b,0x00000006,0x000000eb,0xbd8872fc,0x0004002b,0x00000006,0x000000ec,0x3da98f4a,
+ 0x0004002b,0x00000006,0x000000ed,0x3e4e242a,0x0007002c,0x00000009,0x000000ee,0x000000ea,
+ 0x000000eb,0x000000ec,0x000000ed,0x0007002c,0x0000002d,0x000000ef,0x000000e4,0x000000e9,
+ 0x000000ee,0x0000003e,0x0005002c,0x00000007,0x000000f0,0x0000006b,0x0000006b,0x0004002b,
+ 0x00000006,0x000000f6,0xbc35fedd,0x0004002b,0x00000006,0x000000f7,0xbd993a80,0x0004002b,
+ 0x00000006,0x000000f8,0x3d9c7869,0x0004002b,0x00000006,0x000000f9,0x3efe34c7,0x0007002c,
+ 0x00000009,0x000000fa,0x000000f6,0x000000f7,0x000000f8,0x000000f9,0x00040015,0x00000100,
+ 0x00000020,0x00000000,0x00040017,0x00000101,0x00000100,0x00000003,0x00040020,0x00000102,
+ 0x00000001,0x00000101,0x0004003b,0x00000102,0x00000103,0x00000001,0x00040017,0x00000104,
+ 0x00000100,0x00000002,0x00090019,0x00000109,0x00000006,0x00000001,0x00000000,0x00000000,
+ 0x00000000,0x00000002,0x00000002,0x00040020,0x0000010a,0x00000000,0x00000109,0x0004003b,
+ 0x0000010a,0x0000010b,0x00000000,0x00020014,0x0000010e,0x0004002b,0x00000100,0x0000010f,
+ 0x00000000,0x00040020,0x00000110,0x00000006,0x00000011,0x00040020,0x00000113,0x00000007,
+ 0x00000011,0x0004002b,0x00000100,0x0000011a,0x00000001,0x0004002b,0x00000100,0x00000127,
+ 0x00000008,0x0006002c,0x00000101,0x00000128,0x00000127,0x00000127,0x0000011a,0x00050036,
+ 0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000013,
+ 0x00000108,0x00000007,0x0004003d,0x00000101,0x00000105,0x00000103,0x0007004f,0x00000104,
+ 0x00000106,0x00000105,0x00000105,0x00000000,0x00000001,0x0004007c,0x00000012,0x00000107,
+ 0x00000106,0x0003003e,0x0000001c,0x00000107,0x0004003d,0x00000109,0x0000010c,0x0000010b,
+ 0x00040068,0x00000012,0x0000010d,0x0000010c,0x0003003e,0x00000108,0x0000010d,0x00050041,
+ 0x00000110,0x00000111,0x0000001c,0x0000010f,0x0004003d,0x00000011,0x00000112,0x00000111,
+ 0x00050041,0x00000113,0x00000114,0x00000108,0x0000010f,0x0004003d,0x00000011,0x00000115,
+ 0x00000114,0x000500af,0x0000010e,0x00000116,0x00000112,0x00000115,0x000400a8,0x0000010e,
+ 0x00000117,0x00000116,0x000300f7,0x00000119,0x00000000,0x000400fa,0x00000117,0x00000118,
+ 0x00000119,0x000200f8,0x00000118,0x00050041,0x00000110,0x0000011b,0x0000001c,0x0000011a,
+ 0x0004003d,0x00000011,0x0000011c,0x0000011b,0x00050041,0x00000113,0x0000011d,0x00000108,
+ 0x0000011a,0x0004003d,0x00000011,0x0000011e,0x0000011d,0x000500af,0x0000010e,0x0000011f,
+ 0x0000011c,0x0000011e,0x000200f9,0x00000119,0x000200f8,0x00000119,0x000700f5,0x0000010e,
+ 0x00000120,0x00000116,0x00000005,0x0000011f,0x00000118,0x000300f7,0x00000122,0x00000000,
+ 0x000400fa,0x00000120,0x00000121,0x00000122,0x000200f8,0x00000121,0x000100fd,0x000200f8,
+ 0x00000122,0x0004003d,0x00000109,0x00000124,0x0000010b,0x0004003d,0x00000012,0x00000125,
+ 0x0000001c,0x00040039,0x00000009,0x00000126,0x0000000f,0x00040063,0x00000124,0x00000125,
+ 0x00000126,0x000100fd,0x00010038,0x00050036,0x00000009,0x0000000c,0x00000000,0x0000000a,
+ 0x00030037,0x00000008,0x0000000b,0x000200f8,0x0000000d,0x0004003b,0x00000013,0x00000014,
+ 0x00000007,0x0004003d,0x00000015,0x00000018,0x00000017,0x00040068,0x00000012,0x00000019,
+ 0x00000018,0x0003003e,0x00000014,0x00000019,0x0004003d,0x00000015,0x0000001a,0x00000017,
+ 0x0004003d,0x00000012,0x0000001d,0x0000001c,0x0004003d,0x00000007,0x0000001e,0x0000000b,
+ 0x0004006e,0x00000012,0x0000001f,0x0000001e,0x00050080,0x00000012,0x00000020,0x0000001d,
+ 0x0000001f,0x0004003d,0x00000012,0x00000023,0x00000014,0x00050050,0x00000012,0x00000025,
+ 0x00000024,0x00000024,0x00050082,0x00000012,0x00000026,0x00000023,0x00000025,0x0008000c,
+ 0x00000012,0x00000027,0x00000001,0x0000002d,0x00000020,0x00000022,0x00000026,0x00050062,
+ 0x00000009,0x00000028,0x0000001a,0x00000027,0x000200fe,0x00000028,0x00010038,0x00050036,
+ 0x00000009,0x0000000f,0x00000000,0x0000000e,0x000200f8,0x00000010,0x0004003b,0x0000002b,
+ 0x0000002c,0x00000007,0x0004003b,0x00000008,0x00000042,0x00000007,0x0004003b,0x00000008,
+ 0x00000056,0x00000007,0x0004003b,0x00000008,0x0000006d,0x00000007,0x0004003b,0x00000008,
+ 0x00000083,0x00000007,0x0004003b,0x00000008,0x00000099,0x00000007,0x0004003b,0x00000008,
+ 0x000000af,0x00000007,0x0004003b,0x00000008,0x000000c5,0x00000007,0x0004003b,0x00000008,
+ 0x000000db,0x00000007,0x0004003b,0x00000008,0x000000f1,0x00000007,0x0003003e,0x00000042,
+ 0x00000041,0x00050039,0x00000009,0x00000043,0x0000000c,0x00000042,0x00050091,0x00000009,
+ 0x00000044,0x0000003f,0x00000043,0x0003003e,0x0000002c,0x00000044,0x0003003e,0x00000056,
+ 0x00000055,0x00050039,0x00000009,0x00000057,0x0000000c,0x00000056,0x00050091,0x00000009,
+ 0x00000058,0x00000054,0x00000057,0x0004003d,0x00000009,0x00000059,0x0000002c,0x00050081,
+ 0x00000009,0x0000005a,0x00000059,0x00000058,0x0003003e,0x0000002c,0x0000005a,0x0003003e,
+ 0x0000006d,0x0000006c,0x00050039,0x00000009,0x0000006e,0x0000000c,0x0000006d,0x00050091,
+ 0x00000009,0x0000006f,0x0000006a,0x0000006e,0x0004003d,0x00000009,0x00000070,0x0000002c,
+ 0x00050081,0x00000009,0x00000071,0x00000070,0x0000006f,0x0003003e,0x0000002c,0x00000071,
+ 0x0003003e,0x00000083,0x00000082,0x00050039,0x00000009,0x00000084,0x0000000c,0x00000083,
+ 0x00050091,0x00000009,0x00000085,0x00000081,0x00000084,0x0004003d,0x00000009,0x00000086,
+ 0x0000002c,0x00050081,0x00000009,0x00000087,0x00000086,0x00000085,0x0003003e,0x0000002c,
+ 0x00000087,0x0003003e,0x00000099,0x00000098,0x00050039,0x00000009,0x0000009a,0x0000000c,
+ 0x00000099,0x00050091,0x00000009,0x0000009b,0x00000097,0x0000009a,0x0004003d,0x00000009,
+ 0x0000009c,0x0000002c,0x00050081,0x00000009,0x0000009d,0x0000009c,0x0000009b,0x0003003e,
+ 0x0000002c,0x0000009d,0x0003003e,0x000000af,0x000000ae,0x00050039,0x00000009,0x000000b0,
+ 0x0000000c,0x000000af,0x00050091,0x00000009,0x000000b1,0x000000ad,0x000000b0,0x0004003d,
+ 0x00000009,0x000000b2,0x0000002c,0x00050081,0x00000009,0x000000b3,0x000000b2,0x000000b1,
+ 0x0003003e,0x0000002c,0x000000b3,0x0003003e,0x000000c5,0x000000c4,0x00050039,0x00000009,
+ 0x000000c6,0x0000000c,0x000000c5,0x00050091,0x00000009,0x000000c7,0x000000c3,0x000000c6,
+ 0x0004003d,0x00000009,0x000000c8,0x0000002c,0x00050081,0x00000009,0x000000c9,0x000000c8,
+ 0x000000c7,0x0003003e,0x0000002c,0x000000c9,0x0003003e,0x000000db,0x000000da,0x00050039,
+ 0x00000009,0x000000dc,0x0000000c,0x000000db,0x00050091,0x00000009,0x000000dd,0x000000d9,
+ 0x000000dc,0x0004003d,0x00000009,0x000000de,0x0000002c,0x00050081,0x00000009,0x000000df,
+ 0x000000de,0x000000dd,0x0003003e,0x0000002c,0x000000df,0x0003003e,0x000000f1,0x000000f0,
+ 0x00050039,0x00000009,0x000000f2,0x0000000c,0x000000f1,0x00050091,0x00000009,0x000000f3,
+ 0x000000ef,0x000000f2,0x0004003d,0x00000009,0x000000f4,0x0000002c,0x00050081,0x00000009,
+ 0x000000f5,0x000000f4,0x000000f3,0x0003003e,0x0000002c,0x000000f5,0x0004003d,0x00000009,
+ 0x000000fb,0x0000002c,0x00050081,0x00000009,0x000000fc,0x000000fb,0x000000fa,0x0003003e,
+ 0x0000002c,0x000000fc,0x0004003d,0x00000009,0x000000fd,0x0000002c,0x000200fe,0x000000fd,
+ 0x00010038
+};
diff --git a/src/display/shaders/a4k_r_conv1.comp b/src/display/shaders/a4k_r_conv1.comp
new file mode 100644
index 0000000..9061553
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv1.comp
@@ -0,0 +1,64 @@
+#version 450
+// MIT License
+
+// Copyright (c) 2019-2021 bloc97
+// All rights reserved.
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+// Generated by tools/gen-anime4k.py from Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x8 (input conv2d_tf); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba16f) uniform readonly image2D inputImage;
+layout(binding = 1, rgba16f) uniform writeonly image2D outputImage;
+
+ivec2 pixel;
+vec4 load_input(vec2 offset) {
+ ivec2 size = imageSize(inputImage);
+ return imageLoad(inputImage, clamp(pixel + ivec2(offset), ivec2(0), size - 1));
+}
+#define go_0(x_off, y_off) (max((load_input(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(load_input(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(-0.056432575, 0.0028165397, -0.026325442, -0.14802271, 0.16885762, -0.062179096, -0.2332292, 0.17513658, -0.08011296, 0.02947316, 0.014771492, -0.17946689, 0.026012989, -0.09823925, 0.036625937, -0.06924322) * go_0(-1.0, -1.0);
+ result += mat4(-0.13571467, 0.09831142, 0.12911566, 0.06305893, -0.07188695, -0.20161287, 0.3858435, -0.21069056, -0.12294444, -0.1404628, -0.022659872, 0.23008968, 0.10969853, 0.17640765, 0.39796907, 0.20413099) * go_0(-1.0, 0.0);
+ result += mat4(-0.0061665224, 0.055102807, -0.0059629944, -0.021429887, 0.061626043, 0.16898955, -0.21215646, 0.16510476, 0.2238265, 0.19429931, 0.09874656, 0.06828208, -0.122404456, -0.00026717107, -0.28203064, -0.29979932) * go_0(-1.0, 1.0);
+ result += mat4(-0.22735378, 0.14538136, 0.11549746, 0.194148, -0.09841722, -0.0661309, 0.348576, -0.017375294, -0.044078812, 0.1298332, 0.04793373, -0.30687734, 0.08353025, 0.083519086, 0.10766399, 0.31796935) * go_0(0.0, -1.0);
+ result += mat4(0.048365135, -0.17566709, -0.33212858, -0.052667376, -0.26443407, -0.010216014, 0.1573303, 0.05725314, 0.08140953, -0.09664591, 0.076109104, -0.026773714, 0.07732627, 0.10188082, -0.28266954, -0.16230233) * go_0(0.0, 0.0);
+ result += mat4(0.29931107, 0.117944, -0.10414009, 0.12795551, 0.12576093, 0.17082554, -0.15803693, 0.13430743, -0.025801308, -0.10797019, 0.0721032, 0.2825884, -0.11025257, 0.12798019, 0.081827976, -0.050441865) * go_0(0.0, 1.0);
+ result += mat4(-0.11827391, 0.08306765, -0.3430314, 0.07898041, -0.023839617, -0.019507334, 0.23176382, -0.40992323, 0.09411734, 0.38415068, -0.25845516, -0.29984522, 0.1470966, -0.0684779, -0.07071314, -0.026773235) * go_0(1.0, -1.0);
+ result += mat4(0.19091596, 0.082110435, -0.5266589, -0.1744098, -0.015838385, -0.046316292, 0.023171103, -0.03731331, 0.2642396, 0.31824252, -0.041754793, -0.09525519, -0.14696182, 0.052168854, 0.039857205, -0.027555354) * go_0(1.0, 0.0);
+ result += mat4(0.15207373, 0.09845733, 0.0142631065, 0.096375965, 0.06089903, 0.17902578, -0.42391995, 0.22475442, 0.016356342, -0.06277531, -0.12173141, -0.18635495, -0.0013459618, 0.15725887, 0.019310836, 0.20293565) * go_0(1.0, 1.0);
+ result += mat4(-0.18395247, 0.30672902, 0.09034339, 0.1821889, -0.0419004, -0.2169228, -0.14052129, 0.11006559, 0.1709272, 0.51062274, 0.13758625, -0.2242552, -0.030382963, 0.3357568, -0.26491287, 0.02501938) * go_1(-1.0, -1.0);
+ result += mat4(0.040511727, 0.12523083, -0.27318433, 0.08388512, 0.25354835, 0.3404216, -0.2632471, -0.17784123, 0.2732347, 0.4468553, 0.084667034, -0.1856242, 0.034099877, -0.00954992, -0.32751867, -0.062207516) * go_1(-1.0, 0.0);
+ result += mat4(0.17564747, 0.11645554, -0.16362113, 0.105654195, -0.2762563, -0.1413764, 0.23264363, -0.14000498, 0.095402054, 0.0715738, -0.19346157, -0.028285999, 0.009799127, 0.04059529, 0.19688335, 0.1282381) * go_1(-1.0, 1.0);
+ result += mat4(0.23575781, -0.11446148, -0.20504695, 0.035568226, 0.36890212, -0.85968876, -0.18545328, 0.33796397, -0.30916876, -0.10445518, -0.3046253, 0.33271998, -0.06263589, -0.2160114, -0.16383372, -0.31173357) * go_1(0.0, -1.0);
+ result += mat4(0.20469664, 0.4039374, -0.070057206, 0.030353077, 0.39843914, -0.15490077, -0.24476516, 0.38238233, -0.21809858, 0.23496576, -0.051794037, 0.033664484, -0.14411364, -0.2515329, 0.124655396, -0.05818785) * go_1(0.0, 0.0);
+ result += mat4(-0.09065731, -0.16787091, 0.013269188, 0.23687351, -0.41504318, -0.048163068, 0.31760025, -0.33648986, 0.29752317, 0.2926866, 0.14408836, -0.33382463, -0.15873958, -0.121961035, 0.11797893, 0.09000567) * go_1(0.0, 1.0);
+ result += mat4(0.13356976, 0.013763947, 0.012169505, -0.109594524, 0.03417223, 0.7031121, 0.65146804, 0.5250268, -0.50132495, -0.419648, 0.2940041, 0.83051753, -0.17595838, 0.1633008, -0.018587278, 0.079596795) * go_1(1.0, -1.0);
+ result += mat4(0.07570128, -0.1581438, 0.03904949, 0.14890033, -0.054611947, 0.17469402, -0.44252598, 0.036181703, -0.4981031, -0.37507218, -0.18466389, 0.2645845, 0.25189674, -0.025896115, 0.034307647, -0.020462232) * go_1(1.0, 0.0);
+ result += mat4(-0.11645865, 0.02296537, 0.040909223, 0.015069485, 0.062284566, -0.22526766, 0.09241534, -0.32623053, 0.18208642, 0.3954284, 0.2884468, -0.25137675, -0.037232924, -0.10185309, -0.17956531, 0.018966453) * go_1(1.0, 1.0);
+ result += vec4(-0.16371979, -0.024620198, -0.035754893, 0.04176776);
+ return result;
+}
+
+void main() {
+ pixel = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(outputImage);
+ if (pixel.x >= size.x || pixel.y >= size.y) return;
+ imageStore(outputImage, pixel, hook());
+}
diff --git a/src/display/shaders/a4k_r_conv1.spv.h b/src/display/shaders/a4k_r_conv1.spv.h
new file mode 100644
index 0000000..fdfeb95
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv1.spv.h
@@ -0,0 +1,408 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_r_conv1[] = {
+ 0x07230203,0x00010600,0x0008000b,0x0000026a,0x00000000,0x00020011,0x00000001,0x00020011,
+ 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
+ 0x00000000,0x00000001,0x0009000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000017,
+ 0x0000001c,0x00000246,0x0000024c,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,
+ 0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,
+ 0x00060005,0x0000000c,0x64616f6c,0x706e695f,0x76287475,0x003b3266,0x00040005,0x0000000b,
+ 0x7366666f,0x00007465,0x00040005,0x0000000f,0x6b6f6f68,0x00000028,0x00040005,0x00000014,
+ 0x657a6973,0x00000000,0x00050005,0x00000017,0x75706e69,0x616d4974,0x00006567,0x00040005,
+ 0x0000001c,0x65786970,0x0000006c,0x00040005,0x0000002c,0x75736572,0x0000746c,0x00040005,
+ 0x00000045,0x61726170,0x0000006d,0x00040005,0x00000061,0x61726170,0x0000006d,0x00040005,
+ 0x0000007f,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170,0x0000006d,0x00040005,
+ 0x000000b9,0x61726170,0x0000006d,0x00040005,0x000000d6,0x61726170,0x0000006d,0x00040005,
+ 0x000000f3,0x61726170,0x0000006d,0x00040005,0x00000110,0x61726170,0x0000006d,0x00040005,
+ 0x0000012d,0x61726170,0x0000006d,0x00040005,0x00000149,0x61726170,0x0000006d,0x00040005,
+ 0x00000166,0x61726170,0x0000006d,0x00040005,0x00000183,0x61726170,0x0000006d,0x00040005,
+ 0x000001a0,0x61726170,0x0000006d,0x00040005,0x000001bd,0x61726170,0x0000006d,0x00040005,
+ 0x000001da,0x61726170,0x0000006d,0x00040005,0x000001f7,0x61726170,0x0000006d,0x00040005,
+ 0x00000214,0x61726170,0x0000006d,0x00040005,0x00000231,0x61726170,0x0000006d,0x00080005,
+ 0x00000246,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00040005,
+ 0x0000024b,0x657a6973,0x00000000,0x00050005,0x0000024c,0x7074756f,0x6d497475,0x00656761,
+ 0x00030047,0x00000017,0x00000018,0x00040047,0x00000017,0x00000021,0x00000000,0x00040047,
+ 0x00000017,0x00000022,0x00000000,0x00040047,0x00000246,0x0000000b,0x0000001c,0x00030047,
+ 0x0000024c,0x00000019,0x00040047,0x0000024c,0x00000021,0x00000001,0x00040047,0x0000024c,
+ 0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
+ 0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,
+ 0x00000007,0x00000007,0x00040017,0x00000009,0x00000006,0x00000004,0x00040021,0x0000000a,
+ 0x00000009,0x00000008,0x00030021,0x0000000e,0x00000009,0x00040015,0x00000011,0x00000020,
+ 0x00000001,0x00040017,0x00000012,0x00000011,0x00000002,0x00040020,0x00000013,0x00000007,
+ 0x00000012,0x00090019,0x00000015,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,
+ 0x00000002,0x00000002,0x00040020,0x00000016,0x00000000,0x00000015,0x0004003b,0x00000016,
+ 0x00000017,0x00000000,0x00040020,0x0000001b,0x00000006,0x00000012,0x0004003b,0x0000001b,
+ 0x0000001c,0x00000006,0x0004002b,0x00000011,0x00000021,0x00000000,0x0005002c,0x00000012,
+ 0x00000022,0x00000021,0x00000021,0x0004002b,0x00000011,0x00000024,0x00000001,0x00040020,
+ 0x0000002b,0x00000007,0x00000009,0x00040018,0x0000002d,0x00000009,0x00000004,0x0004002b,
+ 0x00000006,0x0000002e,0xbd6725d8,0x0004002b,0x00000006,0x0000002f,0x3b3895b2,0x0004002b,
+ 0x00000006,0x00000030,0xbcd7a874,0x0004002b,0x00000006,0x00000031,0xbe179344,0x0007002c,
+ 0x00000009,0x00000032,0x0000002e,0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,
+ 0x00000033,0x3e2ce903,0x0004002b,0x00000006,0x00000034,0xbd7eaf82,0x0004002b,0x00000006,
+ 0x00000035,0xbe6ed3a3,0x0004002b,0x00000006,0x00000036,0x3e335701,0x0007002c,0x00000009,
+ 0x00000037,0x00000033,0x00000034,0x00000035,0x00000036,0x0004002b,0x00000006,0x00000038,
+ 0xbda41243,0x0004002b,0x00000006,0x00000039,0x3cf171b2,0x0004002b,0x00000006,0x0000003a,
+ 0x3c720421,0x0004002b,0x00000006,0x0000003b,0xbe37c62b,0x0007002c,0x00000009,0x0000003c,
+ 0x00000038,0x00000039,0x0000003a,0x0000003b,0x0004002b,0x00000006,0x0000003d,0x3cd51931,
+ 0x0004002b,0x00000006,0x0000003e,0xbdc931a9,0x0004002b,0x00000006,0x0000003f,0x3d160514,
+ 0x0004002b,0x00000006,0x00000040,0xbd8dcf64,0x0007002c,0x00000009,0x00000041,0x0000003d,
+ 0x0000003e,0x0000003f,0x00000040,0x0007002c,0x0000002d,0x00000042,0x00000032,0x00000037,
+ 0x0000003c,0x00000041,0x0004002b,0x00000006,0x00000043,0xbf800000,0x0005002c,0x00000007,
+ 0x00000044,0x00000043,0x00000043,0x0004002b,0x00000006,0x00000047,0x00000000,0x0004002b,
+ 0x00000006,0x0000004b,0xbe0af8c9,0x0004002b,0x00000006,0x0000004c,0x3dc9577f,0x0004002b,
+ 0x00000006,0x0000004d,0x3e0436e5,0x0004002b,0x00000006,0x0000004e,0x3d81250a,0x0007002c,
+ 0x00000009,0x0000004f,0x0000004b,0x0000004c,0x0000004d,0x0000004e,0x0004002b,0x00000006,
+ 0x00000050,0xbd933977,0x0004002b,0x00000006,0x00000051,0xbe4e739b,0x0004002b,0x00000006,
+ 0x00000052,0x3ec58d47,0x0004002b,0x00000006,0x00000053,0xbe57bf44,0x0007002c,0x00000009,
+ 0x00000054,0x00000050,0x00000051,0x00000052,0x00000053,0x0004002b,0x00000006,0x00000055,
+ 0xbdfbca4b,0x0004002b,0x00000006,0x00000056,0xbe0fd57b,0x0004002b,0x00000006,0x00000057,
+ 0xbcb9a132,0x0004002b,0x00000006,0x00000058,0x3e6b9ca1,0x0007002c,0x00000009,0x00000059,
+ 0x00000055,0x00000056,0x00000057,0x00000058,0x0004002b,0x00000006,0x0000005a,0x3de0a99f,
+ 0x0004002b,0x00000006,0x0000005b,0x3e34a435,0x0004002b,0x00000006,0x0000005c,0x3ecbc29a,
+ 0x0004002b,0x00000006,0x0000005d,0x3e5107b7,0x0007002c,0x00000009,0x0000005e,0x0000005a,
+ 0x0000005b,0x0000005c,0x0000005d,0x0007002c,0x0000002d,0x0000005f,0x0000004f,0x00000054,
+ 0x00000059,0x0000005e,0x0005002c,0x00000007,0x00000060,0x00000043,0x00000047,0x0004002b,
+ 0x00000006,0x00000068,0xbbca108a,0x0004002b,0x00000006,0x00000069,0x3d61b37b,0x0004002b,
+ 0x00000006,0x0000006a,0xbbc36539,0x0004002b,0x00000006,0x0000006b,0xbcaf8dbb,0x0007002c,
+ 0x00000009,0x0000006c,0x00000068,0x00000069,0x0000006a,0x0000006b,0x0004002b,0x00000006,
+ 0x0000006d,0x3d7c6b97,0x0004002b,0x00000006,0x0000006e,0x3e2d0b99,0x0004002b,0x00000006,
+ 0x0000006f,0xbe593f8b,0x0004002b,0x00000006,0x00000070,0x3e291139,0x0007002c,0x00000009,
+ 0x00000071,0x0000006d,0x0000006e,0x0000006f,0x00000070,0x0004002b,0x00000006,0x00000072,
+ 0x3e6532c6,0x0004002b,0x00000006,0x00000073,0x3e46f666,0x0004002b,0x00000006,0x00000074,
+ 0x3dca3ba3,0x0004002b,0x00000006,0x00000075,0x3d8bd77a,0x0007002c,0x00000009,0x00000076,
+ 0x00000072,0x00000073,0x00000074,0x00000075,0x0004002b,0x00000006,0x00000077,0xbdfaaf30,
+ 0x0004002b,0x00000006,0x00000078,0xb98c1318,0x0004002b,0x00000006,0x00000079,0xbe906652,
+ 0x0004002b,0x00000006,0x0000007a,0xbe997f4c,0x0007002c,0x00000009,0x0000007b,0x00000077,
+ 0x00000078,0x00000079,0x0000007a,0x0007002c,0x0000002d,0x0000007c,0x0000006c,0x00000071,
+ 0x00000076,0x0000007b,0x0004002b,0x00000006,0x0000007d,0x3f800000,0x0005002c,0x00000007,
+ 0x0000007e,0x00000043,0x0000007d,0x0004002b,0x00000006,0x00000086,0xbe68cf6e,0x0004002b,
+ 0x00000006,0x00000087,0x3e14deda,0x0004002b,0x00000006,0x00000088,0x3dec89ef,0x0004002b,
+ 0x00000006,0x00000089,0x3e46cebc,0x0007002c,0x00000009,0x0000008a,0x00000086,0x00000087,
+ 0x00000088,0x00000089,0x0004002b,0x00000006,0x0000008b,0xbdc98ef8,0x0004002b,0x00000006,
+ 0x0000008c,0xbd876fa3,0x0004002b,0x00000006,0x0000008d,0x3eb2788e,0x0004002b,0x00000006,
+ 0x0000008e,0xbc8e56a2,0x0007002c,0x00000009,0x0000008f,0x0000008b,0x0000008c,0x0000008d,
+ 0x0000008e,0x0004002b,0x00000006,0x00000090,0xbd348bfc,0x0004002b,0x00000006,0x00000091,
+ 0x3e04f2ff,0x0004002b,0x00000006,0x00000092,0x3d445629,0x0004002b,0x00000006,0x00000093,
+ 0xbe9d1f07,0x0007002c,0x00000009,0x00000094,0x00000090,0x00000091,0x00000092,0x00000093,
+ 0x0004002b,0x00000006,0x00000095,0x3dab11e8,0x0004002b,0x00000006,0x00000096,0x3dab0c0e,
+ 0x0004002b,0x00000006,0x00000097,0x3ddc7ef0,0x0004002b,0x00000006,0x00000098,0x3ea2cce1,
+ 0x0007002c,0x00000009,0x00000099,0x00000095,0x00000096,0x00000097,0x00000098,0x0007002c,
+ 0x0000002d,0x0000009a,0x0000008a,0x0000008f,0x00000094,0x00000099,0x0005002c,0x00000007,
+ 0x0000009b,0x00000047,0x00000043,0x0004002b,0x00000006,0x000000a3,0x3d461a85,0x0004002b,
+ 0x00000006,0x000000a4,0xbe33e213,0x0004002b,0x00000006,0x000000a5,0xbeaa0cc2,0x0004002b,
+ 0x00000006,0x000000a6,0xbd57b9bf,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,
+ 0x000000a5,0x000000a6,0x0004002b,0x00000006,0x000000a8,0xbe8763e7,0x0004002b,0x00000006,
+ 0x000000a9,0xbc276112,0x0004002b,0x00000006,0x000000aa,0x3e211b32,0x0004002b,0x00000006,
+ 0x000000ab,0x3d6a8245,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,
+ 0x000000ab,0x0004002b,0x00000006,0x000000ad,0x3da6ba0a,0x0004002b,0x00000006,0x000000ae,
+ 0xbdc5ee4a,0x0004002b,0x00000006,0x000000af,0x3d9bdf17,0x0004002b,0x00000006,0x000000b0,
+ 0xbcdb548c,0x0007002c,0x00000009,0x000000b1,0x000000ad,0x000000ae,0x000000af,0x000000b0,
+ 0x0004002b,0x00000006,0x000000b2,0x3d9e5d3c,0x0004002b,0x00000006,0x000000b3,0x3dd0a6e4,
+ 0x0004002b,0x00000006,0x000000b4,0xbe90ba10,0x0004002b,0x00000006,0x000000b5,0xbe263295,
+ 0x0007002c,0x00000009,0x000000b6,0x000000b2,0x000000b3,0x000000b4,0x000000b5,0x0007002c,
+ 0x0000002d,0x000000b7,0x000000a7,0x000000ac,0x000000b1,0x000000b6,0x0005002c,0x00000007,
+ 0x000000b8,0x00000047,0x00000047,0x0004002b,0x00000006,0x000000c0,0x3e993f4d,0x0004002b,
+ 0x00000006,0x000000c1,0x3df18ca0,0x0004002b,0x00000006,0x000000c2,0xbdd54766,0x0004002b,
+ 0x00000006,0x000000c3,0x3e0306c5,0x0007002c,0x00000009,0x000000c4,0x000000c0,0x000000c1,
+ 0x000000c2,0x000000c3,0x0004002b,0x00000006,0x000000c5,0x3e00c779,0x0004002b,0x00000006,
+ 0x000000c6,0x3e2eece4,0x0004002b,0x00000006,0x000000c7,0xbe21d46f,0x0004002b,0x00000006,
+ 0x000000c8,0x3e0987e3,0x0007002c,0x00000009,0x000000c9,0x000000c5,0x000000c6,0x000000c7,
+ 0x000000c8,0x0004002b,0x00000006,0x000000ca,0xbcd35d44,0x0004002b,0x00000006,0x000000cb,
+ 0xbddd1f7a,0x0004002b,0x00000006,0x000000cc,0x3d93aad8,0x0004002b,0x00000006,0x000000cd,
+ 0x3e90af6d,0x0007002c,0x00000009,0x000000ce,0x000000ca,0x000000cb,0x000000cc,0x000000cd,
+ 0x0004002b,0x00000006,0x000000cf,0xbde1cc19,0x0004002b,0x00000006,0x000000d0,0x3e030d3d,
+ 0x0004002b,0x00000006,0x000000d1,0x3da7956d,0x0004002b,0x00000006,0x000000d2,0xbd4e9c21,
+ 0x0007002c,0x00000009,0x000000d3,0x000000cf,0x000000d0,0x000000d1,0x000000d2,0x0007002c,
+ 0x0000002d,0x000000d4,0x000000c4,0x000000c9,0x000000ce,0x000000d3,0x0005002c,0x00000007,
+ 0x000000d5,0x00000047,0x0000007d,0x0004002b,0x00000006,0x000000dd,0xbdf23997,0x0004002b,
+ 0x00000006,0x000000de,0x3daa1f5f,0x0004002b,0x00000006,0x000000df,0xbeafa1d0,0x0004002b,
+ 0x00000006,0x000000e0,0x3da1c07b,0x0007002c,0x00000009,0x000000e1,0x000000dd,0x000000de,
+ 0x000000df,0x000000e0,0x0004002b,0x00000006,0x000000e2,0xbcc34b4d,0x0004002b,0x00000006,
+ 0x000000e3,0xbc9fcdd8,0x0004002b,0x00000006,0x000000e4,0x3e6d537f,0x0004002b,0x00000006,
+ 0x000000e5,0xbed1e175,0x0007002c,0x00000009,0x000000e6,0x000000e2,0x000000e3,0x000000e4,
+ 0x000000e5,0x0004002b,0x00000006,0x000000e7,0x3dc0c098,0x0004002b,0x00000006,0x000000e8,
+ 0x3ec4af66,0x0004002b,0x00000006,0x000000e9,0xbe84543c,0x0004002b,0x00000006,0x000000ea,
+ 0xbe998550,0x0007002c,0x00000009,0x000000eb,0x000000e7,0x000000e8,0x000000e9,0x000000ea,
+ 0x0004002b,0x00000006,0x000000ec,0x3e16a07e,0x0004002b,0x00000006,0x000000ed,0xbd8c3e24,
+ 0x0004002b,0x00000006,0x000000ee,0xbd90d20d,0x0004002b,0x00000006,0x000000ef,0xbcdb538b,
+ 0x0007002c,0x00000009,0x000000f0,0x000000ec,0x000000ed,0x000000ee,0x000000ef,0x0007002c,
+ 0x0000002d,0x000000f1,0x000000e1,0x000000e6,0x000000eb,0x000000f0,0x0005002c,0x00000007,
+ 0x000000f2,0x0000007d,0x00000043,0x0004002b,0x00000006,0x000000fa,0x3e437f79,0x0004002b,
+ 0x00000006,0x000000fb,0x3da82984,0x0004002b,0x00000006,0x000000fc,0xbf06d31e,0x0004002b,
+ 0x00000006,0x000000fd,0xbe32987c,0x0007002c,0x00000009,0x000000fe,0x000000fa,0x000000fb,
+ 0x000000fc,0x000000fd,0x0004002b,0x00000006,0x000000ff,0xbc81bf80,0x0004002b,0x00000006,
+ 0x00000100,0xbd3db627,0x0004002b,0x00000006,0x00000101,0x3cbdd153,0x0004002b,0x00000006,
+ 0x00000102,0xbd18d5d7,0x0007002c,0x00000009,0x00000103,0x000000ff,0x00000100,0x00000101,
+ 0x00000102,0x0004002b,0x00000006,0x00000104,0x3e874a6a,0x0004002b,0x00000006,0x00000105,
+ 0x3ea2f0af,0x0004002b,0x00000006,0x00000106,0xbd2b0713,0x0004002b,0x00000006,0x00000107,
+ 0xbdc31527,0x0007002c,0x00000009,0x00000108,0x00000104,0x00000105,0x00000106,0x00000107,
+ 0x0004002b,0x00000006,0x00000109,0xbe167d29,0x0004002b,0x00000006,0x0000010a,0x3d55af02,
+ 0x0004002b,0x00000006,0x0000010b,0x3d23414f,0x0004002b,0x00000006,0x0000010c,0xbce1bbc4,
+ 0x0007002c,0x00000009,0x0000010d,0x00000109,0x0000010a,0x0000010b,0x0000010c,0x0007002c,
+ 0x0000002d,0x0000010e,0x000000fe,0x00000103,0x00000108,0x0000010d,0x0005002c,0x00000007,
+ 0x0000010f,0x0000007d,0x00000047,0x0004002b,0x00000006,0x00000117,0x3e1bb937,0x0004002b,
+ 0x00000006,0x00000118,0x3dc9a3ff,0x0004002b,0x00000006,0x00000119,0x3c69afce,0x0004002b,
+ 0x00000006,0x0000011a,0x3dc560c3,0x0007002c,0x00000009,0x0000011b,0x00000117,0x00000118,
+ 0x00000119,0x0000011a,0x0004002b,0x00000006,0x0000011c,0x3d797143,0x0004002b,0x00000006,
+ 0x0000011d,0x3e375289,0x0004002b,0x00000006,0x0000011e,0xbed90c09,0x0004002b,0x00000006,
+ 0x0000011f,0x3e662606,0x0007002c,0x00000009,0x00000120,0x0000011c,0x0000011d,0x0000011e,
+ 0x0000011f,0x0004002b,0x00000006,0x00000121,0x3c85fdbc,0x0004002b,0x00000006,0x00000122,
+ 0xbd809057,0x0004002b,0x00000006,0x00000123,0xbdf94e51,0x0004002b,0x00000006,0x00000124,
+ 0xbe3ed3d5,0x0007002c,0x00000009,0x00000125,0x00000121,0x00000122,0x00000123,0x00000124,
+ 0x0004002b,0x00000006,0x00000126,0xbab06afc,0x0004002b,0x00000006,0x00000127,0x3e210878,
+ 0x0004002b,0x00000006,0x00000128,0x3c9e31c2,0x0004002b,0x00000006,0x00000129,0x3e4fce5d,
+ 0x0007002c,0x00000009,0x0000012a,0x00000126,0x00000127,0x00000128,0x00000129,0x0007002c,
+ 0x0000002d,0x0000012b,0x0000011b,0x00000120,0x00000125,0x0000012a,0x0005002c,0x00000007,
+ 0x0000012c,0x0000007d,0x0000007d,0x0004002b,0x00000006,0x00000134,0xbe3c5e09,0x0004002b,
+ 0x00000006,0x00000135,0x3e9d0b96,0x0004002b,0x00000006,0x00000136,0x3db905f5,0x0004002b,
+ 0x00000006,0x00000137,0x3e3a8fba,0x0007002c,0x00000009,0x00000138,0x00000134,0x00000135,
+ 0x00000136,0x00000137,0x0004002b,0x00000006,0x00000139,0xbd2b9fc1,0x0004002b,0x00000006,
+ 0x0000013a,0xbe5e2103,0x0004002b,0x00000006,0x0000013b,0xbe0fe4d0,0x0004002b,0x00000006,
+ 0x0000013c,0x3de16a11,0x0007002c,0x00000009,0x0000013d,0x00000139,0x0000013a,0x0000013b,
+ 0x0000013c,0x0004002b,0x00000006,0x0000013e,0x3e2f078a,0x0004002b,0x00000006,0x0000013f,
+ 0x3f02b82c,0x0004002b,0x00000006,0x00000140,0x3e0ce369,0x0004002b,0x00000006,0x00000141,
+ 0xbe65a328,0x0007002c,0x00000009,0x00000142,0x0000013e,0x0000013f,0x00000140,0x00000141,
+ 0x0004002b,0x00000006,0x00000143,0xbcf8e5b1,0x0004002b,0x00000006,0x00000144,0x3eabe851,
+ 0x0004002b,0x00000006,0x00000145,0xbe87a2a9,0x0004002b,0x00000006,0x00000146,0x3cccf571,
+ 0x0007002c,0x00000009,0x00000147,0x00000143,0x00000144,0x00000145,0x00000146,0x0007002c,
+ 0x0000002d,0x00000148,0x00000138,0x0000013d,0x00000142,0x00000147,0x0004002b,0x00000006,
+ 0x00000151,0x3d25efa0,0x0004002b,0x00000006,0x00000152,0x3e003c83,0x0004002b,0x00000006,
+ 0x00000153,0xbe8bded1,0x0004002b,0x00000006,0x00000154,0x3dabcbf6,0x0007002c,0x00000009,
+ 0x00000155,0x00000151,0x00000152,0x00000153,0x00000154,0x0004002b,0x00000006,0x00000156,
+ 0x3e81d117,0x0004002b,0x00000006,0x00000157,0x3eae4bbd,0x0004002b,0x00000006,0x00000158,
+ 0xbe86c853,0x0004002b,0x00000006,0x00000159,0xbe361c03,0x0007002c,0x00000009,0x0000015a,
+ 0x00000156,0x00000157,0x00000158,0x00000159,0x0004002b,0x00000006,0x0000015b,0x3e8be56b,
+ 0x0004002b,0x00000006,0x0000015c,0x3ee4ca38,0x0004002b,0x00000006,0x0000015d,0x3dad65e9,
+ 0x0004002b,0x00000006,0x0000015e,0xbe3e1445,0x0007002c,0x00000009,0x0000015f,0x0000015b,
+ 0x0000015c,0x0000015d,0x0000015e,0x0004002b,0x00000006,0x00000160,0x3d0bac50,0x0004002b,
+ 0x00000006,0x00000161,0xbc1c7745,0x0004002b,0x00000006,0x00000162,0xbea7b087,0x0004002b,
+ 0x00000006,0x00000163,0xbd7ecd4f,0x0007002c,0x00000009,0x00000164,0x00000160,0x00000161,
+ 0x00000162,0x00000163,0x0007002c,0x0000002d,0x00000165,0x00000155,0x0000015a,0x0000015f,
+ 0x00000164,0x0004002b,0x00000006,0x0000016e,0x3e33dcee,0x0004002b,0x00000006,0x0000016f,
+ 0x3dee803e,0x0004002b,0x00000006,0x00000170,0xbe278c4c,0x0004002b,0x00000006,0x00000171,
+ 0x3dd8613a,0x0007002c,0x00000009,0x00000172,0x0000016e,0x0000016f,0x00000170,0x00000171,
+ 0x0004002b,0x00000006,0x00000173,0xbe8d7177,0x0004002b,0x00000006,0x00000174,0xbe10c4fa,
+ 0x0004002b,0x00000006,0x00000175,0x3e6e3a22,0x0004002b,0x00000006,0x00000176,0xbe0f5d77,
+ 0x0007002c,0x00000009,0x00000177,0x00000173,0x00000174,0x00000175,0x00000176,0x0004002b,
+ 0x00000006,0x00000178,0x3dc36227,0x0004002b,0x00000006,0x00000179,0x3d929549,0x0004002b,
+ 0x00000006,0x0000017a,0xbe461aca,0x0004002b,0x00000006,0x0000017b,0xbce7b80a,0x0007002c,
+ 0x00000009,0x0000017c,0x00000178,0x00000179,0x0000017a,0x0000017b,0x0004002b,0x00000006,
+ 0x0000017d,0x3c208c84,0x0004002b,0x00000006,0x0000017e,0x3d26473f,0x0004002b,0x00000006,
+ 0x0000017f,0x3e499bca,0x0004002b,0x00000006,0x00000180,0x3e0350d9,0x0007002c,0x00000009,
+ 0x00000181,0x0000017d,0x0000017e,0x0000017f,0x00000180,0x0007002c,0x0000002d,0x00000182,
+ 0x00000172,0x00000177,0x0000017c,0x00000181,0x0004002b,0x00000006,0x0000018b,0x3e716a7f,
+ 0x0004002b,0x00000006,0x0000018c,0xbdea6ac8,0x0004002b,0x00000006,0x0000018d,0xbe51f7d4,
+ 0x0004002b,0x00000006,0x0000018e,0x3d11affd,0x0007002c,0x00000009,0x0000018f,0x0000018b,
+ 0x0000018c,0x0000018d,0x0000018e,0x0004002b,0x00000006,0x00000190,0x3ebce0bd,0x0004002b,
+ 0x00000006,0x00000191,0xbf5c1490,0x0004002b,0x00000006,0x00000192,0xbe3de777,0x0004002b,
+ 0x00000006,0x00000193,0x3ead099d,0x0007002c,0x00000009,0x00000194,0x00000190,0x00000191,
+ 0x00000192,0x00000193,0x0004002b,0x00000006,0x00000195,0xbe9e4b5e,0x0004002b,0x00000006,
+ 0x00000196,0xbdd5ec99,0x0004002b,0x00000006,0x00000197,0xbe9bf7d9,0x0004002b,0x00000006,
+ 0x00000198,0x3eaa5a46,0x0007002c,0x00000009,0x00000199,0x00000195,0x00000196,0x00000197,
+ 0x00000198,0x0004002b,0x00000006,0x0000019a,0xbd80473f,0x0004002b,0x00000006,0x0000019b,
+ 0xbe5d3218,0x0004002b,0x00000006,0x0000019c,0xbe27c407,0x0004002b,0x00000006,0x0000019d,
+ 0xbe9f9b8b,0x0007002c,0x00000009,0x0000019e,0x0000019a,0x0000019b,0x0000019c,0x0000019d,
+ 0x0007002c,0x0000002d,0x0000019f,0x0000018f,0x00000194,0x00000199,0x0000019e,0x0004002b,
+ 0x00000006,0x000001a8,0x3e519bff,0x0004002b,0x00000006,0x000001a9,0x3eced0e2,0x0004002b,
+ 0x00000006,0x000001aa,0xbd8f7a27,0x0004002b,0x00000006,0x000001ab,0x3cf8a704,0x0007002c,
+ 0x00000009,0x000001ac,0x000001a8,0x000001a9,0x000001aa,0x000001ab,0x0004002b,0x00000006,
+ 0x000001ad,0x3ecc0037,0x0004002b,0x00000006,0x000001ae,0xbe1e9e4f,0x0004002b,0x00000006,
+ 0x000001af,0xbe7aa3b8,0x0004002b,0x00000006,0x000001b0,0x3ec3c79e,0x0007002c,0x00000009,
+ 0x000001b1,0x000001ad,0x000001ae,0x000001af,0x000001b0,0x0004002b,0x00000006,0x000001b2,
+ 0xbe5f553c,0x0004002b,0x00000006,0x000001b3,0x3e709add,0x0004002b,0x00000006,0x000001b4,
+ 0xbd5425fc,0x0004002b,0x00000006,0x000001b5,0x3d09e3c5,0x0007002c,0x00000009,0x000001b6,
+ 0x000001b2,0x000001b3,0x000001b4,0x000001b5,0x0004002b,0x00000006,0x000001b7,0xbe139287,
+ 0x0004002b,0x00000006,0x000001b8,0xbe80c8ec,0x0004002b,0x00000006,0x000001b9,0x3dff4b54,
+ 0x0004002b,0x00000006,0x000001ba,0xbd6e5662,0x0007002c,0x00000009,0x000001bb,0x000001b7,
+ 0x000001b8,0x000001b9,0x000001ba,0x0007002c,0x0000002d,0x000001bc,0x000001ac,0x000001b1,
+ 0x000001b6,0x000001bb,0x0004002b,0x00000006,0x000001c5,0xbdb9aa8a,0x0004002b,0x00000006,
+ 0x000001c6,0xbe2be65a,0x0004002b,0x00000006,0x000001c7,0x3c596702,0x0004002b,0x00000006,
+ 0x000001c8,0x3e728ef8,0x0007002c,0x00000009,0x000001c9,0x000001c5,0x000001c6,0x000001c7,
+ 0x000001c8,0x0004002b,0x00000006,0x000001ca,0xbed4808a,0x0004002b,0x00000006,0x000001cb,
+ 0xbd4546a3,0x0004002b,0x00000006,0x000001cc,0x3ea29c80,0x0004002b,0x00000006,0x000001cd,
+ 0xbeac4866,0x0007002c,0x00000009,0x000001ce,0x000001ca,0x000001cb,0x000001cc,0x000001cd,
+ 0x0004002b,0x00000006,0x000001cf,0x3e9854f5,0x0004002b,0x00000006,0x000001d0,0x3e95db05,
+ 0x0004002b,0x00000006,0x000001d1,0x3e138be6,0x0004002b,0x00000006,0x000001d2,0xbeaaeb10,
+ 0x0007002c,0x00000009,0x000001d3,0x000001cf,0x000001d0,0x000001d1,0x000001d2,0x0004002b,
+ 0x00000006,0x000001d4,0xbe228ca1,0x0004002b,0x00000006,0x000001d5,0xbdf9c6b5,0x0004002b,
+ 0x00000006,0x000001d6,0x3df19ef0,0x0004002b,0x00000006,0x000001d7,0x3db854e5,0x0007002c,
+ 0x00000009,0x000001d8,0x000001d4,0x000001d5,0x000001d6,0x000001d7,0x0007002c,0x0000002d,
+ 0x000001d9,0x000001c9,0x000001ce,0x000001d3,0x000001d8,0x0004002b,0x00000006,0x000001e2,
+ 0x3e08c683,0x0004002b,0x00000006,0x000001e3,0x3c61822e,0x0004002b,0x00000006,0x000001e4,
+ 0x3c47629a,0x0004002b,0x00000006,0x000001e5,0xbde07318,0x0007002c,0x00000009,0x000001e6,
+ 0x000001e2,0x000001e3,0x000001e4,0x000001e5,0x0004002b,0x00000006,0x000001e7,0x3d0bf82e,
+ 0x0004002b,0x00000006,0x000001e8,0x3f33ff28,0x0004002b,0x00000006,0x000001e9,0x3f26c69c,
+ 0x0004002b,0x00000006,0x000001ea,0x3f066828,0x0007002c,0x00000009,0x000001eb,0x000001e7,
+ 0x000001e8,0x000001e9,0x000001ea,0x0004002b,0x00000006,0x000001ec,0xbf0056d5,0x0004002b,
+ 0x00000006,0x000001ed,0xbed6dc1a,0x0004002b,0x00000006,0x000001ee,0x3e9687b5,0x0004002b,
+ 0x00000006,0x000001ef,0x3f549ccc,0x0007002c,0x00000009,0x000001f0,0x000001ec,0x000001ed,
+ 0x000001ee,0x000001ef,0x0004002b,0x00000006,0x000001f1,0xbe342e6f,0x0004002b,0x00000006,
+ 0x000001f2,0x3e273853,0x0004002b,0x00000006,0x000001f3,0xbc984459,0x0004002b,0x00000006,
+ 0x000001f4,0x3da303a5,0x0007002c,0x00000009,0x000001f5,0x000001f1,0x000001f2,0x000001f3,
+ 0x000001f4,0x0007002c,0x0000002d,0x000001f6,0x000001e6,0x000001eb,0x000001f0,0x000001f5,
+ 0x0004002b,0x00000006,0x000001ff,0x3d9b0946,0x0004002b,0x00000006,0x00000200,0xbe21f073,
+ 0x0004002b,0x00000006,0x00000201,0x3d1ff25c,0x0004002b,0x00000006,0x00000202,0x3e187954,
+ 0x0007002c,0x00000009,0x00000203,0x000001ff,0x00000200,0x00000201,0x00000202,0x0004002b,
+ 0x00000006,0x00000204,0xbd5fb0c7,0x0004002b,0x00000006,0x00000205,0x3e32e2fd,0x0004002b,
+ 0x00000006,0x00000206,0xbee292c4,0x0004002b,0x00000006,0x00000207,0x3d143344,0x0007002c,
+ 0x00000009,0x00000208,0x00000204,0x00000205,0x00000206,0x00000207,0x0004002b,0x00000006,
+ 0x00000209,0xbeff075f,0x0004002b,0x00000006,0x0000020a,0xbec00976,0x0004002b,0x00000006,
+ 0x0000020b,0xbe3d1888,0x0004002b,0x00000006,0x0000020c,0x3e87779f,0x0007002c,0x00000009,
+ 0x0000020d,0x00000209,0x0000020a,0x0000020b,0x0000020c,0x0004002b,0x00000006,0x0000020e,
+ 0x3e80f89c,0x0004002b,0x00000006,0x0000020f,0xbcd42417,0x0004002b,0x00000006,0x00000210,
+ 0x3d0c862d,0x0004002b,0x00000006,0x00000211,0xbca7a069,0x0007002c,0x00000009,0x00000212,
+ 0x0000020e,0x0000020f,0x00000210,0x00000211,0x0007002c,0x0000002d,0x00000213,0x00000203,
+ 0x00000208,0x0000020d,0x00000212,0x0004002b,0x00000006,0x0000021c,0xbdee81df,0x0004002b,
+ 0x00000006,0x0000021d,0x3cbc21df,0x0004002b,0x00000006,0x0000021e,0x3d27906e,0x0004002b,
+ 0x00000006,0x0000021f,0x3c76e600,0x0007002c,0x00000009,0x00000220,0x0000021c,0x0000021d,
+ 0x0000021e,0x0000021f,0x0004002b,0x00000006,0x00000221,0x3d7f1e1a,0x0004002b,0x00000006,
+ 0x00000222,0xbe66ac91,0x0004002b,0x00000006,0x00000223,0x3dbd4441,0x0004002b,0x00000006,
+ 0x00000224,0xbea707b0,0x0007002c,0x00000009,0x00000225,0x00000221,0x00000222,0x00000223,
+ 0x00000224,0x0004002b,0x00000006,0x00000226,0x3e3a74dd,0x0004002b,0x00000006,0x00000227,
+ 0x3eca7597,0x0004002b,0x00000006,0x00000228,0x3e93af4d,0x0004002b,0x00000006,0x00000229,
+ 0xbe80b474,0x0007002c,0x00000009,0x0000022a,0x00000226,0x00000227,0x00000228,0x00000229,
+ 0x0004002b,0x00000006,0x0000022b,0xbd18818d,0x0004002b,0x00000006,0x0000022c,0xbdd0985a,
+ 0x0004002b,0x00000006,0x0000022d,0xbe37dff8,0x0004002b,0x00000006,0x0000022e,0x3c9b5f89,
+ 0x0007002c,0x00000009,0x0000022f,0x0000022b,0x0000022c,0x0000022d,0x0000022e,0x0007002c,
+ 0x0000002d,0x00000230,0x00000220,0x00000225,0x0000022a,0x0000022f,0x0004002b,0x00000006,
+ 0x00000239,0xbe27a629,0x0004002b,0x00000006,0x0000023a,0xbcc9b04c,0x0004002b,0x00000006,
+ 0x0000023b,0xbd1273b9,0x0004002b,0x00000006,0x0000023c,0x3d2b14ac,0x0007002c,0x00000009,
+ 0x0000023d,0x00000239,0x0000023a,0x0000023b,0x0000023c,0x00040015,0x00000243,0x00000020,
+ 0x00000000,0x00040017,0x00000244,0x00000243,0x00000003,0x00040020,0x00000245,0x00000001,
+ 0x00000244,0x0004003b,0x00000245,0x00000246,0x00000001,0x00040017,0x00000247,0x00000243,
+ 0x00000002,0x0004003b,0x00000016,0x0000024c,0x00000000,0x00020014,0x0000024f,0x0004002b,
+ 0x00000243,0x00000250,0x00000000,0x00040020,0x00000251,0x00000006,0x00000011,0x00040020,
+ 0x00000254,0x00000007,0x00000011,0x0004002b,0x00000243,0x0000025b,0x00000001,0x0004002b,
+ 0x00000243,0x00000268,0x00000008,0x0006002c,0x00000244,0x00000269,0x00000268,0x00000268,
+ 0x0000025b,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
+ 0x0004003b,0x00000013,0x0000024b,0x00000007,0x0004003d,0x00000244,0x00000248,0x00000246,
+ 0x0007004f,0x00000247,0x00000249,0x00000248,0x00000248,0x00000000,0x00000001,0x0004007c,
+ 0x00000012,0x0000024a,0x00000249,0x0003003e,0x0000001c,0x0000024a,0x0004003d,0x00000015,
+ 0x0000024d,0x0000024c,0x00040068,0x00000012,0x0000024e,0x0000024d,0x0003003e,0x0000024b,
+ 0x0000024e,0x00050041,0x00000251,0x00000252,0x0000001c,0x00000250,0x0004003d,0x00000011,
+ 0x00000253,0x00000252,0x00050041,0x00000254,0x00000255,0x0000024b,0x00000250,0x0004003d,
+ 0x00000011,0x00000256,0x00000255,0x000500af,0x0000024f,0x00000257,0x00000253,0x00000256,
+ 0x000400a8,0x0000024f,0x00000258,0x00000257,0x000300f7,0x0000025a,0x00000000,0x000400fa,
+ 0x00000258,0x00000259,0x0000025a,0x000200f8,0x00000259,0x00050041,0x00000251,0x0000025c,
+ 0x0000001c,0x0000025b,0x0004003d,0x00000011,0x0000025d,0x0000025c,0x00050041,0x00000254,
+ 0x0000025e,0x0000024b,0x0000025b,0x0004003d,0x00000011,0x0000025f,0x0000025e,0x000500af,
+ 0x0000024f,0x00000260,0x0000025d,0x0000025f,0x000200f9,0x0000025a,0x000200f8,0x0000025a,
+ 0x000700f5,0x0000024f,0x00000261,0x00000257,0x00000005,0x00000260,0x00000259,0x000300f7,
+ 0x00000263,0x00000000,0x000400fa,0x00000261,0x00000262,0x00000263,0x000200f8,0x00000262,
+ 0x000100fd,0x000200f8,0x00000263,0x0004003d,0x00000015,0x00000265,0x0000024c,0x0004003d,
+ 0x00000012,0x00000266,0x0000001c,0x00040039,0x00000009,0x00000267,0x0000000f,0x00040063,
+ 0x00000265,0x00000266,0x00000267,0x000100fd,0x00010038,0x00050036,0x00000009,0x0000000c,
+ 0x00000000,0x0000000a,0x00030037,0x00000008,0x0000000b,0x000200f8,0x0000000d,0x0004003b,
+ 0x00000013,0x00000014,0x00000007,0x0004003d,0x00000015,0x00000018,0x00000017,0x00040068,
+ 0x00000012,0x00000019,0x00000018,0x0003003e,0x00000014,0x00000019,0x0004003d,0x00000015,
+ 0x0000001a,0x00000017,0x0004003d,0x00000012,0x0000001d,0x0000001c,0x0004003d,0x00000007,
+ 0x0000001e,0x0000000b,0x0004006e,0x00000012,0x0000001f,0x0000001e,0x00050080,0x00000012,
+ 0x00000020,0x0000001d,0x0000001f,0x0004003d,0x00000012,0x00000023,0x00000014,0x00050050,
+ 0x00000012,0x00000025,0x00000024,0x00000024,0x00050082,0x00000012,0x00000026,0x00000023,
+ 0x00000025,0x0008000c,0x00000012,0x00000027,0x00000001,0x0000002d,0x00000020,0x00000022,
+ 0x00000026,0x00050062,0x00000009,0x00000028,0x0000001a,0x00000027,0x000200fe,0x00000028,
+ 0x00010038,0x00050036,0x00000009,0x0000000f,0x00000000,0x0000000e,0x000200f8,0x00000010,
+ 0x0004003b,0x0000002b,0x0000002c,0x00000007,0x0004003b,0x00000008,0x00000045,0x00000007,
+ 0x0004003b,0x00000008,0x00000061,0x00000007,0x0004003b,0x00000008,0x0000007f,0x00000007,
+ 0x0004003b,0x00000008,0x0000009c,0x00000007,0x0004003b,0x00000008,0x000000b9,0x00000007,
+ 0x0004003b,0x00000008,0x000000d6,0x00000007,0x0004003b,0x00000008,0x000000f3,0x00000007,
+ 0x0004003b,0x00000008,0x00000110,0x00000007,0x0004003b,0x00000008,0x0000012d,0x00000007,
+ 0x0004003b,0x00000008,0x00000149,0x00000007,0x0004003b,0x00000008,0x00000166,0x00000007,
+ 0x0004003b,0x00000008,0x00000183,0x00000007,0x0004003b,0x00000008,0x000001a0,0x00000007,
+ 0x0004003b,0x00000008,0x000001bd,0x00000007,0x0004003b,0x00000008,0x000001da,0x00000007,
+ 0x0004003b,0x00000008,0x000001f7,0x00000007,0x0004003b,0x00000008,0x00000214,0x00000007,
+ 0x0004003b,0x00000008,0x00000231,0x00000007,0x0003003e,0x00000045,0x00000044,0x00050039,
+ 0x00000009,0x00000046,0x0000000c,0x00000045,0x00070050,0x00000009,0x00000048,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000049,0x00000001,0x00000028,
+ 0x00000046,0x00000048,0x00050091,0x00000009,0x0000004a,0x00000042,0x00000049,0x0003003e,
+ 0x0000002c,0x0000004a,0x0003003e,0x00000061,0x00000060,0x00050039,0x00000009,0x00000062,
+ 0x0000000c,0x00000061,0x00070050,0x00000009,0x00000063,0x00000047,0x00000047,0x00000047,
+ 0x00000047,0x0007000c,0x00000009,0x00000064,0x00000001,0x00000028,0x00000062,0x00000063,
+ 0x00050091,0x00000009,0x00000065,0x0000005f,0x00000064,0x0004003d,0x00000009,0x00000066,
+ 0x0000002c,0x00050081,0x00000009,0x00000067,0x00000066,0x00000065,0x0003003e,0x0000002c,
+ 0x00000067,0x0003003e,0x0000007f,0x0000007e,0x00050039,0x00000009,0x00000080,0x0000000c,
+ 0x0000007f,0x00070050,0x00000009,0x00000081,0x00000047,0x00000047,0x00000047,0x00000047,
+ 0x0007000c,0x00000009,0x00000082,0x00000001,0x00000028,0x00000080,0x00000081,0x00050091,
+ 0x00000009,0x00000083,0x0000007c,0x00000082,0x0004003d,0x00000009,0x00000084,0x0000002c,
+ 0x00050081,0x00000009,0x00000085,0x00000084,0x00000083,0x0003003e,0x0000002c,0x00000085,
+ 0x0003003e,0x0000009c,0x0000009b,0x00050039,0x00000009,0x0000009d,0x0000000c,0x0000009c,
+ 0x00070050,0x00000009,0x0000009e,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,
+ 0x00000009,0x0000009f,0x00000001,0x00000028,0x0000009d,0x0000009e,0x00050091,0x00000009,
+ 0x000000a0,0x0000009a,0x0000009f,0x0004003d,0x00000009,0x000000a1,0x0000002c,0x00050081,
+ 0x00000009,0x000000a2,0x000000a1,0x000000a0,0x0003003e,0x0000002c,0x000000a2,0x0003003e,
+ 0x000000b9,0x000000b8,0x00050039,0x00000009,0x000000ba,0x0000000c,0x000000b9,0x00070050,
+ 0x00000009,0x000000bb,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,
+ 0x000000bc,0x00000001,0x00000028,0x000000ba,0x000000bb,0x00050091,0x00000009,0x000000bd,
+ 0x000000b7,0x000000bc,0x0004003d,0x00000009,0x000000be,0x0000002c,0x00050081,0x00000009,
+ 0x000000bf,0x000000be,0x000000bd,0x0003003e,0x0000002c,0x000000bf,0x0003003e,0x000000d6,
+ 0x000000d5,0x00050039,0x00000009,0x000000d7,0x0000000c,0x000000d6,0x00070050,0x00000009,
+ 0x000000d8,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000000d9,
+ 0x00000001,0x00000028,0x000000d7,0x000000d8,0x00050091,0x00000009,0x000000da,0x000000d4,
+ 0x000000d9,0x0004003d,0x00000009,0x000000db,0x0000002c,0x00050081,0x00000009,0x000000dc,
+ 0x000000db,0x000000da,0x0003003e,0x0000002c,0x000000dc,0x0003003e,0x000000f3,0x000000f2,
+ 0x00050039,0x00000009,0x000000f4,0x0000000c,0x000000f3,0x00070050,0x00000009,0x000000f5,
+ 0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000000f6,0x00000001,
+ 0x00000028,0x000000f4,0x000000f5,0x00050091,0x00000009,0x000000f7,0x000000f1,0x000000f6,
+ 0x0004003d,0x00000009,0x000000f8,0x0000002c,0x00050081,0x00000009,0x000000f9,0x000000f8,
+ 0x000000f7,0x0003003e,0x0000002c,0x000000f9,0x0003003e,0x00000110,0x0000010f,0x00050039,
+ 0x00000009,0x00000111,0x0000000c,0x00000110,0x00070050,0x00000009,0x00000112,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000113,0x00000001,0x00000028,
+ 0x00000111,0x00000112,0x00050091,0x00000009,0x00000114,0x0000010e,0x00000113,0x0004003d,
+ 0x00000009,0x00000115,0x0000002c,0x00050081,0x00000009,0x00000116,0x00000115,0x00000114,
+ 0x0003003e,0x0000002c,0x00000116,0x0003003e,0x0000012d,0x0000012c,0x00050039,0x00000009,
+ 0x0000012e,0x0000000c,0x0000012d,0x00070050,0x00000009,0x0000012f,0x00000047,0x00000047,
+ 0x00000047,0x00000047,0x0007000c,0x00000009,0x00000130,0x00000001,0x00000028,0x0000012e,
+ 0x0000012f,0x00050091,0x00000009,0x00000131,0x0000012b,0x00000130,0x0004003d,0x00000009,
+ 0x00000132,0x0000002c,0x00050081,0x00000009,0x00000133,0x00000132,0x00000131,0x0003003e,
+ 0x0000002c,0x00000133,0x0003003e,0x00000149,0x00000044,0x00050039,0x00000009,0x0000014a,
+ 0x0000000c,0x00000149,0x0004007f,0x00000009,0x0000014b,0x0000014a,0x00070050,0x00000009,
+ 0x0000014c,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x0000014d,
+ 0x00000001,0x00000028,0x0000014b,0x0000014c,0x00050091,0x00000009,0x0000014e,0x00000148,
+ 0x0000014d,0x0004003d,0x00000009,0x0000014f,0x0000002c,0x00050081,0x00000009,0x00000150,
+ 0x0000014f,0x0000014e,0x0003003e,0x0000002c,0x00000150,0x0003003e,0x00000166,0x00000060,
+ 0x00050039,0x00000009,0x00000167,0x0000000c,0x00000166,0x0004007f,0x00000009,0x00000168,
+ 0x00000167,0x00070050,0x00000009,0x00000169,0x00000047,0x00000047,0x00000047,0x00000047,
+ 0x0007000c,0x00000009,0x0000016a,0x00000001,0x00000028,0x00000168,0x00000169,0x00050091,
+ 0x00000009,0x0000016b,0x00000165,0x0000016a,0x0004003d,0x00000009,0x0000016c,0x0000002c,
+ 0x00050081,0x00000009,0x0000016d,0x0000016c,0x0000016b,0x0003003e,0x0000002c,0x0000016d,
+ 0x0003003e,0x00000183,0x0000007e,0x00050039,0x00000009,0x00000184,0x0000000c,0x00000183,
+ 0x0004007f,0x00000009,0x00000185,0x00000184,0x00070050,0x00000009,0x00000186,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000187,0x00000001,0x00000028,
+ 0x00000185,0x00000186,0x00050091,0x00000009,0x00000188,0x00000182,0x00000187,0x0004003d,
+ 0x00000009,0x00000189,0x0000002c,0x00050081,0x00000009,0x0000018a,0x00000189,0x00000188,
+ 0x0003003e,0x0000002c,0x0000018a,0x0003003e,0x000001a0,0x0000009b,0x00050039,0x00000009,
+ 0x000001a1,0x0000000c,0x000001a0,0x0004007f,0x00000009,0x000001a2,0x000001a1,0x00070050,
+ 0x00000009,0x000001a3,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,
+ 0x000001a4,0x00000001,0x00000028,0x000001a2,0x000001a3,0x00050091,0x00000009,0x000001a5,
+ 0x0000019f,0x000001a4,0x0004003d,0x00000009,0x000001a6,0x0000002c,0x00050081,0x00000009,
+ 0x000001a7,0x000001a6,0x000001a5,0x0003003e,0x0000002c,0x000001a7,0x0003003e,0x000001bd,
+ 0x000000b8,0x00050039,0x00000009,0x000001be,0x0000000c,0x000001bd,0x0004007f,0x00000009,
+ 0x000001bf,0x000001be,0x00070050,0x00000009,0x000001c0,0x00000047,0x00000047,0x00000047,
+ 0x00000047,0x0007000c,0x00000009,0x000001c1,0x00000001,0x00000028,0x000001bf,0x000001c0,
+ 0x00050091,0x00000009,0x000001c2,0x000001bc,0x000001c1,0x0004003d,0x00000009,0x000001c3,
+ 0x0000002c,0x00050081,0x00000009,0x000001c4,0x000001c3,0x000001c2,0x0003003e,0x0000002c,
+ 0x000001c4,0x0003003e,0x000001da,0x000000d5,0x00050039,0x00000009,0x000001db,0x0000000c,
+ 0x000001da,0x0004007f,0x00000009,0x000001dc,0x000001db,0x00070050,0x00000009,0x000001dd,
+ 0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000001de,0x00000001,
+ 0x00000028,0x000001dc,0x000001dd,0x00050091,0x00000009,0x000001df,0x000001d9,0x000001de,
+ 0x0004003d,0x00000009,0x000001e0,0x0000002c,0x00050081,0x00000009,0x000001e1,0x000001e0,
+ 0x000001df,0x0003003e,0x0000002c,0x000001e1,0x0003003e,0x000001f7,0x000000f2,0x00050039,
+ 0x00000009,0x000001f8,0x0000000c,0x000001f7,0x0004007f,0x00000009,0x000001f9,0x000001f8,
+ 0x00070050,0x00000009,0x000001fa,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,
+ 0x00000009,0x000001fb,0x00000001,0x00000028,0x000001f9,0x000001fa,0x00050091,0x00000009,
+ 0x000001fc,0x000001f6,0x000001fb,0x0004003d,0x00000009,0x000001fd,0x0000002c,0x00050081,
+ 0x00000009,0x000001fe,0x000001fd,0x000001fc,0x0003003e,0x0000002c,0x000001fe,0x0003003e,
+ 0x00000214,0x0000010f,0x00050039,0x00000009,0x00000215,0x0000000c,0x00000214,0x0004007f,
+ 0x00000009,0x00000216,0x00000215,0x00070050,0x00000009,0x00000217,0x00000047,0x00000047,
+ 0x00000047,0x00000047,0x0007000c,0x00000009,0x00000218,0x00000001,0x00000028,0x00000216,
+ 0x00000217,0x00050091,0x00000009,0x00000219,0x00000213,0x00000218,0x0004003d,0x00000009,
+ 0x0000021a,0x0000002c,0x00050081,0x00000009,0x0000021b,0x0000021a,0x00000219,0x0003003e,
+ 0x0000002c,0x0000021b,0x0003003e,0x00000231,0x0000012c,0x00050039,0x00000009,0x00000232,
+ 0x0000000c,0x00000231,0x0004007f,0x00000009,0x00000233,0x00000232,0x00070050,0x00000009,
+ 0x00000234,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000235,
+ 0x00000001,0x00000028,0x00000233,0x00000234,0x00050091,0x00000009,0x00000236,0x00000230,
+ 0x00000235,0x0004003d,0x00000009,0x00000237,0x0000002c,0x00050081,0x00000009,0x00000238,
+ 0x00000237,0x00000236,0x0003003e,0x0000002c,0x00000238,0x0004003d,0x00000009,0x0000023e,
+ 0x0000002c,0x00050081,0x00000009,0x0000023f,0x0000023e,0x0000023d,0x0003003e,0x0000002c,
+ 0x0000023f,0x0004003d,0x00000009,0x00000240,0x0000002c,0x000200fe,0x00000240,0x00010038
+};
diff --git a/src/display/shaders/a4k_r_conv2.comp b/src/display/shaders/a4k_r_conv2.comp
new file mode 100644
index 0000000..986e9af
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv2.comp
@@ -0,0 +1,64 @@
+#version 450
+// MIT License
+
+// Copyright (c) 2019-2021 bloc97
+// All rights reserved.
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+// Generated by tools/gen-anime4k.py from Anime4K-v4.0-Restore-CNN-(S)-Conv-4x3x3x8 (input conv2d_1_tf); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba16f) uniform readonly image2D inputImage;
+layout(binding = 1, rgba16f) uniform writeonly image2D outputImage;
+
+ivec2 pixel;
+vec4 load_input(vec2 offset) {
+ ivec2 size = imageSize(inputImage);
+ return imageLoad(inputImage, clamp(pixel + ivec2(offset), ivec2(0), size - 1));
+}
+#define go_0(x_off, y_off) (max((load_input(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(load_input(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(0.01921286, -0.26684764, -0.12663573, 0.31641877, -0.25313398, 0.12264074, 0.58750325, -0.14084283, 0.5837018, -0.042300556, -0.20435576, -0.009954825, 0.060783498, 0.05540401, 0.2205112, -0.06578902) * go_0(-1.0, -1.0);
+ result += mat4(-0.21930243, -0.03774968, 0.22615197, 0.18338196, 0.011201461, -0.271034, 0.00573116, -0.12248194, 0.47990513, 0.2982416, -0.1087603, -0.050099242, -0.07620939, -0.07148229, 0.03691984, -0.16796488) * go_0(-1.0, 0.0);
+ result += mat4(-0.14962853, -0.053769328, 0.02387081, 0.22002189, 0.052237745, -0.26160842, -0.08603077, 0.012542448, 0.08119985, 0.075785555, -0.33437458, -0.43373227, -0.13206963, -0.08759176, -0.03288923, -0.09799959) * go_0(-1.0, 1.0);
+ result += mat4(-0.1305593, -0.5974288, 0.06058367, 0.08406488, 0.013692483, 0.06646377, 0.16469325, 0.08990975, 0.42217395, -0.11289523, -0.06165009, 0.48556912, -0.15702641, -0.19922857, -0.0035429662, -0.0022089656) * go_0(0.0, -1.0);
+ result += mat4(-0.1964807, 0.038099788, 0.21587034, 0.039734077, -0.07063389, 0.11604167, -0.24558097, -0.08900199, -0.7684516, -0.1037487, -0.09380674, 0.33144563, -0.16653742, 0.0028585843, -0.33774406, -0.0528696) * go_0(0.0, 0.0);
+ result += mat4(-0.27298656, -0.05665099, 0.09661685, 0.19780266, 0.1025106, -0.22055034, -0.21218458, -0.040628925, 0.0095010325, 0.13118382, -0.42582452, -0.22197723, 0.21006055, -0.06189587, -0.15285942, -0.09526762) * go_0(0.0, 1.0);
+ result += mat4(-0.14494462, -0.046788953, 0.065877035, 0.09911713, 0.35096622, 0.16682479, 0.028363144, 0.36037162, 0.29413632, 0.28212717, -0.025364442, -0.3406269, 0.047262143, -0.11892685, -0.008032766, 0.29743317) * go_0(1.0, -1.0);
+ result += mat4(-0.15191558, -0.36980554, 0.14555687, 0.0043930537, -0.012661432, 0.15737776, -0.115250416, 0.10324491, 0.24491951, -0.15575431, -0.27802598, 0.21959937, 0.18063772, 0.4455559, -0.09693302, 0.33382267) * go_0(1.0, 0.0);
+ result += mat4(0.2717801, 0.13452889, 0.14105384, 0.16324317, -0.40111846, 0.1154301, -0.0076733204, -0.09697362, 0.44306824, -0.02831414, -0.2153124, -0.12075326, 0.060776163, 0.30347148, -0.0036976219, -0.12070682) * go_0(1.0, 1.0);
+ result += mat4(-0.39780128, -0.29875937, -0.12952097, 0.080333896, 0.07520163, 0.021689568, -0.23121156, -0.038140096, -0.1593877, 0.017156163, -0.06038025, 0.009244022, -0.13917233, 0.30957314, 0.243109, -0.104947075) * go_1(-1.0, -1.0);
+ result += mat4(-0.07965157, 0.06776501, -0.13288979, 0.005851189, -0.08768168, -0.03689969, 0.12034646, 0.22441491, 0.14453568, -0.17648841, -0.3378289, -0.018329712, 0.11722939, -0.34161824, 0.08424494, -0.01400687) * go_1(-1.0, 0.0);
+ result += mat4(0.08153887, 0.07222914, -0.14663404, -0.038526025, -0.07385973, 0.18440577, 0.35890242, 0.17084727, 0.26345527, 0.15280858, -0.007446105, -0.024403179, -0.30336383, -0.22978698, 0.11612946, -0.23614909) * go_1(-1.0, 1.0);
+ result += mat4(-0.07447396, 0.09023449, -0.13798, -0.086943336, -0.30787337, 0.15087669, 0.14418626, -0.03371195, 0.048989657, -0.13075387, -0.13458036, -0.059836224, 0.06495196, 0.269715, 0.3674355, 0.38956037) * go_1(0.0, -1.0);
+ result += mat4(0.34981915, -0.048779126, 0.31717536, 0.38080826, -0.20149232, -0.82969636, -0.10167862, 0.6382858, 0.25976858, 0.4370118, -0.04724865, -0.10014156, 0.19380626, -0.080370255, 0.09578106, -0.035166856) * go_1(0.0, 0.0);
+ result += mat4(-0.026443917, 0.4132611, 0.01822534, 0.12742202, -0.26652107, -0.2996705, 0.30905882, 0.07989903, 0.38249823, 0.21486135, 0.025314959, -0.14717339, -0.13344015, -0.32088286, -0.2833883, -0.30973712) * go_1(0.0, 1.0);
+ result += mat4(0.021517841, 0.006556378, 0.2025686, -0.12044382, -0.38583103, -0.0027515136, -0.06556736, -0.097090125, 0.04676486, -0.11954886, -0.051612873, 0.07831412, -0.18823163, -0.16542958, 0.04245155, 0.6437998) * go_1(1.0, -1.0);
+ result += mat4(-0.39475346, -0.2936861, 0.26768062, -0.28151843, 0.21935691, 0.2101108, -0.15455097, 0.19548604, 0.09188909, -0.020147726, 0.103328265, -0.12574542, -0.34167948, 0.07523185, -0.17669058, 0.62446547) * go_1(1.0, 0.0);
+ result += mat4(-0.37661025, -0.29630858, 0.05451026, 0.1611643, 0.14079669, -0.2170294, -0.038716137, 0.13514164, -0.21235192, -0.07860726, -0.005749412, 0.025625167, -0.13297133, 0.33012658, -0.27434957, -0.18416783) * go_1(1.0, 1.0);
+ result += vec4(-0.0036821906, -0.050239526, -0.01355402, 0.00048220603);
+ return result;
+}
+
+void main() {
+ pixel = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(outputImage);
+ if (pixel.x >= size.x || pixel.y >= size.y) return;
+ imageStore(outputImage, pixel, hook());
+}
diff --git a/src/display/shaders/a4k_r_conv2.spv.h b/src/display/shaders/a4k_r_conv2.spv.h
new file mode 100644
index 0000000..3976ead
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv2.spv.h
@@ -0,0 +1,408 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_r_conv2[] = {
+ 0x07230203,0x00010600,0x0008000b,0x0000026a,0x00000000,0x00020011,0x00000001,0x00020011,
+ 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
+ 0x00000000,0x00000001,0x0009000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000017,
+ 0x0000001c,0x00000246,0x0000024c,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,
+ 0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,
+ 0x00060005,0x0000000c,0x64616f6c,0x706e695f,0x76287475,0x003b3266,0x00040005,0x0000000b,
+ 0x7366666f,0x00007465,0x00040005,0x0000000f,0x6b6f6f68,0x00000028,0x00040005,0x00000014,
+ 0x657a6973,0x00000000,0x00050005,0x00000017,0x75706e69,0x616d4974,0x00006567,0x00040005,
+ 0x0000001c,0x65786970,0x0000006c,0x00040005,0x0000002c,0x75736572,0x0000746c,0x00040005,
+ 0x00000045,0x61726170,0x0000006d,0x00040005,0x00000061,0x61726170,0x0000006d,0x00040005,
+ 0x0000007f,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170,0x0000006d,0x00040005,
+ 0x000000b9,0x61726170,0x0000006d,0x00040005,0x000000d6,0x61726170,0x0000006d,0x00040005,
+ 0x000000f3,0x61726170,0x0000006d,0x00040005,0x00000110,0x61726170,0x0000006d,0x00040005,
+ 0x0000012d,0x61726170,0x0000006d,0x00040005,0x00000149,0x61726170,0x0000006d,0x00040005,
+ 0x00000166,0x61726170,0x0000006d,0x00040005,0x00000183,0x61726170,0x0000006d,0x00040005,
+ 0x000001a0,0x61726170,0x0000006d,0x00040005,0x000001bd,0x61726170,0x0000006d,0x00040005,
+ 0x000001da,0x61726170,0x0000006d,0x00040005,0x000001f7,0x61726170,0x0000006d,0x00040005,
+ 0x00000214,0x61726170,0x0000006d,0x00040005,0x00000231,0x61726170,0x0000006d,0x00080005,
+ 0x00000246,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00040005,
+ 0x0000024b,0x657a6973,0x00000000,0x00050005,0x0000024c,0x7074756f,0x6d497475,0x00656761,
+ 0x00030047,0x00000017,0x00000018,0x00040047,0x00000017,0x00000021,0x00000000,0x00040047,
+ 0x00000017,0x00000022,0x00000000,0x00040047,0x00000246,0x0000000b,0x0000001c,0x00030047,
+ 0x0000024c,0x00000019,0x00040047,0x0000024c,0x00000021,0x00000001,0x00040047,0x0000024c,
+ 0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,
+ 0x00000006,0x00000020,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,
+ 0x00000007,0x00000007,0x00040017,0x00000009,0x00000006,0x00000004,0x00040021,0x0000000a,
+ 0x00000009,0x00000008,0x00030021,0x0000000e,0x00000009,0x00040015,0x00000011,0x00000020,
+ 0x00000001,0x00040017,0x00000012,0x00000011,0x00000002,0x00040020,0x00000013,0x00000007,
+ 0x00000012,0x00090019,0x00000015,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,
+ 0x00000002,0x00000002,0x00040020,0x00000016,0x00000000,0x00000015,0x0004003b,0x00000016,
+ 0x00000017,0x00000000,0x00040020,0x0000001b,0x00000006,0x00000012,0x0004003b,0x0000001b,
+ 0x0000001c,0x00000006,0x0004002b,0x00000011,0x00000021,0x00000000,0x0005002c,0x00000012,
+ 0x00000022,0x00000021,0x00000021,0x0004002b,0x00000011,0x00000024,0x00000001,0x00040020,
+ 0x0000002b,0x00000007,0x00000009,0x00040018,0x0000002d,0x00000009,0x00000004,0x0004002b,
+ 0x00000006,0x0000002e,0x3c9d644a,0x0004002b,0x00000006,0x0000002f,0xbe88a041,0x0004002b,
+ 0x00000006,0x00000030,0xbe01accc,0x0004002b,0x00000006,0x00000031,0x3ea201a4,0x0007002c,
+ 0x00000009,0x00000032,0x0000002e,0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,
+ 0x00000033,0xbe819ac7,0x0004002b,0x00000006,0x00000034,0x3dfb2b11,0x0004002b,0x00000006,
+ 0x00000035,0x3f16669d,0x0004002b,0x00000006,0x00000036,0xbe10391a,0x0007002c,0x00000009,
+ 0x00000037,0x00000033,0x00000034,0x00000035,0x00000036,0x0004002b,0x00000006,0x00000038,
+ 0x3f156d7b,0x0004002b,0x00000006,0x00000039,0xbd2d4359,0x0004002b,0x00000006,0x0000003a,
+ 0xbe5142a3,0x0004002b,0x00000006,0x0000003b,0xbc231990,0x0007002c,0x00000009,0x0000003c,
+ 0x00000038,0x00000039,0x0000003a,0x0000003b,0x0004002b,0x00000006,0x0000003d,0x3d78f81e,
+ 0x0004002b,0x00000006,0x0000003e,0x3d62ef51,0x0004002b,0x00000006,0x0000003f,0x3e61cdb0,
+ 0x0004002b,0x00000006,0x00000040,0xbd86bc65,0x0007002c,0x00000009,0x00000041,0x0000003d,
+ 0x0000003e,0x0000003f,0x00000040,0x0007002c,0x0000002d,0x00000042,0x00000032,0x00000037,
+ 0x0000003c,0x00000041,0x0004002b,0x00000006,0x00000043,0xbf800000,0x0005002c,0x00000007,
+ 0x00000044,0x00000043,0x00000043,0x0004002b,0x00000006,0x00000047,0x00000000,0x0004002b,
+ 0x00000006,0x0000004b,0xbe6090d1,0x0004002b,0x00000006,0x0000004c,0xbd1a9f69,0x0004002b,
+ 0x00000006,0x0000004d,0x3e679462,0x0004002b,0x00000006,0x0000004e,0x3e3bc87b,0x0007002c,
+ 0x00000009,0x0000004f,0x0000004b,0x0000004c,0x0000004d,0x0000004e,0x0004002b,0x00000006,
+ 0x00000050,0x3c378655,0x0004002b,0x00000006,0x00000051,0xbe8ac4f8,0x0004002b,0x00000006,
+ 0x00000052,0x3bbbcc74,0x0004002b,0x00000006,0x00000053,0xbdfad7d0,0x0007002c,0x00000009,
+ 0x00000054,0x00000050,0x00000051,0x00000052,0x00000053,0x0004002b,0x00000006,0x00000055,
+ 0x3ef5b620,0x0004002b,0x00000006,0x00000056,0x3e98b31f,0x0004002b,0x00000006,0x00000057,
+ 0xbddebdb8,0x0004002b,0x00000006,0x00000058,0xbd4d34dd,0x0007002c,0x00000009,0x00000059,
+ 0x00000055,0x00000056,0x00000057,0x00000058,0x0004002b,0x00000006,0x0000005a,0xbd9c13ab,
+ 0x0004002b,0x00000006,0x0000005b,0xbd92654f,0x0004002b,0x00000006,0x0000005c,0x3d173942,
+ 0x0004002b,0x00000006,0x0000005d,0xbe2bfefc,0x0007002c,0x00000009,0x0000005e,0x0000005a,
+ 0x0000005b,0x0000005c,0x0000005d,0x0007002c,0x0000002d,0x0000005f,0x0000004f,0x00000054,
+ 0x00000059,0x0000005e,0x0005002c,0x00000007,0x00000060,0x00000043,0x00000047,0x0004002b,
+ 0x00000006,0x00000068,0xbe193839,0x0004002b,0x00000006,0x00000069,0xbd5c3d3a,0x0004002b,
+ 0x00000006,0x0000006a,0x3cc38cb8,0x0004002b,0x00000006,0x0000006b,0x3e614d6b,0x0007002c,
+ 0x00000009,0x0000006c,0x00000068,0x00000069,0x0000006a,0x0000006b,0x0004002b,0x00000006,
+ 0x0000006d,0x3d55f73f,0x0004002b,0x00000006,0x0000006e,0xbe85f18a,0x0004002b,0x00000006,
+ 0x0000006f,0xbdb030e6,0x0004002b,0x00000006,0x00000070,0x3c4d7ed7,0x0007002c,0x00000009,
+ 0x00000071,0x0000006d,0x0000006e,0x0000006f,0x00000070,0x0004002b,0x00000006,0x00000072,
+ 0x3da64c1b,0x0004002b,0x00000006,0x00000073,0x3d9b3575,0x0004002b,0x00000006,0x00000074,
+ 0xbeab3325,0x0004002b,0x00000006,0x00000075,0xbede1228,0x0007002c,0x00000009,0x00000076,
+ 0x00000072,0x00000073,0x00000074,0x00000075,0x0004002b,0x00000006,0x00000077,0xbe073d43,
+ 0x0004002b,0x00000006,0x00000078,0xbdb3634f,0x0004002b,0x00000006,0x00000079,0xbd06b6db,
+ 0x0004002b,0x00000006,0x0000007a,0xbdc8b402,0x0007002c,0x00000009,0x0000007b,0x00000077,
+ 0x00000078,0x00000079,0x0000007a,0x0007002c,0x0000002d,0x0000007c,0x0000006c,0x00000071,
+ 0x00000076,0x0000007b,0x0004002b,0x00000006,0x0000007d,0x3f800000,0x0005002c,0x00000007,
+ 0x0000007e,0x00000043,0x0000007d,0x0004002b,0x00000006,0x00000086,0xbe05b156,0x0004002b,
+ 0x00000006,0x00000087,0xbf18f118,0x0004002b,0x00000006,0x00000088,0x3d782695,0x0004002b,
+ 0x00000006,0x00000089,0x3dac2a35,0x0007002c,0x00000009,0x0000008a,0x00000086,0x00000087,
+ 0x00000088,0x00000089,0x0004002b,0x00000006,0x0000008b,0x3c605670,0x0004002b,0x00000006,
+ 0x0000008c,0x3d881e28,0x0004002b,0x00000006,0x0000008d,0x3e28a559,0x0004002b,0x00000006,
+ 0x0000008e,0x3db8229a,0x0007002c,0x00000009,0x0000008f,0x0000008b,0x0000008c,0x0000008d,
+ 0x0000008e,0x0004002b,0x00000006,0x00000090,0x3ed8272f,0x0004002b,0x00000006,0x00000091,
+ 0xbde7359d,0x0004002b,0x00000006,0x00000092,0xbd7c84ce,0x0004002b,0x00000006,0x00000093,
+ 0x3ef89c84,0x0007002c,0x00000009,0x00000094,0x00000090,0x00000091,0x00000092,0x00000093,
+ 0x0004002b,0x00000006,0x00000095,0xbe20cb88,0x0004002b,0x00000006,0x00000096,0xbe4c0293,
+ 0x0004002b,0x00000006,0x00000097,0xbb68311c,0x0004002b,0x00000006,0x00000098,0xbb10c44b,
+ 0x0007002c,0x00000009,0x00000099,0x00000095,0x00000096,0x00000097,0x00000098,0x0007002c,
+ 0x0000002d,0x0000009a,0x0000008a,0x0000008f,0x00000094,0x00000099,0x0005002c,0x00000007,
+ 0x0000009b,0x00000047,0x00000043,0x0004002b,0x00000006,0x000000a3,0xbe49323d,0x0004002b,
+ 0x00000006,0x000000a4,0x3d1c0e86,0x0004002b,0x00000006,0x000000a5,0x3e5d0d1d,0x0004002b,
+ 0x00000006,0x000000a6,0x3d22c033,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,
+ 0x000000a5,0x000000a6,0x0004002b,0x00000006,0x000000a8,0xbd90a880,0x0004002b,0x00000006,
+ 0x000000a9,0x3deda741,0x0004002b,0x00000006,0x000000aa,0xbe7b7994,0x0004002b,0x00000006,
+ 0x000000ab,0xbdb646ad,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,
+ 0x000000ab,0x0004002b,0x00000006,0x000000ad,0xbf44b93e,0x0004002b,0x00000006,0x000000ae,
+ 0xbdd47a33,0x0004002b,0x00000006,0x000000af,0xbdc01dc0,0x0004002b,0x00000006,0x000000b0,
+ 0x3ea9b33e,0x0007002c,0x00000009,0x000000b1,0x000000ad,0x000000ae,0x000000af,0x000000b0,
+ 0x0004002b,0x00000006,0x000000b2,0xbe2a88c9,0x0004002b,0x00000006,0x000000b3,0x3b3b5716,
+ 0x0004002b,0x00000006,0x000000b4,0xbeacecca,0x0004002b,0x00000006,0x000000b5,0xbd588dcb,
+ 0x0007002c,0x00000009,0x000000b6,0x000000b2,0x000000b3,0x000000b4,0x000000b5,0x0007002c,
+ 0x0000002d,0x000000b7,0x000000a7,0x000000ac,0x000000b1,0x000000b6,0x0005002c,0x00000007,
+ 0x000000b8,0x00000047,0x00000047,0x0004002b,0x00000006,0x000000c0,0xbe8bc4e5,0x0004002b,
+ 0x00000006,0x000000c1,0xbd680ade,0x0004002b,0x00000006,0x000000c2,0x3dc5df0e,0x0004002b,
+ 0x00000006,0x000000c3,0x3e4a8cc8,0x0007002c,0x00000009,0x000000c4,0x000000c0,0x000000c1,
+ 0x000000c2,0x000000c3,0x0004002b,0x00000006,0x000000c5,0x3dd1f114,0x0004002b,0x00000006,
+ 0x000000c6,0xbe61d7f3,0x0004002b,0x00000006,0x000000c7,0xbe5946ea,0x0004002b,0x00000006,
+ 0x000000c8,0xbd266a84,0x0007002c,0x00000009,0x000000c9,0x000000c5,0x000000c6,0x000000c7,
+ 0x000000c8,0x0004002b,0x00000006,0x000000ca,0x3c1baa38,0x0004002b,0x00000006,0x000000cb,
+ 0x3e06550d,0x0004002b,0x00000006,0x000000cc,0xbeda05ac,0x0004002b,0x00000006,0x000000cd,
+ 0xbe634e00,0x0007002c,0x00000009,0x000000ce,0x000000ca,0x000000cb,0x000000cc,0x000000cd,
+ 0x0004002b,0x00000006,0x000000cf,0x3e571a1d,0x0004002b,0x00000006,0x000000d0,0xbd7d8686,
+ 0x0004002b,0x00000006,0x000000d1,0xbe1c872e,0x0004002b,0x00000006,0x000000d2,0xbdc31bac,
+ 0x0007002c,0x00000009,0x000000d3,0x000000cf,0x000000d0,0x000000d1,0x000000d2,0x0007002c,
+ 0x0000002d,0x000000d4,0x000000c4,0x000000c9,0x000000ce,0x000000d3,0x0005002c,0x00000007,
+ 0x000000d5,0x00000047,0x0000007d,0x0004002b,0x00000006,0x000000dd,0xbe146c5d,0x0004002b,
+ 0x00000006,0x000000de,0xbd3fa5c6,0x0004002b,0x00000006,0x000000df,0x3d86ea8a,0x0004002b,
+ 0x00000006,0x000000e0,0x3dcafdec,0x0007002c,0x00000009,0x000000e1,0x000000dd,0x000000de,
+ 0x000000df,0x000000e0,0x0004002b,0x00000006,0x000000e2,0x3eb3b1d8,0x0004002b,0x00000006,
+ 0x000000e3,0x3e2ad41e,0x0004002b,0x00000006,0x000000e4,0x3ce859d3,0x0004002b,0x00000006,
+ 0x000000e5,0x3eb882a1,0x0007002c,0x00000009,0x000000e6,0x000000e2,0x000000e3,0x000000e4,
+ 0x000000e5,0x0004002b,0x00000006,0x000000e7,0x3e969909,0x0004002b,0x00000006,0x000000e8,
+ 0x3e9072f9,0x0004002b,0x00000006,0x000000e9,0xbccfc917,0x0004002b,0x00000006,0x000000ea,
+ 0xbeae66a6,0x0007002c,0x00000009,0x000000eb,0x000000e7,0x000000e8,0x000000e9,0x000000ea,
+ 0x0004002b,0x00000006,0x000000ec,0x3d4195f3,0x0004002b,0x00000006,0x000000ed,0xbdf38fec,
+ 0x0004002b,0x00000006,0x000000ee,0xbc039bdd,0x0004002b,0x00000006,0x000000ef,0x3e984929,
+ 0x0007002c,0x00000009,0x000000f0,0x000000ec,0x000000ed,0x000000ee,0x000000ef,0x0007002c,
+ 0x0000002d,0x000000f1,0x000000e1,0x000000e6,0x000000eb,0x000000f0,0x0005002c,0x00000007,
+ 0x000000f2,0x0000007d,0x00000043,0x0004002b,0x00000006,0x000000fa,0xbe1b8fc2,0x0004002b,
+ 0x00000006,0x000000fb,0xbebd5727,0x0004002b,0x00000006,0x000000fc,0x3e150cdc,0x0004002b,
+ 0x00000006,0x000000fd,0x3b8ff39b,0x0007002c,0x00000009,0x000000fe,0x000000fa,0x000000fb,
+ 0x000000fc,0x000000fd,0x0004002b,0x00000006,0x000000ff,0xbc4f71e5,0x0004002b,0x00000006,
+ 0x00000100,0x3e2127a3,0x0004002b,0x00000006,0x00000101,0xbdec0869,0x0004002b,0x00000006,
+ 0x00000102,0x3dd37211,0x0007002c,0x00000009,0x00000103,0x000000ff,0x00000100,0x00000101,
+ 0x00000102,0x0004002b,0x00000006,0x00000104,0x3e7acc2e,0x0004002b,0x00000006,0x00000105,
+ 0xbe1f7e0f,0x0004002b,0x00000006,0x00000106,0xbe8e596c,0x0004002b,0x00000006,0x00000107,
+ 0x3e60dea8,0x0007002c,0x00000009,0x00000108,0x00000104,0x00000105,0x00000106,0x00000107,
+ 0x0004002b,0x00000006,0x00000109,0x3e38f918,0x0004002b,0x00000006,0x0000010a,0x3ee41fe7,
+ 0x0004002b,0x00000006,0x0000010b,0xbdc684d2,0x0004002b,0x00000006,0x0000010c,0x3eaaeace,
+ 0x0007002c,0x00000009,0x0000010d,0x00000109,0x0000010a,0x0000010b,0x0000010c,0x0007002c,
+ 0x0000002d,0x0000010e,0x000000fe,0x00000103,0x00000108,0x0000010d,0x0005002c,0x00000007,
+ 0x0000010f,0x0000007d,0x00000047,0x0004002b,0x00000006,0x00000117,0x3e8b26c3,0x0004002b,
+ 0x00000006,0x00000118,0x3e09c1f1,0x0004002b,0x00000006,0x00000119,0x3e10706b,0x0004002b,
+ 0x00000006,0x0000011a,0x3e272938,0x0007002c,0x00000009,0x0000011b,0x00000117,0x00000118,
+ 0x00000119,0x0000011a,0x0004002b,0x00000006,0x0000011c,0xbecd5f66,0x0004002b,0x00000006,
+ 0x0000011d,0x3dec669e,0x0004002b,0x00000006,0x0000011e,0xbbfb707a,0x0004002b,0x00000006,
+ 0x0000011f,0xbdc69a1b,0x0007002c,0x00000009,0x00000120,0x0000011c,0x0000011d,0x0000011e,
+ 0x0000011f,0x0004002b,0x00000006,0x00000121,0x3ee2d9d7,0x0004002b,0x00000006,0x00000122,
+ 0xbce7f30e,0x0004002b,0x00000006,0x00000123,0xbe5c7adb,0x0004002b,0x00000006,0x00000124,
+ 0xbdf74d7c,0x0007002c,0x00000009,0x00000125,0x00000121,0x00000122,0x00000123,0x00000124,
+ 0x0004002b,0x00000006,0x00000126,0x3d78f06d,0x0004002b,0x00000006,0x00000127,0x3e9b609d,
+ 0x0004002b,0x00000006,0x00000128,0xbb7253cd,0x0004002b,0x00000006,0x00000129,0xbdf73523,
+ 0x0007002c,0x00000009,0x0000012a,0x00000126,0x00000127,0x00000128,0x00000129,0x0007002c,
+ 0x0000002d,0x0000012b,0x0000011b,0x00000120,0x00000125,0x0000012a,0x0005002c,0x00000007,
+ 0x0000012c,0x0000007d,0x0000007d,0x0004002b,0x00000006,0x00000134,0xbecbac9c,0x0004002b,
+ 0x00000006,0x00000135,0xbe98f6fd,0x0004002b,0x00000006,0x00000136,0xbe04a125,0x0004002b,
+ 0x00000006,0x00000137,0x3da48619,0x0007002c,0x00000009,0x00000138,0x00000134,0x00000135,
+ 0x00000136,0x00000137,0x0004002b,0x00000006,0x00000139,0x3d9a0350,0x0004002b,0x00000006,
+ 0x0000013a,0x3cb1ae52,0x0004002b,0x00000006,0x0000013b,0xbe6cc2b9,0x0004002b,0x00000006,
+ 0x0000013c,0xbd1c38ca,0x0007002c,0x00000009,0x0000013d,0x00000139,0x0000013a,0x0000013b,
+ 0x0000013c,0x0004002b,0x00000006,0x0000013e,0xbe233687,0x0004002b,0x00000006,0x0000013f,
+ 0x3c8c8b15,0x0004002b,0x00000006,0x00000140,0xbd775148,0x0004002b,0x00000006,0x00000141,
+ 0x3c17743d,0x0007002c,0x00000009,0x00000142,0x0000013e,0x0000013f,0x00000140,0x00000141,
+ 0x0004002b,0x00000006,0x00000143,0xbe0e8331,0x0004002b,0x00000006,0x00000144,0x3e9e805f,
+ 0x0004002b,0x00000006,0x00000145,0x3e78f191,0x0004002b,0x00000006,0x00000146,0xbdd6ee7e,
+ 0x0007002c,0x00000009,0x00000147,0x00000143,0x00000144,0x00000145,0x00000146,0x0007002c,
+ 0x0000002d,0x00000148,0x00000138,0x0000013d,0x00000142,0x00000147,0x0004002b,0x00000006,
+ 0x00000151,0xbda3205d,0x0004002b,0x00000006,0x00000152,0x3d8ac862,0x0004002b,0x00000006,
+ 0x00000153,0xbe081443,0x0004002b,0x00000006,0x00000154,0x3bbfbb55,0x0007002c,0x00000009,
+ 0x00000155,0x00000151,0x00000152,0x00000153,0x00000154,0x0004002b,0x00000006,0x00000156,
+ 0xbdb39274,0x0004002b,0x00000006,0x00000157,0xbd172421,0x0004002b,0x00000006,0x00000158,
+ 0x3df67834,0x0004002b,0x00000006,0x00000159,0x3e65cd06,0x0007002c,0x00000009,0x0000015a,
+ 0x00000156,0x00000157,0x00000158,0x00000159,0x0004002b,0x00000006,0x0000015b,0x3e140129,
+ 0x0004002b,0x00000006,0x0000015c,0xbe34b961,0x0004002b,0x00000006,0x0000015d,0xbeacf7e9,
+ 0x0004002b,0x00000006,0x0000015e,0xbc962831,0x0007002c,0x00000009,0x0000015f,0x0000015b,
+ 0x0000015c,0x0000015d,0x0000015e,0x0004002b,0x00000006,0x00000160,0x3df015f6,0x0004002b,
+ 0x00000006,0x00000161,0xbeaee896,0x0004002b,0x00000006,0x00000162,0x3dac889c,0x0004002b,
+ 0x00000006,0x00000163,0xbc657d12,0x0007002c,0x00000009,0x00000164,0x00000160,0x00000161,
+ 0x00000162,0x00000163,0x0007002c,0x0000002d,0x00000165,0x00000155,0x0000015a,0x0000015f,
+ 0x00000164,0x0004002b,0x00000006,0x0000016e,0x3da6fdda,0x0004002b,0x00000006,0x0000016f,
+ 0x3d93ecdf,0x0004002b,0x00000006,0x00000170,0xbe16273c,0x0004002b,0x00000006,0x00000171,
+ 0xbd1dcd77,0x0007002c,0x00000009,0x00000172,0x0000016e,0x0000016f,0x00000170,0x00000171,
+ 0x0004002b,0x00000006,0x00000173,0xbd9743c5,0x0004002b,0x00000006,0x00000174,0x3e3cd4de,
+ 0x0004002b,0x00000006,0x00000175,0x3eb7c20f,0x0004002b,0x00000006,0x00000176,0x3e2ef296,
+ 0x0007002c,0x00000009,0x00000177,0x00000173,0x00000174,0x00000175,0x00000176,0x0004002b,
+ 0x00000006,0x00000178,0x3e86e39c,0x0004002b,0x00000006,0x00000179,0x3e1c79da,0x0004002b,
+ 0x00000006,0x0000017a,0xbbf3fe75,0x0004002b,0x00000006,0x0000017b,0xbcc7e92d,0x0007002c,
+ 0x00000009,0x0000017c,0x00000178,0x00000179,0x0000017a,0x0000017b,0x0004002b,0x00000006,
+ 0x0000017d,0xbe9b5281,0x0004002b,0x00000006,0x0000017e,0xbe6b4d47,0x0004002b,0x00000006,
+ 0x0000017f,0x3dedd548,0x0004002b,0x00000006,0x00000180,0xbe71d111,0x0007002c,0x00000009,
+ 0x00000181,0x0000017d,0x0000017e,0x0000017f,0x00000180,0x0007002c,0x0000002d,0x00000182,
+ 0x00000172,0x00000177,0x0000017c,0x00000181,0x0004002b,0x00000006,0x0000018b,0xbd9885ce,
+ 0x0004002b,0x00000006,0x0000018c,0x3db8ccdc,0x0004002b,0x00000006,0x0000018d,0xbe0d4aa1,
+ 0x0004002b,0x00000006,0x0000018e,0xbdb20f59,0x0007002c,0x00000009,0x0000018f,0x0000018b,
+ 0x0000018c,0x0000018d,0x0000018e,0x0004002b,0x00000006,0x00000190,0xbe9da194,0x0004002b,
+ 0x00000006,0x00000191,0x3e1a7f6b,0x0004002b,0x00000006,0x00000192,0x3e13a590,0x0004002b,
+ 0x00000006,0x00000193,0xbd0a158b,0x0007002c,0x00000009,0x00000194,0x00000190,0x00000191,
+ 0x00000192,0x00000193,0x0004002b,0x00000006,0x00000195,0x3d48a961,0x0004002b,0x00000006,
+ 0x00000196,0xbe05e458,0x0004002b,0x00000006,0x00000197,0xbe09cf6f,0x0004002b,0x00000006,
+ 0x00000198,0xbd7516d4,0x0007002c,0x00000009,0x00000199,0x00000195,0x00000196,0x00000197,
+ 0x00000198,0x0004002b,0x00000006,0x0000019a,0x3d850589,0x0004002b,0x00000006,0x0000019b,
+ 0x3e8a1816,0x0004002b,0x00000006,0x0000019c,0x3ebc2081,0x0004002b,0x00000006,0x0000019d,
+ 0x3ec77475,0x0007002c,0x00000009,0x0000019e,0x0000019a,0x0000019b,0x0000019c,0x0000019d,
+ 0x0007002c,0x0000002d,0x0000019f,0x0000018f,0x00000194,0x00000199,0x0000019e,0x0004002b,
+ 0x00000006,0x000001a8,0x3eb31b7f,0x0004002b,0x00000006,0x000001a9,0xbd47cc9f,0x0004002b,
+ 0x00000006,0x000001aa,0x3ea264cf,0x0004002b,0x00000006,0x000001ab,0x3ec2f94d,0x0007002c,
+ 0x00000009,0x000001ac,0x000001a8,0x000001a9,0x000001aa,0x000001ab,0x0004002b,0x00000006,
+ 0x000001ad,0xbe4e5401,0x0004002b,0x00000006,0x000001ae,0xbf5466fb,0x0004002b,0x00000006,
+ 0x000001af,0xbdd03ce1,0x0004002b,0x00000006,0x000001b0,0x3f2366b3,0x0007002c,0x00000009,
+ 0x000001b1,0x000001ad,0x000001ae,0x000001af,0x000001b0,0x0004002b,0x00000006,0x000001b2,
+ 0x3e850063,0x0004002b,0x00000006,0x000001b3,0x3edfc003,0x0004002b,0x00000006,0x000001b4,
+ 0xbd4187cd,0x0004002b,0x00000006,0x000001b5,0xbdcd1705,0x0007002c,0x00000009,0x000001b6,
+ 0x000001b2,0x000001b3,0x000001b4,0x000001b5,0x0004002b,0x00000006,0x000001b7,0x3e467526,
+ 0x0004002b,0x00000006,0x000001b8,0xbda49929,0x0004002b,0x00000006,0x000001b9,0x3dc428dc,
+ 0x0004002b,0x00000006,0x000001ba,0xbd100b1f,0x0007002c,0x00000009,0x000001bb,0x000001b7,
+ 0x000001b8,0x000001b9,0x000001ba,0x0007002c,0x0000002d,0x000001bc,0x000001ac,0x000001b1,
+ 0x000001b6,0x000001bb,0x0004002b,0x00000006,0x000001c5,0xbcd8a0ea,0x0004002b,0x00000006,
+ 0x000001c6,0x3ed396f5,0x0004002b,0x00000006,0x000001c7,0x3c954d4f,0x0004002b,0x00000006,
+ 0x000001c8,0x3e027aeb,0x0007002c,0x00000009,0x000001c9,0x000001c5,0x000001c6,0x000001c7,
+ 0x000001c8,0x0004002b,0x00000006,0x000001ca,0xbe887573,0x0004002b,0x00000006,0x000001cb,
+ 0xbe996e69,0x0004002b,0x00000006,0x000001cc,0x3e9e3cf5,0x0004002b,0x00000006,0x000001cd,
+ 0x3da3a21a,0x0007002c,0x00000009,0x000001ce,0x000001ca,0x000001cb,0x000001cc,0x000001cd,
+ 0x0004002b,0x00000006,0x000001cf,0x3ec3d6cf,0x0004002b,0x00000006,0x000001d0,0x3e5c049d,
+ 0x0004002b,0x00000006,0x000001d1,0x3ccf6151,0x0004002b,0x00000006,0x000001d2,0xbe16b49f,
+ 0x0007002c,0x00000009,0x000001d3,0x000001cf,0x000001d0,0x000001d1,0x000001d2,0x0004002b,
+ 0x00000006,0x000001d4,0xbe08a489,0x0004002b,0x00000006,0x000001d5,0xbea44ac2,0x0004002b,
+ 0x00000006,0x000001d6,0xbe911845,0x0004002b,0x00000006,0x000001d7,0xbe9e95dd,0x0007002c,
+ 0x00000009,0x000001d8,0x000001d4,0x000001d5,0x000001d6,0x000001d7,0x0007002c,0x0000002d,
+ 0x000001d9,0x000001c9,0x000001ce,0x000001d3,0x000001d8,0x0004002b,0x00000006,0x000001e2,
+ 0x3cb0462f,0x0004002b,0x00000006,0x000001e3,0x3bd6d6e3,0x0004002b,0x00000006,0x000001e4,
+ 0x3e4f6e25,0x0004002b,0x00000006,0x000001e5,0xbdf6ab40,0x0007002c,0x00000009,0x000001e6,
+ 0x000001e2,0x000001e3,0x000001e4,0x000001e5,0x0004002b,0x00000006,0x000001e7,0xbec58ba5,
+ 0x0004002b,0x00000006,0x000001e8,0xbb3452bd,0x0004002b,0x00000006,0x000001e9,0xbd86482e,
+ 0x0004002b,0x00000006,0x000001ea,0xbdc6d730,0x0007002c,0x00000009,0x000001eb,0x000001e7,
+ 0x000001e8,0x000001e9,0x000001ea,0x0004002b,0x00000006,0x000001ec,0x3d3f8c83,0x0004002b,
+ 0x00000006,0x000001ed,0xbdf4d608,0x0004002b,0x00000006,0x000001ee,0xbd536805,0x0004002b,
+ 0x00000006,0x000001ef,0x3da06327,0x0007002c,0x00000009,0x000001f0,0x000001ec,0x000001ed,
+ 0x000001ee,0x000001ef,0x0004002b,0x00000006,0x000001f1,0xbe40bfcb,0x0004002b,0x00000006,
+ 0x000001f2,0xbe29665f,0x0004002b,0x00000006,0x000001f3,0x3d2de1ad,0x0004002b,0x00000006,
+ 0x000001f4,0x3f24d010,0x0007002c,0x00000009,0x000001f5,0x000001f1,0x000001f2,0x000001f3,
+ 0x000001f4,0x0007002c,0x0000002d,0x000001f6,0x000001e6,0x000001eb,0x000001f0,0x000001f5,
+ 0x0004002b,0x00000006,0x000001ff,0xbeca1d20,0x0004002b,0x00000006,0x00000200,0xbe965e06,
+ 0x0004002b,0x00000006,0x00000201,0x3e890d6f,0x0004002b,0x00000006,0x00000202,0xbe90232f,
+ 0x0007002c,0x00000009,0x00000203,0x000001ff,0x00000200,0x00000201,0x00000202,0x0004002b,
+ 0x00000006,0x00000204,0x3e609f19,0x0004002b,0x00000006,0x00000205,0x3e572749,0x0004002b,
+ 0x00000006,0x00000206,0xbe1e429c,0x0004002b,0x00000006,0x00000207,0x3e482d7e,0x0007002c,
+ 0x00000009,0x00000208,0x00000204,0x00000205,0x00000206,0x00000207,0x0004002b,0x00000006,
+ 0x00000209,0x3dbc3059,0x0004002b,0x00000006,0x0000020a,0xbca50cd8,0x0004002b,0x00000006,
+ 0x0000020b,0x3dd39dc5,0x0004002b,0x00000006,0x0000020c,0xbe00c368,0x0007002c,0x00000009,
+ 0x0000020d,0x00000209,0x0000020a,0x0000020b,0x0000020c,0x0004002b,0x00000006,0x0000020e,
+ 0xbeaef09d,0x0004002b,0x00000006,0x0000020f,0x3d9a1328,0x0004002b,0x00000006,0x00000210,
+ 0xbe34ee60,0x0004002b,0x00000006,0x00000211,0x3f1fdcf8,0x0007002c,0x00000009,0x00000212,
+ 0x0000020e,0x0000020f,0x00000210,0x00000211,0x0007002c,0x0000002d,0x00000213,0x00000203,
+ 0x00000208,0x0000020d,0x00000212,0x0004002b,0x00000006,0x0000021c,0xbec0d30f,0x0004002b,
+ 0x00000006,0x0000021d,0xbe97b5c2,0x0004002b,0x00000006,0x0000021e,0x3d5f4626,0x0004002b,
+ 0x00000006,0x0000021f,0x3e250841,0x0007002c,0x00000009,0x00000220,0x0000021c,0x0000021d,
+ 0x0000021e,0x0000021f,0x0004002b,0x00000006,0x00000221,0x3e102d02,0x0004002b,0x00000006,
+ 0x00000222,0xbe5e3cf4,0x0004002b,0x00000006,0x00000223,0xbd1e94d0,0x0004002b,0x00000006,
+ 0x00000224,0x3e0a6292,0x0007002c,0x00000009,0x00000225,0x00000221,0x00000222,0x00000223,
+ 0x00000224,0x0004002b,0x00000006,0x00000226,0xbe5972c8,0x0004002b,0x00000006,0x00000227,
+ 0xbda0fcd8,0x0004002b,0x00000006,0x00000228,0xbbbc6590,0x0004002b,0x00000006,0x00000229,
+ 0x3cd1ebdf,0x0007002c,0x00000009,0x0000022a,0x00000226,0x00000227,0x00000228,0x00000229,
+ 0x0004002b,0x00000006,0x0000022b,0xbe0829a3,0x0004002b,0x00000006,0x0000022c,0x3ea9065a,
+ 0x0004002b,0x00000006,0x0000022d,0xbe8c778c,0x0004002b,0x00000006,0x0000022e,0xbe3c967e,
+ 0x0007002c,0x00000009,0x0000022f,0x0000022b,0x0000022c,0x0000022d,0x0000022e,0x0007002c,
+ 0x0000002d,0x00000230,0x00000220,0x00000225,0x0000022a,0x0000022f,0x0004002b,0x00000006,
+ 0x00000239,0xbb7150e8,0x0004002b,0x00000006,0x0000023a,0xbd4dc7f6,0x0004002b,0x00000006,
+ 0x0000023b,0xbc5e11ae,0x0004002b,0x00000006,0x0000023c,0x39fcd099,0x0007002c,0x00000009,
+ 0x0000023d,0x00000239,0x0000023a,0x0000023b,0x0000023c,0x00040015,0x00000243,0x00000020,
+ 0x00000000,0x00040017,0x00000244,0x00000243,0x00000003,0x00040020,0x00000245,0x00000001,
+ 0x00000244,0x0004003b,0x00000245,0x00000246,0x00000001,0x00040017,0x00000247,0x00000243,
+ 0x00000002,0x0004003b,0x00000016,0x0000024c,0x00000000,0x00020014,0x0000024f,0x0004002b,
+ 0x00000243,0x00000250,0x00000000,0x00040020,0x00000251,0x00000006,0x00000011,0x00040020,
+ 0x00000254,0x00000007,0x00000011,0x0004002b,0x00000243,0x0000025b,0x00000001,0x0004002b,
+ 0x00000243,0x00000268,0x00000008,0x0006002c,0x00000244,0x00000269,0x00000268,0x00000268,
+ 0x0000025b,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,
+ 0x0004003b,0x00000013,0x0000024b,0x00000007,0x0004003d,0x00000244,0x00000248,0x00000246,
+ 0x0007004f,0x00000247,0x00000249,0x00000248,0x00000248,0x00000000,0x00000001,0x0004007c,
+ 0x00000012,0x0000024a,0x00000249,0x0003003e,0x0000001c,0x0000024a,0x0004003d,0x00000015,
+ 0x0000024d,0x0000024c,0x00040068,0x00000012,0x0000024e,0x0000024d,0x0003003e,0x0000024b,
+ 0x0000024e,0x00050041,0x00000251,0x00000252,0x0000001c,0x00000250,0x0004003d,0x00000011,
+ 0x00000253,0x00000252,0x00050041,0x00000254,0x00000255,0x0000024b,0x00000250,0x0004003d,
+ 0x00000011,0x00000256,0x00000255,0x000500af,0x0000024f,0x00000257,0x00000253,0x00000256,
+ 0x000400a8,0x0000024f,0x00000258,0x00000257,0x000300f7,0x0000025a,0x00000000,0x000400fa,
+ 0x00000258,0x00000259,0x0000025a,0x000200f8,0x00000259,0x00050041,0x00000251,0x0000025c,
+ 0x0000001c,0x0000025b,0x0004003d,0x00000011,0x0000025d,0x0000025c,0x00050041,0x00000254,
+ 0x0000025e,0x0000024b,0x0000025b,0x0004003d,0x00000011,0x0000025f,0x0000025e,0x000500af,
+ 0x0000024f,0x00000260,0x0000025d,0x0000025f,0x000200f9,0x0000025a,0x000200f8,0x0000025a,
+ 0x000700f5,0x0000024f,0x00000261,0x00000257,0x00000005,0x00000260,0x00000259,0x000300f7,
+ 0x00000263,0x00000000,0x000400fa,0x00000261,0x00000262,0x00000263,0x000200f8,0x00000262,
+ 0x000100fd,0x000200f8,0x00000263,0x0004003d,0x00000015,0x00000265,0x0000024c,0x0004003d,
+ 0x00000012,0x00000266,0x0000001c,0x00040039,0x00000009,0x00000267,0x0000000f,0x00040063,
+ 0x00000265,0x00000266,0x00000267,0x000100fd,0x00010038,0x00050036,0x00000009,0x0000000c,
+ 0x00000000,0x0000000a,0x00030037,0x00000008,0x0000000b,0x000200f8,0x0000000d,0x0004003b,
+ 0x00000013,0x00000014,0x00000007,0x0004003d,0x00000015,0x00000018,0x00000017,0x00040068,
+ 0x00000012,0x00000019,0x00000018,0x0003003e,0x00000014,0x00000019,0x0004003d,0x00000015,
+ 0x0000001a,0x00000017,0x0004003d,0x00000012,0x0000001d,0x0000001c,0x0004003d,0x00000007,
+ 0x0000001e,0x0000000b,0x0004006e,0x00000012,0x0000001f,0x0000001e,0x00050080,0x00000012,
+ 0x00000020,0x0000001d,0x0000001f,0x0004003d,0x00000012,0x00000023,0x00000014,0x00050050,
+ 0x00000012,0x00000025,0x00000024,0x00000024,0x00050082,0x00000012,0x00000026,0x00000023,
+ 0x00000025,0x0008000c,0x00000012,0x00000027,0x00000001,0x0000002d,0x00000020,0x00000022,
+ 0x00000026,0x00050062,0x00000009,0x00000028,0x0000001a,0x00000027,0x000200fe,0x00000028,
+ 0x00010038,0x00050036,0x00000009,0x0000000f,0x00000000,0x0000000e,0x000200f8,0x00000010,
+ 0x0004003b,0x0000002b,0x0000002c,0x00000007,0x0004003b,0x00000008,0x00000045,0x00000007,
+ 0x0004003b,0x00000008,0x00000061,0x00000007,0x0004003b,0x00000008,0x0000007f,0x00000007,
+ 0x0004003b,0x00000008,0x0000009c,0x00000007,0x0004003b,0x00000008,0x000000b9,0x00000007,
+ 0x0004003b,0x00000008,0x000000d6,0x00000007,0x0004003b,0x00000008,0x000000f3,0x00000007,
+ 0x0004003b,0x00000008,0x00000110,0x00000007,0x0004003b,0x00000008,0x0000012d,0x00000007,
+ 0x0004003b,0x00000008,0x00000149,0x00000007,0x0004003b,0x00000008,0x00000166,0x00000007,
+ 0x0004003b,0x00000008,0x00000183,0x00000007,0x0004003b,0x00000008,0x000001a0,0x00000007,
+ 0x0004003b,0x00000008,0x000001bd,0x00000007,0x0004003b,0x00000008,0x000001da,0x00000007,
+ 0x0004003b,0x00000008,0x000001f7,0x00000007,0x0004003b,0x00000008,0x00000214,0x00000007,
+ 0x0004003b,0x00000008,0x00000231,0x00000007,0x0003003e,0x00000045,0x00000044,0x00050039,
+ 0x00000009,0x00000046,0x0000000c,0x00000045,0x00070050,0x00000009,0x00000048,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000049,0x00000001,0x00000028,
+ 0x00000046,0x00000048,0x00050091,0x00000009,0x0000004a,0x00000042,0x00000049,0x0003003e,
+ 0x0000002c,0x0000004a,0x0003003e,0x00000061,0x00000060,0x00050039,0x00000009,0x00000062,
+ 0x0000000c,0x00000061,0x00070050,0x00000009,0x00000063,0x00000047,0x00000047,0x00000047,
+ 0x00000047,0x0007000c,0x00000009,0x00000064,0x00000001,0x00000028,0x00000062,0x00000063,
+ 0x00050091,0x00000009,0x00000065,0x0000005f,0x00000064,0x0004003d,0x00000009,0x00000066,
+ 0x0000002c,0x00050081,0x00000009,0x00000067,0x00000066,0x00000065,0x0003003e,0x0000002c,
+ 0x00000067,0x0003003e,0x0000007f,0x0000007e,0x00050039,0x00000009,0x00000080,0x0000000c,
+ 0x0000007f,0x00070050,0x00000009,0x00000081,0x00000047,0x00000047,0x00000047,0x00000047,
+ 0x0007000c,0x00000009,0x00000082,0x00000001,0x00000028,0x00000080,0x00000081,0x00050091,
+ 0x00000009,0x00000083,0x0000007c,0x00000082,0x0004003d,0x00000009,0x00000084,0x0000002c,
+ 0x00050081,0x00000009,0x00000085,0x00000084,0x00000083,0x0003003e,0x0000002c,0x00000085,
+ 0x0003003e,0x0000009c,0x0000009b,0x00050039,0x00000009,0x0000009d,0x0000000c,0x0000009c,
+ 0x00070050,0x00000009,0x0000009e,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,
+ 0x00000009,0x0000009f,0x00000001,0x00000028,0x0000009d,0x0000009e,0x00050091,0x00000009,
+ 0x000000a0,0x0000009a,0x0000009f,0x0004003d,0x00000009,0x000000a1,0x0000002c,0x00050081,
+ 0x00000009,0x000000a2,0x000000a1,0x000000a0,0x0003003e,0x0000002c,0x000000a2,0x0003003e,
+ 0x000000b9,0x000000b8,0x00050039,0x00000009,0x000000ba,0x0000000c,0x000000b9,0x00070050,
+ 0x00000009,0x000000bb,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,
+ 0x000000bc,0x00000001,0x00000028,0x000000ba,0x000000bb,0x00050091,0x00000009,0x000000bd,
+ 0x000000b7,0x000000bc,0x0004003d,0x00000009,0x000000be,0x0000002c,0x00050081,0x00000009,
+ 0x000000bf,0x000000be,0x000000bd,0x0003003e,0x0000002c,0x000000bf,0x0003003e,0x000000d6,
+ 0x000000d5,0x00050039,0x00000009,0x000000d7,0x0000000c,0x000000d6,0x00070050,0x00000009,
+ 0x000000d8,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000000d9,
+ 0x00000001,0x00000028,0x000000d7,0x000000d8,0x00050091,0x00000009,0x000000da,0x000000d4,
+ 0x000000d9,0x0004003d,0x00000009,0x000000db,0x0000002c,0x00050081,0x00000009,0x000000dc,
+ 0x000000db,0x000000da,0x0003003e,0x0000002c,0x000000dc,0x0003003e,0x000000f3,0x000000f2,
+ 0x00050039,0x00000009,0x000000f4,0x0000000c,0x000000f3,0x00070050,0x00000009,0x000000f5,
+ 0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000000f6,0x00000001,
+ 0x00000028,0x000000f4,0x000000f5,0x00050091,0x00000009,0x000000f7,0x000000f1,0x000000f6,
+ 0x0004003d,0x00000009,0x000000f8,0x0000002c,0x00050081,0x00000009,0x000000f9,0x000000f8,
+ 0x000000f7,0x0003003e,0x0000002c,0x000000f9,0x0003003e,0x00000110,0x0000010f,0x00050039,
+ 0x00000009,0x00000111,0x0000000c,0x00000110,0x00070050,0x00000009,0x00000112,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000113,0x00000001,0x00000028,
+ 0x00000111,0x00000112,0x00050091,0x00000009,0x00000114,0x0000010e,0x00000113,0x0004003d,
+ 0x00000009,0x00000115,0x0000002c,0x00050081,0x00000009,0x00000116,0x00000115,0x00000114,
+ 0x0003003e,0x0000002c,0x00000116,0x0003003e,0x0000012d,0x0000012c,0x00050039,0x00000009,
+ 0x0000012e,0x0000000c,0x0000012d,0x00070050,0x00000009,0x0000012f,0x00000047,0x00000047,
+ 0x00000047,0x00000047,0x0007000c,0x00000009,0x00000130,0x00000001,0x00000028,0x0000012e,
+ 0x0000012f,0x00050091,0x00000009,0x00000131,0x0000012b,0x00000130,0x0004003d,0x00000009,
+ 0x00000132,0x0000002c,0x00050081,0x00000009,0x00000133,0x00000132,0x00000131,0x0003003e,
+ 0x0000002c,0x00000133,0x0003003e,0x00000149,0x00000044,0x00050039,0x00000009,0x0000014a,
+ 0x0000000c,0x00000149,0x0004007f,0x00000009,0x0000014b,0x0000014a,0x00070050,0x00000009,
+ 0x0000014c,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x0000014d,
+ 0x00000001,0x00000028,0x0000014b,0x0000014c,0x00050091,0x00000009,0x0000014e,0x00000148,
+ 0x0000014d,0x0004003d,0x00000009,0x0000014f,0x0000002c,0x00050081,0x00000009,0x00000150,
+ 0x0000014f,0x0000014e,0x0003003e,0x0000002c,0x00000150,0x0003003e,0x00000166,0x00000060,
+ 0x00050039,0x00000009,0x00000167,0x0000000c,0x00000166,0x0004007f,0x00000009,0x00000168,
+ 0x00000167,0x00070050,0x00000009,0x00000169,0x00000047,0x00000047,0x00000047,0x00000047,
+ 0x0007000c,0x00000009,0x0000016a,0x00000001,0x00000028,0x00000168,0x00000169,0x00050091,
+ 0x00000009,0x0000016b,0x00000165,0x0000016a,0x0004003d,0x00000009,0x0000016c,0x0000002c,
+ 0x00050081,0x00000009,0x0000016d,0x0000016c,0x0000016b,0x0003003e,0x0000002c,0x0000016d,
+ 0x0003003e,0x00000183,0x0000007e,0x00050039,0x00000009,0x00000184,0x0000000c,0x00000183,
+ 0x0004007f,0x00000009,0x00000185,0x00000184,0x00070050,0x00000009,0x00000186,0x00000047,
+ 0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000187,0x00000001,0x00000028,
+ 0x00000185,0x00000186,0x00050091,0x00000009,0x00000188,0x00000182,0x00000187,0x0004003d,
+ 0x00000009,0x00000189,0x0000002c,0x00050081,0x00000009,0x0000018a,0x00000189,0x00000188,
+ 0x0003003e,0x0000002c,0x0000018a,0x0003003e,0x000001a0,0x0000009b,0x00050039,0x00000009,
+ 0x000001a1,0x0000000c,0x000001a0,0x0004007f,0x00000009,0x000001a2,0x000001a1,0x00070050,
+ 0x00000009,0x000001a3,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,
+ 0x000001a4,0x00000001,0x00000028,0x000001a2,0x000001a3,0x00050091,0x00000009,0x000001a5,
+ 0x0000019f,0x000001a4,0x0004003d,0x00000009,0x000001a6,0x0000002c,0x00050081,0x00000009,
+ 0x000001a7,0x000001a6,0x000001a5,0x0003003e,0x0000002c,0x000001a7,0x0003003e,0x000001bd,
+ 0x000000b8,0x00050039,0x00000009,0x000001be,0x0000000c,0x000001bd,0x0004007f,0x00000009,
+ 0x000001bf,0x000001be,0x00070050,0x00000009,0x000001c0,0x00000047,0x00000047,0x00000047,
+ 0x00000047,0x0007000c,0x00000009,0x000001c1,0x00000001,0x00000028,0x000001bf,0x000001c0,
+ 0x00050091,0x00000009,0x000001c2,0x000001bc,0x000001c1,0x0004003d,0x00000009,0x000001c3,
+ 0x0000002c,0x00050081,0x00000009,0x000001c4,0x000001c3,0x000001c2,0x0003003e,0x0000002c,
+ 0x000001c4,0x0003003e,0x000001da,0x000000d5,0x00050039,0x00000009,0x000001db,0x0000000c,
+ 0x000001da,0x0004007f,0x00000009,0x000001dc,0x000001db,0x00070050,0x00000009,0x000001dd,
+ 0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x000001de,0x00000001,
+ 0x00000028,0x000001dc,0x000001dd,0x00050091,0x00000009,0x000001df,0x000001d9,0x000001de,
+ 0x0004003d,0x00000009,0x000001e0,0x0000002c,0x00050081,0x00000009,0x000001e1,0x000001e0,
+ 0x000001df,0x0003003e,0x0000002c,0x000001e1,0x0003003e,0x000001f7,0x000000f2,0x00050039,
+ 0x00000009,0x000001f8,0x0000000c,0x000001f7,0x0004007f,0x00000009,0x000001f9,0x000001f8,
+ 0x00070050,0x00000009,0x000001fa,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,
+ 0x00000009,0x000001fb,0x00000001,0x00000028,0x000001f9,0x000001fa,0x00050091,0x00000009,
+ 0x000001fc,0x000001f6,0x000001fb,0x0004003d,0x00000009,0x000001fd,0x0000002c,0x00050081,
+ 0x00000009,0x000001fe,0x000001fd,0x000001fc,0x0003003e,0x0000002c,0x000001fe,0x0003003e,
+ 0x00000214,0x0000010f,0x00050039,0x00000009,0x00000215,0x0000000c,0x00000214,0x0004007f,
+ 0x00000009,0x00000216,0x00000215,0x00070050,0x00000009,0x00000217,0x00000047,0x00000047,
+ 0x00000047,0x00000047,0x0007000c,0x00000009,0x00000218,0x00000001,0x00000028,0x00000216,
+ 0x00000217,0x00050091,0x00000009,0x00000219,0x00000213,0x00000218,0x0004003d,0x00000009,
+ 0x0000021a,0x0000002c,0x00050081,0x00000009,0x0000021b,0x0000021a,0x00000219,0x0003003e,
+ 0x0000002c,0x0000021b,0x0003003e,0x00000231,0x0000012c,0x00050039,0x00000009,0x00000232,
+ 0x0000000c,0x00000231,0x0004007f,0x00000009,0x00000233,0x00000232,0x00070050,0x00000009,
+ 0x00000234,0x00000047,0x00000047,0x00000047,0x00000047,0x0007000c,0x00000009,0x00000235,
+ 0x00000001,0x00000028,0x00000233,0x00000234,0x00050091,0x00000009,0x00000236,0x00000230,
+ 0x00000235,0x0004003d,0x00000009,0x00000237,0x0000002c,0x00050081,0x00000009,0x00000238,
+ 0x00000237,0x00000236,0x0003003e,0x0000002c,0x00000238,0x0004003d,0x00000009,0x0000023e,
+ 0x0000002c,0x00050081,0x00000009,0x0000023f,0x0000023e,0x0000023d,0x0003003e,0x0000002c,
+ 0x0000023f,0x0004003d,0x00000009,0x00000240,0x0000002c,0x000200fe,0x00000240,0x00010038
+};
diff --git a/src/display/shaders/a4k_r_conv3.comp b/src/display/shaders/a4k_r_conv3.comp
new file mode 100644
index 0000000..77d1715
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv3.comp
@@ -0,0 +1,64 @@
+#version 450
+// MIT License
+
+// Copyright (c) 2019-2021 bloc97
+// All rights reserved.
+
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+
+// The above copyright notice and this permission notice shall be included in all
+// copies or substantial portions of the Software.
+
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// SOFTWARE.
+// Generated by tools/gen-anime4k.py from Anime4K-v4.0-Restore-CNN-(S)-Conv-3x3x3x8 (inputs MAIN, conv2d_2_tf); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba16f) uniform readonly image2D inputImage;
+layout(binding = 1, rgba8) uniform image2D mainImage;
+
+ivec2 pixel;
+vec4 load_input(vec2 offset) {
+ ivec2 size = imageSize(inputImage);
+ return imageLoad(inputImage, clamp(pixel + ivec2(offset), ivec2(0), size - 1));
+}
+#define go_0(x_off, y_off) (max((load_input(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(load_input(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(0.15873, 0.17989138, 0.14648493, 0.0, -0.017379675, -0.017363746, -0.019855022, 0.0, 0.009670625, 0.0070157526, 0.0075994316, 0.0, 0.025388412, 0.027231036, 0.024052646, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(0.048195973, 0.041760173, 0.037366055, 0.0, -0.115950756, -0.12887983, -0.12535639, 0.0, 0.032125086, 0.03397254, 0.032950625, 0.0, 0.01223746, 0.020822672, 0.0161561, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(0.0890567, 0.094453335, 0.09014035, 0.0, 0.016081346, 0.017434116, 0.020783134, 0.0, -0.011775135, -0.010094134, -0.018522855, 0.0, 0.072103254, 0.07940666, 0.065876864, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(-0.04841196, -0.06963968, -0.056574684, 0.0, 0.10912542, 0.11813441, 0.10643838, 0.0, -0.013013885, -0.01562045, -0.013802797, 0.0, 0.037505716, 0.04352026, 0.04645123, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.3472869, -0.36243078, -0.33530185, 0.0, 0.23654196, 0.2305048, 0.22150646, 0.0, -0.045226905, -0.041799217, -0.042511635, 0.0, -0.10267792, -0.1123385, -0.10845448, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.011987401, 0.012285043, 0.007813165, 0.0, -0.15911353, -0.17523928, -0.1535267, 0.0, 0.15675929, 0.16531634, 0.15948962, 0.0, -0.09240023, -0.09513292, -0.084187366, 0.0) * go_0(0.0, 1.0);
+ result += mat4(0.069052905, 0.07278333, 0.0756627, 0.0, -0.012180326, -0.018794727, -0.031050753, 0.0, -0.044663202, -0.04362803, -0.038904265, 0.0, -0.008540197, -0.011201734, -0.01556625, 0.0) * go_0(1.0, -1.0);
+ result += mat4(-0.08261173, -0.09042543, -0.07589266, 0.0, 0.043515377, 0.045066774, 0.04037769, 0.0, -0.06262993, -0.07469342, -0.058593787, 0.0, 0.026696987, 0.028740842, 0.037405368, 0.0) * go_0(1.0, 0.0);
+ result += mat4(0.07975598, 0.09597654, 0.08997132, 0.0, -0.07844719, -0.07880916, -0.06835411, 0.0, 0.05668995, 0.050163813, 0.053357534, 0.0, -0.020040333, -0.019867316, -0.01907621, 0.0) * go_0(1.0, 1.0);
+ result += mat4(-0.017078733, -0.017393313, -0.008266595, 0.0, -0.0033478448, -0.0027439648, -0.0042334674, 0.0, -0.06354017, -0.062058125, -0.04652064, 0.0, -0.010787706, -0.0062706997, -0.007573461, 0.0) * go_1(-1.0, -1.0);
+ result += mat4(-0.019895451, -0.016341688, -0.008712399, 0.0, 0.026231976, 0.023955572, 0.0216376, 0.0, -0.061950512, -0.05481285, -0.05261985, 0.0, -0.018804235, -0.016235247, -0.0131616965, 0.0) * go_1(-1.0, 0.0);
+ result += mat4(-0.055628926, -0.063315354, -0.057192408, 0.0, -0.0256364, -0.028660972, -0.02937357, 0.0, -0.017604912, -0.020851422, -0.016070362, 0.0, -0.0870202, -0.0832279, -0.07525406, 0.0) * go_1(-1.0, 1.0);
+ result += mat4(0.062738225, 0.07106593, 0.061644047, 0.0, -0.06068257, -0.06983662, -0.066070385, 0.0, 0.024919355, 0.03227179, 0.028569462, 0.0, -0.07866227, -0.098967604, -0.092128105, 0.0) * go_1(0.0, -1.0);
+ result += mat4(0.040397774, 0.047241107, 0.03962998, 0.0, -0.09112752, -0.10057507, -0.09301817, 0.0, 0.10833967, 0.101835825, 0.10027467, 0.0, 0.27189335, 0.27433604, 0.26781923, 0.0) * go_1(0.0, 0.0);
+ result += mat4(-0.044211388, -0.042373534, -0.03658007, 0.0, 0.113148406, 0.12423258, 0.107804194, 0.0, -0.17081551, -0.18562958, -0.17475435, 0.0, 0.09636739, 0.10763415, 0.093332425, 0.0) * go_1(0.0, 1.0);
+ result += mat4(-0.03798545, -0.047811143, -0.050768293, 0.0, 0.018775463, 0.026812987, 0.03452908, 0.0, 0.0055677597, 0.0039081173, -0.0017878668, 0.0, -0.10728597, -0.12618187, -0.109045394, 0.0) * go_1(1.0, -1.0);
+ result += mat4(0.06359783, 0.064184755, 0.04934199, 0.0, -0.009819327, -0.006616115, -0.007431496, 0.0, 0.025055679, 0.024787048, 0.017360551, 0.0, -0.047140837, -0.061695747, -0.06440822, 0.0) * go_1(1.0, 0.0);
+ result += mat4(0.060199022, 0.06482763, 0.059514645, 0.0, 0.026998974, 0.028776823, 0.024897143, 0.0, 0.17968474, 0.19337215, 0.16760105, 0.0, 0.0075838566, 0.010503482, 0.011993149, 0.0) * go_1(1.0, 1.0);
+ result += vec4(-0.0052927984, -0.0060193934, -0.0048643993, 0.0);
+ return result + imageLoad(mainImage, pixel);
+}
+
+void main() {
+ pixel = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(mainImage);
+ if (pixel.x >= size.x || pixel.y >= size.y) return;
+ imageStore(mainImage, pixel, vec4(clamp(hook().rgb, 0.0, 1.0), 1.0));
+}
diff --git a/src/display/shaders/a4k_r_conv3.spv.h b/src/display/shaders/a4k_r_conv3.spv.h
new file mode 100644
index 0000000..bf1ba14
--- /dev/null
+++ b/src/display/shaders/a4k_r_conv3.spv.h
@@ -0,0 +1,382 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_r_conv3[] = {
+ 0x07230203,0x00010600,0x0008000b,0x00000230,0x00000000,0x00020011,0x00000001,0x00020011,
+ 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
+ 0x00000000,0x00000001,0x0009000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000017,
+ 0x0000001c,0x000001fa,0x00000204,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,
+ 0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,
+ 0x00060005,0x0000000c,0x64616f6c,0x706e695f,0x76287475,0x003b3266,0x00040005,0x0000000b,
+ 0x7366666f,0x00007465,0x00040005,0x0000000f,0x6b6f6f68,0x00000028,0x00040005,0x00000014,
+ 0x657a6973,0x00000000,0x00050005,0x00000017,0x75706e69,0x616d4974,0x00006567,0x00040005,
+ 0x0000001c,0x65786970,0x0000006c,0x00040005,0x0000002c,0x75736572,0x0000746c,0x00040005,
+ 0x00000042,0x61726170,0x0000006d,0x00040005,0x00000059,0x61726170,0x0000006d,0x00040005,
+ 0x00000073,0x61726170,0x0000006d,0x00040005,0x0000008c,0x61726170,0x0000006d,0x00040005,
+ 0x000000a5,0x61726170,0x0000006d,0x00040005,0x000000be,0x61726170,0x0000006d,0x00040005,
+ 0x000000d7,0x61726170,0x0000006d,0x00040005,0x000000f0,0x61726170,0x0000006d,0x00040005,
+ 0x00000109,0x61726170,0x0000006d,0x00040005,0x00000121,0x61726170,0x0000006d,0x00040005,
+ 0x0000013a,0x61726170,0x0000006d,0x00040005,0x00000153,0x61726170,0x0000006d,0x00040005,
+ 0x0000016c,0x61726170,0x0000006d,0x00040005,0x00000185,0x61726170,0x0000006d,0x00040005,
+ 0x0000019e,0x61726170,0x0000006d,0x00040005,0x000001b7,0x61726170,0x0000006d,0x00040005,
+ 0x000001d0,0x61726170,0x0000006d,0x00040005,0x000001e9,0x61726170,0x0000006d,0x00050005,
+ 0x000001fa,0x6e69616d,0x67616d49,0x00000065,0x00080005,0x00000204,0x475f6c67,0x61626f6c,
+ 0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000209,0x657a6973,0x00000000,
+ 0x00030047,0x00000017,0x00000018,0x00040047,0x00000017,0x00000021,0x00000000,0x00040047,
+ 0x00000017,0x00000022,0x00000000,0x00040047,0x000001fa,0x00000021,0x00000001,0x00040047,
+ 0x000001fa,0x00000022,0x00000000,0x00040047,0x00000204,0x0000000b,0x0000001c,0x00020013,
+ 0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,
+ 0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040017,
+ 0x00000009,0x00000006,0x00000004,0x00040021,0x0000000a,0x00000009,0x00000008,0x00030021,
+ 0x0000000e,0x00000009,0x00040015,0x00000011,0x00000020,0x00000001,0x00040017,0x00000012,
+ 0x00000011,0x00000002,0x00040020,0x00000013,0x00000007,0x00000012,0x00090019,0x00000015,
+ 0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000002,0x00000002,0x00040020,
+ 0x00000016,0x00000000,0x00000015,0x0004003b,0x00000016,0x00000017,0x00000000,0x00040020,
+ 0x0000001b,0x00000006,0x00000012,0x0004003b,0x0000001b,0x0000001c,0x00000006,0x0004002b,
+ 0x00000011,0x00000021,0x00000000,0x0005002c,0x00000012,0x00000022,0x00000021,0x00000021,
+ 0x0004002b,0x00000011,0x00000024,0x00000001,0x00040020,0x0000002b,0x00000007,0x00000009,
+ 0x00040018,0x0000002d,0x00000009,0x00000004,0x0004002b,0x00000006,0x0000002e,0x3e228a1e,
+ 0x0004002b,0x00000006,0x0000002f,0x3e383572,0x0004002b,0x00000006,0x00000030,0x3e160025,
+ 0x0004002b,0x00000006,0x00000031,0x00000000,0x0007002c,0x00000009,0x00000032,0x0000002e,
+ 0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,0x00000033,0xbc8e5fd2,0x0004002b,
+ 0x00000006,0x00000034,0xbc8e3e6a,0x0004002b,0x00000006,0x00000035,0xbca2a700,0x0007002c,
+ 0x00000009,0x00000036,0x00000033,0x00000034,0x00000035,0x00000031,0x0004002b,0x00000006,
+ 0x00000037,0x3c1e718b,0x0004002b,0x00000006,0x00000038,0x3be5e466,0x0004002b,0x00000006,
+ 0x00000039,0x3bf904a7,0x0007002c,0x00000009,0x0000003a,0x00000037,0x00000038,0x00000039,
+ 0x00000031,0x0004002b,0x00000006,0x0000003b,0x3ccffb5c,0x0004002b,0x00000006,0x0000003c,
+ 0x3cdf139f,0x0004002b,0x00000006,0x0000003d,0x3cc50a0e,0x0007002c,0x00000009,0x0000003e,
+ 0x0000003b,0x0000003c,0x0000003d,0x00000031,0x0007002c,0x0000002d,0x0000003f,0x00000032,
+ 0x00000036,0x0000003a,0x0000003e,0x0004002b,0x00000006,0x00000040,0xbf800000,0x0005002c,
+ 0x00000007,0x00000041,0x00000040,0x00000040,0x0004002b,0x00000006,0x00000047,0x3d456924,
+ 0x0004002b,0x00000006,0x00000048,0x3d2b0cb7,0x0004002b,0x00000006,0x00000049,0x3d190d26,
+ 0x0007002c,0x00000009,0x0000004a,0x00000047,0x00000048,0x00000049,0x00000031,0x0004002b,
+ 0x00000006,0x0000004b,0xbded7797,0x0004002b,0x00000006,0x0000004c,0xbe03f913,0x0004002b,
+ 0x00000006,0x0000004d,0xbe005d6d,0x0007002c,0x00000009,0x0000004e,0x0000004b,0x0000004c,
+ 0x0000004d,0x00000031,0x0004002b,0x00000006,0x0000004f,0x3d039598,0x0004002b,0x00000006,
+ 0x00000050,0x3d0b26ca,0x0004002b,0x00000006,0x00000051,0x3d06f73c,0x0007002c,0x00000009,
+ 0x00000052,0x0000004f,0x00000050,0x00000051,0x00000031,0x0004002b,0x00000006,0x00000053,
+ 0x3c487fa1,0x0004002b,0x00000006,0x00000054,0x3caa944f,0x0004002b,0x00000006,0x00000055,
+ 0x3c8459cc,0x0007002c,0x00000009,0x00000056,0x00000053,0x00000054,0x00000055,0x00000031,
+ 0x0007002c,0x0000002d,0x00000057,0x0000004a,0x0000004e,0x00000052,0x00000056,0x0005002c,
+ 0x00000007,0x00000058,0x00000040,0x00000031,0x0004002b,0x00000006,0x00000060,0x3db6635c,
+ 0x0004002b,0x00000006,0x00000061,0x3dc170c0,0x0004002b,0x00000006,0x00000062,0x3db89b81,
+ 0x0007002c,0x00000009,0x00000063,0x00000060,0x00000061,0x00000062,0x00000031,0x0004002b,
+ 0x00000006,0x00000064,0x3c83bd07,0x0004002b,0x00000006,0x00000065,0x3c8ed1fe,0x0004002b,
+ 0x00000006,0x00000066,0x3caa4164,0x0007002c,0x00000009,0x00000067,0x00000064,0x00000065,
+ 0x00000066,0x00000031,0x0004002b,0x00000006,0x00000068,0xbc40ec7f,0x0004002b,0x00000006,
+ 0x00000069,0xbc2561de,0x0004002b,0x00000006,0x0000006a,0xbc97bd3e,0x0007002c,0x00000009,
+ 0x0000006b,0x00000068,0x00000069,0x0000006a,0x00000031,0x0004002b,0x00000006,0x0000006c,
+ 0x3d93aadf,0x0004002b,0x00000006,0x0000006d,0x3da29ff5,0x0004002b,0x00000006,0x0000006e,
+ 0x3d86ea73,0x0007002c,0x00000009,0x0000006f,0x0000006c,0x0000006d,0x0000006e,0x00000031,
+ 0x0007002c,0x0000002d,0x00000070,0x00000063,0x00000067,0x0000006b,0x0000006f,0x0004002b,
+ 0x00000006,0x00000071,0x3f800000,0x0005002c,0x00000007,0x00000072,0x00000040,0x00000071,
+ 0x0004002b,0x00000006,0x0000007a,0xbd464b9f,0x0004002b,0x00000006,0x0000007b,0xbd8e9f40,
+ 0x0004002b,0x00000006,0x0000007c,0xbd67badb,0x0007002c,0x00000009,0x0000007d,0x0000007a,
+ 0x0000007b,0x0000007c,0x00000031,0x0004002b,0x00000006,0x0000007e,0x3ddf7d26,0x0004002b,
+ 0x00000006,0x0000007f,0x3df1f074,0x0004002b,0x00000006,0x00000080,0x3dd9fc5e,0x0007002c,
+ 0x00000009,0x00000081,0x0000007e,0x0000007f,0x00000080,0x00000031,0x0004002b,0x00000006,
+ 0x00000082,0xbc553831,0x0004002b,0x00000006,0x00000083,0xbc7fecea,0x0004002b,0x00000006,
+ 0x00000084,0xbc622520,0x0007002c,0x00000009,0x00000085,0x00000082,0x00000083,0x00000084,
+ 0x00000031,0x0004002b,0x00000006,0x00000086,0x3d199f98,0x0004002b,0x00000006,0x00000087,
+ 0x3d32424d,0x0004002b,0x00000006,0x00000088,0x3d3e43a5,0x0007002c,0x00000009,0x00000089,
+ 0x00000086,0x00000087,0x00000088,0x00000031,0x0007002c,0x0000002d,0x0000008a,0x0000007d,
+ 0x00000081,0x00000085,0x00000089,0x0005002c,0x00000007,0x0000008b,0x00000031,0x00000040,
+ 0x0004002b,0x00000006,0x00000093,0xbeb1cf97,0x0004002b,0x00000006,0x00000094,0xbeb99087,
+ 0x0004002b,0x00000006,0x00000095,0xbeabacaf,0x0007002c,0x00000009,0x00000096,0x00000093,
+ 0x00000094,0x00000095,0x00000031,0x0004002b,0x00000006,0x00000097,0x3e72380e,0x0004002b,
+ 0x00000006,0x00000098,0x3e6c0973,0x0004002b,0x00000006,0x00000099,0x3e62d297,0x0007002c,
+ 0x00000009,0x0000009a,0x00000097,0x00000098,0x00000099,0x00000031,0x0004002b,0x00000006,
+ 0x0000009b,0xbd393fd9,0x0004002b,0x00000006,0x0000009c,0xbd2b35a8,0x0004002b,0x00000006,
+ 0x0000009d,0xbd2e20ae,0x0007002c,0x00000009,0x0000009e,0x0000009b,0x0000009c,0x0000009d,
+ 0x00000031,0x0004002b,0x00000006,0x0000009f,0xbdd248cd,0x0004002b,0x00000006,0x000000a0,
+ 0xbde611ba,0x0004002b,0x00000006,0x000000a1,0xbdde1d62,0x0007002c,0x00000009,0x000000a2,
+ 0x0000009f,0x000000a0,0x000000a1,0x00000031,0x0007002c,0x0000002d,0x000000a3,0x00000096,
+ 0x0000009a,0x0000009e,0x000000a2,0x0005002c,0x00000007,0x000000a4,0x00000031,0x00000031,
+ 0x0004002b,0x00000006,0x000000ac,0x3c4466ce,0x0004002b,0x00000006,0x000000ad,0x3c494734,
+ 0x0004002b,0x00000006,0x000000ae,0x3c0002ca,0x0007002c,0x00000009,0x000000af,0x000000ac,
+ 0x000000ad,0x000000ae,0x00000031,0x0004002b,0x00000006,0x000000b0,0xbe22eea8,0x0004002b,
+ 0x00000006,0x000000b1,0xbe3371ed,0x0004002b,0x00000006,0x000000b2,0xbe1d361a,0x0007002c,
+ 0x00000009,0x000000b3,0x000000b0,0x000000b1,0x000000b2,0x00000031,0x0004002b,0x00000006,
+ 0x000000b4,0x3e208582,0x0004002b,0x00000006,0x000000b5,0x3e2948b0,0x0004002b,0x00000006,
+ 0x000000b6,0x3e23513f,0x0007002c,0x00000009,0x000000b7,0x000000b4,0x000000b5,0x000000b6,
+ 0x00000031,0x0004002b,0x00000006,0x000000b8,0xbdbd3c55,0x0004002b,0x00000006,0x000000b9,
+ 0xbdc2d50c,0x0004002b,0x00000006,0x000000ba,0xbdac6a6d,0x0007002c,0x00000009,0x000000bb,
+ 0x000000b8,0x000000b9,0x000000ba,0x00000031,0x0007002c,0x0000002d,0x000000bc,0x000000af,
+ 0x000000b3,0x000000b7,0x000000bb,0x0005002c,0x00000007,0x000000bd,0x00000031,0x00000071,
+ 0x0004002b,0x00000006,0x000000c5,0x3d8d6b9c,0x0004002b,0x00000006,0x000000c6,0x3d950f6d,
+ 0x0004002b,0x00000006,0x000000c7,0x3d9af50c,0x0007002c,0x00000009,0x000000c8,0x000000c5,
+ 0x000000c6,0x000000c7,0x00000031,0x0004002b,0x00000006,0x000000c9,0xbc478ffd,0x0004002b,
+ 0x00000006,0x000000ca,0xbc99f766,0x0004002b,0x00000006,0x000000cb,0xbcfe5e26,0x0007002c,
+ 0x00000009,0x000000cc,0x000000c9,0x000000ca,0x000000cb,0x00000031,0x0004002b,0x00000006,
+ 0x000000cd,0xbd36f0c3,0x0004002b,0x00000006,0x000000ce,0xbd32b34e,0x0004002b,0x00000006,
+ 0x000000cf,0xbd1f5a14,0x0007002c,0x00000009,0x000000d0,0x000000cd,0x000000ce,0x000000cf,
+ 0x00000031,0x0004002b,0x00000006,0x000000d1,0xbc0bec2f,0x0004002b,0x00000006,0x000000d2,
+ 0xbc37877a,0x0004002b,0x00000006,0x000000d3,0xbc7f0996,0x0007002c,0x00000009,0x000000d4,
+ 0x000000d1,0x000000d2,0x000000d3,0x00000031,0x0007002c,0x0000002d,0x000000d5,0x000000c8,
+ 0x000000cc,0x000000d0,0x000000d4,0x0005002c,0x00000007,0x000000d6,0x00000071,0x00000040,
+ 0x0004002b,0x00000006,0x000000de,0xbda93057,0x0004002b,0x00000006,0x000000df,0xbdb930f8,
+ 0x0004002b,0x00000006,0x000000e0,0xbd9b6d9c,0x0007002c,0x00000009,0x000000e1,0x000000de,
+ 0x000000df,0x000000e0,0x00000031,0x0004002b,0x00000006,0x000000e2,0x3d323d2e,0x0004002b,
+ 0x00000006,0x000000e3,0x3d3897f0,0x0004002b,0x00000006,0x000000e4,0x3d256314,0x0007002c,
+ 0x00000009,0x000000e5,0x000000e2,0x000000e3,0x000000e4,0x00000031,0x0004002b,0x00000006,
+ 0x000000e6,0xbd80441f,0x0004002b,0x00000006,0x000000e7,0xbd98f8dd,0x0004002b,0x00000006,
+ 0x000000e8,0xbd70000a,0x0007002c,0x00000009,0x000000e9,0x000000e6,0x000000e7,0x000000e8,
+ 0x00000031,0x0004002b,0x00000006,0x000000ea,0x3cdab3a4,0x0004002b,0x00000006,0x000000eb,
+ 0x3ceb71ea,0x0004002b,0x00000006,0x000000ec,0x3d19365f,0x0007002c,0x00000009,0x000000ed,
+ 0x000000ea,0x000000eb,0x000000ec,0x00000031,0x0007002c,0x0000002d,0x000000ee,0x000000e1,
+ 0x000000e5,0x000000e9,0x000000ed,0x0005002c,0x00000007,0x000000ef,0x00000071,0x00000031,
+ 0x0004002b,0x00000006,0x000000f7,0x3da3571a,0x0004002b,0x00000006,0x000000f8,0x3dc48f59,
+ 0x0004002b,0x00000006,0x000000f9,0x3db842e2,0x0007002c,0x00000009,0x000000fa,0x000000f7,
+ 0x000000f8,0x000000f9,0x00000031,0x0004002b,0x00000006,0x000000fb,0xbda0a8ec,0x0004002b,
+ 0x00000006,0x000000fc,0xbda166b2,0x0004002b,0x00000006,0x000000fd,0xbd8bfd3d,0x0007002c,
+ 0x00000009,0x000000fe,0x000000fb,0x000000fc,0x000000fd,0x00000031,0x0004002b,0x00000006,
+ 0x000000ff,0x3d6833b9,0x0004002b,0x00000006,0x00000100,0x3d4d7892,0x0004002b,0x00000006,
+ 0x00000101,0x3d5a8d6e,0x0007002c,0x00000009,0x00000102,0x000000ff,0x00000100,0x00000101,
+ 0x00000031,0x0004002b,0x00000006,0x00000103,0xbca42ba0,0x0004002b,0x00000006,0x00000104,
+ 0xbca2c0c8,0x0004002b,0x00000006,0x00000105,0xbc9c45b6,0x0007002c,0x00000009,0x00000106,
+ 0x00000103,0x00000104,0x00000105,0x00000031,0x0007002c,0x0000002d,0x00000107,0x000000fa,
+ 0x000000fe,0x00000102,0x00000106,0x0005002c,0x00000007,0x00000108,0x00000071,0x00000071,
+ 0x0004002b,0x00000006,0x00000110,0xbc8be8b3,0x0004002b,0x00000006,0x00000111,0xbc8e7c6c,
+ 0x0004002b,0x00000006,0x00000112,0xbc07709d,0x0007002c,0x00000009,0x00000113,0x00000110,
+ 0x00000111,0x00000112,0x00000031,0x0004002b,0x00000006,0x00000114,0xbb5b6784,0x0004002b,
+ 0x00000006,0x00000115,0xbb33d417,0x0004002b,0x00000006,0x00000116,0xbb8ab8e6,0x0007002c,
+ 0x00000009,0x00000117,0x00000114,0x00000115,0x00000116,0x00000031,0x0004002b,0x00000006,
+ 0x00000118,0xbd822159,0x0004002b,0x00000006,0x00000119,0xbd7e30a9,0x0004002b,0x00000006,
+ 0x0000011a,0xbd3e8c6d,0x0007002c,0x00000009,0x0000011b,0x00000118,0x00000119,0x0000011a,
+ 0x00000031,0x0004002b,0x00000006,0x0000011c,0xbc30beeb,0x0004002b,0x00000006,0x0000011d,
+ 0xbbcd7a71,0x0004002b,0x00000006,0x0000011e,0xbbf82acc,0x0007002c,0x00000009,0x0000011f,
+ 0x0000011c,0x0000011d,0x0000011e,0x00000031,0x0007002c,0x0000002d,0x00000120,0x00000113,
+ 0x00000117,0x0000011b,0x0000011f,0x0004002b,0x00000006,0x00000129,0xbca2fbc9,0x0004002b,
+ 0x00000006,0x0000012a,0xbc85df01,0x0004002b,0x00000006,0x0000012b,0xbc0ebe73,0x0007002c,
+ 0x00000009,0x0000012c,0x00000129,0x0000012a,0x0000012b,0x00000031,0x0004002b,0x00000006,
+ 0x0000012d,0x3cd6e471,0x0004002b,0x00000006,0x0000012e,0x3cc43e7a,0x0004002b,0x00000006,
+ 0x0000012f,0x3cb14156,0x0007002c,0x00000009,0x00000130,0x0000012d,0x0000012e,0x0000012f,
+ 0x00000031,0x0004002b,0x00000006,0x00000131,0xbd7dbfd2,0x0004002b,0x00000006,0x00000132,
+ 0xbd608370,0x0004002b,0x00000006,0x00000133,0xbd5787e9,0x0007002c,0x00000009,0x00000134,
+ 0x00000131,0x00000132,0x00000133,0x00000031,0x0004002b,0x00000006,0x00000135,0xbc9a0b57,
+ 0x0004002b,0x00000006,0x00000136,0xbc84ffc8,0x0004002b,0x00000006,0x00000137,0xbc57a428,
+ 0x0007002c,0x00000009,0x00000138,0x00000135,0x00000136,0x00000137,0x00000031,0x0007002c,
+ 0x0000002d,0x00000139,0x0000012c,0x00000130,0x00000134,0x00000138,0x0004002b,0x00000006,
+ 0x00000142,0xbd63db28,0x0004002b,0x00000006,0x00000143,0xbd81ab7b,0x0004002b,0x00000006,
+ 0x00000144,0xbd6a4296,0x0007002c,0x00000009,0x00000145,0x00000142,0x00000143,0x00000144,
+ 0x00000031,0x0004002b,0x00000006,0x00000146,0xbcd2036d,0x0004002b,0x00000006,0x00000147,
+ 0xbceaca6a,0x0004002b,0x00000006,0x00000148,0xbcf0a0d7,0x0007002c,0x00000009,0x00000149,
+ 0x00000146,0x00000147,0x00000148,0x00000031,0x0004002b,0x00000006,0x0000014a,0xbc90382d,
+ 0x0004002b,0x00000006,0x0000014b,0xbcaad09a,0x0004002b,0x00000006,0x0000014c,0xbc83a5fe,
+ 0x0007002c,0x00000009,0x0000014d,0x0000014a,0x0000014b,0x0000014c,0x00000031,0x0004002b,
+ 0x00000006,0x0000014e,0xbdb237a6,0x0004002b,0x00000006,0x0000014f,0xbdaa7364,0x0004002b,
+ 0x00000006,0x00000150,0xbd9a1ecd,0x0007002c,0x00000009,0x00000151,0x0000014e,0x0000014f,
+ 0x00000150,0x00000031,0x0007002c,0x0000002d,0x00000152,0x00000145,0x00000149,0x0000014d,
+ 0x00000151,0x0004002b,0x00000006,0x0000015b,0x3d807ce6,0x0004002b,0x00000006,0x0000015c,
+ 0x3d918b04,0x0004002b,0x00000006,0x0000015d,0x3d7c7e78,0x0007002c,0x00000009,0x0000015e,
+ 0x0000015b,0x0000015c,0x0000015d,0x00000031,0x0004002b,0x00000006,0x0000015f,0xbd788e49,
+ 0x0004002b,0x00000006,0x00000160,0xbd8f0680,0x0004002b,0x00000006,0x00000161,0xbd874fe9,
+ 0x0007002c,0x00000009,0x00000162,0x0000015f,0x00000160,0x00000161,0x00000031,0x0004002b,
+ 0x00000006,0x00000163,0x3ccc23ad,0x0004002b,0x00000006,0x00000164,0x3d042f6d,0x0004002b,
+ 0x00000006,0x00000165,0x3cea0a81,0x0007002c,0x00000009,0x00000166,0x00000163,0x00000164,
+ 0x00000165,0x00000031,0x0004002b,0x00000006,0x00000167,0xbda119af,0x0004002b,0x00000006,
+ 0x00000168,0xbdcaaf87,0x0004002b,0x00000006,0x00000169,0xbdbcada9,0x0007002c,0x00000009,
+ 0x0000016a,0x00000167,0x00000168,0x00000169,0x00000031,0x0007002c,0x0000002d,0x0000016b,
+ 0x0000015e,0x00000162,0x00000166,0x0000016a,0x0004002b,0x00000006,0x00000174,0x3d257823,
+ 0x0004002b,0x00000006,0x00000175,0x3d417fe4,0x0004002b,0x00000006,0x00000176,0x3d22530c,
+ 0x0007002c,0x00000009,0x00000177,0x00000174,0x00000175,0x00000176,0x00000031,0x0004002b,
+ 0x00000006,0x00000178,0xbdbaa111,0x0004002b,0x00000006,0x00000179,0xbdcdfa4d,0x0004002b,
+ 0x00000006,0x0000017a,0xbdbe804f,0x0007002c,0x00000009,0x0000017b,0x00000178,0x00000179,
+ 0x0000017a,0x00000031,0x0004002b,0x00000006,0x0000017c,0x3ddde130,0x0004002b,0x00000006,
+ 0x0000017d,0x3dd08f4d,0x0004002b,0x00000006,0x0000017e,0x3dcd5cce,0x0007002c,0x00000009,
+ 0x0000017f,0x0000017c,0x0000017d,0x0000017e,0x00000031,0x0004002b,0x00000006,0x00000180,
+ 0x3e8b359b,0x0004002b,0x00000006,0x00000181,0x3e8c75c6,0x0004002b,0x00000006,0x00000182,
+ 0x3e891f9a,0x0007002c,0x00000009,0x00000183,0x00000180,0x00000181,0x00000182,0x00000031,
+ 0x0007002c,0x0000002d,0x00000184,0x00000177,0x0000017b,0x0000017f,0x00000183,0x0004002b,
+ 0x00000006,0x0000018d,0xbd351700,0x0004002b,0x00000006,0x0000018e,0xbd2d8fdf,0x0004002b,
+ 0x00000006,0x0000018f,0xbd15d4fc,0x0007002c,0x00000009,0x00000190,0x0000018d,0x0000018e,
+ 0x0000018f,0x00000031,0x0004002b,0x00000006,0x00000191,0x3de7ba5a,0x0004002b,0x00000006,
+ 0x00000192,0x3dfe6da7,0x0004002b,0x00000006,0x00000193,0x3ddcc872,0x0007002c,0x00000009,
+ 0x00000194,0x00000191,0x00000192,0x00000193,0x00000031,0x0004002b,0x00000006,0x00000195,
+ 0xbe2eea43,0x0004002b,0x00000006,0x00000196,0xbe3e15ae,0x0004002b,0x00000006,0x00000197,
+ 0xbe32f2ce,0x0007002c,0x00000009,0x00000198,0x00000195,0x00000196,0x00000197,0x00000031,
+ 0x0004002b,0x00000006,0x00000199,0x3dc55c44,0x0004002b,0x00000006,0x0000019a,0x3ddc6f4b,
+ 0x0004002b,0x00000006,0x0000019b,0x3dbf2512,0x0007002c,0x00000009,0x0000019c,0x00000199,
+ 0x0000019a,0x0000019b,0x00000031,0x0007002c,0x0000002d,0x0000019d,0x00000190,0x00000194,
+ 0x00000198,0x0000019c,0x0004002b,0x00000006,0x000001a6,0xbd1b96a2,0x0004002b,0x00000006,
+ 0x000001a7,0xbd43d59e,0x0004002b,0x00000006,0x000001a8,0xbd4ff26a,0x0007002c,0x00000009,
+ 0x000001a9,0x000001a6,0x000001a7,0x000001a8,0x00000031,0x0004002b,0x00000006,0x000001aa,
+ 0x3c99cf00,0x0004002b,0x00000006,0x000001ab,0x3cdba6e9,0x0004002b,0x00000006,0x000001ac,
+ 0x3d0d6e5d,0x0007002c,0x00000009,0x000001ad,0x000001aa,0x000001ab,0x000001ac,0x00000031,
+ 0x0004002b,0x00000006,0x000001ae,0x3bb671c1,0x0004002b,0x00000006,0x000001af,0x3b800faa,
+ 0x0004002b,0x00000006,0x000001b0,0xbaea56db,0x0007002c,0x00000009,0x000001b1,0x000001ae,
+ 0x000001af,0x000001b0,0x00000031,0x0004002b,0x00000006,0x000001b2,0xbddbb8bf,0x0004002b,
+ 0x00000006,0x000001b3,0xbe0135d2,0x0004002b,0x00000006,0x000001b4,0xbddf5331,0x0007002c,
+ 0x00000009,0x000001b5,0x000001b2,0x000001b3,0x000001b4,0x00000031,0x0007002c,0x0000002d,
+ 0x000001b6,0x000001a9,0x000001ad,0x000001b1,0x000001b5,0x0004002b,0x00000006,0x000001bf,
+ 0x3d823f94,0x0004002b,0x00000006,0x000001c0,0x3d83734c,0x0004002b,0x00000006,0x000001c1,
+ 0x3d4a1ad4,0x0007002c,0x00000009,0x000001c2,0x000001bf,0x000001c0,0x000001c1,0x00000031,
+ 0x0004002b,0x00000006,0x000001c3,0xbc20e13e,0x0004002b,0x00000006,0x000001c4,0xbbd8cbff,
+ 0x0004002b,0x00000006,0x000001c5,0xbbf383e8,0x0007002c,0x00000009,0x000001c6,0x000001c3,
+ 0x000001c4,0x000001c5,0x00000031,0x0004002b,0x00000006,0x000001c7,0x3ccd4191,0x0004002b,
+ 0x00000006,0x000001c8,0x3ccb0e35,0x0004002b,0x00000006,0x000001c9,0x3c8e37b7,0x0007002c,
+ 0x00000009,0x000001ca,0x000001c7,0x000001c8,0x000001c9,0x00000031,0x0004002b,0x00000006,
+ 0x000001cb,0xbd4116c0,0x0004002b,0x00000006,0x000001cc,0xbd7cb4ae,0x0004002b,0x00000006,
+ 0x000001cd,0xbd83e875,0x0007002c,0x00000009,0x000001ce,0x000001cb,0x000001cc,0x000001cd,
+ 0x00000031,0x0007002c,0x0000002d,0x000001cf,0x000001c2,0x000001c6,0x000001ca,0x000001ce,
+ 0x0004002b,0x00000006,0x000001d8,0x3d769340,0x0004002b,0x00000006,0x000001d9,0x3d84c459,
+ 0x0004002b,0x00000006,0x000001da,0x3d73c5a1,0x0007002c,0x00000009,0x000001db,0x000001d8,
+ 0x000001d9,0x000001da,0x00000031,0x0004002b,0x00000006,0x000001dc,0x3cdd2cf4,0x0004002b,
+ 0x00000006,0x000001dd,0x3cebbd5f,0x0004002b,0x00000006,0x000001de,0x3ccbf518,0x0007002c,
+ 0x00000009,0x000001df,0x000001dc,0x000001dd,0x000001de,0x00000031,0x0004002b,0x00000006,
+ 0x000001e0,0x3e37ff47,0x0004002b,0x00000006,0x000001e1,0x3e460359,0x0004002b,0x00000006,
+ 0x000001e2,0x3e2b9f9c,0x0007002c,0x00000009,0x000001e3,0x000001e0,0x000001e1,0x000001e2,
+ 0x00000031,0x0004002b,0x00000006,0x000001e4,0x3bf88200,0x0004002b,0x00000006,0x000001e5,
+ 0x3c2c16cc,0x0004002b,0x00000006,0x000001e6,0x3c447eea,0x0007002c,0x00000009,0x000001e7,
+ 0x000001e4,0x000001e5,0x000001e6,0x00000031,0x0007002c,0x0000002d,0x000001e8,0x000001db,
+ 0x000001df,0x000001e3,0x000001e7,0x0004002b,0x00000006,0x000001f1,0xbbad6f36,0x0004002b,
+ 0x00000006,0x000001f2,0xbbc53e55,0x0004002b,0x00000006,0x000001f3,0xbb9f658a,0x0007002c,
+ 0x00000009,0x000001f4,0x000001f1,0x000001f2,0x000001f3,0x00000031,0x00090019,0x000001f8,
+ 0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000002,0x00000004,0x00040020,
+ 0x000001f9,0x00000000,0x000001f8,0x0004003b,0x000001f9,0x000001fa,0x00000000,0x00040015,
+ 0x00000201,0x00000020,0x00000000,0x00040017,0x00000202,0x00000201,0x00000003,0x00040020,
+ 0x00000203,0x00000001,0x00000202,0x0004003b,0x00000203,0x00000204,0x00000001,0x00040017,
+ 0x00000205,0x00000201,0x00000002,0x00020014,0x0000020c,0x0004002b,0x00000201,0x0000020d,
+ 0x00000000,0x00040020,0x0000020e,0x00000006,0x00000011,0x00040020,0x00000211,0x00000007,
+ 0x00000011,0x0004002b,0x00000201,0x00000218,0x00000001,0x00040017,0x00000225,0x00000006,
+ 0x00000003,0x0004002b,0x00000201,0x0000022e,0x00000008,0x0006002c,0x00000202,0x0000022f,
+ 0x0000022e,0x0000022e,0x00000218,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,
+ 0x000200f8,0x00000005,0x0004003b,0x00000013,0x00000209,0x00000007,0x0004003d,0x00000202,
+ 0x00000206,0x00000204,0x0007004f,0x00000205,0x00000207,0x00000206,0x00000206,0x00000000,
+ 0x00000001,0x0004007c,0x00000012,0x00000208,0x00000207,0x0003003e,0x0000001c,0x00000208,
+ 0x0004003d,0x000001f8,0x0000020a,0x000001fa,0x00040068,0x00000012,0x0000020b,0x0000020a,
+ 0x0003003e,0x00000209,0x0000020b,0x00050041,0x0000020e,0x0000020f,0x0000001c,0x0000020d,
+ 0x0004003d,0x00000011,0x00000210,0x0000020f,0x00050041,0x00000211,0x00000212,0x00000209,
+ 0x0000020d,0x0004003d,0x00000011,0x00000213,0x00000212,0x000500af,0x0000020c,0x00000214,
+ 0x00000210,0x00000213,0x000400a8,0x0000020c,0x00000215,0x00000214,0x000300f7,0x00000217,
+ 0x00000000,0x000400fa,0x00000215,0x00000216,0x00000217,0x000200f8,0x00000216,0x00050041,
+ 0x0000020e,0x00000219,0x0000001c,0x00000218,0x0004003d,0x00000011,0x0000021a,0x00000219,
+ 0x00050041,0x00000211,0x0000021b,0x00000209,0x00000218,0x0004003d,0x00000011,0x0000021c,
+ 0x0000021b,0x000500af,0x0000020c,0x0000021d,0x0000021a,0x0000021c,0x000200f9,0x00000217,
+ 0x000200f8,0x00000217,0x000700f5,0x0000020c,0x0000021e,0x00000214,0x00000005,0x0000021d,
+ 0x00000216,0x000300f7,0x00000220,0x00000000,0x000400fa,0x0000021e,0x0000021f,0x00000220,
+ 0x000200f8,0x0000021f,0x000100fd,0x000200f8,0x00000220,0x0004003d,0x000001f8,0x00000222,
+ 0x000001fa,0x0004003d,0x00000012,0x00000223,0x0000001c,0x00040039,0x00000009,0x00000224,
+ 0x0000000f,0x0008004f,0x00000225,0x00000226,0x00000224,0x00000224,0x00000000,0x00000001,
+ 0x00000002,0x00060050,0x00000225,0x00000227,0x00000031,0x00000031,0x00000031,0x00060050,
+ 0x00000225,0x00000228,0x00000071,0x00000071,0x00000071,0x0008000c,0x00000225,0x00000229,
+ 0x00000001,0x0000002b,0x00000226,0x00000227,0x00000228,0x00050051,0x00000006,0x0000022a,
+ 0x00000229,0x00000000,0x00050051,0x00000006,0x0000022b,0x00000229,0x00000001,0x00050051,
+ 0x00000006,0x0000022c,0x00000229,0x00000002,0x00070050,0x00000009,0x0000022d,0x0000022a,
+ 0x0000022b,0x0000022c,0x00000071,0x00040063,0x00000222,0x00000223,0x0000022d,0x000100fd,
+ 0x00010038,0x00050036,0x00000009,0x0000000c,0x00000000,0x0000000a,0x00030037,0x00000008,
+ 0x0000000b,0x000200f8,0x0000000d,0x0004003b,0x00000013,0x00000014,0x00000007,0x0004003d,
+ 0x00000015,0x00000018,0x00000017,0x00040068,0x00000012,0x00000019,0x00000018,0x0003003e,
+ 0x00000014,0x00000019,0x0004003d,0x00000015,0x0000001a,0x00000017,0x0004003d,0x00000012,
+ 0x0000001d,0x0000001c,0x0004003d,0x00000007,0x0000001e,0x0000000b,0x0004006e,0x00000012,
+ 0x0000001f,0x0000001e,0x00050080,0x00000012,0x00000020,0x0000001d,0x0000001f,0x0004003d,
+ 0x00000012,0x00000023,0x00000014,0x00050050,0x00000012,0x00000025,0x00000024,0x00000024,
+ 0x00050082,0x00000012,0x00000026,0x00000023,0x00000025,0x0008000c,0x00000012,0x00000027,
+ 0x00000001,0x0000002d,0x00000020,0x00000022,0x00000026,0x00050062,0x00000009,0x00000028,
+ 0x0000001a,0x00000027,0x000200fe,0x00000028,0x00010038,0x00050036,0x00000009,0x0000000f,
+ 0x00000000,0x0000000e,0x000200f8,0x00000010,0x0004003b,0x0000002b,0x0000002c,0x00000007,
+ 0x0004003b,0x00000008,0x00000042,0x00000007,0x0004003b,0x00000008,0x00000059,0x00000007,
+ 0x0004003b,0x00000008,0x00000073,0x00000007,0x0004003b,0x00000008,0x0000008c,0x00000007,
+ 0x0004003b,0x00000008,0x000000a5,0x00000007,0x0004003b,0x00000008,0x000000be,0x00000007,
+ 0x0004003b,0x00000008,0x000000d7,0x00000007,0x0004003b,0x00000008,0x000000f0,0x00000007,
+ 0x0004003b,0x00000008,0x00000109,0x00000007,0x0004003b,0x00000008,0x00000121,0x00000007,
+ 0x0004003b,0x00000008,0x0000013a,0x00000007,0x0004003b,0x00000008,0x00000153,0x00000007,
+ 0x0004003b,0x00000008,0x0000016c,0x00000007,0x0004003b,0x00000008,0x00000185,0x00000007,
+ 0x0004003b,0x00000008,0x0000019e,0x00000007,0x0004003b,0x00000008,0x000001b7,0x00000007,
+ 0x0004003b,0x00000008,0x000001d0,0x00000007,0x0004003b,0x00000008,0x000001e9,0x00000007,
+ 0x0003003e,0x00000042,0x00000041,0x00050039,0x00000009,0x00000043,0x0000000c,0x00000042,
+ 0x00070050,0x00000009,0x00000044,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,
+ 0x00000009,0x00000045,0x00000001,0x00000028,0x00000043,0x00000044,0x00050091,0x00000009,
+ 0x00000046,0x0000003f,0x00000045,0x0003003e,0x0000002c,0x00000046,0x0003003e,0x00000059,
+ 0x00000058,0x00050039,0x00000009,0x0000005a,0x0000000c,0x00000059,0x00070050,0x00000009,
+ 0x0000005b,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x0000005c,
+ 0x00000001,0x00000028,0x0000005a,0x0000005b,0x00050091,0x00000009,0x0000005d,0x00000057,
+ 0x0000005c,0x0004003d,0x00000009,0x0000005e,0x0000002c,0x00050081,0x00000009,0x0000005f,
+ 0x0000005e,0x0000005d,0x0003003e,0x0000002c,0x0000005f,0x0003003e,0x00000073,0x00000072,
+ 0x00050039,0x00000009,0x00000074,0x0000000c,0x00000073,0x00070050,0x00000009,0x00000075,
+ 0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x00000076,0x00000001,
+ 0x00000028,0x00000074,0x00000075,0x00050091,0x00000009,0x00000077,0x00000070,0x00000076,
+ 0x0004003d,0x00000009,0x00000078,0x0000002c,0x00050081,0x00000009,0x00000079,0x00000078,
+ 0x00000077,0x0003003e,0x0000002c,0x00000079,0x0003003e,0x0000008c,0x0000008b,0x00050039,
+ 0x00000009,0x0000008d,0x0000000c,0x0000008c,0x00070050,0x00000009,0x0000008e,0x00000031,
+ 0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x0000008f,0x00000001,0x00000028,
+ 0x0000008d,0x0000008e,0x00050091,0x00000009,0x00000090,0x0000008a,0x0000008f,0x0004003d,
+ 0x00000009,0x00000091,0x0000002c,0x00050081,0x00000009,0x00000092,0x00000091,0x00000090,
+ 0x0003003e,0x0000002c,0x00000092,0x0003003e,0x000000a5,0x000000a4,0x00050039,0x00000009,
+ 0x000000a6,0x0000000c,0x000000a5,0x00070050,0x00000009,0x000000a7,0x00000031,0x00000031,
+ 0x00000031,0x00000031,0x0007000c,0x00000009,0x000000a8,0x00000001,0x00000028,0x000000a6,
+ 0x000000a7,0x00050091,0x00000009,0x000000a9,0x000000a3,0x000000a8,0x0004003d,0x00000009,
+ 0x000000aa,0x0000002c,0x00050081,0x00000009,0x000000ab,0x000000aa,0x000000a9,0x0003003e,
+ 0x0000002c,0x000000ab,0x0003003e,0x000000be,0x000000bd,0x00050039,0x00000009,0x000000bf,
+ 0x0000000c,0x000000be,0x00070050,0x00000009,0x000000c0,0x00000031,0x00000031,0x00000031,
+ 0x00000031,0x0007000c,0x00000009,0x000000c1,0x00000001,0x00000028,0x000000bf,0x000000c0,
+ 0x00050091,0x00000009,0x000000c2,0x000000bc,0x000000c1,0x0004003d,0x00000009,0x000000c3,
+ 0x0000002c,0x00050081,0x00000009,0x000000c4,0x000000c3,0x000000c2,0x0003003e,0x0000002c,
+ 0x000000c4,0x0003003e,0x000000d7,0x000000d6,0x00050039,0x00000009,0x000000d8,0x0000000c,
+ 0x000000d7,0x00070050,0x00000009,0x000000d9,0x00000031,0x00000031,0x00000031,0x00000031,
+ 0x0007000c,0x00000009,0x000000da,0x00000001,0x00000028,0x000000d8,0x000000d9,0x00050091,
+ 0x00000009,0x000000db,0x000000d5,0x000000da,0x0004003d,0x00000009,0x000000dc,0x0000002c,
+ 0x00050081,0x00000009,0x000000dd,0x000000dc,0x000000db,0x0003003e,0x0000002c,0x000000dd,
+ 0x0003003e,0x000000f0,0x000000ef,0x00050039,0x00000009,0x000000f1,0x0000000c,0x000000f0,
+ 0x00070050,0x00000009,0x000000f2,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,
+ 0x00000009,0x000000f3,0x00000001,0x00000028,0x000000f1,0x000000f2,0x00050091,0x00000009,
+ 0x000000f4,0x000000ee,0x000000f3,0x0004003d,0x00000009,0x000000f5,0x0000002c,0x00050081,
+ 0x00000009,0x000000f6,0x000000f5,0x000000f4,0x0003003e,0x0000002c,0x000000f6,0x0003003e,
+ 0x00000109,0x00000108,0x00050039,0x00000009,0x0000010a,0x0000000c,0x00000109,0x00070050,
+ 0x00000009,0x0000010b,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,
+ 0x0000010c,0x00000001,0x00000028,0x0000010a,0x0000010b,0x00050091,0x00000009,0x0000010d,
+ 0x00000107,0x0000010c,0x0004003d,0x00000009,0x0000010e,0x0000002c,0x00050081,0x00000009,
+ 0x0000010f,0x0000010e,0x0000010d,0x0003003e,0x0000002c,0x0000010f,0x0003003e,0x00000121,
+ 0x00000041,0x00050039,0x00000009,0x00000122,0x0000000c,0x00000121,0x0004007f,0x00000009,
+ 0x00000123,0x00000122,0x00070050,0x00000009,0x00000124,0x00000031,0x00000031,0x00000031,
+ 0x00000031,0x0007000c,0x00000009,0x00000125,0x00000001,0x00000028,0x00000123,0x00000124,
+ 0x00050091,0x00000009,0x00000126,0x00000120,0x00000125,0x0004003d,0x00000009,0x00000127,
+ 0x0000002c,0x00050081,0x00000009,0x00000128,0x00000127,0x00000126,0x0003003e,0x0000002c,
+ 0x00000128,0x0003003e,0x0000013a,0x00000058,0x00050039,0x00000009,0x0000013b,0x0000000c,
+ 0x0000013a,0x0004007f,0x00000009,0x0000013c,0x0000013b,0x00070050,0x00000009,0x0000013d,
+ 0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x0000013e,0x00000001,
+ 0x00000028,0x0000013c,0x0000013d,0x00050091,0x00000009,0x0000013f,0x00000139,0x0000013e,
+ 0x0004003d,0x00000009,0x00000140,0x0000002c,0x00050081,0x00000009,0x00000141,0x00000140,
+ 0x0000013f,0x0003003e,0x0000002c,0x00000141,0x0003003e,0x00000153,0x00000072,0x00050039,
+ 0x00000009,0x00000154,0x0000000c,0x00000153,0x0004007f,0x00000009,0x00000155,0x00000154,
+ 0x00070050,0x00000009,0x00000156,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,
+ 0x00000009,0x00000157,0x00000001,0x00000028,0x00000155,0x00000156,0x00050091,0x00000009,
+ 0x00000158,0x00000152,0x00000157,0x0004003d,0x00000009,0x00000159,0x0000002c,0x00050081,
+ 0x00000009,0x0000015a,0x00000159,0x00000158,0x0003003e,0x0000002c,0x0000015a,0x0003003e,
+ 0x0000016c,0x0000008b,0x00050039,0x00000009,0x0000016d,0x0000000c,0x0000016c,0x0004007f,
+ 0x00000009,0x0000016e,0x0000016d,0x00070050,0x00000009,0x0000016f,0x00000031,0x00000031,
+ 0x00000031,0x00000031,0x0007000c,0x00000009,0x00000170,0x00000001,0x00000028,0x0000016e,
+ 0x0000016f,0x00050091,0x00000009,0x00000171,0x0000016b,0x00000170,0x0004003d,0x00000009,
+ 0x00000172,0x0000002c,0x00050081,0x00000009,0x00000173,0x00000172,0x00000171,0x0003003e,
+ 0x0000002c,0x00000173,0x0003003e,0x00000185,0x000000a4,0x00050039,0x00000009,0x00000186,
+ 0x0000000c,0x00000185,0x0004007f,0x00000009,0x00000187,0x00000186,0x00070050,0x00000009,
+ 0x00000188,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x00000189,
+ 0x00000001,0x00000028,0x00000187,0x00000188,0x00050091,0x00000009,0x0000018a,0x00000184,
+ 0x00000189,0x0004003d,0x00000009,0x0000018b,0x0000002c,0x00050081,0x00000009,0x0000018c,
+ 0x0000018b,0x0000018a,0x0003003e,0x0000002c,0x0000018c,0x0003003e,0x0000019e,0x000000bd,
+ 0x00050039,0x00000009,0x0000019f,0x0000000c,0x0000019e,0x0004007f,0x00000009,0x000001a0,
+ 0x0000019f,0x00070050,0x00000009,0x000001a1,0x00000031,0x00000031,0x00000031,0x00000031,
+ 0x0007000c,0x00000009,0x000001a2,0x00000001,0x00000028,0x000001a0,0x000001a1,0x00050091,
+ 0x00000009,0x000001a3,0x0000019d,0x000001a2,0x0004003d,0x00000009,0x000001a4,0x0000002c,
+ 0x00050081,0x00000009,0x000001a5,0x000001a4,0x000001a3,0x0003003e,0x0000002c,0x000001a5,
+ 0x0003003e,0x000001b7,0x000000d6,0x00050039,0x00000009,0x000001b8,0x0000000c,0x000001b7,
+ 0x0004007f,0x00000009,0x000001b9,0x000001b8,0x00070050,0x00000009,0x000001ba,0x00000031,
+ 0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,0x000001bb,0x00000001,0x00000028,
+ 0x000001b9,0x000001ba,0x00050091,0x00000009,0x000001bc,0x000001b6,0x000001bb,0x0004003d,
+ 0x00000009,0x000001bd,0x0000002c,0x00050081,0x00000009,0x000001be,0x000001bd,0x000001bc,
+ 0x0003003e,0x0000002c,0x000001be,0x0003003e,0x000001d0,0x000000ef,0x00050039,0x00000009,
+ 0x000001d1,0x0000000c,0x000001d0,0x0004007f,0x00000009,0x000001d2,0x000001d1,0x00070050,
+ 0x00000009,0x000001d3,0x00000031,0x00000031,0x00000031,0x00000031,0x0007000c,0x00000009,
+ 0x000001d4,0x00000001,0x00000028,0x000001d2,0x000001d3,0x00050091,0x00000009,0x000001d5,
+ 0x000001cf,0x000001d4,0x0004003d,0x00000009,0x000001d6,0x0000002c,0x00050081,0x00000009,
+ 0x000001d7,0x000001d6,0x000001d5,0x0003003e,0x0000002c,0x000001d7,0x0003003e,0x000001e9,
+ 0x00000108,0x00050039,0x00000009,0x000001ea,0x0000000c,0x000001e9,0x0004007f,0x00000009,
+ 0x000001eb,0x000001ea,0x00070050,0x00000009,0x000001ec,0x00000031,0x00000031,0x00000031,
+ 0x00000031,0x0007000c,0x00000009,0x000001ed,0x00000001,0x00000028,0x000001eb,0x000001ec,
+ 0x00050091,0x00000009,0x000001ee,0x000001e8,0x000001ed,0x0004003d,0x00000009,0x000001ef,
+ 0x0000002c,0x00050081,0x00000009,0x000001f0,0x000001ef,0x000001ee,0x0003003e,0x0000002c,
+ 0x000001f0,0x0004003d,0x00000009,0x000001f5,0x0000002c,0x00050081,0x00000009,0x000001f6,
+ 0x000001f5,0x000001f4,0x0003003e,0x0000002c,0x000001f6,0x0004003d,0x00000009,0x000001f7,
+ 0x0000002c,0x0004003d,0x000001f8,0x000001fb,0x000001fa,0x0004003d,0x00000012,0x000001fc,
+ 0x0000001c,0x00050062,0x00000009,0x000001fd,0x000001fb,0x000001fc,0x00050081,0x00000009,
+ 0x000001fe,0x000001f7,0x000001fd,0x000200fe,0x000001fe,0x00010038
+};
diff --git a/src/ui/stream_menu.cpp b/src/ui/stream_menu.cpp
index de47a26..f3b9812 100644
--- a/src/ui/stream_menu.cpp
+++ b/src/ui/stream_menu.cpp
@@ -4,6 +4,7 @@
#include "ui/strings.h"
+#include <algorithm>
#include <cstdio>
namespace xc::ui {
@@ -65,11 +66,17 @@ MenuAction StreamMenu::handle(const NavInput& in) {
return MenuAction::Sharpness;
}
if (selected_ == Upscaler && (in.left || in.right || in.accept)) {
- upscaler_ = 1 - upscaler_;
+ // FSR, FSR + clean-up, AI, AI + clean-up (values 0, 2, 1, 3).
+ static constexpr int kOrder[4] = {0, 2, 1, 3};
+ int pos = 0;
+ for (int i = 0; i < 4; ++i)
+ if (kOrder[i] == upscaler_) pos = i;
+ upscaler_ = kOrder[in.left ? (pos + 3) % 4 : (pos + 1) % 4];
return MenuAction::Upscaler;
}
if (selected_ == Deband && (in.left || in.right || in.accept)) {
- deband_ = in.left ? (deband_ + 2) % 3 : (deband_ + 1) % 3;
+ // Off, low, high, auto (follows the bitrate).
+ deband_ = in.left ? (deband_ + 3) % 4 : (deband_ + 1) % 4;
return MenuAction::Deband;
}
if (selected_ == Stats && (in.left || in.right)) {
@@ -121,12 +128,16 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {
if (sel) value = "< " + value + " >";
}
if (i == Upscaler) {
- value = upscaler_ ? tr(Str::UpscalerAi) : "FSR";
+ value = upscaler_ == 3 ? tr(Str::UpscalerAiClean)
+ : upscaler_ == 2 ? tr(Str::UpscalerFsrClean)
+ : upscaler_ == 1 ? tr(Str::UpscalerAi)
+ : "FSR";
if (sel) value = "< " + value + " >";
}
if (i == Deband) {
static constexpr Str kLevels[] = {Str::SharpOff, Str::SharpLow, Str::SharpHigh};
- value = tr(kLevels[deband_]);
+ value = deband_ == 3 ? trf(Str::DebandAuto, tr(kLevels[std::clamp(debandInUse_, 0, 2)]))
+ : tr(kLevels[std::clamp(deband_, 0, 2)]);
if (sel) value = "< " + value + " >";
}
if (i == Resolution) {
diff --git a/src/ui/stream_menu.h b/src/ui/stream_menu.h
index 72432f5..ecac1d4 100644
--- a/src/ui/stream_menu.h
+++ b/src/ui/stream_menu.h
@@ -50,6 +50,8 @@ public:
int sharpness() const { return sharpness_; }
int deband() const { return deband_; }
int upscaler() const { return upscaler_; }
+ // The block smoothing level "auto" picked for the bitrate (shown as "Auto (low)").
+ void setDebandInUse(int level) { debandInUse_ = level; }
// Circle confirms: the hints swap their buttons.
void setCircleConfirms(bool on) { circleConfirms_ = on; }
// The controllers in use, under the connection.
@@ -65,7 +67,7 @@ private:
bool open_ = false, stats_ = false;
int selected_ = XboxButton;
int resolution_ = 0, applied_ = 0;
- int sharpness_ = 0, deband_ = 1, upscaler_ = 0;
+ int sharpness_ = 0, deband_ = 1, upscaler_ = 0, debandInUse_ = 1;
bool resolutionAsked_ = false;
bool circleConfirms_ = false;
bool homeConsole_ = false, allow1440_ = true;
diff --git a/src/ui/strings.cpp b/src/ui/strings.cpp
index 7d80041..ecfbbb0 100644
--- a/src/ui/strings.cpp
+++ b/src/ui/strings.cpp
@@ -176,6 +176,9 @@ constexpr Column kEnglish = {
"The Xbox was turned off", // EndedXboxOff
"%s got the request but its Remote Play didn't start. Restart it: hold the power button on the console for 10 seconds, turn it back on, then try again.", // StreamingStuck
"Touchpad: swipe ↓ for the menu, ↑ for the Xbox button", // GestureHint
+ "FSR + clean-up", // UpscalerFsrClean
+ "AI + clean-up", // UpscalerAiClean
+ "Auto (%s)", // DebandAuto
};
constexpr Column kPortugueseBR = {
@@ -322,6 +325,9 @@ constexpr Column kPortugueseBR = {
"O Xbox foi desligado",
"%s recebeu o pedido, mas o jogo remoto dele não iniciou. Reinicie o console: segure o botão de ligar do Xbox por 10 segundos, ligue de novo e tente outra vez.",
"Touchpad: deslize ↓ para o menu, ↑ para o botão Xbox",
+ "FSR + limpeza",
+ "IA + limpeza",
+ "Auto (%s)",
};
constexpr Column kSpanish = {
@@ -468,6 +474,9 @@ constexpr Column kSpanish = {
"La Xbox se apagó",
"%s recibió la solicitud, pero su juego remoto no se inició. Reiníciala: mantén pulsado el botón de encendido de la consola 10 segundos, enciéndela de nuevo y vuelve a intentarlo.",
"Panel táctil: desliza ↓ para el menú, ↑ para el botón Xbox",
+ "FSR + limpieza",
+ "IA + limpieza",
+ "Auto (%s)",
};
constexpr Column kFrench = {
@@ -614,6 +623,9 @@ constexpr Column kFrench = {
"La Xbox a été éteinte",
"%s a reçu la demande, mais son jeu à distance n'a pas démarré. Redémarrez-la : maintenez le bouton d'alimentation de la console 10 secondes, rallumez-la, puis réessayez.",
"Pavé tactile : glissez ↓ pour le menu, ↑ pour le bouton Xbox",
+ "FSR + nettoyage",
+ "IA + nettoyage",
+ "Auto (%s)",
};
constexpr Column kGerman = {
@@ -760,6 +772,9 @@ constexpr Column kGerman = {
"Die Xbox wurde ausgeschaltet",
"%s hat die Anfrage erhalten, aber Remote Play ist nicht gestartet. Starte sie neu: Halte die Ein/Aus-Taste der Konsole 10 Sekunden gedrückt, schalte sie wieder ein und versuche es erneut.",
"Touchpad: ↓ wischen für das Menü, ↑ für die Xbox-Taste",
+ "FSR + Bereinigung",
+ "KI + Bereinigung",
+ "Auto (%s)",
};
constexpr Column kItalian = {
@@ -906,6 +921,9 @@ constexpr Column kItalian = {
"La Xbox è stata spenta",
"%s ha ricevuto la richiesta, ma il gioco remoto non è partito. Riavviala: tieni premuto il pulsante di accensione della console per 10 secondi, riaccendila e riprova.",
"Touchpad: scorri ↓ per il menu, ↑ per il pulsante Xbox",
+ "FSR + pulizia",
+ "IA + pulizia",
+ "Auto (%s)",
};
constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,
diff --git a/src/ui/strings.h b/src/ui/strings.h
index f48d48d..b8f5398 100644
--- a/src/ui/strings.h
+++ b/src/ui/strings.h
@@ -153,6 +153,9 @@ enum class Str {
EndedXboxOff, // toast: the Xbox was turned off during the stream
StreamingStuck, // "%s" = the console: its Remote Play service didn't start
GestureHint, // at the start of a stream (the first three): the touchpad gestures
+ UpscalerFsrClean, // game menu: FSR after Anime4K Restore (cleans compression artefacts)
+ UpscalerAiClean, // Anime4K upscale after Anime4K Restore
+ DebandAuto, // "%s" = the level in use now; block smoothing follows the bitrate
Count
};
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
index 505408e..5d8ced9 100644
--- a/tests/test_main.cpp
+++ b/tests/test_main.cpp
@@ -229,14 +229,22 @@ static void testStreamMenu() {
CHECK(press([](xc::ui::NavInput& n) { n.right = true; }) == MenuAction::Stats);
CHECK(menu.statsOn());
press([](xc::ui::NavInput& n) { n.down = true; });
- CHECK(press([](xc::ui::NavInput& n) { n.right = true; }) == MenuAction::Upscaler); // FSR -> AI
+ CHECK(press([](xc::ui::NavInput& n) { n.right = true; }) == MenuAction::Upscaler); // FSR -> FSR + clean-up
+ CHECK(menu.upscaler() == 2);
+ press([](xc::ui::NavInput& n) { n.right = true; }); // -> AI
CHECK(menu.upscaler() == 1);
+ press([](xc::ui::NavInput& n) { n.right = true; }); // -> AI + clean-up
+ CHECK(menu.upscaler() == 3);
+ press([](xc::ui::NavInput& n) { n.right = true; }); // wraps to FSR
+ CHECK(menu.upscaler() == 0);
press([](xc::ui::NavInput& n) { n.down = true; });
CHECK(press([](xc::ui::NavInput& n) { n.left = true; }) == MenuAction::Sharpness); // off -> high
CHECK(menu.sharpness() == 3);
press([](xc::ui::NavInput& n) { n.down = true; });
CHECK(press([](xc::ui::NavInput& n) { n.right = true; }) == MenuAction::Deband); // low -> high
CHECK(menu.deband() == 2);
+ press([](xc::ui::NavInput& n) { n.right = true; }); // -> auto
+ CHECK(menu.deband() == 3);
press([](xc::ui::NavInput& n) { n.down = true; });
press([](xc::ui::NavInput& n) { n.left = true; }); // 1080p -> 720p
CHECK(menu.resolution() == 1);
diff --git a/tools/gen-anime4k.py b/tools/gen-anime4k.py
index 3906849..b73b6f5 100755
--- a/tools/gen-anime4k.py
+++ b/tools/gen-anime4k.py
@@ -16,7 +16,11 @@ import sys
root = pathlib.Path(__file__).resolve().parent.parent
size = sys.argv[1] if len(sys.argv) > 1 else "S"
-src = (root / "extern/anime4k" / f"Anime4K_Upscale_CNN_x2_{size}.glsl").read_text()
+# "restore": Anime4K_Restore_CNN_S.glsl, four passes at the picture's size;
+# the last adds its result to the picture and writes it back in place
+# (a4k_r_conv3.comp: each pixel reads and writes only itself there).
+restore = size == "restore"
+src = (root / "extern/anime4k" / ("Anime4K_Restore_CNN_S.glsl" if restore else f"Anime4K_Upscale_CNN_x2_{size}.glsl")).read_text()
license_head = src[: src.index("//!DESC")]
passes = []
@@ -33,6 +37,35 @@ generated = []
for n, (desc, binds, save, body) in enumerate(passes):
if "Depth-to-Space" in desc:
continue
+ if restore and binds[0] == "MAIN" and len(binds) == 2:
+ # The residual: features in, result + picture back into the picture.
+ name = binds[1]
+ body = body.replace(f"{name}_texOff(", "load_input(").replace("MAIN_tex(MAIN_pos)", "imageLoad(mainImage, pixel)")
+ shader = f"""#version 450
+{license_head.strip()}
+// Generated by tools/gen-anime4k.py from {desc} (inputs MAIN, {name}); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba16f) uniform readonly image2D inputImage;
+layout(binding = 1, rgba8) uniform image2D mainImage;
+
+ivec2 pixel;
+vec4 load_input(vec2 offset) {{
+ ivec2 size = imageSize(inputImage);
+ return imageLoad(inputImage, clamp(pixel + ivec2(offset), ivec2(0), size - 1));
+}}
+{body.strip()}
+
+void main() {{
+ pixel = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(mainImage);
+ if (pixel.x >= size.x || pixel.y >= size.y) return;
+ imageStore(mainImage, pixel, vec4(clamp(hook().rgb, 0.0, 1.0), 1.0));
+}}
+"""
+ path = out_dir / f"a4k_r_conv{len(generated)}.comp"
+ path.write_text(shader)
+ generated.append(path.name)
+ continue
if len(binds) != 1:
sys.exit(f"{desc}: expected one input, got {binds}")
name = binds[0]
@@ -59,7 +92,7 @@ void main() {{
imageStore(outputImage, pixel, hook());
}}
"""
- path = out_dir / f"a4k_{size.lower()}_conv{len(generated)}.comp"
+ path = out_dir / (f"a4k_r_conv{len(generated)}.comp" if restore else f"a4k_{size.lower()}_conv{len(generated)}.comp")
path.write_text(shader)
generated.append(path.name)
print(" ".join(generated))