Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

Anime4K upscaling as an option beside FSR (game menu: Upscaling)

Rafael Abud Ferreira0c45f1fae298
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index a5df062..ee1dc15 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -76,3 +76,10 @@ Copyright (c) 2021 Advanced Micro Devices, Inc.: see `extern/fsr1/LICENSE.txt`.
[ProsperoLight](https://github.com/blackbearreloaded/ProsperoLight) and
[ps5-hardware-video-decoding-research](https://github.com/blackbearreloaded/ps5-hardware-video-decoding-research)
(both GPL-3.0-or-later).
+
+## 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
+sainsaji's EVO Player for PS5, which runs them in its own pipeline.
diff --git a/extern/anime4k/Anime4K_Upscale_CNN_x2_M.glsl b/extern/anime4k/Anime4K_Upscale_CNN_x2_M.glsl
new file mode 100644
index 0000000..156c6bd
--- /dev/null
+++ b/extern/anime4k/Anime4K_Upscale_CNN_x2_M.glsl
@@ -0,0 +1,300 @@
+// 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-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x3
+//!HOOK MAIN
+//!BIND MAIN
+//!SAVE conv2d_tf
+//!WIDTH MAIN.w
+//!HEIGHT MAIN.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define go_0(x_off, y_off) (MAIN_texOff(vec2(x_off, y_off)))
+vec4 hook() {
+ vec4 result = mat4(-0.010995803, 0.077095956, -0.043992598, 0.06048717, 0.1164834, -0.11689607, 0.072985925, -0.078805886, 0.01182932, 0.054985743, -0.09018186, 0.044907484, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(0.1813623, -0.14752422, 0.025720436, -0.17639883, 0.15697388, 0.10445984, -0.1843076, 0.5264643, 0.047516696, -0.097305484, 0.09740847, -0.29619336, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(-0.014534763, 0.09486465, 0.046173926, 0.039391946, 0.09609376, -0.060574662, 0.042200956, -0.3269777, 0.051006425, 0.059818447, 0.04366627, 0.17699827, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(0.04268535, -0.08152529, 0.10577459, -0.036936995, -0.051562306, 0.054872766, 0.09194519, 0.0025066638, -0.01073954, 0.00064474024, 0.10038221, 0.02131141, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.51751363, -0.40028602, 0.3469574, 0.5933738, -0.91357684, -0.67692596, 0.57815677, 0.39809322, -0.16341521, -0.27169713, 0.12232366, 0.4318641, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.12601124, -0.06263236, -0.45907676, -0.41514075, 0.3330334, -0.1929565, -0.6333532, -0.6552794, -0.045809917, 0.046351526, -0.26173338, -0.30252662, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0);
+ result += mat4(0.0030332592, 0.012103107, 0.010537323, -0.02038607, 0.095558085, 0.097704545, 0.083433494, 0.026790185, 0.01943357, -0.061712462, -0.00015703632, -0.032268334, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0);
+ result += mat4(0.016870102, 0.5215812, -0.11525501, 0.027527615, -0.09045733, 0.61310345, -0.1575268, 0.1905386, 0.020172214, 0.3503187, -0.08209157, -0.051328037, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0);
+ result += mat4(0.005494087, -0.010656317, 0.07682753, -0.08116042, -0.03934524, 0.16589017, 0.101483546, -0.066603065, 0.03494657, -0.07885597, 0.074227594, 0.0016264897, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0);
+ result += vec4(0.014463938, -0.0031906287, 0.007015422, -0.003888468);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_tf
+//!SAVE conv2d_1_tf
+//!WIDTH conv2d_tf.w
+//!HEIGHT conv2d_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.08532478, -0.14302494, -0.017921071, -0.0032664281, -0.09841952, 0.024187077, 0.10701477, 0.14110753, -0.05714981, -0.10897174, 0.073803626, 0.103992954, 0.07914382, 0.032193683, -0.18346278, -0.09723936) * go_0(-1.0, -1.0);
+ result += mat4(-0.034482613, -0.10742312, -0.047286414, -0.08641124, -0.33896688, -0.036533825, -0.48337597, 0.034040943, -0.13598205, -0.080917805, 0.08540263, -0.012667689, -0.009171425, -0.120026454, -0.20536867, -0.032149274) * go_0(-1.0, 0.0);
+ result += mat4(0.18687321, 0.066278316, 0.024327392, 0.08816582, -0.08017908, 0.09488853, 0.26018232, -0.101504356, 0.17487666, 0.31057635, 0.14785016, -0.09622089, -0.07537452, -0.13844088, -0.05810814, 0.09907489) * go_0(-1.0, 1.0);
+ result += mat4(-0.04183032, 0.15207712, 0.005002397, 0.32277516, -0.16169126, -0.119836345, -0.04068436, -0.096728764, 0.11943901, 0.1789597, -0.20412198, 0.19009817, 0.36630696, 0.06946421, -0.5254373, -0.11896399) * go_0(0.0, -1.0);
+ result += mat4(-0.31916487, -0.98911583, 1.0728644, -0.39280394, 0.33458877, -0.17325239, -0.645045, -0.28524077, -0.14512783, 0.24996442, -0.09837877, 0.05468934, 0.31559715, -0.020504637, -0.026724018, 0.24507573) * go_0(0.0, 0.0);
+ result += mat4(-0.23759829, -0.08530173, -0.16665787, -0.22463752, 0.109896734, 0.13446991, -0.049552456, -0.02385489, -0.01245375, 0.3833208, 0.05758832, 0.1528937, 0.0501858, -0.19651426, 0.0076587177, -0.03297025) * go_0(0.0, 1.0);
+ result += mat4(0.14554465, -0.01826686, 0.10284085, -0.19152659, -0.017585073, -0.05511482, 0.06362406, 0.023924058, -0.0018977845, -0.103172876, 0.03287086, -0.20085956, 0.36062446, 0.10749464, -0.20984372, 0.018256644) * go_0(1.0, -1.0);
+ result += mat4(-0.005534592, 0.3709197, -0.18287498, 0.1720451, 0.030155553, -0.023265475, 0.0058617783, -0.031765483, 0.037328955, -0.2730994, 0.35090837, -0.3269043, -0.028477207, 0.32756507, -0.15989502, 0.12158258) * go_0(1.0, 0.0);
+ result += mat4(0.10873739, 0.19583772, 0.060394943, 0.09410379, -0.04739245, 0.026561242, 0.022990001, 0.1093272, -0.01071349, -0.022938967, -0.046423864, 0.2385325, -0.0319821, 0.046962265, 0.09081178, -0.11001857) * go_0(1.0, 1.0);
+ result += mat4(0.13012704, 0.112289295, 0.030790284, -0.050499484, 0.11784853, 0.08107028, -0.07556717, -0.15643, 0.015249331, 0.015299608, 0.07748125, 0.054485757, 0.044857923, 0.12161275, -0.048292994, -0.033995003) * go_1(-1.0, -1.0);
+ result += mat4(0.12931514, 0.15114146, 0.070513315, 0.11246343, 0.4142387, 0.213479, -0.5439916, 0.07776645, 0.13109331, 0.2021147, 0.25932786, -0.22157331, 0.02377734, -0.014970623, -0.1943276, 0.18440372) * go_1(-1.0, 0.0);
+ result += mat4(-0.22365458, -0.19829084, -0.06881161, -0.06468993, 0.17202774, 0.0048758537, -0.09235021, 0.18941896, 0.064125344, -0.09067088, 0.09748182, 0.13561936, -0.05876288, -0.0122420965, -0.054380875, -0.17743628) * go_1(-1.0, 1.0);
+ result += mat4(0.18582906, -0.09263032, -0.08210888, -0.20515606, 0.11484005, 0.08557595, 0.0009253741, -0.051202174, -0.18535301, -0.1529345, -0.13092944, 0.03770747, -0.020947013, 0.19187425, -0.15494856, -0.048979875) * go_1(0.0, -1.0);
+ result += mat4(-0.38131633, 0.4278787, 0.19763695, 0.27655518, -0.08711912, 0.07374453, -0.064803004, 0.5983854, 0.2361923, -0.057221692, -0.37138999, -0.24259573, 0.13890724, 0.25706333, -0.54021406, 0.08095518) * go_1(0.0, 0.0);
+ result += mat4(0.0991328, -0.022651536, -0.029148921, -0.009812537, -0.09523686, -0.15704902, 0.052389514, 0.21561539, 0.1950314, -0.08572602, 0.0016523858, 0.14125621, -0.030999828, 0.12009709, 0.0373512, -0.105043754) * go_1(0.0, 1.0);
+ result += mat4(-0.11251988, 0.12106985, 0.011923068, 0.3662747, 0.004800994, 0.017972551, 0.004761366, -0.07934206, -0.13755941, -0.022852683, 0.1502225, 0.009758547, -0.16964264, 0.00984782, 0.07855833, 0.035730787) * go_1(1.0, -1.0);
+ result += mat4(0.01964957, -0.27226487, 0.033933397, -0.117632054, -0.009058229, 0.047830686, -0.01125145, 0.136628, 0.0056388285, 0.3028781, -0.12286517, 0.23498532, -0.009319075, -0.444048, 0.16174883, -0.06367683) * go_1(1.0, 0.0);
+ result += mat4(0.02343933, -0.010915871, -0.058680378, -0.21886891, -0.010750894, -0.06671997, 0.0602906, -0.07903071, 0.066891186, 0.06650588, 0.14362891, -0.101870626, 0.02264628, -0.06940821, -0.077616625, 0.110911585) * go_1(1.0, 1.0);
+ result += vec4(0.032014452, -0.020821465, 0.0826416, -0.002838458);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_1_tf
+//!SAVE conv2d_2_tf
+//!WIDTH conv2d_1_tf.w
+//!HEIGHT conv2d_1_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.06963679, -0.07560548, -0.069522075, 0.0038078027, -0.08002613, 0.13671301, 0.084461786, -0.039376218, 0.19136548, -0.123174496, 0.26566333, -0.16583005, -0.18664864, -0.023539122, -0.21928434, -0.026818147) * go_0(-1.0, -1.0);
+ result += mat4(0.16660932, -0.18558703, 0.37230486, 0.118128106, -0.14098641, 0.14659132, -0.22217897, 0.12952235, -0.4139033, -0.04308319, 0.12885277, -0.17986743, -0.23556231, -0.08351981, -0.43240538, 0.019033253) * go_0(-1.0, 0.0);
+ result += mat4(-0.18008037, -0.04448665, 0.011906908, -0.023056917, 0.18136618, -0.04723555, -0.0050158803, -0.14823224, -0.2105281, 0.023047728, -0.14040631, -0.03178526, -0.13477588, -0.01820428, 0.058358394, 0.23792502) * go_0(-1.0, 1.0);
+ result += mat4(0.07363309, -0.061728477, 0.03573137, -0.0050971056, -0.012813505, -0.17236637, 0.1697835, 0.055788577, -0.22263195, 0.10324512, 0.58971673, -0.4872246, -0.1555681, 0.032747746, -0.096495196, 0.070196226) * go_0(0.0, -1.0);
+ result += mat4(0.14174286, 0.099460006, -0.088765986, 0.58350676, -0.025177564, -0.46004987, 0.37007022, -0.11437029, -0.5164534, -0.60465246, 0.38859612, -0.32846406, 0.050266482, -0.20334712, 0.18316261, -0.19327633) * go_0(0.0, 0.0);
+ result += mat4(-0.09377763, -0.0012762006, -0.028991895, -0.26523829, 0.20173682, 0.037923716, -0.03174243, 0.07103378, -0.10764164, -0.30752546, 0.20556998, -0.1892279, 0.08115748, -0.023550175, -0.07627362, 0.11746628) * go_0(0.0, 1.0);
+ result += mat4(-0.06998859, -0.017997518, 0.069938794, -0.14943017, -0.14179112, 0.16643842, -0.110231474, 0.08895815, -0.24074875, 0.3277253, -0.07435203, -0.23452802, 0.039962552, -0.07145652, -0.022511544, -0.04571222) * go_0(1.0, -1.0);
+ result += mat4(-0.059785757, -0.23771374, -0.030571314, 0.25222278, 0.106601834, 0.34398326, 0.14511436, -0.03867526, -0.38982397, -0.11944689, 0.12997924, -0.13079585, 0.005729482, 0.012653905, -0.063693404, 0.09632285) * go_0(1.0, 0.0);
+ result += mat4(-0.04933823, 0.0547175, 0.050636575, -0.10060694, 0.1344485, 0.19752938, -0.100068115, -0.028829506, -0.14096203, -0.079092234, 0.092109434, 0.011606209, -0.04052607, -0.008347507, 0.06956573, -0.028109524) * go_0(1.0, 1.0);
+ result += mat4(0.21918017, -0.11115073, 0.2262453, -0.06889667, -0.11256312, -0.07438075, -0.088454485, 0.13672407, -0.06905764, 0.08128395, 0.016103368, 0.050190717, 0.09691516, 0.05845721, 0.4886816, 0.041121427) * go_1(-1.0, -1.0);
+ result += mat4(-0.3449472, 0.09711974, -0.13881907, -0.018265123, 0.27855873, -0.07030004, 0.29545054, 0.37216932, 0.08657718, 0.099066615, -0.10574013, -0.17667885, -0.14855732, -0.11351448, 0.66945946, 0.11312157) * go_1(-1.0, 0.0);
+ result += mat4(0.2526151, -0.04594331, -0.06606611, 0.09104881, 0.06857995, -0.075284235, -0.17664689, 0.21578754, 0.0696524, 0.09142951, 0.080997564, -0.0682772, -0.0011445724, -0.11736295, 0.2519232, -0.101926275) * go_1(-1.0, 1.0);
+ result += mat4(-0.12913518, 0.058357026, 0.195421, -0.15651494, 0.2877076, 0.0033844314, -0.07831594, 0.052855384, -0.031295884, 0.03301088, -0.18408822, 0.06732994, 0.23742151, -0.12568143, 0.22810535, -0.11545694) * go_1(0.0, -1.0);
+ result += mat4(-0.49203303, -0.22656603, 0.1723193, -0.51250046, -0.09742038, 0.758559, -0.3387505, -0.6193586, 0.14136684, 0.27679884, -0.050113205, 0.31041816, -0.36475047, -0.48746544, 0.3233227, 0.4579754) * go_1(0.0, 0.0);
+ result += mat4(0.46636763, 0.1507748, -0.2581362, 0.15413165, -0.17160143, 0.14256273, -0.074575804, -0.099299066, -0.0017214464, 0.13778336, -0.07378213, -0.15489665, -0.10533715, -0.0011083825, 0.39584312, 0.0023906573) * go_1(0.0, 1.0);
+ result += mat4(0.026959421, -0.06391859, 0.0034752619, 0.14521928, -0.0010877338, -0.032619733, 0.005375293, -0.018952755, 0.03381545, -0.007652831, 0.034141563, 0.046016496, 0.11219674, 0.030913852, 0.077403754, 0.17192438) * go_1(1.0, -1.0);
+ result += mat4(0.040326044, 0.17290725, -0.1220239, -0.09594783, -0.025229257, 0.17913155, -0.26623353, -0.033396784, -0.03075146, 0.009143897, -0.0136083895, -0.13886899, 0.075683735, -0.11584183, 0.22182357, 0.19350322) * go_1(1.0, 0.0);
+ result += mat4(0.15726025, -0.10215694, -0.060057458, 0.26487043, -0.04075552, -0.016496127, 0.0015382086, 0.108562306, 0.026795091, 0.0441233, -0.08754318, -0.0460157, 0.048422016, 0.14107347, 0.07986661, 0.1047697) * go_1(1.0, 1.0);
+ result += vec4(0.0766796, 0.08115133, -0.05703058, 0.14025708);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_2_tf
+//!SAVE conv2d_3_tf
+//!WIDTH conv2d_2_tf.w
+//!HEIGHT conv2d_2_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.18038331, 0.21830973, -0.10019419, -0.022745568, -0.14944611, -0.15669158, 0.46361133, -0.07289843, 0.02976627, -0.09000817, 0.113060996, 0.05635241, 0.012762965, -0.022688959, 0.01629751, 0.061114635) * go_0(-1.0, -1.0);
+ result += mat4(0.024338024, -0.10004009, -0.13709056, -0.0851965, 0.23927099, -0.024349794, -0.16574804, 0.084686354, -0.047885604, 0.09688507, -0.12733915, 0.06980246, 0.11480734, 0.014669346, -0.07505829, 0.04676309) * go_0(-1.0, 0.0);
+ result += mat4(0.054203495, 0.011881634, -0.036115017, -0.0686298, -0.13682245, -0.15678032, 0.057050128, -0.03368558, 0.13011025, 0.033391044, -0.09841339, -0.027057761, -0.18701133, 0.20852546, -0.13660902, 0.0005817616) * go_0(-1.0, 1.0);
+ result += mat4(-0.08077834, 0.35952288, -0.07647382, -0.0033230998, 0.13929126, -0.09155619, 0.14128102, 0.16005981, 0.18161216, -0.09485738, 0.0029118075, 0.052682754, 0.03242074, 0.08299826, 0.073796146, -0.06446532) * go_0(0.0, -1.0);
+ result += mat4(-0.36655015, 0.4606936, 0.19073649, 0.31655258, -0.006838053, -0.579939, 0.089126326, -0.14021218, -0.3437716, 0.16714323, 0.17705944, -0.22418492, -0.3883696, -0.2302651, 0.2581861, 0.21983066) * go_0(0.0, 0.0);
+ result += mat4(0.0992383, -0.014257871, -0.023896435, 0.19868234, 0.0408007, 0.07995299, 0.16102871, -0.11668251, 0.22458278, -0.05587917, 0.19373615, -0.016202094, -0.25106144, 0.15634494, 0.11624891, -0.2930768) * go_0(0.0, 1.0);
+ result += mat4(0.024616942, 0.36248252, -0.14779098, -0.019894283, -0.007111256, 0.010641561, -0.09541178, 0.21236233, 0.009501827, 0.08132797, -0.13983901, 0.027207611, 0.038444366, -0.013995817, -0.16242191, 0.03294123) * go_0(1.0, -1.0);
+ result += mat4(0.0131698875, -0.18124102, -0.13503514, -0.06099072, 0.07422735, -0.20906176, -0.049005672, 0.08739405, -0.031758767, -0.1978915, 0.23094437, 0.54512614, 0.21338555, -0.011205669, -0.23727885, -0.29533875) * go_0(1.0, 0.0);
+ result += mat4(-0.0010255767, -0.07168225, -0.033568826, 0.22161655, -0.087293416, 0.11350447, 0.13653576, 0.061226424, -0.13074352, 0.058425818, 0.038460605, 0.2749964, -0.012814839, 0.085885845, -0.038151987, -0.17960808) * go_0(1.0, 1.0);
+ result += mat4(0.19728905, -0.040724937, -0.18270236, 0.046735186, 0.03507326, 0.119867206, -0.12691991, 0.18119748, -0.052895024, 0.11348764, -0.043787055, 0.004703516, 0.006752757, -0.06939761, -0.009801806, -0.075640485) * go_1(-1.0, -1.0);
+ result += mat4(0.051735226, 0.1732299, -0.10672899, 0.0320877, -0.4913656, 0.2102274, 0.43920282, 0.059108034, 0.08349019, -0.16517872, 0.15436842, -0.1075667, 0.022741623, -0.26693836, 0.3645307, 0.017874828) * go_1(-1.0, 0.0);
+ result += mat4(0.034464058, 0.014929155, 0.054227423, 0.14167373, -0.0023630706, -0.08904212, 0.11918041, -0.034539603, 0.06048089, -0.06807333, 0.14447778, 0.035260547, 0.09979546, -0.1924939, 0.14596114, -0.12069667) * go_1(-1.0, 1.0);
+ result += mat4(-0.04427228, -0.23673469, 0.010357103, -0.2907043, -0.06845721, -0.078984015, 0.06867713, -0.058163825, -0.12154615, 0.08430951, 0.1922373, 0.030108064, -0.43081748, -0.38715646, -0.022240646, -0.15403675) * go_1(0.0, -1.0);
+ result += mat4(0.46885306, -0.33421394, -0.6695223, -0.41841158, 0.30317923, 0.24244753, -0.1047785, -0.18656285, 0.06261881, -0.4405616, 0.24233986, 0.40070608, 0.81440526, 0.11305212, -0.8826317, -0.023478031) * go_1(0.0, 0.0);
+ result += mat4(-0.07879348, -0.024378026, -0.041883785, -0.17030984, 0.23229122, -0.011237109, 0.12058088, 0.20766267, -0.36519575, 0.09599417, -0.1271098, 0.06990154, 0.21161246, 0.041002538, -0.36046275, 0.007304667) * go_1(0.0, 1.0);
+ result += mat4(0.10873893, 0.003872542, -0.13476561, -0.036068805, -0.054637462, 0.02304618, 0.04707738, -0.2856381, 0.07124422, 0.010866545, 0.20484549, -0.008342406, -0.43660247, -0.041055538, 0.33536008, -0.060022205) * go_1(1.0, -1.0);
+ result += mat4(0.1966458, 0.0016302796, -0.25712642, -0.09639119, -0.006955351, 0.10882133, 0.1107341, 0.062697805, -0.1074494, 0.17361663, 0.6429869, -0.39846307, -0.26302996, 0.048710946, 0.40387508, 0.4299715) * go_1(1.0, 0.0);
+ result += mat4(0.18948616, 0.24086732, -0.064474985, -0.11069709, 0.1279659, -0.13438123, -0.028438117, 0.125883, 0.018153818, -0.21942288, 0.020390838, -0.22797634, -0.10821287, -0.17175092, 0.122016855, 0.20699544) * go_1(1.0, 1.0);
+ result += vec4(-0.05101961, -0.060740646, -0.024465766, 0.058471628);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_3_tf
+//!SAVE conv2d_4_tf
+//!WIDTH conv2d_3_tf.w
+//!HEIGHT conv2d_3_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define go_0(x_off, y_off) (max((conv2d_3_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_3_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(-0.14533128, 0.07266841, 0.13238011, -0.23328504, 0.031516243, 0.058471266, -0.06394412, 0.090752736, -0.0042359144, 0.12357294, -0.04377495, 0.0011743477, 0.05412243, -0.08146249, 0.04002749, -0.032876283) * go_0(-1.0, -1.0);
+ result += mat4(-0.036972385, -0.15238069, -0.3453321, -0.36025128, 0.07597202, -0.02368151, -0.3889606, 0.34607083, 0.3133179, -0.21712309, -0.4210954, 0.21450534, 0.15226828, 0.25326282, 0.45327064, -0.3350824) * go_0(-1.0, 0.0);
+ result += mat4(0.019018406, -0.33060563, -0.092601225, 0.14970545, 0.1441509, -0.19228427, -0.032771986, 0.26331595, 0.052981265, -0.06627376, -0.08634131, 0.038706224, 0.13403937, -4.4842476e-05, 0.049002815, -0.12719193) * go_0(-1.0, 1.0);
+ result += mat4(0.17527401, -0.0035254909, -0.047959115, -0.4526988, -0.07510284, 0.0013256798, -0.07539148, 0.24220634, -0.08708839, -0.14494033, -0.17085724, -0.099797316, 0.0068515535, -0.08918779, 0.27164719, -0.1702649) * go_0(0.0, -1.0);
+ result += mat4(0.31848368, 0.48983255, -0.44140294, -0.65174145, -0.004199057, 0.19494705, 0.5196497, -0.027118586, 0.032509074, -0.23900363, -0.14489244, 0.36314297, -0.23168536, -0.20960593, 0.61471456, 0.12401275) * go_0(0.0, 0.0);
+ result += mat4(-0.24317405, 0.21560913, 0.15564032, 0.11606844, -0.15039803, -0.59578896, 0.14100945, -0.026194477, 0.37237462, -0.49472088, -0.15215331, -0.38820064, -0.25089455, -0.29643852, -0.09513793, 0.019779462) * go_0(0.0, 1.0);
+ result += mat4(0.12498539, 0.0710632, -0.25012368, -0.2272255, -0.08647026, 0.12277892, 0.011025097, -0.12168395, -0.13489573, 0.016708186, -0.15583871, -0.057124946, 0.1216943, 0.019803725, 0.06952334, -0.032985855) * go_0(1.0, -1.0);
+ result += mat4(0.28794885, 0.33783793, -0.14469545, -0.081780486, -0.50320613, -0.067601606, -0.06847453, -0.021648854, -0.34295765, 0.15071863, -0.06619896, -0.084465064, 0.31909832, 0.015414661, 0.14930317, -0.11295768) * go_0(1.0, 0.0);
+ result += mat4(0.24530606, 0.25526014, 0.09971985, -0.07749641, -0.2361951, -0.07997673, 0.03617294, 0.02959561, -0.4498983, -0.014073485, -0.20587012, 0.06396779, 0.1262825, 0.027433183, 0.14469334, 0.011538011) * go_0(1.0, 1.0);
+ result += mat4(-0.038572453, -0.023108613, -0.039481267, -0.012160024, -0.004521989, -0.028665857, 0.04295255, 0.10580258, 0.05439479, -0.072261885, 0.11030243, 0.08934696, 0.09133867, 0.017547369, 0.097613186, 0.05491059) * go_1(-1.0, -1.0);
+ result += mat4(-0.09972817, 0.057730395, 0.12665828, 0.32861367, -0.16186063, 0.0745509, 0.2394045, -0.08687853, -0.034404907, -0.05843572, 0.0684561, -0.1355754, 0.19248672, -0.60372186, 0.12583947, 0.4388962) * go_1(-1.0, 0.0);
+ result += mat4(0.10341107, 0.061113223, 0.08773817, -0.082504354, -0.16612078, 0.2681751, 0.019737698, -0.17122322, -0.135949, 0.3048101, 0.087803006, 0.11373851, 0.013192192, -0.27022064, 0.35529897, -0.15321451) * go_1(-1.0, 1.0);
+ result += mat4(-0.032835662, 0.11123062, -0.11322452, -0.17300649, 0.04680824, 0.12849288, 0.17269878, -0.048671383, 0.05189037, -0.009078046, 0.22105052, 0.013008137, -0.009738674, 0.15391739, 0.20969556, 0.14189166) * go_1(0.0, -1.0);
+ result += mat4(-0.47377753, 0.3038031, 0.18604809, 0.1931698, -0.2964668, -0.12287907, -0.7107761, 0.26619422, -0.33923018, 0.19200724, 0.013786281, -0.17496964, 0.079325035, -0.3694445, 0.0054486147, -0.33018264) * go_1(0.0, 0.0);
+ result += mat4(0.14903802, -0.028043179, 1.5238678e-05, 0.021232028, 0.16025065, 0.14746875, -0.22831628, -0.12177345, 0.038778774, 0.32188168, -0.042017702, 0.27155936, 0.17920609, 0.04099755, 0.28527525, 0.074623376) * go_1(0.0, 1.0);
+ result += mat4(0.057019282, -0.112741895, 0.030361209, 0.14567861, 0.056265317, -0.01573537, -0.06707608, 0.016657263, 0.09829025, -0.026795063, 0.023042196, 0.09438241, -0.025483066, -0.052787006, 0.19730279, 0.021218104) * go_1(1.0, -1.0);
+ result += mat4(0.19868211, -0.01531125, 0.108596824, -0.035456363, 0.0033609823, 0.057961613, -0.013726211, 0.101742364, 0.33357215, 0.14468077, 0.29711527, -0.24662566, -0.119014986, -0.1899639, 0.11246697, -0.0035374009) * go_1(1.0, 0.0);
+ result += mat4(-0.05602109, -0.15539522, 0.010730943, 0.057116497, -0.02037749, 0.084210664, -0.028235348, 0.10574697, 0.056925274, 0.07922333, -0.090088, 0.1615985, -0.0044301567, -0.089945644, 0.024176618, -0.041844133) * go_1(1.0, 1.0);
+ result += vec4(0.0015292584, -0.043625206, -0.09429898, -0.06280405);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_4_tf
+//!SAVE conv2d_5_tf
+//!WIDTH conv2d_4_tf.w
+//!HEIGHT conv2d_4_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define go_0(x_off, y_off) (max((conv2d_4_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_4_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(0.06051604, -0.028152643, -0.21418124, 0.13032125, 0.42565975, -0.09571944, -0.34494513, 0.30004, -0.073245734, -0.028659137, 0.0032105136, -0.05009555, -0.048971225, 0.04814533, 0.002843805, -0.046224426) * go_0(-1.0, -1.0);
+ result += mat4(-0.07495975, 0.018714864, 0.21229684, -0.13614887, 0.79988647, -0.0697328, 0.38232988, 0.24165109, 0.25947478, -0.0009418982, -0.17369923, 0.10007766, 0.024117598, 0.028611807, 0.15090801, -0.06344829) * go_0(-1.0, 0.0);
+ result += mat4(-0.07982219, 0.0900347, 0.007609254, -0.0034791247, 0.013611781, -0.13560618, 0.09685799, 0.06276075, 0.134693, -0.14370437, -0.25175703, -0.0016138123, -0.0075672898, -0.13325731, -0.061100446, 0.0059743375) * go_0(-1.0, 1.0);
+ result += mat4(-0.039018434, -0.19668463, -0.43018532, 0.31886247, 0.4965479, 0.114569925, 0.19110382, 0.27343535, 0.0707728, -0.11877004, -0.25827697, 0.37012872, 0.1474777, 0.07056952, -0.14965728, 0.061595406) * go_0(0.0, -1.0);
+ result += mat4(0.506543, -0.16268773, 0.455319, -0.0702646, 0.70102173, -0.14041683, 0.70184857, 0.4817842, -0.3389246, -0.14463086, 0.13763213, -1.1259074, 0.47722015, 0.38352612, -0.04293366, -0.5604627) * go_0(0.0, 0.0);
+ result += mat4(0.17606944, 0.15897374, 0.13499324, 0.29241478, -0.032824475, 0.11128662, -0.22204424, -0.051803727, 0.013195331, -0.42040786, -0.3950585, 0.70745844, 0.38646924, -0.19080774, -0.15171832, -0.10742828) * go_0(0.0, 1.0);
+ result += mat4(-0.039278325, 0.18421806, -0.044948544, 0.07902063, -0.2149251, 0.09913459, -0.09743655, -0.26899317, -0.002695496, -0.07554527, -0.22373366, 0.17830558, -0.047994815, -0.06789183, -0.06755918, -0.104452066) * go_0(1.0, -1.0);
+ result += mat4(-0.0493473, -0.30411786, -0.056439694, -0.06582185, -0.21309847, 0.100670904, -0.22966193, -0.045954112, 0.12728062, -0.25081897, -0.094699375, -0.4036555, 0.060854495, -0.64373237, -0.21522263, -0.6683476) * go_0(1.0, 0.0);
+ result += mat4(0.063481025, 0.11744312, -0.043330096, 0.33817932, -0.06679828, -0.23207302, -0.10188898, -0.10590511, 0.058780864, 0.047292337, -0.11834696, 0.10076128, -0.036641665, 0.30200714, -0.0002892557, -0.10303763) * go_0(1.0, 1.0);
+ result += mat4(-0.10842604, 0.042055763, 0.29702973, -0.07409644, -0.030164458, -0.012098744, -0.06396587, -0.08787527, 0.051854923, 0.12997511, 0.11468497, 0.15022379, 0.007814715, 0.014517445, 0.025484756, 0.01078619) * go_1(-1.0, -1.0);
+ result += mat4(-0.29229385, 0.040265664, -0.15376821, 0.075579196, -0.05593569, -0.045405343, 0.12099204, 0.1571252, 0.17841713, 0.04673325, 0.14550509, 0.08603346, -0.049786013, 0.06121843, -0.16273825, -0.13857752) * go_1(-1.0, 0.0);
+ result += mat4(0.06903744, 0.2628764, -0.13582836, -0.35678583, -0.13821034, -0.019381443, -0.19570538, -0.09298511, 0.08965436, 0.09745909, 0.20055099, 0.024967568, 0.08144204, 0.004633625, 0.12809834, -0.009431525) * go_1(-1.0, 1.0);
+ result += mat4(0.09784006, 0.010729353, 0.046643205, -0.110926524, -0.21556224, 0.00016300633, 0.122175336, 0.15004392, 0.013864355, 0.24767809, 0.13865592, 0.0155424485, -0.1450483, -0.15688781, -0.06195043, -0.13745981) * go_1(0.0, -1.0);
+ result += mat4(0.018991318, 0.55401963, 0.11709872, -0.028442185, -0.46035343, -0.10215539, -0.60193926, 0.47882316, -0.23346989, 0.037200127, 0.22814943, -0.08231696, -0.36430013, -0.011152757, 0.48752213, 0.29796222) * go_1(0.0, 0.0);
+ result += mat4(-0.07258066, -0.023222538, 0.23230423, -0.30317304, 0.03942911, -0.06899803, 0.23778579, 0.07418621, -0.17443737, 0.33387753, 0.007354842, -0.123447575, -0.1745315, 0.11071779, -0.11949625, -0.22832453) * go_1(0.0, 1.0);
+ result += mat4(-0.024909232, -0.0308135, 0.12170621, -0.13298757, 0.045828197, -0.1532345, -0.06633672, 0.23591088, 0.04964077, 0.14091493, 0.038343724, -0.029780807, 0.05762822, -0.048930667, -0.02434709, 0.07109019) * go_1(1.0, -1.0);
+ result += mat4(-0.16039175, 0.3004474, -0.17278233, 0.13677922, 0.18838613, 0.15054552, 0.32901475, -0.1288333, 0.26378244, -0.05119892, 0.34533516, 0.25180495, 0.19452183, 0.0843233, -0.08029368, 0.39877903) * go_1(1.0, 0.0);
+ result += mat4(-0.07097129, -0.26492423, -0.055032317, -0.093516104, -0.11795062, 0.04086253, -0.07989471, 0.059686553, 0.09378249, 0.45851848, 0.2510942, 0.19599153, 0.019765077, -0.02920918, -0.04125142, -0.13859107) * go_1(1.0, 1.0);
+ result += vec4(0.04400571, -0.04015565, 0.0140529545, 0.05474095);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_5_tf
+//!SAVE conv2d_6_tf
+//!WIDTH conv2d_5_tf.w
+//!HEIGHT conv2d_5_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define go_0(x_off, y_off) (max((conv2d_5_tf_texOff(vec2(x_off, y_off))), 0.0))
+#define go_1(x_off, y_off) (max(-(conv2d_5_tf_texOff(vec2(x_off, y_off))), 0.0))
+vec4 hook() {
+ vec4 result = mat4(-0.014236042, -0.0031431736, -0.1551387, 0.12515116, -0.28528872, 0.36161992, 0.15750743, -0.17111474, 0.13792591, -0.0657419, -0.17471549, 0.14650472, 0.034169197, -0.019157575, 0.23520657, -0.20358163) * go_0(-1.0, -1.0);
+ result += mat4(0.02015035, 0.12993371, 0.11199667, -0.09854378, 0.5001741, 0.03462961, 0.24919736, 0.08505297, -0.20902094, -0.24141377, -0.15360375, 0.049974803, -0.037157424, -0.048510186, 0.20106035, -0.118480384) * go_0(-1.0, 0.0);
+ result += mat4(0.086798504, -0.009607818, 0.034812123, -0.005187592, 0.0351509, 0.021755, -0.04996161, -0.041231696, 0.0020545553, 0.015730752, -0.07507172, 0.018597523, -0.02393343, 0.07624775, 0.03892451, -0.0025574185) * go_0(-1.0, 1.0);
+ result += mat4(0.035725456, 0.06809103, 0.51926994, -0.39983147, -0.16402833, -0.1243394, -0.25922915, 0.28285915, 0.15959994, -0.2351732, 0.2650535, -0.30193794, -0.11468332, 0.050777763, -0.51894253, 0.4408367) * go_0(0.0, -1.0);
+ result += mat4(-0.27042082, 0.22243942, 0.14902467, 0.38428563, 0.46612173, 0.5169912, -0.22330502, -0.11300288, -0.36141354, 0.0668681, 0.2984152, 0.1275798, -0.24121419, 0.2952039, -0.45109174, -0.3822957) * go_0(0.0, 0.0);
+ result += mat4(0.26543504, -0.05742226, -0.052103903, -0.013124308, -0.14358385, -0.04024543, 0.07665455, -0.012301872, -0.18752757, -0.03913891, 0.038205814, -0.006583095, -0.25550908, -0.25725332, -0.12454206, -0.0058936924) * go_0(0.0, 1.0);
+ result += mat4(-0.0018946569, 0.019746022, -0.13080788, 0.11450627, -0.013743845, -0.027179785, -0.14425103, 0.07109661, 0.023703793, 0.086905524, 0.03151253, 0.0132474145, 0.041018624, 0.04548913, 0.2718715, -0.20008296) * go_0(1.0, -1.0);
+ result += mat4(-0.076830454, 0.11652955, 0.5068201, -0.3082819, 0.058615055, -0.006765798, -0.057522714, 0.049981344, -0.006897243, -0.21763432, 0.16896053, -0.21176189, -0.061227098, 0.03566485, 0.08901554, -0.050980624) * go_0(1.0, 0.0);
+ result += mat4(0.02327798, 0.07662976, 0.034811985, -0.03238033, -0.0021881019, -0.030997375, -0.069672935, 0.04040273, -0.1217442, 0.104173124, 0.09862539, 0.020557549, -0.022286594, 0.10287763, -0.021694934, 0.07542515) * go_0(1.0, 1.0);
+ result += mat4(0.124069154, -0.08579466, -0.07816314, 0.11332851, -0.034682628, -0.11038275, 0.04750615, -0.096100725, 0.039588403, -0.15149672, -0.05529172, 0.034304325, -0.022520235, -0.05023852, -0.2674731, 0.21886522) * go_1(-1.0, -1.0);
+ result += mat4(-0.1948599, -0.14946899, -0.39548838, 0.18042913, -0.007919619, 0.19826505, 0.23789087, 0.009140256, 0.11857748, 0.18215668, 0.13606293, -0.09209675, -0.080678545, -0.020431137, -0.07728839, -0.051353537) * go_1(-1.0, 0.0);
+ result += mat4(-0.07616472, -0.0032800382, -0.045657665, -0.039144326, -0.37786487, -0.08877774, 0.053579114, -0.070886396, 0.011311804, 0.107276045, 0.013236154, 0.009832061, 0.08292063, 0.12258811, 0.0005569043, -0.009806432) * go_1(-1.0, 1.0);
+ result += mat4(-0.28062925, 0.15946878, -0.1021801, -0.06471589, -0.26999477, 0.21230288, -0.14243907, 0.2555922, -0.09608517, 0.26339412, 0.20891234, -0.23538485, 0.33958244, -0.12569186, 0.43289876, -0.33462036) * go_1(0.0, -1.0);
+ result += mat4(0.16265294, 0.2625464, -0.34452894, 0.2233622, 0.13850005, -0.42999864, -0.5385177, -0.11035979, 0.51662, -0.78238726, -0.09422375, 0.83759475, 0.44468537, 0.14301361, 0.108906105, 1.1596143) * go_1(0.0, 0.0);
+ result += mat4(-0.73757625, -0.12369605, 0.23523071, 0.006587637, -0.15445381, 0.22757277, 0.052819528, 0.10183905, -0.07912228, -0.16998893, -0.13360223, 0.014348178, -0.17778571, -0.41047302, 0.10241381, -0.08526306) * go_1(0.0, 1.0);
+ result += mat4(0.14712952, 0.048995696, 0.05299946, -0.06817572, 0.1498064, -0.079825334, 0.40354064, -0.31789717, -0.1998377, 0.00955295, -0.32318407, 0.30898204, -0.039571725, -0.026203401, -0.16292085, 0.08574385) * go_1(1.0, -1.0);
+ result += mat4(-0.6353329, -0.56000775, -0.17279743, 0.18198174, -0.19555812, 0.056538377, 0.34365895, -0.07799055, 0.19011354, -0.13952748, 0.029196098, -0.19596763, -0.069196045, -0.17402656, 0.07948411, -0.016226962) * go_1(1.0, 0.0);
+ result += mat4(0.25592864, 0.083498634, -0.28515807, 0.10789751, 0.0043962947, 0.07085363, 0.048724182, -0.025131436, -0.0049440865, -0.033094388, -0.032935806, 0.04266025, 0.20026933, 0.0927841, -0.006839351, -0.013012285) * go_1(1.0, 1.0);
+ result += vec4(0.02021373, 0.0014037411, 0.0012718709, 0.017278494);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Conv-4x1x1x56
+//!HOOK MAIN
+//!BIND conv2d_tf
+//!BIND conv2d_1_tf
+//!BIND conv2d_2_tf
+//!BIND conv2d_3_tf
+//!BIND conv2d_4_tf
+//!BIND conv2d_5_tf
+//!BIND conv2d_6_tf
+//!SAVE conv2d_last_tf
+//!WIDTH conv2d_tf.w
+//!HEIGHT conv2d_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define g_0 (max((conv2d_tf_tex(conv2d_tf_pos)), 0.0))
+#define g_1 (max(-(conv2d_tf_tex(conv2d_tf_pos)), 0.0))
+#define g_2 (max((conv2d_1_tf_tex(conv2d_1_tf_pos)), 0.0))
+#define g_3 (max(-(conv2d_1_tf_tex(conv2d_1_tf_pos)), 0.0))
+#define g_4 (max((conv2d_2_tf_tex(conv2d_2_tf_pos)), 0.0))
+#define g_5 (max(-(conv2d_2_tf_tex(conv2d_2_tf_pos)), 0.0))
+#define g_6 (max((conv2d_3_tf_tex(conv2d_3_tf_pos)), 0.0))
+#define g_7 (max(-(conv2d_3_tf_tex(conv2d_3_tf_pos)), 0.0))
+#define g_8 (max((conv2d_4_tf_tex(conv2d_4_tf_pos)), 0.0))
+#define g_9 (max(-(conv2d_4_tf_tex(conv2d_4_tf_pos)), 0.0))
+#define g_10 (max((conv2d_5_tf_tex(conv2d_5_tf_pos)), 0.0))
+#define g_11 (max(-(conv2d_5_tf_tex(conv2d_5_tf_pos)), 0.0))
+#define g_12 (max((conv2d_6_tf_tex(conv2d_6_tf_pos)), 0.0))
+#define g_13 (max(-(conv2d_6_tf_tex(conv2d_6_tf_pos)), 0.0))
+vec4 hook() {
+ vec4 result = mat4(-0.0067711817, 0.08160003, 0.0247279, 0.03084815, -0.026977416, -0.02120602, -0.025078611, -0.029852165, -0.011627478, -0.012742972, 0.022736797, -0.0028815821, -0.007515677, 0.0172887, -0.023259213, 0.009608947) * g_0;
+ result += mat4(-0.028660107, -0.014015208, -0.027838672, -0.013171922, 0.0029435428, 0.027047642, -0.017478354, 0.022834882, -0.037572853, -0.0034044068, -0.0149029335, -0.013362301, 0.009827443, -0.015742151, -0.0074795415, -0.0022266617) * g_1;
+ result += mat4(-0.07579662, -0.039754186, -0.066026606, -0.046816852, 0.1099032, 0.043956704, 0.073109835, 0.04680284, -0.06896613, -0.008838632, -0.044584926, -0.01319039, -0.0021152915, -0.04503326, 0.027061926, -0.028334105) * g_2;
+ result += mat4(0.15458213, 0.059769996, 0.09327123, -0.028782733, 0.023459995, -0.15390377, -0.13432898, -0.1127775, 0.072764635, -0.0020463336, 0.034736466, -0.0012086042, -0.05847183, -0.029952323, 0.052969377, 0.09590908) * g_3;
+ result += mat4(-0.07476772, -0.016574614, 0.04131183, 0.017335678, 0.009654406, 0.072183535, -0.002266456, 0.086873695, 9.310129e-05, 0.0056416965, -0.004188391, 0.023132093, -0.05183336, -0.025825873, -0.03684392, -0.0075729224) * g_4;
+ result += mat4(0.00878842, 0.03869637, -0.035759524, 0.003345386, -0.064184256, -0.034568302, -0.06672922, -0.0686381, -0.06794392, -0.10685906, 0.04679947, -0.012535639, 0.006932529, -0.007783515, 0.109123886, 0.13804391) * g_5;
+ result += mat4(-0.03160699, 0.050473, -0.09030729, 0.0649397, 0.11466501, 0.17912874, -0.0081851315, 0.052244574, 0.051632743, 0.061941486, 0.06546816, 0.12174249, -0.05104755, -0.018193979, -0.032196652, -0.035292786) * g_6;
+ result += mat4(0.013612735, -0.0024100312, -0.068611205, -0.07369285, -0.019647537, -0.066944756, -0.010012875, -0.06785739, -0.062246565, -0.087313406, -0.044278186, -0.09368995, 0.052555013, 0.13604961, 0.05645059, 0.08763303) * g_7;
+ result += mat4(0.04218486, -0.05028401, 0.059086576, -0.03545452, 0.027737848, 0.0043074046, 0.0011001764, -0.073026665, -0.04094988, 0.044061556, -0.009812515, 0.06841999, -0.06612581, 0.037223976, -0.07759491, -0.04356598) * g_8;
+ result += mat4(-0.027558247, 0.014248466, -0.019813016, -0.058107473, -0.016717663, -0.020424338, 0.0053625097, -0.009917319, 0.013678771, 0.0113340765, 0.0061787106, -0.036083996, -0.020179711, -0.011310535, 0.054827053, -0.0008278952) * g_9;
+ result += mat4(0.028690035, -0.012079616, 0.11931408, -0.048533775, 0.069336995, 0.0049852817, 0.013774468, 0.035233382, -0.07384821, 0.0003354423, -0.0059171803, -0.04503906, 0.08727279, 0.005138857, -0.17724465, 0.055782065) * g_10;
+ result += mat4(-0.20744391, 0.24348328, -0.3145766, 0.17026486, -0.022870807, -0.01648648, -0.05912279, -0.012555373, -0.066004686, 0.03182394, 0.16285324, -0.1221846, -0.31816196, 0.007928748, 0.43180224, -0.015949022) * g_11;
+ result += mat4(0.16363169, 0.14781676, -0.2377973, -0.1571377, -0.09038187, 0.0046504294, 0.033955004, -0.051421452, 0.046735536, 0.006827522, -0.121338, 0.12671822, 0.15833299, -0.1858712, -0.1942371, 0.17336044) * g_12;
+ result += mat4(-0.018145572, -0.015550516, 0.044410378, 0.046016492, 0.084021375, 0.05327457, -0.008270992, -0.045435544, 0.07185879, -0.131923, 0.26721445, -0.26745328, -0.07093472, 0.042701527, 0.13793674, -0.095621444) * g_13;
+ result += vec4(0.016836504, 0.010161949, 0.021351453, 0.01278978);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(M)-Depth-to-Space
+//!HOOK MAIN
+//!BIND MAIN
+//!BIND conv2d_last_tf
+//!SAVE MAIN
+//!WIDTH conv2d_last_tf.w 2 *
+//!HEIGHT conv2d_last_tf.h 2 *
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+vec4 hook() {
+ vec2 f0 = fract(conv2d_last_tf_pos * conv2d_last_tf_size);
+ ivec2 i0 = ivec2(f0 * vec2(2.0));
+ float c0 = conv2d_last_tf_tex((vec2(0.5) - f0) * conv2d_last_tf_pt + conv2d_last_tf_pos)[i0.y * 2 + i0.x];
+ float c1 = c0;
+ float c2 = c1;
+ float c3 = c2;
+ return vec4(c0, c1, c2, c3) + MAIN_tex(MAIN_pos);
+}
diff --git a/extern/anime4k/Anime4K_Upscale_CNN_x2_S.glsl b/extern/anime4k/Anime4K_Upscale_CNN_x2_S.glsl
new file mode 100644
index 0000000..e6ad7c2
--- /dev/null
+++ b/extern/anime4k/Anime4K_Upscale_CNN_x2_S.glsl
@@ -0,0 +1,158 @@
+// 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-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x3
+//!HOOK MAIN
+//!BIND MAIN
+//!SAVE conv2d_tf
+//!WIDTH MAIN.w
+//!HEIGHT MAIN.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#define go_0(x_off, y_off) (MAIN_texOff(vec2(x_off, y_off)))
+vec4 hook() {
+ vec4 result = mat4(-0.0057322932, 0.12928207, -0.056848746, 0.18680117, -0.0306273, 0.25602463, 0.053723164, 0.20419341, 0.0018709862, 0.022848232, -0.04105527, 0.10169034, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(0.009471417, -0.12957802, 0.096014425, 0.21836184, 0.00021601951, -0.22997683, 0.23666254, 0.41192335, 0.021762101, 0.0047863554, 0.008233427, 0.108514786, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(-0.01156376, -0.18988979, 0.04614705, -0.044767227, 0.01050636, -0.26426336, 0.23741047, 0.0027636609, -0.027718676, -0.14202335, -0.016650287, -0.06637125, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(0.057809234, -0.11033858, 0.056533534, -0.06292466, 0.13880666, -0.18710336, 0.2441031, -0.25326246, 0.0032683122, -0.026437074, 0.0023248852, 7.640766e-05, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.49110603, 0.4429004, -0.44015464, -0.41174838, -0.87738293, 0.7808468, -1.0929365, -0.59699076, -0.18409836, 0.185138, -0.11773224, -0.17097276, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.10580959, -0.055947904, -0.03431237, -0.080236495, 0.14862584, -0.15393938, -0.18872876, -0.3170681, 0.03559387, -0.003990826, 0.021298569, 0.012844483, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0);
+ result += mat4(-0.040715586, -0.25781113, 0.08896714, -0.1225879, -0.15790503, -0.54010904, 0.29588607, 0.10401059, 0.003413123, -0.108357325, 0.0112870345, -0.11888622, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0);
+ result += mat4(0.0049315444, 0.02376202, -0.08224771, 0.121118225, -0.041512914, -0.027994309, -0.585988, -0.069672115, -0.017247835, 0.0056576864, 0.04319012, 0.055003505, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0);
+ result += mat4(0.37521392, 0.15916082, 0.059708964, 0.19046007, 0.8120325, 0.38343868, 0.3436578, 0.5287958, 0.16570656, 0.06957687, 0.014022592, 0.074799836, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0);
+ result += vec4(-0.01050964, -0.00939481, 0.17684458, 0.027366742);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_tf
+//!SAVE conv2d_1_tf
+//!WIDTH conv2d_tf.w
+//!HEIGHT conv2d_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.011029496, 0.05866063, -0.09460646, -0.017664742, -0.022488879, 0.18384217, -0.00397663, -0.064733066, 0.08466802, 0.10667488, 8.0212536e-05, 0.0908869, 0.13580276, 0.00097438256, 0.12176522, -0.08218466) * go_0(-1.0, -1.0);
+ result += mat4(0.16062798, -0.10190268, 0.03280682, 0.05621916, -0.009684231, -0.08464307, 0.17058301, -0.096469186, 0.1967505, -0.1450099, 0.093607284, -0.28240147, -0.21377413, 0.10079291, -0.1741522, 0.17330575) * go_0(-1.0, 0.0);
+ result += mat4(-0.060160473, 0.06316997, 0.0046929033, -0.049405966, 0.13851729, 0.06830702, -0.0586872, -0.040827133, 0.007052838, -0.03576886, -0.111261636, 0.039155316, -0.07380389, -0.09369825, 0.04471156, 0.09678487) * go_0(-1.0, 1.0);
+ result += mat4(-0.36683616, -0.035950605, -0.24414362, -0.009159744, 0.19335322, -0.099253505, 0.075083904, -0.00076695543, 0.65291303, -0.25599423, 0.19827642, 0.065899536, -0.07423247, -0.068967685, 0.0050554527, -0.060272824) * go_0(0.0, -1.0);
+ result += mat4(-0.020688485, -0.83178276, 0.11104878, 0.26454413, 0.13655476, 0.37675047, -0.22219229, -0.01751935, 0.44552696, 0.92510307, 0.16063261, -0.62011045, 0.19366647, -0.06996067, -0.2504841, 0.00803723) * go_0(0.0, 0.0);
+ result += mat4(0.0051537007, -0.057168536, -0.16110587, 0.25232598, -0.04447099, 0.11997351, 0.14808103, -0.34443566, -0.26212573, -0.21970181, 0.2724405, 0.21050811, -0.07949061, -0.064808235, -0.21208277, -0.0042361654) * go_0(0.0, 1.0);
+ result += mat4(-0.0888952, -0.20169449, 0.19144905, -0.016882861, -0.013283103, 0.07552998, -0.24686803, 0.012453213, -0.065454446, -0.016123284, -0.47316182, 0.070926026, 0.09219782, 0.13118166, 0.074736096, 0.0077910526) * go_0(1.0, -1.0);
+ result += mat4(0.5832154, 0.1138069, -0.039765622, 0.3182784, -0.25497997, 0.0013993139, 0.39285088, -0.48511526, -0.39891505, -0.19094779, -0.082146175, -0.20826934, 0.020590555, -0.0012490178, -0.4398621, 0.14377014) * go_0(1.0, 0.0);
+ result += mat4(0.21917395, 3.4314657e-05, 0.25734863, -0.3433305, 0.015720673, 0.2676127, -0.06807297, 0.15040149, -0.23638041, -0.0050233034, -0.13666134, 0.4542111, -0.033572577, -0.08450588, -0.23341487, 0.053490847) * go_0(1.0, 1.0);
+ result += mat4(-0.17482175, 0.057647135, 0.33135444, 0.0850751, -0.1718849, -0.0854123, 0.036795795, -0.13874969, -0.10903869, -0.19007301, -0.06064334, -0.03786032, -0.036696054, 0.07844446, 0.012523185, -0.01562906) * go_1(-1.0, -1.0);
+ result += mat4(-0.04411997, -0.10331819, 0.10050193, 0.12406485, 0.07431592, 0.30109692, -0.17511666, -0.13263564, -0.10192587, 0.07821255, -0.22415096, 0.25552443, 0.17881326, -0.13914281, 0.109979235, -0.0016463579) * go_1(-1.0, 0.0);
+ result += mat4(-0.01911644, -0.15412527, 0.028903123, 0.20831817, 0.00375175, 0.08110953, 0.074919395, -0.17581624, -0.015677985, 0.06504228, 0.08817818, -0.12518327, -0.09537373, 0.028905088, -0.051288474, 0.054334078) * go_1(-1.0, 1.0);
+ result += mat4(0.2852779, -0.28924024, 0.36805123, 0.21079305, -0.28336474, 0.1679663, -0.08641141, -0.10699407, -0.16090055, 0.1287612, -0.15910125, 0.05734755, 0.15883245, 0.0053026294, 0.080674745, 0.0505137) * go_1(0.0, -1.0);
+ result += mat4(0.17639062, 0.3790122, -0.19588692, -0.020314282, 0.26197383, 0.09014768, 0.19696823, -0.41025418, -0.08308115, -0.33279485, -0.22528782, 0.06172439, -0.1365661, -0.13094363, -0.005086559, 0.089024484) * go_1(0.0, 0.0);
+ result += mat4(0.05262993, 0.0006296959, 0.1657725, -0.32591924, 0.12126701, 0.061543245, -0.10526848, 0.041583937, 0.094976954, 0.09416157, -0.22019257, -0.058390073, -0.2073888, 0.057273377, 0.19558284, 0.004208022) * go_1(0.0, 1.0);
+ result += mat4(0.30005738, 0.18478931, -0.23342943, 0.22455733, -0.016488122, 0.099634305, 0.31620836, -0.15731157, 0.09595808, 0.0013774688, 0.48273298, -0.07027936, -0.18764344, -0.26194447, -0.11794225, -0.012173601) * go_1(1.0, -1.0);
+ result += mat4(0.117986746, -0.13846518, -0.019614812, -0.3011192, 0.5501164, 0.3408611, -0.40090847, 0.15706886, 0.13050972, 0.051776595, 0.20792943, 0.23389706, -0.22965533, -0.053367328, 0.3911586, -0.032988597) * go_1(1.0, 0.0);
+ result += mat4(0.054753624, -0.008485731, -0.2451672, 0.17528129, 0.13657846, 0.010480436, 0.07651423, -0.43316832, 0.12736236, 0.13804524, 0.12529011, -0.30946237, -0.14423579, 0.08403089, 0.24335162, 0.057288036) * go_1(1.0, 1.0);
+ result += vec4(0.012077211, 0.013045883, 0.0380778, -0.02908858);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(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
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.036115196, -0.06971895, -0.07508942, 0.016036168, 0.12120111, 0.24536026, 0.044755507, -0.20663576, 0.029635755, -0.15427187, 0.027148994, -0.20795093, 0.10170582, 0.077919215, 0.66063017, -0.4632968) * go_0(-1.0, -1.0);
+ result += mat4(-0.0052889925, -0.019060908, -0.08660142, -0.022095207, -0.08097976, -0.015142803, -0.18552722, -0.078493506, -0.16293915, -0.20099808, -0.08370822, 0.3701389, 0.09094984, 0.2487225, 0.24338846, 0.044003833) * go_0(-1.0, 0.0);
+ result += mat4(-0.061406493, -0.017232792, -0.10917424, 0.11203319, 0.040699825, -0.019294346, 0.084953666, -0.018133596, 0.07209552, 0.016069936, 0.17805555, -0.089537814, 0.15809004, 0.1027023, 0.15044671, -0.15530108) * go_0(-1.0, 1.0);
+ result += mat4(0.0948676, -0.040305693, -0.005591629, -0.048048403, -0.07547777, 0.056606572, 0.021390207, 0.32600567, -0.20805131, -0.099587254, 0.029613169, 0.0092129605, -0.29429698, -0.09898621, 0.44470885, -0.89487344) * go_0(0.0, -1.0);
+ result += mat4(-0.122259885, 0.11445877, 0.06666907, 0.1869428, -0.1553992, -0.1658741, 0.2988138, -0.57746625, -0.34609964, 0.11169158, -0.41877756, 0.38075635, 0.21293911, 0.09640372, -0.12754214, -0.08026104) * go_0(0.0, 0.0);
+ result += mat4(0.15128808, 0.050087795, 0.09219755, -0.18080945, 0.0044571217, -0.046019405, -0.1289922, 0.20305426, 0.19601224, 0.04667917, 0.17465587, 0.027672665, 0.18441725, 0.06845396, 0.11288585, -0.23283863) * go_0(0.0, 1.0);
+ result += mat4(-0.072962, -0.06639447, 0.049347494, -0.1386401, 0.10396071, 0.08187777, -0.04280746, 0.07390891, 0.06628344, 0.037797406, 0.021885803, -0.013147403, 0.22376558, 0.36243078, 0.12874891, -0.0023783944) * go_0(1.0, -1.0);
+ result += mat4(0.074945286, 0.16045591, -0.11798349, 0.12910712, 0.054760084, -0.095626175, -0.047832094, 0.03493912, 0.11817307, 0.037452437, -0.14301221, -0.027356789, -0.052390423, 0.11373512, 0.07686775, 0.010008694) * go_0(1.0, 0.0);
+ result += mat4(-0.023999173, -0.091900624, 0.02388157, 0.03173873, 0.0065633506, -0.033716757, -0.1198324, 0.12057766, 0.026465805, -0.07517131, -0.07760598, 0.060463097, 0.07345541, 0.046037503, 0.21101558, -0.26785463) * go_0(1.0, 1.0);
+ result += mat4(0.15544604, -0.03902825, 0.04630384, -0.25173616, -0.0691359, 0.07476507, 0.009071253, 0.089964196, -0.26539803, -0.3958477, -0.22155671, 0.20735882, -0.105860494, -0.003996804, -0.044815883, 0.39544627) * go_1(-1.0, -1.0);
+ result += mat4(0.6169709, 0.23717614, -0.37884676, -0.7484867, 0.020169826, -0.30718836, 1.0965588, -0.20711036, -0.39149985, -0.06843563, -0.06522909, 0.103805855, 0.03265825, -0.15137726, 0.12837899, -0.01294922) * go_1(-1.0, 0.0);
+ result += mat4(-0.23638196, -0.4560866, -0.11948684, -0.1464144, 0.10690008, 0.007835961, 0.11864342, -0.13101323, -0.16509797, 0.075027354, 0.08122998, 0.13451207, 0.0011890623, 0.052157886, 0.08372405, -0.07085038) * go_1(-1.0, 1.0);
+ result += mat4(-0.21997726, -0.16488647, -0.0291317, 0.17997476, 0.1493211, 0.027494298, 0.0034613227, -0.3207727, 0.18699001, 0.14728633, -0.042895135, -0.07612043, 0.125076, -0.14714554, -0.03480009, -0.22753975) * go_1(0.0, -1.0);
+ result += mat4(-0.5342686, -0.7426105, -0.38294584, 0.42549992, 0.46053204, 0.7867879, 0.106234804, -0.041163098, 0.5198579, -0.5219404, 0.14809476, -0.41802374, 0.06810794, -0.15122683, -0.047409, 0.13178343) * go_1(0.0, 0.0);
+ result += mat4(-0.50428164, 0.18220626, 0.35510704, -0.081787474, 0.03155813, 0.019284263, 0.0032388573, -0.20513348, -0.05385551, 0.17803182, -0.26206362, 0.2870375, 0.008557827, 0.08401449, -0.027598893, -0.010791235) * go_1(0.0, 1.0);
+ result += mat4(0.16657415, 0.067647465, 0.093076974, -0.14438486, -0.10017002, 0.0022367141, 0.03250936, -0.052794546, -0.009178676, -0.019673595, -0.0016697067, -0.15424626, -0.112123474, -0.11079971, 0.011987111, -0.11747758) * go_1(1.0, -1.0);
+ result += mat4(-0.023021797, -0.058703423, -0.037978355, -0.062433913, -0.13130441, 0.048656322, 0.056839373, 0.109036915, -0.07823158, 0.14785293, 0.058555078, -0.11679035, -0.14002073, 0.07395252, 0.098268874, -0.06710464) * go_1(1.0, 0.0);
+ result += mat4(0.14906375, 0.030001195, -0.10338215, 0.0662968, -0.161953, -0.13682815, 0.09563142, 0.009514228, -0.009491218, 0.06737101, -0.1393389, 0.15231515, -0.073147796, 0.00767062, 0.028675212, 0.014213088) * go_1(1.0, 1.0);
+ result += vec4(0.018736731, -0.0026039074, 0.050130025, -0.055364225);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8
+//!HOOK MAIN
+//!BIND conv2d_2_tf
+//!SAVE conv2d_last_tf
+//!WIDTH conv2d_2_tf.w
+//!HEIGHT conv2d_2_tf.h
+//!COMPONENTS 4
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+#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.019100675, -0.014241565, 0.004667036, -0.03865062, 0.106731094, 0.026099661, 0.014594411, -0.011881356, 0.0040967264, -0.004626336, 0.006469508, 0.010875305, -0.033909045, -0.085905954, 0.07861378, 0.019452631) * go_0(-1.0, -1.0);
+ result += mat4(0.20777655, -0.060354974, 0.0023840065, -0.064121604, -0.17397617, 0.019293457, -0.09707183, 0.080641985, 0.01025124, -0.017382381, 0.008661793, -0.010995665, 0.21943407, -0.115574986, 0.14471593, -0.068836235) * go_0(-1.0, 0.0);
+ result += mat4(0.057942886, -0.06311754, 0.2253396, -0.04159292, -0.020731755, 0.007877151, 0.041525815, 0.025278691, 0.03041967, -0.025137542, 0.024364179, -0.024543528, 0.029438615, -0.015506873, 0.081686, -0.07812221) * go_0(-1.0, 1.0);
+ result += mat4(0.054237515, 0.0676094, -0.0047708177, 0.0043467237, -0.10032304, -0.020498628, 0.04240586, 0.07272254, 0.0784221, 0.017945962, -0.022310399, -0.013134622, 0.015638694, -0.10001543, 0.1043031, 0.05898838) * go_0(0.0, -1.0);
+ result += mat4(-0.021652509, 0.35796642, 0.059497777, 0.23948468, 0.15454951, -0.10017235, -0.19072174, -0.44812536, -0.03974552, 0.04529369, 0.22207436, 0.026222564, -0.09705454, 0.5623026, -0.3354105, -0.017278556) * go_0(0.0, 0.0);
+ result += mat4(-0.053682446, -0.03411237, -0.09399936, 0.15128824, -0.07463, -0.042020727, 0.0031783928, 0.13481957, -0.07731454, 0.044114403, -0.23085599, 0.060444202, -0.15015422, 0.0018040676, -0.18684982, 0.2812511) * go_0(0.0, 1.0);
+ result += mat4(0.0029329916, 0.001596018, 0.0007512241, 0.016544111, -0.04876942, -0.05272409, 0.037884697, 0.049948208, 0.015518177, 0.11368592, -0.03815777, -0.013149978, -0.027638039, 0.107719295, -0.04115787, 0.02745414) * go_0(1.0, -1.0);
+ result += mat4(0.016691081, 0.010204119, 0.04078854, 0.01613337, 0.03325829, 0.0114824055, -0.017286912, -0.07284126, -0.110984206, -0.21041764, 0.0089543555, 0.18986733, 0.01537506, -0.2059135, 0.029074017, 0.013117443) * go_0(1.0, 0.0);
+ result += mat4(0.013965926, 0.029871881, 0.0034499036, -0.011343668, 0.022120327, -0.0068748263, 0.009324342, -0.039081004, 0.08032371, 0.050809264, 0.035050742, -0.2032847, 0.06305391, -0.021958945, 0.038569167, -0.22465245) * go_0(1.0, 1.0);
+ result += mat4(0.046307724, -0.012419472, 0.007673863, -0.042344846, 0.011042414, 0.016994251, -0.018166406, -0.016955731, -0.13240299, 0.01768431, -0.027607648, 0.0699927, -0.02840628, 0.004414203, 0.0049618417, 0.011084679) * go_1(-1.0, -1.0);
+ result += mat4(-0.119954154, -0.007455482, -0.031108133, -0.009946449, 0.0077065965, 0.01660345, 0.032943666, 0.016376585, 0.10273124, 0.1556573, -0.24643841, 0.107307844, -0.068235755, 0.0561896, -0.0104672015, 0.042693343) * go_1(-1.0, 0.0);
+ result += mat4(-0.01634601, 0.04195375, -0.10401894, 0.047641944, -0.034602515, -0.0034419263, -0.010457858, 0.015194475, -0.03962551, -0.030031368, 0.16036317, 0.019283568, -0.05877721, 0.016504882, -0.15523468, 0.018161612) * go_1(-1.0, 1.0);
+ result += mat4(-0.08083991, 0.0024665035, -0.049373373, 0.030371357, 0.0113322195, -0.014676956, 0.011646689, -0.01142667, 0.124930486, 0.06625774, -0.045840867, -0.009693036, -0.012649251, -0.07388084, 0.008790075, 0.0013844534) * go_1(0.0, -1.0);
+ result += mat4(-0.33941835, -0.2763476, -0.118311435, -0.063535266, 0.20936015, 0.13731301, 0.13443594, 0.07464433, 0.059650812, -0.36973104, 0.16444235, -0.37082872, 0.06432777, -0.18283032, -0.044489607, -0.13895285) * go_1(0.0, 0.0);
+ result += mat4(0.13533665, 0.08268915, -0.03675727, -0.14348659, 0.0186255, -0.05051692, 0.056702953, 0.0061717895, 0.047663026, -0.088188455, 0.23254345, -0.014015464, 0.08400204, -0.0073777726, 0.2202068, -0.12366078) * go_1(0.0, 1.0);
+ result += mat4(0.04361004, 0.046543695, 0.0064863074, -0.03358146, -0.022602187, 0.018138997, -0.011071864, 0.010244091, -0.019814799, -0.17250171, 0.040823266, -0.040131986, 0.010125854, 0.020660749, 0.0020435036, -0.010819304) * go_1(1.0, -1.0);
+ result += mat4(-0.004810193, -0.11286074, 0.051985834, 0.04788631, -0.023950428, 0.036145125, -0.038203828, 0.052401308, 0.022986965, 0.26420745, -0.06076917, -0.09252999, 0.03164547, 0.15652153, -0.037934, -0.0035418556) * go_1(1.0, 0.0);
+ result += mat4(0.03358366, -0.005219482, 0.007060882, -0.06569114, -0.02941682, 0.00966056, -0.0153679885, 0.019905418, -0.107232265, -0.03405676, -0.044340115, 0.26892832, -0.04723829, -0.02589829, 0.004563232, 0.19318114) * go_1(1.0, 1.0);
+ result += vec4(-0.00346731, -0.0046263863, -0.004627155, -0.0057769152);
+ return result;
+}
+//!DESC Anime4K-v3.2-Upscale-CNN-x2-(S)-Depth-to-Space
+//!HOOK MAIN
+//!BIND MAIN
+//!BIND conv2d_last_tf
+//!SAVE MAIN
+//!WIDTH conv2d_last_tf.w 2 *
+//!HEIGHT conv2d_last_tf.h 2 *
+//!WHEN OUTPUT.w MAIN.w / 1.200 > OUTPUT.h MAIN.h / 1.200 > *
+vec4 hook() {
+ vec2 f0 = fract(conv2d_last_tf_pos * conv2d_last_tf_size);
+ ivec2 i0 = ivec2(f0 * vec2(2.0));
+ float c0 = conv2d_last_tf_tex((vec2(0.5) - f0) * conv2d_last_tf_pt + conv2d_last_tf_pos)[i0.y * 2 + i0.x];
+ float c1 = c0;
+ float c2 = c1;
+ float c3 = c2;
+ return vec4(c0, c1, c2, c3) + MAIN_tex(MAIN_pos);
+}
diff --git a/extern/anime4k/LICENSE b/extern/anime4k/LICENSE
new file mode 100644
index 0000000..140b2c9
--- /dev/null
+++ b/extern/anime4k/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2019 bloc97
+
+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.
diff --git a/src/app/cli_main.cpp b/src/app/cli_main.cpp
index 9fef18f..471ef78 100644
--- a/src/app/cli_main.cpp
+++ b/src/app/cli_main.cpp
@@ -633,7 +633,7 @@ int main(int argc, char** argv) {
save("menu", menu.renderMenu(info), ui::StreamMenu::kMenuX, ui::StreamMenu::kMenuY, 235);
ui::NavInput n;
n.down = true;
- for (int i = 0; i < 4; ++i) menu.handle(n);
+ for (int i = 0; i < 5; ++i) menu.handle(n);
n = {};
n.right = true;
menu.handle(n); // 1080p -> 1440p
diff --git a/src/app/ps5_main.cpp b/src/app/ps5_main.cpp
index 743e05e..aa7be49 100644
--- a/src/app/ps5_main.cpp
+++ b/src/app/ps5_main.cpp
@@ -149,7 +149,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 (instead of the settings).
+// deband=0..2 and ai (Anime4K) instead of the settings.
// The title "BENCH" decodes <dataDir>/sample.h264 instead.
std::string g_autoplayTitle;
@@ -161,6 +161,7 @@ bool g_autoplayDetailTest = false; // open a game to buy far down the list, sav
bool g_autoplayLibraryTest = false; // open "Your games", save it at 4 s and 25 s
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_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
@@ -196,6 +197,7 @@ void loadAutoplay() {
if (opt == "cpudisplay") g_autoplayCpuDisplay = true;
if (opt == "hwdecode") g_autoplayHwDecode = true;
if (opt == "droptest") g_autoplayDropTest = true;
+ if (opt == "ai") g_autoplayUpscaler = 1;
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;
@@ -807,6 +809,7 @@ int main(int argc, char** argv) {
bool showStats = false, overlayShown = false;
int sharpness = 0; // 0..3, as Settings::sharpness
int deband = 1; // 0..2, as Settings::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};
bool padReleased = true;
@@ -877,19 +880,19 @@ int main(int argc, char** argv) {
bool menuCombo = pad.btnOptions && pad.btnTouchpad && !(prev.btnOptions && prev.btnTouchpad);
prev = pad;
if (g_autoplayMenuTest && g_ui->screen() == ui::Screen::Streaming) {
- // Menu, down four times to the resolution, left to 720p, accept; at
+ // Menu, down five times to the resolution, left to 720p, accept; at
// 35 s right (back to 1080p) and accept.
static uint64_t since = 0;
static int step = 0;
if (!since) since = now;
- const uint64_t at[] = {12000, 13000, 13300, 13600, 13800, 14000, 14500, 35000, 35500};
- if (step < 9 && now - since >= at[step]) {
+ const uint64_t at[] = {12000, 13000, 13200, 13400, 13600, 13800, 14000, 14500, 35000, 35500};
+ if (step < 10 && now - since >= at[step]) {
nav = ui::NavInput{};
if (step == 0) menuCombo = true;
- if (step >= 1 && step <= 4) nav.down = true;
- if (step == 5) nav.left = true;
- if (step == 6 || step == 8) nav.accept = true;
- if (step == 7) nav.right = true;
+ if (step >= 1 && step <= 5) nav.down = true;
+ if (step == 6) nav.left = true;
+ if (step == 7 || step == 9) nav.accept = true;
+ if (step == 8) nav.right = true;
XC_LOGI("autoplay: menu step %d", step);
++step;
}
@@ -913,6 +916,8 @@ int main(int argc, char** argv) {
display::setSharpness(kSharpAmount[std::clamp(sharpness, 0, 3)]);
deband = g_autoplayDeband >= 0 ? g_autoplayDeband : g_settings.deband;
display::setDeband(deband);
+ upscaler = g_autoplayUpscaler >= 0 ? g_autoplayUpscaler : g_settings.upscaler;
+ display::setUpscaler(upscaler);
overlaySeq = 0;
}
if (g_player) {
@@ -921,7 +926,7 @@ int main(int argc, char** argv) {
bool wasOpen = menu.isOpen();
if (!wasOpen && menuCombo && g_keyboardFor.empty()) {
menu.setCircleConfirms(g_settings.circleConfirms);
- menu.open(streamResolution, showStats, sharpness, deband);
+ menu.open(streamResolution, showStats, sharpness, deband, upscaler);
overlaySeq = 0;
} else if (wasOpen) {
switch (menu.handle(nav)) {
@@ -941,6 +946,14 @@ int main(int argc, char** argv) {
g_settings.save(settingsPath());
break;
}
+ case ui::MenuAction::Upscaler: {
+ upscaler = menu.upscaler();
+ display::setUpscaler(upscaler);
+ std::lock_guard<std::mutex> settingsLock(g_settingsMutex);
+ g_settings.upscaler = upscaler;
+ g_settings.save(settingsPath());
+ break;
+ }
case ui::MenuAction::Deband: {
deband = menu.deband();
display::setDeband(deband);
diff --git a/src/app/settings.cpp b/src/app/settings.cpp
index f1747e1..98cd56b 100644
--- a/src/app/settings.cpp
+++ b/src/app/settings.cpp
@@ -25,6 +25,7 @@ bool Settings::load(const std::string& path) {
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));
deadzone = static_cast<int>(std::clamp<int64_t>((*j)["deadzone"].asInt(deadzone), 0, 50));
triggerRumble = (*j)["triggerRumble"].asBool(triggerRumble);
circleConfirms = (*j)["circleConfirms"].asBool(circleConfirms);
@@ -50,6 +51,7 @@ bool Settings::save(const std::string& path) const {
v.set("streamStats", streamStats);
v.set("sharpness", sharpness);
v.set("deband", deband);
+ v.set("upscaler", upscaler);
v.set("deadzone", deadzone);
v.set("triggerRumble", triggerRumble);
v.set("circleConfirms", circleConfirms);
diff --git a/src/app/settings.h b/src/app/settings.h
index 6a904fb..45e16d6 100644
--- a/src/app/settings.h
+++ b/src/app/settings.h
@@ -25,6 +25,8 @@ struct Settings {
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;
// 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 ad46e51..34bd903 100644
--- a/src/display/display.cpp
+++ b/src/display/display.cpp
@@ -500,6 +500,7 @@ void setSharpness(int amount) {
}
void setDeband(int level) { gpu::setDeband(level); }
+void setUpscaler(int mode) { gpu::setUpscaler(mode); }
uint64_t lastPresentId() { return gpu::ready() ? gpu::lastPresentId() : 0; }
bool lastShown(uint64_t& id, uint64_t& atUs) { return gpu::ready() && gpu::lastShown(id, atUs); }
@@ -532,6 +533,7 @@ void drawRgba(const uint32_t*) {}
void setOverlay(const uint32_t*, int, int, int, int, uint8_t) {}
void setSharpness(int) {}
void setDeband(int) {}
+void setUpscaler(int) {}
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 1fc9299..5e10239 100644
--- a/src/display/display.h
+++ b/src/display/display.h
@@ -40,6 +40,8 @@ void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opac
void setSharpness(int amount);
// Smoothing of compression blocks in flat areas (GPU only): 0 off, 1 low, 2 high.
void setDeband(int level);
+// GPU only: 0 FSR 1, 1 Anime4K (gpu::setUpscaler).
+void setUpscaler(int mode);
// 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 1f5c5d1..24d3c6b 100644
--- a/src/display/gpu.cpp
+++ b/src/display/gpu.cpp
@@ -15,6 +15,11 @@
#include <mutex>
#include <string>
+#include "display/shaders/a4k_d2s.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"
+#include "display/shaders/a4k_s_conv3.spv.h"
#include "display/shaders/easu.spv.h"
#include "display/shaders/rcas.spv.h"
#include "display/shaders/yuv2rgb.spv.h"
@@ -101,11 +106,17 @@ struct State {
VkSampler nearest = VK_NULL_HANDLE, linear = VK_NULL_HANDLE;
Pipeline yuv, easu, rcas;
+ // Anime4K x2 (S): four convolutions at the picture's size, then the
+ // depth-to-space into the 4K image; in place of EASU when chosen.
+ Pipeline a4kConv[4], a4kD2s;
+ VkDescriptorSet a4kConvSets[4]{}, a4kD2sSet = VK_NULL_HANDLE;
+ bool a4kReady = false;
VkDescriptorPool descriptors = VK_NULL_HANDLE;
VkDescriptorSet yuvSet = VK_NULL_HANDLE, easuVideoSet = VK_NULL_HANDLE, easuUiSet = VK_NULL_HANDLE;
VkDescriptorSet rcasSets[8]{};
Image luma, chromaU, chromaV, rgb; // the video picture, at its size
+ Image features[2]; // Anime4K's feature maps, ping-ponged
Image ui, upscaled, overlay;
Buffer staging; // this frame's planes or canvas
Buffer overlayStaging; // the overlay, when it changed
@@ -124,6 +135,7 @@ std::vector<uint32_t> g_overlayPixels(kUiW* kUiH, 0);
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
uint32_t g_frame = 0;
uint32_t g_swapImages = 2;
bool g_noPresentWait = false;
@@ -502,9 +514,19 @@ bool createPipelines() {
XC_LOGE("gpu: the FSR pipelines");
return false;
}
+ {
+ const VkDescriptorSetLayoutBinding conv[] = {binding(0, storage), binding(1, storage)};
+ const VkDescriptorSetLayoutBinding d2s[] = {binding(0, storage), binding(1, sampled), binding(2, storage)};
+ const uint32_t* code[4] = {kShader_a4k_s_conv0, kShader_a4k_s_conv1, kShader_a4k_s_conv2, kShader_a4k_s_conv3};
+ const size_t bytes[4] = {sizeof kShader_a4k_s_conv0, sizeof kShader_a4k_s_conv1, sizeof kShader_a4k_s_conv2,
+ sizeof kShader_a4k_s_conv3};
+ 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 VkDescriptorPoolSize sizes[] = {{sampled, 32}, {storage, 32}};
VkDescriptorPoolCreateInfo pool{VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO};
- pool.maxSets = 16;
+ pool.maxSets = 24;
pool.poolSizeCount = 2;
pool.pPoolSizes = sizes;
if (vkCreateDescriptorPool(g.device, &pool, nullptr, &g.descriptors) != VK_SUCCESS) return false;
@@ -512,6 +534,10 @@ bool createPipelines() {
g.easuVideoSet = allocateSet(g.easu);
g.easuUiSet = allocateSet(g.easu);
for (uint32_t i = 0; i < g.imageCount; ++i) g.rcasSets[i] = allocateSet(g.rcas);
+ if (g.a4kReady) {
+ for (int i = 0; i < 4; ++i) g.a4kConvSets[i] = allocateSet(g.a4kConv[i]);
+ g.a4kD2sSet = allocateSet(g.a4kD2s);
+ }
// 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;
@@ -545,6 +571,8 @@ bool videoImages(uint32_t w, uint32_t h) {
destroyImage(g.chromaU);
destroyImage(g.chromaV);
destroyImage(g.rgb);
+ destroyImage(g.features[0]);
+ destroyImage(g.features[1]);
const VkImageUsageFlags upload = VK_IMAGE_USAGE_TRANSFER_DST_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
uint32_t cw = (w + 1) / 2, ch = (h + 1) / 2;
if (!createImage(g.luma, VK_FORMAT_R8_UNORM, w, h, upload) ||
@@ -559,6 +587,25 @@ bool videoImages(uint32_t w, uint32_t h) {
writeSampled(g.yuvSet, 2, g.chromaV.view, g.linear);
writeStorage(g.yuvSet, 3, g.rgb.view);
writeSampled(g.easuVideoSet, 0, g.rgb.view, g.linear);
+ if (g.a4kReady) {
+ if (!createImage(g.features[0], VK_FORMAT_R16G16B16A16_SFLOAT, w, h, VK_IMAGE_USAGE_STORAGE_BIT) ||
+ !createImage(g.features[1], VK_FORMAT_R16G16B16A16_SFLOAT, w, h, VK_IMAGE_USAGE_STORAGE_BIT)) {
+ XC_LOGW("gpu: no Anime4K feature maps; FSR only");
+ g.a4kReady = false;
+ } else {
+ // picture -> f0 -> f1 -> f0 -> f1 -> 4K
+ const VkImageView in[4] = {g.rgb.view, g.features[0].view, g.features[1].view, g.features[0].view};
+ const VkImageView out[4] = {g.features[0].view, g.features[1].view, g.features[0].view,
+ g.features[1].view};
+ for (int i = 0; i < 4; ++i) {
+ writeStorage(g.a4kConvSets[i], 0, in[i]);
+ writeStorage(g.a4kConvSets[i], 1, out[i]);
+ }
+ writeStorage(g.a4kD2sSet, 0, g.features[1].view);
+ writeSampled(g.a4kD2sSet, 1, g.rgb.view, g.linear);
+ writeStorage(g.a4kD2sSet, 2, g.upscaled.view);
+ }
+ }
XC_LOGI("gpu: video images %ux%u", w, h);
return true;
}
@@ -660,7 +707,28 @@ 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.
-void recordUpscale(VkDescriptorSet easuSet, uint32_t w, uint32_t h, int sharpness, bool overlay) {
+// 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) {
+ if (!g.a4kReady || w * 2 != g.extent.width || h * 2 != g.extent.height || g.features[0].w != w) return false;
+ 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.a4kConv[i].pipeline);
+ vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.a4kConv[i].layout, 0, 1, &g.a4kConvSets[i], 0,
+ nullptr);
+ vkCmdDispatch(g.cmd, (w + 7) / 8, (h + 7) / 8, 1);
+ memoryBarrier();
+ }
+ barrier(g.upscaled.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
+ vkCmdBindPipeline(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.a4kD2s.pipeline);
+ vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.a4kD2s.layout, 0, 1, &g.a4kD2sSet, 0, nullptr);
+ vkCmdDispatch(g.cmd, (g.extent.width + 7) / 8, (g.extent.height + 7) / 8, 1);
+ memoryBarrier();
+ return true;
+}
+
+void recordUpscale(VkDescriptorSet easuSet, uint32_t w, uint32_t h, int sharpness, bool overlay, bool ai = false) {
// EASU constants (FsrEasuCon), the picture filling the display.
float ow = static_cast<float>(g.extent.width), oh = static_cast<float>(g.extent.height);
float iw = static_cast<float>(w), ih = static_cast<float>(h);
@@ -668,12 +736,14 @@ void recordUpscale(VkDescriptorSet easuSet, uint32_t w, uint32_t h, int sharpnes
asBits(1.0f / iw), asBits(1.0f / ih), asBits(1.0f / iw), asBits(-1.0f / ih),
asBits(-1.0f / iw), asBits(2.0f / ih), asBits(1.0f / iw), asBits(2.0f / ih),
asBits(0.0f / iw), asBits(4.0f / ih), 0, 0};
- barrier(g.upscaled.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
- vkCmdBindPipeline(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.easu.pipeline);
- vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.easu.layout, 0, 1, &easuSet, 0, nullptr);
- vkCmdPushConstants(g.cmd, g.easu.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof easu, easu);
- vkCmdDispatch(g.cmd, (g.extent.width + 7) / 8, (g.extent.height + 7) / 8, 1);
- memoryBarrier();
+ if (!ai || !recordAnime4K(w, h)) {
+ barrier(g.upscaled.image, VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_GENERAL);
+ vkCmdBindPipeline(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.easu.pipeline);
+ vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.easu.layout, 0, 1, &easuSet, 0, nullptr);
+ vkCmdPushConstants(g.cmd, g.easu.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof easu, easu);
+ vkCmdDispatch(g.cmd, (g.extent.width + 7) / 8, (g.extent.height + 7) / 8, 1);
+ memoryBarrier();
+ }
// RCAS (FsrRcasCon): sharpness in stops, 0 = the most.
float stops = sharpness >= 256 ? 0.2f : sharpness >= 176 ? 0.5f : sharpness > 0 ? 1.0f : 2.0f;
@@ -748,7 +818,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();
- recordUpscale(g.easuVideoSet, g.rgb.w, g.rgb.h, g_sharpness, overlay);
+ recordUpscale(g.easuVideoSet, g.rgb.w, g.rgb.h, g_sharpness, overlay, g_upscaler == 1);
return true;
}
@@ -823,6 +893,8 @@ void setSharpness(int amount) { g_sharpness = std::clamp(amount, 0, 256); }
void setDeband(int level) { g_deband = std::clamp(level, 0, 2); }
+void setUpscaler(int mode) { g_upscaler = std::clamp(mode, 0, 1); }
+
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 52482f8..95f77bf 100644
--- a/src/display/gpu.h
+++ b/src/display/gpu.h
@@ -36,6 +36,9 @@ void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opac
void setSharpness(int amount);
// Smoothing of compression blocks in flat areas: 0 off, 1 low, 2 high.
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);
// 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_d2s.comp b/src/display/shaders/a4k_d2s.comp
new file mode 100644
index 0000000..f041dbb
--- /dev/null
+++ b/src/display/shaders/a4k_d2s.comp
@@ -0,0 +1,21 @@
+#version 450
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Copyright (C) 2026 RafaelNGP
+// Anime4K's depth-to-space (bloc97, MIT, extern/anime4k): the network's last
+// four channels are the luma detail of the 2x2 output pixels of each input
+// pixel, added to the picture upscaled bilinearly. The output is exactly
+// twice the input (1080p to the 2160p display).
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, rgba16f) uniform readonly image2D lastLayer;
+layout(binding = 1) uniform sampler2D picture; // linear
+layout(binding = 2, rgba8) uniform writeonly image2D upscaled;
+
+void main() {
+ ivec2 q = ivec2(gl_GlobalInvocationID.xy);
+ ivec2 size = imageSize(upscaled);
+ if (q.x >= size.x || q.y >= size.y) return;
+ ivec2 sub = q & 1;
+ float detail = imageLoad(lastLayer, q >> 1)[sub.y * 2 + sub.x];
+ vec3 base = texture(picture, (vec2(q) + 0.5) / vec2(size)).rgb;
+ imageStore(upscaled, q, vec4(clamp(base + detail, 0.0, 1.0), 1.0));
+}
diff --git a/src/display/shaders/a4k_d2s.spv.h b/src/display/shaders/a4k_d2s.spv.h
new file mode 100644
index 0000000..5ae49f9
--- /dev/null
+++ b/src/display/shaders/a4k_d2s.spv.h
@@ -0,0 +1,81 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_d2s[] = {
+ 0x07230203,0x00010600,0x0008000b,0x0000006a,0x00000000,0x00020011,0x00000001,0x00020011,
+ 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,
+ 0x00000000,0x00000001,0x0009000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000d,
+ 0x00000016,0x00000037,0x0000004c,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,
+ 0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,0x00000000,
+ 0x00030005,0x00000009,0x00000071,0x00080005,0x0000000d,0x475f6c67,0x61626f6c,0x766e496c,
+ 0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000012,0x657a6973,0x00000000,0x00050005,
+ 0x00000016,0x63737075,0x64656c61,0x00000000,0x00030005,0x0000002e,0x00627573,0x00040005,
+ 0x00000034,0x61746564,0x00006c69,0x00050005,0x00000037,0x7473616c,0x6579614c,0x00000072,
+ 0x00040005,0x00000048,0x65736162,0x00000000,0x00040005,0x0000004c,0x74636970,0x00657275,
+ 0x00040047,0x0000000d,0x0000000b,0x0000001c,0x00030047,0x00000016,0x00000019,0x00040047,
+ 0x00000016,0x00000021,0x00000002,0x00040047,0x00000016,0x00000022,0x00000000,0x00030047,
+ 0x00000037,0x00000018,0x00040047,0x00000037,0x00000021,0x00000000,0x00040047,0x00000037,
+ 0x00000022,0x00000000,0x00040047,0x0000004c,0x00000021,0x00000001,0x00040047,0x0000004c,
+ 0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,
+ 0x00000006,0x00000020,0x00000001,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,
+ 0x00000008,0x00000007,0x00000007,0x00040015,0x0000000a,0x00000020,0x00000000,0x00040017,
+ 0x0000000b,0x0000000a,0x00000003,0x00040020,0x0000000c,0x00000001,0x0000000b,0x0004003b,
+ 0x0000000c,0x0000000d,0x00000001,0x00040017,0x0000000e,0x0000000a,0x00000002,0x00030016,
+ 0x00000013,0x00000020,0x00090019,0x00000014,0x00000013,0x00000001,0x00000000,0x00000000,
+ 0x00000000,0x00000002,0x00000004,0x00040020,0x00000015,0x00000000,0x00000014,0x0004003b,
+ 0x00000015,0x00000016,0x00000000,0x00020014,0x00000019,0x0004002b,0x0000000a,0x0000001a,
+ 0x00000000,0x00040020,0x0000001b,0x00000007,0x00000006,0x0004002b,0x0000000a,0x00000024,
+ 0x00000001,0x0004002b,0x00000006,0x00000030,0x00000001,0x00040020,0x00000033,0x00000007,
+ 0x00000013,0x00090019,0x00000035,0x00000013,0x00000001,0x00000000,0x00000000,0x00000000,
+ 0x00000002,0x00000002,0x00040020,0x00000036,0x00000000,0x00000035,0x0004003b,0x00000036,
+ 0x00000037,0x00000000,0x00040017,0x0000003c,0x00000013,0x00000004,0x0004002b,0x00000006,
+ 0x00000040,0x00000002,0x00040017,0x00000046,0x00000013,0x00000003,0x00040020,0x00000047,
+ 0x00000007,0x00000046,0x00090019,0x00000049,0x00000013,0x00000001,0x00000000,0x00000000,
+ 0x00000000,0x00000001,0x00000000,0x0003001b,0x0000004a,0x00000049,0x00040020,0x0000004b,
+ 0x00000000,0x0000004a,0x0004003b,0x0000004b,0x0000004c,0x00000000,0x00040017,0x0000004f,
+ 0x00000013,0x00000002,0x0004002b,0x00000013,0x00000051,0x3f000000,0x0004002b,0x00000013,
+ 0x00000057,0x00000000,0x0004002b,0x00000013,0x00000060,0x3f800000,0x0004002b,0x0000000a,
+ 0x00000068,0x00000008,0x0006002c,0x0000000b,0x00000069,0x00000068,0x00000068,0x00000024,
+ 0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,
+ 0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,0x00000012,0x00000007,0x0004003b,
+ 0x00000008,0x0000002e,0x00000007,0x0004003b,0x00000033,0x00000034,0x00000007,0x0004003b,
+ 0x00000047,0x00000048,0x00000007,0x0004003d,0x0000000b,0x0000000f,0x0000000d,0x0007004f,
+ 0x0000000e,0x00000010,0x0000000f,0x0000000f,0x00000000,0x00000001,0x0004007c,0x00000007,
+ 0x00000011,0x00000010,0x0003003e,0x00000009,0x00000011,0x0004003d,0x00000014,0x00000017,
+ 0x00000016,0x00040068,0x00000007,0x00000018,0x00000017,0x0003003e,0x00000012,0x00000018,
+ 0x00050041,0x0000001b,0x0000001c,0x00000009,0x0000001a,0x0004003d,0x00000006,0x0000001d,
+ 0x0000001c,0x00050041,0x0000001b,0x0000001e,0x00000012,0x0000001a,0x0004003d,0x00000006,
+ 0x0000001f,0x0000001e,0x000500af,0x00000019,0x00000020,0x0000001d,0x0000001f,0x000400a8,
+ 0x00000019,0x00000021,0x00000020,0x000300f7,0x00000023,0x00000000,0x000400fa,0x00000021,
+ 0x00000022,0x00000023,0x000200f8,0x00000022,0x00050041,0x0000001b,0x00000025,0x00000009,
+ 0x00000024,0x0004003d,0x00000006,0x00000026,0x00000025,0x00050041,0x0000001b,0x00000027,
+ 0x00000012,0x00000024,0x0004003d,0x00000006,0x00000028,0x00000027,0x000500af,0x00000019,
+ 0x00000029,0x00000026,0x00000028,0x000200f9,0x00000023,0x000200f8,0x00000023,0x000700f5,
+ 0x00000019,0x0000002a,0x00000020,0x00000005,0x00000029,0x00000022,0x000300f7,0x0000002c,
+ 0x00000000,0x000400fa,0x0000002a,0x0000002b,0x0000002c,0x000200f8,0x0000002b,0x000100fd,
+ 0x000200f8,0x0000002c,0x0004003d,0x00000007,0x0000002f,0x00000009,0x00050050,0x00000007,
+ 0x00000031,0x00000030,0x00000030,0x000500c7,0x00000007,0x00000032,0x0000002f,0x00000031,
+ 0x0003003e,0x0000002e,0x00000032,0x0004003d,0x00000035,0x00000038,0x00000037,0x0004003d,
+ 0x00000007,0x00000039,0x00000009,0x00050050,0x00000007,0x0000003a,0x00000030,0x00000030,
+ 0x000500c3,0x00000007,0x0000003b,0x00000039,0x0000003a,0x00050062,0x0000003c,0x0000003d,
+ 0x00000038,0x0000003b,0x00050041,0x0000001b,0x0000003e,0x0000002e,0x00000024,0x0004003d,
+ 0x00000006,0x0000003f,0x0000003e,0x00050084,0x00000006,0x00000041,0x0000003f,0x00000040,
+ 0x00050041,0x0000001b,0x00000042,0x0000002e,0x0000001a,0x0004003d,0x00000006,0x00000043,
+ 0x00000042,0x00050080,0x00000006,0x00000044,0x00000041,0x00000043,0x0005004d,0x00000013,
+ 0x00000045,0x0000003d,0x00000044,0x0003003e,0x00000034,0x00000045,0x0004003d,0x0000004a,
+ 0x0000004d,0x0000004c,0x0004003d,0x00000007,0x0000004e,0x00000009,0x0004006f,0x0000004f,
+ 0x00000050,0x0000004e,0x00050050,0x0000004f,0x00000052,0x00000051,0x00000051,0x00050081,
+ 0x0000004f,0x00000053,0x00000050,0x00000052,0x0004003d,0x00000007,0x00000054,0x00000012,
+ 0x0004006f,0x0000004f,0x00000055,0x00000054,0x00050088,0x0000004f,0x00000056,0x00000053,
+ 0x00000055,0x00070058,0x0000003c,0x00000058,0x0000004d,0x00000056,0x00000002,0x00000057,
+ 0x0008004f,0x00000046,0x00000059,0x00000058,0x00000058,0x00000000,0x00000001,0x00000002,
+ 0x0003003e,0x00000048,0x00000059,0x0004003d,0x00000014,0x0000005a,0x00000016,0x0004003d,
+ 0x00000007,0x0000005b,0x00000009,0x0004003d,0x00000046,0x0000005c,0x00000048,0x0004003d,
+ 0x00000013,0x0000005d,0x00000034,0x00060050,0x00000046,0x0000005e,0x0000005d,0x0000005d,
+ 0x0000005d,0x00050081,0x00000046,0x0000005f,0x0000005c,0x0000005e,0x00060050,0x00000046,
+ 0x00000061,0x00000057,0x00000057,0x00000057,0x00060050,0x00000046,0x00000062,0x00000060,
+ 0x00000060,0x00000060,0x0008000c,0x00000046,0x00000063,0x00000001,0x0000002b,0x0000005f,
+ 0x00000061,0x00000062,0x00050051,0x00000013,0x00000064,0x00000063,0x00000000,0x00050051,
+ 0x00000013,0x00000065,0x00000063,0x00000001,0x00050051,0x00000013,0x00000066,0x00000063,
+ 0x00000002,0x00070050,0x0000003c,0x00000067,0x00000064,0x00000065,0x00000066,0x00000060,
+ 0x00040063,0x0000005a,0x0000005b,0x00000067,0x000100fd,0x00010038
+};
diff --git a/src/display/shaders/a4k_s_conv0.comp b/src/display/shaders/a4k_s_conv0.comp
new file mode 100644
index 0000000..97a0098
--- /dev/null
+++ b/src/display/shaders/a4k_s_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-v3.2-Upscale-CNN-x2-(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.0057322932, 0.12928207, -0.056848746, 0.18680117, -0.0306273, 0.25602463, 0.053723164, 0.20419341, 0.0018709862, 0.022848232, -0.04105527, 0.10169034, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, -1.0);
+ result += mat4(0.009471417, -0.12957802, 0.096014425, 0.21836184, 0.00021601951, -0.22997683, 0.23666254, 0.41192335, 0.021762101, 0.0047863554, 0.008233427, 0.108514786, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 0.0);
+ result += mat4(-0.01156376, -0.18988979, 0.04614705, -0.044767227, 0.01050636, -0.26426336, 0.23741047, 0.0027636609, -0.027718676, -0.14202335, -0.016650287, -0.06637125, 0.0, 0.0, 0.0, 0.0) * go_0(-1.0, 1.0);
+ result += mat4(0.057809234, -0.11033858, 0.056533534, -0.06292466, 0.13880666, -0.18710336, 0.2441031, -0.25326246, 0.0032683122, -0.026437074, 0.0023248852, 7.640766e-05, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, -1.0);
+ result += mat4(-0.49110603, 0.4429004, -0.44015464, -0.41174838, -0.87738293, 0.7808468, -1.0929365, -0.59699076, -0.18409836, 0.185138, -0.11773224, -0.17097276, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 0.0);
+ result += mat4(0.10580959, -0.055947904, -0.03431237, -0.080236495, 0.14862584, -0.15393938, -0.18872876, -0.3170681, 0.03559387, -0.003990826, 0.021298569, 0.012844483, 0.0, 0.0, 0.0, 0.0) * go_0(0.0, 1.0);
+ result += mat4(-0.040715586, -0.25781113, 0.08896714, -0.1225879, -0.15790503, -0.54010904, 0.29588607, 0.10401059, 0.003413123, -0.108357325, 0.0112870345, -0.11888622, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, -1.0);
+ result += mat4(0.0049315444, 0.02376202, -0.08224771, 0.121118225, -0.041512914, -0.027994309, -0.585988, -0.069672115, -0.017247835, 0.0056576864, 0.04319012, 0.055003505, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 0.0);
+ result += mat4(0.37521392, 0.15916082, 0.059708964, 0.19046007, 0.8120325, 0.38343868, 0.3436578, 0.5287958, 0.16570656, 0.06957687, 0.014022592, 0.074799836, 0.0, 0.0, 0.0, 0.0) * go_0(1.0, 1.0);
+ result += vec4(-0.01050964, -0.00939481, 0.17684458, 0.027366742);
+ 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_s_conv0.spv.h b/src/display/shaders/a4k_s_conv0.spv.h
new file mode 100644
index 0000000..a9622f4
--- /dev/null
+++ b/src/display/shaders/a4k_s_conv0.spv.h
@@ -0,0 +1,201 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_s_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,0xbbbbd5f6,0x0004002b,
+ 0x00000006,0x0000002f,0x3e046285,0x0004002b,0x00000006,0x00000030,0xbd68da3b,0x0004002b,
+ 0x00000006,0x00000031,0x3e3f48ce,0x0007002c,0x00000009,0x00000032,0x0000002e,0x0000002f,
+ 0x00000030,0x00000031,0x0004002b,0x00000006,0x00000033,0xbcfae61a,0x0004002b,0x00000006,
+ 0x00000034,0x3e8315a9,0x0004002b,0x00000006,0x00000035,0x3d5c0cd2,0x0004002b,0x00000006,
+ 0x00000036,0x3e511814,0x0007002c,0x00000009,0x00000037,0x00000033,0x00000034,0x00000035,
+ 0x00000036,0x0004002b,0x00000006,0x00000038,0x3af53be1,0x0004002b,0x00000006,0x00000039,
+ 0x3cbb2c37,0x0004002b,0x00000006,0x0000003a,0xbd282992,0x0004002b,0x00000006,0x0000003b,
+ 0x3dd04306,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,0x3c1b2e01,0x0004002b,
+ 0x00000006,0x00000046,0xbe04b01a,0x0004002b,0x00000006,0x00000047,0x3dc4a336,0x0004002b,
+ 0x00000006,0x00000048,0x3e5f9a3f,0x0007002c,0x00000009,0x00000049,0x00000045,0x00000046,
+ 0x00000047,0x00000048,0x0004002b,0x00000006,0x0000004a,0x3962834c,0x0004002b,0x00000006,
+ 0x0000004b,0xbe6b7f0c,0x0004002b,0x00000006,0x0000004c,0x3e7257aa,0x0004002b,0x00000006,
+ 0x0000004d,0x3ed2e79e,0x0007002c,0x00000009,0x0000004e,0x0000004a,0x0000004b,0x0000004c,
+ 0x0000004d,0x0004002b,0x00000006,0x0000004f,0x3cb2466f,0x0004002b,0x00000006,0x00000050,
+ 0x3b9cd6dc,0x0004002b,0x00000006,0x00000051,0x3c06e57f,0x0004002b,0x00000006,0x00000052,
+ 0x3dde3d00,0x0007002c,0x00000009,0x00000053,0x0000004f,0x00000050,0x00000051,0x00000052,
+ 0x0007002c,0x0000002d,0x00000054,0x00000049,0x0000004e,0x00000053,0x0000003e,0x0005002c,
+ 0x00000007,0x00000055,0x00000040,0x0000003d,0x0004002b,0x00000006,0x0000005b,0xbc3d75ed,
+ 0x0004002b,0x00000006,0x0000005c,0xbe427278,0x0004002b,0x00000006,0x0000005d,0x3d3d04b0,
+ 0x0004002b,0x00000006,0x0000005e,0xbd375dd7,0x0007002c,0x00000009,0x0000005f,0x0000005b,
+ 0x0000005c,0x0000005d,0x0000005e,0x0004002b,0x00000006,0x00000060,0x3c2c22de,0x0004002b,
+ 0x00000006,0x00000061,0xbe874d87,0x0004002b,0x00000006,0x00000062,0x3e731bbb,0x0004002b,
+ 0x00000006,0x00000063,0x3b351e89,0x0007002c,0x00000009,0x00000064,0x00000060,0x00000061,
+ 0x00000062,0x00000063,0x0004002b,0x00000006,0x00000065,0xbce31247,0x0004002b,0x00000006,
+ 0x00000066,0xbe116e92,0x0004002b,0x00000006,0x00000067,0xbc88662f,0x0004002b,0x00000006,
+ 0x00000068,0xbd87eda6,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,0x3d6cc960,0x0004002b,0x00000006,0x00000073,
+ 0xbde1f932,0x0004002b,0x00000006,0x00000074,0x3d678fb5,0x0004002b,0x00000006,0x00000075,
+ 0xbd80dea5,0x0007002c,0x00000009,0x00000076,0x00000072,0x00000073,0x00000074,0x00000075,
+ 0x0004002b,0x00000006,0x00000077,0x3e0e2355,0x0004002b,0x00000006,0x00000078,0xbe3f9806,
+ 0x0004002b,0x00000006,0x00000079,0x3e79f62a,0x0004002b,0x00000006,0x0000007a,0xbe81ab9e,
+ 0x0007002c,0x00000009,0x0000007b,0x00000077,0x00000078,0x00000079,0x0000007a,0x0004002b,
+ 0x00000006,0x0000007c,0x3b56312e,0x0004002b,0x00000006,0x0000007d,0xbcd89290,0x0004002b,
+ 0x00000006,0x0000007e,0x3b185d1a,0x0004002b,0x00000006,0x0000007f,0x38a03d0d,0x0007002c,
+ 0x00000009,0x00000080,0x0000007c,0x0000007d,0x0000007e,0x0000007f,0x0007002c,0x0000002d,
+ 0x00000081,0x00000076,0x0000007b,0x00000080,0x0000003e,0x0005002c,0x00000007,0x00000082,
+ 0x0000003d,0x00000040,0x0004002b,0x00000006,0x00000088,0xbefb7240,0x0004002b,0x00000006,
+ 0x00000089,0x3ee2c3d7,0x0004002b,0x00000006,0x0000008a,0xbee15bf3,0x0004002b,0x00000006,
+ 0x0000008b,0xbed2d0af,0x0007002c,0x00000009,0x0000008c,0x00000088,0x00000089,0x0000008a,
+ 0x0000008b,0x0004002b,0x00000006,0x0000008d,0xbf609c2b,0x0004002b,0x00000006,0x0000008e,
+ 0x3f47e593,0x0004002b,0x00000006,0x0000008f,0xbf8be558,0x0004002b,0x00000006,0x00000090,
+ 0xbf18d463,0x0007002c,0x00000009,0x00000091,0x0000008d,0x0000008e,0x0000008f,0x00000090,
+ 0x0004002b,0x00000006,0x00000092,0xbe3c8448,0x0004002b,0x00000006,0x00000093,0x3e3d94d1,
+ 0x0004002b,0x00000006,0x00000094,0xbdf11d9a,0x0004002b,0x00000006,0x00000095,0xbe2f137c,
+ 0x0007002c,0x00000009,0x00000096,0x00000092,0x00000093,0x00000094,0x00000095,0x0007002c,
+ 0x0000002d,0x00000097,0x0000008c,0x00000091,0x00000096,0x0000003e,0x0005002c,0x00000007,
+ 0x00000098,0x0000003d,0x0000003d,0x0004002b,0x00000006,0x0000009e,0x3dd8b2b3,0x0004002b,
+ 0x00000006,0x0000009f,0xbd6529a1,0x0004002b,0x00000006,0x000000a0,0xbd0c8b21,0x0004002b,
+ 0x00000006,0x000000a1,0xbda45308,0x0007002c,0x00000009,0x000000a2,0x0000009e,0x0000009f,
+ 0x000000a0,0x000000a1,0x0004002b,0x00000006,0x000000a3,0x3e18315f,0x0004002b,0x00000006,
+ 0x000000a4,0xbe1da249,0x0004002b,0x00000006,0x000000a5,0xbe41421d,0x0004002b,0x00000006,
+ 0x000000a6,0xbea256c0,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,0x000000a5,
+ 0x000000a6,0x0004002b,0x00000006,0x000000a8,0x3d11cae1,0x0004002b,0x00000006,0x000000a9,
+ 0xbb82c57a,0x0004002b,0x00000006,0x000000aa,0x3cae7a56,0x0004002b,0x00000006,0x000000ab,
+ 0x3c5271ab,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,0x000000ab,
+ 0x0007002c,0x0000002d,0x000000ad,0x000000a2,0x000000a7,0x000000ac,0x0000003e,0x0005002c,
+ 0x00000007,0x000000ae,0x0000003d,0x0000006b,0x0004002b,0x00000006,0x000000b4,0xbd26c563,
+ 0x0004002b,0x00000006,0x000000b5,0xbe83ffd2,0x0004002b,0x00000006,0x000000b6,0x3db63467,
+ 0x0004002b,0x00000006,0x000000b7,0xbdfb0f5d,0x0007002c,0x00000009,0x000000b8,0x000000b4,
+ 0x000000b5,0x000000b6,0x000000b7,0x0004002b,0x00000006,0x000000b9,0xbe21b1db,0x0004002b,
+ 0x00000006,0x000000ba,0xbf0a4496,0x0004002b,0x00000006,0x000000bb,0x3e977e61,0x0004002b,
+ 0x00000006,0x000000bc,0x3dd50381,0x0007002c,0x00000009,0x000000bd,0x000000b9,0x000000ba,
+ 0x000000bb,0x000000bc,0x0004002b,0x00000006,0x000000be,0x3b5faeb4,0x0004002b,0x00000006,
+ 0x000000bf,0xbdddea72,0x0004002b,0x00000006,0x000000c0,0x3c38ed41,0x0004002b,0x00000006,
+ 0x000000c1,0xbdf37a9e,0x0007002c,0x00000009,0x000000c2,0x000000be,0x000000bf,0x000000c0,
+ 0x000000c1,0x0007002c,0x0000002d,0x000000c3,0x000000b8,0x000000bd,0x000000c2,0x0000003e,
+ 0x0005002c,0x00000007,0x000000c4,0x0000006b,0x00000040,0x0004002b,0x00000006,0x000000ca,
+ 0x3ba198cb,0x0004002b,0x00000006,0x000000cb,0x3cc2a891,0x0004002b,0x00000006,0x000000cc,
+ 0xbda8717d,0x0004002b,0x00000006,0x000000cd,0x3df80cd5,0x0007002c,0x00000009,0x000000ce,
+ 0x000000ca,0x000000cb,0x000000cc,0x000000cd,0x0004002b,0x00000006,0x000000cf,0xbd2a0972,
+ 0x0004002b,0x00000006,0x000000d0,0xbce55452,0x0004002b,0x00000006,0x000000d1,0xbf16034f,
+ 0x0004002b,0x00000006,0x000000d2,0xbd8eb041,0x0007002c,0x00000009,0x000000d3,0x000000cf,
+ 0x000000d0,0x000000d1,0x000000d2,0x0004002b,0x00000006,0x000000d4,0xbc8d4b55,0x0004002b,
+ 0x00000006,0x000000d5,0x3bb9641d,0x0004002b,0x00000006,0x000000d6,0x3d30e820,0x0004002b,
+ 0x00000006,0x000000d7,0x3d614b5b,0x0007002c,0x00000009,0x000000d8,0x000000d4,0x000000d5,
+ 0x000000d6,0x000000d7,0x0007002c,0x0000002d,0x000000d9,0x000000ce,0x000000d3,0x000000d8,
+ 0x0000003e,0x0005002c,0x00000007,0x000000da,0x0000006b,0x0000003d,0x0004002b,0x00000006,
+ 0x000000e0,0x3ec01c0a,0x0004002b,0x00000006,0x000000e1,0x3e22fb0e,0x0004002b,0x00000006,
+ 0x000000e2,0x3d749163,0x0004002b,0x00000006,0x000000e3,0x3e4307f7,0x0007002c,0x00000009,
+ 0x000000e4,0x000000e0,0x000000e1,0x000000e2,0x000000e3,0x0004002b,0x00000006,0x000000e5,
+ 0x3f4fe15d,0x0004002b,0x00000006,0x000000e6,0x3ec45213,0x0004002b,0x00000006,0x000000e7,
+ 0x3eaff3ea,0x0004002b,0x00000006,0x000000e8,0x3f075f29,0x0007002c,0x00000009,0x000000e9,
+ 0x000000e5,0x000000e6,0x000000e7,0x000000e8,0x0004002b,0x00000006,0x000000ea,0x3e29aefb,
+ 0x0004002b,0x00000006,0x000000eb,0x3d8e7e51,0x0004002b,0x00000006,0x000000ec,0x3c65bf04,
+ 0x0004002b,0x00000006,0x000000ed,0x3d9930a8,0x0007002c,0x00000009,0x000000ee,0x000000ea,
+ 0x000000eb,0x000000ec,0x000000ed,0x0007002c,0x0000002d,0x000000ef,0x000000e4,0x000000e9,
+ 0x000000ee,0x0000003e,0x0005002c,0x00000007,0x000000f0,0x0000006b,0x0000006b,0x0004002b,
+ 0x00000006,0x000000f6,0xbc2c30a0,0x0004002b,0x00000006,0x000000f7,0xbc19ecb0,0x0004002b,
+ 0x00000006,0x000000f8,0x3e3516bf,0x0004002b,0x00000006,0x000000f9,0x3ce03038,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_s_conv1.comp b/src/display/shaders/a4k_s_conv1.comp
new file mode 100644
index 0000000..7386be3
--- /dev/null
+++ b/src/display/shaders/a4k_s_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-v3.2-Upscale-CNN-x2-(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.011029496, 0.05866063, -0.09460646, -0.017664742, -0.022488879, 0.18384217, -0.00397663, -0.064733066, 0.08466802, 0.10667488, 8.0212536e-05, 0.0908869, 0.13580276, 0.00097438256, 0.12176522, -0.08218466) * go_0(-1.0, -1.0);
+ result += mat4(0.16062798, -0.10190268, 0.03280682, 0.05621916, -0.009684231, -0.08464307, 0.17058301, -0.096469186, 0.1967505, -0.1450099, 0.093607284, -0.28240147, -0.21377413, 0.10079291, -0.1741522, 0.17330575) * go_0(-1.0, 0.0);
+ result += mat4(-0.060160473, 0.06316997, 0.0046929033, -0.049405966, 0.13851729, 0.06830702, -0.0586872, -0.040827133, 0.007052838, -0.03576886, -0.111261636, 0.039155316, -0.07380389, -0.09369825, 0.04471156, 0.09678487) * go_0(-1.0, 1.0);
+ result += mat4(-0.36683616, -0.035950605, -0.24414362, -0.009159744, 0.19335322, -0.099253505, 0.075083904, -0.00076695543, 0.65291303, -0.25599423, 0.19827642, 0.065899536, -0.07423247, -0.068967685, 0.0050554527, -0.060272824) * go_0(0.0, -1.0);
+ result += mat4(-0.020688485, -0.83178276, 0.11104878, 0.26454413, 0.13655476, 0.37675047, -0.22219229, -0.01751935, 0.44552696, 0.92510307, 0.16063261, -0.62011045, 0.19366647, -0.06996067, -0.2504841, 0.00803723) * go_0(0.0, 0.0);
+ result += mat4(0.0051537007, -0.057168536, -0.16110587, 0.25232598, -0.04447099, 0.11997351, 0.14808103, -0.34443566, -0.26212573, -0.21970181, 0.2724405, 0.21050811, -0.07949061, -0.064808235, -0.21208277, -0.0042361654) * go_0(0.0, 1.0);
+ result += mat4(-0.0888952, -0.20169449, 0.19144905, -0.016882861, -0.013283103, 0.07552998, -0.24686803, 0.012453213, -0.065454446, -0.016123284, -0.47316182, 0.070926026, 0.09219782, 0.13118166, 0.074736096, 0.0077910526) * go_0(1.0, -1.0);
+ result += mat4(0.5832154, 0.1138069, -0.039765622, 0.3182784, -0.25497997, 0.0013993139, 0.39285088, -0.48511526, -0.39891505, -0.19094779, -0.082146175, -0.20826934, 0.020590555, -0.0012490178, -0.4398621, 0.14377014) * go_0(1.0, 0.0);
+ result += mat4(0.21917395, 3.4314657e-05, 0.25734863, -0.3433305, 0.015720673, 0.2676127, -0.06807297, 0.15040149, -0.23638041, -0.0050233034, -0.13666134, 0.4542111, -0.033572577, -0.08450588, -0.23341487, 0.053490847) * go_0(1.0, 1.0);
+ result += mat4(-0.17482175, 0.057647135, 0.33135444, 0.0850751, -0.1718849, -0.0854123, 0.036795795, -0.13874969, -0.10903869, -0.19007301, -0.06064334, -0.03786032, -0.036696054, 0.07844446, 0.012523185, -0.01562906) * go_1(-1.0, -1.0);
+ result += mat4(-0.04411997, -0.10331819, 0.10050193, 0.12406485, 0.07431592, 0.30109692, -0.17511666, -0.13263564, -0.10192587, 0.07821255, -0.22415096, 0.25552443, 0.17881326, -0.13914281, 0.109979235, -0.0016463579) * go_1(-1.0, 0.0);
+ result += mat4(-0.01911644, -0.15412527, 0.028903123, 0.20831817, 0.00375175, 0.08110953, 0.074919395, -0.17581624, -0.015677985, 0.06504228, 0.08817818, -0.12518327, -0.09537373, 0.028905088, -0.051288474, 0.054334078) * go_1(-1.0, 1.0);
+ result += mat4(0.2852779, -0.28924024, 0.36805123, 0.21079305, -0.28336474, 0.1679663, -0.08641141, -0.10699407, -0.16090055, 0.1287612, -0.15910125, 0.05734755, 0.15883245, 0.0053026294, 0.080674745, 0.0505137) * go_1(0.0, -1.0);
+ result += mat4(0.17639062, 0.3790122, -0.19588692, -0.020314282, 0.26197383, 0.09014768, 0.19696823, -0.41025418, -0.08308115, -0.33279485, -0.22528782, 0.06172439, -0.1365661, -0.13094363, -0.005086559, 0.089024484) * go_1(0.0, 0.0);
+ result += mat4(0.05262993, 0.0006296959, 0.1657725, -0.32591924, 0.12126701, 0.061543245, -0.10526848, 0.041583937, 0.094976954, 0.09416157, -0.22019257, -0.058390073, -0.2073888, 0.057273377, 0.19558284, 0.004208022) * go_1(0.0, 1.0);
+ result += mat4(0.30005738, 0.18478931, -0.23342943, 0.22455733, -0.016488122, 0.099634305, 0.31620836, -0.15731157, 0.09595808, 0.0013774688, 0.48273298, -0.07027936, -0.18764344, -0.26194447, -0.11794225, -0.012173601) * go_1(1.0, -1.0);
+ result += mat4(0.117986746, -0.13846518, -0.019614812, -0.3011192, 0.5501164, 0.3408611, -0.40090847, 0.15706886, 0.13050972, 0.051776595, 0.20792943, 0.23389706, -0.22965533, -0.053367328, 0.3911586, -0.032988597) * go_1(1.0, 0.0);
+ result += mat4(0.054753624, -0.008485731, -0.2451672, 0.17528129, 0.13657846, 0.010480436, 0.07651423, -0.43316832, 0.12736236, 0.13804524, 0.12529011, -0.30946237, -0.14423579, 0.08403089, 0.24335162, 0.057288036) * go_1(1.0, 1.0);
+ result += vec4(0.012077211, 0.013045883, 0.0380778, -0.02908858);
+ 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_s_conv1.spv.h b/src/display/shaders/a4k_s_conv1.spv.h
new file mode 100644
index 0000000..24e46b5
--- /dev/null
+++ b/src/display/shaders/a4k_s_conv1.spv.h
@@ -0,0 +1,408 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_s_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,0xbc34b50f,0x0004002b,0x00000006,0x0000002f,0x3d704621,0x0004002b,
+ 0x00000006,0x00000030,0xbdc1c108,0x0004002b,0x00000006,0x00000031,0xbc90b5a6,0x0007002c,
+ 0x00000009,0x00000032,0x0000002e,0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,
+ 0x00000033,0xbcb83a99,0x0004002b,0x00000006,0x00000034,0x3e3c411f,0x0004002b,0x00000006,
+ 0x00000035,0xbb824e64,0x0004002b,0x00000006,0x00000036,0xbd8492c5,0x0007002c,0x00000009,
+ 0x00000037,0x00000033,0x00000034,0x00000035,0x00000036,0x0004002b,0x00000006,0x00000038,
+ 0x3dad666d,0x0004002b,0x00000006,0x00000039,0x3dda785c,0x0004002b,0x00000006,0x0000003a,
+ 0x38a837c7,0x0004002b,0x00000006,0x0000003b,0x3dba22e9,0x0007002c,0x00000009,0x0000003c,
+ 0x00000038,0x00000039,0x0000003a,0x0000003b,0x0004002b,0x00000006,0x0000003d,0x3e0b0fe1,
+ 0x0004002b,0x00000006,0x0000003e,0x3a7f6db5,0x0004002b,0x00000006,0x0000003f,0x3df9600b,
+ 0x0004002b,0x00000006,0x00000040,0xbda8506e,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,0x3e247ba9,0x0004002b,0x00000006,0x0000004c,0xbdd0b25a,0x0004002b,
+ 0x00000006,0x0000004d,0x3d066072,0x0004002b,0x00000006,0x0000004e,0x3d664610,0x0007002c,
+ 0x00000009,0x0000004f,0x0000004b,0x0000004c,0x0000004d,0x0000004e,0x0004002b,0x00000006,
+ 0x00000050,0xbc1eaa9c,0x0004002b,0x00000006,0x00000051,0xbdad5959,0x0004002b,0x00000006,
+ 0x00000052,0x3e2ead50,0x0004002b,0x00000006,0x00000053,0xbdc591a3,0x0007002c,0x00000009,
+ 0x00000054,0x00000050,0x00000051,0x00000052,0x00000053,0x0004002b,0x00000006,0x00000055,
+ 0x3e4978f7,0x0004002b,0x00000006,0x00000056,0xbe147d7a,0x0004002b,0x00000006,0x00000057,
+ 0x3dbfb52d,0x0004002b,0x00000006,0x00000058,0xbe9096ed,0x0007002c,0x00000009,0x00000059,
+ 0x00000055,0x00000056,0x00000057,0x00000058,0x0004002b,0x00000006,0x0000005a,0xbe5ae79b,
+ 0x0004002b,0x00000006,0x0000005b,0x3dce6c83,0x0004002b,0x00000006,0x0000005c,0xbe3254f4,
+ 0x0004002b,0x00000006,0x0000005d,0x3e317710,0x0007002c,0x00000009,0x0000005e,0x0000005a,
+ 0x0000005b,0x0000005c,0x0000005d,0x0007002c,0x0000002d,0x0000005f,0x0000004f,0x00000054,
+ 0x00000059,0x0000005e,0x0005002c,0x00000007,0x00000060,0x00000043,0x00000047,0x0004002b,
+ 0x00000006,0x00000068,0xbd766ad4,0x0004002b,0x00000006,0x00000069,0x3d815f42,0x0004002b,
+ 0x00000006,0x0000006a,0x3b99c6ed,0x0004002b,0x00000006,0x0000006b,0xbd4a5de9,0x0007002c,
+ 0x00000009,0x0000006c,0x00000068,0x00000069,0x0000006a,0x0000006b,0x0004002b,0x00000006,
+ 0x0000006d,0x3e0dd77a,0x0004002b,0x00000006,0x0000006e,0x3d8be48d,0x0004002b,0x00000006,
+ 0x0000006f,0xbd7061fd,0x0004002b,0x00000006,0x00000070,0xbd273a5a,0x0007002c,0x00000009,
+ 0x00000071,0x0000006d,0x0000006e,0x0000006f,0x00000070,0x0004002b,0x00000006,0x00000072,
+ 0x3be71b7e,0x0004002b,0x00000006,0x00000073,0xbd12825e,0x0004002b,0x00000006,0x00000074,
+ 0xbde3dd24,0x0004002b,0x00000006,0x00000075,0x3d206153,0x0007002c,0x00000009,0x00000076,
+ 0x00000072,0x00000073,0x00000074,0x00000075,0x0004002b,0x00000006,0x00000077,0xbd97267e,
+ 0x0004002b,0x00000006,0x00000078,0xbdbfe4de,0x0004002b,0x00000006,0x00000079,0x3d372378,
+ 0x0004002b,0x00000006,0x0000007a,0x3dc63725,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,0xbebbd1f3,0x0004002b,
+ 0x00000006,0x00000087,0xbd1340f1,0x0004002b,0x00000006,0x00000088,0xbe7a00c9,0x0004002b,
+ 0x00000006,0x00000089,0xbc1612c0,0x0007002c,0x00000009,0x0000008a,0x00000086,0x00000087,
+ 0x00000088,0x00000089,0x0004002b,0x00000006,0x0000008b,0x3e45fe63,0x0004002b,0x00000006,
+ 0x0000008c,0xbdcb456c,0x0004002b,0x00000006,0x0000008d,0x3d99c597,0x0004002b,0x00000006,
+ 0x0000008e,0xba490d82,0x0007002c,0x00000009,0x0000008f,0x0000008b,0x0000008c,0x0000008d,
+ 0x0000008e,0x0004002b,0x00000006,0x00000090,0x3f27254f,0x0004002b,0x00000006,0x00000091,
+ 0xbe8311ad,0x0004002b,0x00000006,0x00000092,0x3e4b08f9,0x0004002b,0x00000006,0x00000093,
+ 0x3d86f656,0x0007002c,0x00000009,0x00000094,0x00000090,0x00000091,0x00000092,0x00000093,
+ 0x0004002b,0x00000006,0x00000095,0xbd980731,0x0004002b,0x00000006,0x00000096,0xbd8d3eee,
+ 0x0004002b,0x00000006,0x00000097,0x3ba5a836,0x0004002b,0x00000006,0x00000098,0xbd76e0a3,
+ 0x0007002c,0x00000009,0x00000099,0x00000095,0x00000096,0x00000097,0x00000098,0x0007002c,
+ 0x0000002d,0x0000009a,0x0000008a,0x0000008f,0x00000094,0x00000099,0x0005002c,0x00000007,
+ 0x0000009b,0x00000047,0x00000043,0x0004002b,0x00000006,0x000000a3,0xbca97ae6,0x0004002b,
+ 0x00000006,0x000000a4,0xbf54efb7,0x0004002b,0x00000006,0x000000a5,0x3de36d8b,0x0004002b,
+ 0x00000006,0x000000a6,0x3e877254,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,
+ 0x000000a5,0x000000a6,0x0004002b,0x00000006,0x000000a8,0x3e0bd503,0x0004002b,0x00000006,
+ 0x000000a9,0x3ec0e570,0x0004002b,0x00000006,0x000000aa,0xbe638660,0x0004002b,0x00000006,
+ 0x000000ab,0xbc8f84bd,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,
+ 0x000000ab,0x0004002b,0x00000006,0x000000ad,0x3ee41c1c,0x0004002b,0x00000006,0x000000ae,
+ 0x3f6cd38e,0x0004002b,0x00000006,0x000000af,0x3e247ce0,0x0004002b,0x00000006,0x000000b0,
+ 0xbf1ebf8f,0x0007002c,0x00000009,0x000000b1,0x000000ad,0x000000ae,0x000000af,0x000000b0,
+ 0x0004002b,0x00000006,0x000000b2,0x3e465081,0x0004002b,0x00000006,0x000000b3,0xbd8f478a,
+ 0x0004002b,0x00000006,0x000000b4,0xbe803f74,0x0004002b,0x00000006,0x000000b5,0x3c03ae96,
+ 0x0007002c,0x00000009,0x000000b6,0x000000b2,0x000000b3,0x000000b4,0x000000b5,0x0007002c,
+ 0x0000002d,0x000000b7,0x000000a7,0x000000ac,0x000000b1,0x000000b6,0x0005002c,0x00000007,
+ 0x000000b8,0x00000047,0x00000047,0x0004002b,0x00000006,0x000000c0,0x3ba8e060,0x0004002b,
+ 0x00000006,0x000000c1,0xbd6a298e,0x0004002b,0x00000006,0x000000c2,0xbe24f8f0,0x0004002b,
+ 0x00000006,0x000000c3,0x3e8130df,0x0007002c,0x00000009,0x000000c4,0x000000c0,0x000000c1,
+ 0x000000c2,0x000000c3,0x0004002b,0x00000006,0x000000c5,0xbd362736,0x0004002b,0x00000006,
+ 0x000000c6,0x3df5b4ac,0x0004002b,0x00000006,0x000000c7,0x3e17a28e,0x0004002b,0x00000006,
+ 0x000000c8,0xbeb059df,0x0007002c,0x00000009,0x000000c9,0x000000c5,0x000000c6,0x000000c7,
+ 0x000000c8,0x0004002b,0x00000006,0x000000ca,0xbe863558,0x0004002b,0x00000006,0x000000cb,
+ 0xbe60f983,0x0004002b,0x00000006,0x000000cc,0x3e8b7d52,0x0004002b,0x00000006,0x000000cd,
+ 0x3e578f70,0x0007002c,0x00000009,0x000000ce,0x000000ca,0x000000cb,0x000000cc,0x000000cd,
+ 0x0004002b,0x00000006,0x000000cf,0xbda2cbf9,0x0004002b,0x00000006,0x000000d0,0xbd84ba2e,
+ 0x0004002b,0x00000006,0x000000d1,0xbe592c3a,0x0004002b,0x00000006,0x000000d2,0xbb8acf88,
+ 0x0007002c,0x00000009,0x000000d3,0x000000cf,0x000000d0,0x000000d1,0x000000d2,0x0007002c,
+ 0x0000002d,0x000000d4,0x000000c4,0x000000c9,0x000000ce,0x000000d3,0x0005002c,0x00000007,
+ 0x000000d5,0x00000047,0x0000007d,0x0004002b,0x00000006,0x000000dd,0xbdb60eb0,0x0004002b,
+ 0x00000006,0x000000de,0xbe4e8900,0x0004002b,0x00000006,0x000000df,0x3e440b38,0x0004002b,
+ 0x00000006,0x000000e0,0xbc8a4ded,0x0007002c,0x00000009,0x000000e1,0x000000dd,0x000000de,
+ 0x000000df,0x000000e0,0x0004002b,0x00000006,0x000000e2,0xbc59a15f,0x0004002b,0x00000006,
+ 0x000000e3,0x3d9aaf76,0x0004002b,0x00000006,0x000000e4,0xbe7ccaf9,0x0004002b,0x00000006,
+ 0x000000e5,0x3c4c0890,0x0007002c,0x00000009,0x000000e6,0x000000e2,0x000000e3,0x000000e4,
+ 0x000000e5,0x0004002b,0x00000006,0x000000e7,0xbd860cfb,0x0004002b,0x00000006,0x000000e8,
+ 0xbc8414fa,0x0004002b,0x00000006,0x000000e9,0xbef24244,0x0004002b,0x00000006,0x000000ea,
+ 0x3d9141aa,0x0007002c,0x00000009,0x000000eb,0x000000e7,0x000000e8,0x000000e9,0x000000ea,
+ 0x0004002b,0x00000006,0x000000ec,0x3dbcd236,0x0004002b,0x00000006,0x000000ed,0x3e06547c,
+ 0x0004002b,0x00000006,0x000000ee,0x3d990f3d,0x0004002b,0x00000006,0x000000ef,0x3bff4c16,
+ 0x0007002c,0x00000009,0x000000f0,0x000000ec,0x000000ed,0x000000ee,0x000000ef,0x0007002c,
+ 0x0000002d,0x000000f1,0x000000e1,0x000000e6,0x000000eb,0x000000f0,0x0005002c,0x00000007,
+ 0x000000f2,0x0000007d,0x00000043,0x0004002b,0x00000006,0x000000fa,0x3f154d9b,0x0004002b,
+ 0x00000006,0x000000fb,0x3de91398,0x0004002b,0x00000006,0x000000fc,0xbd22e147,0x0004002b,
+ 0x00000006,0x000000fd,0x3ea2f563,0x0007002c,0x00000009,0x000000fe,0x000000fa,0x000000fb,
+ 0x000000fc,0x000000fd,0x0004002b,0x00000006,0x000000ff,0xbe828cbc,0x0004002b,0x00000006,
+ 0x00000100,0x3ab7692f,0x0004002b,0x00000006,0x00000101,0x3ec923c0,0x0004002b,0x00000006,
+ 0x00000102,0xbef86107,0x0007002c,0x00000009,0x00000103,0x000000ff,0x00000100,0x00000101,
+ 0x00000102,0x0004002b,0x00000006,0x00000104,0xbecc3e98,0x0004002b,0x00000006,0x00000105,
+ 0xbe4387d1,0x0004002b,0x00000006,0x00000106,0xbda83c41,0x0004002b,0x00000006,0x00000107,
+ 0xbe55448f,0x0007002c,0x00000009,0x00000108,0x00000104,0x00000105,0x00000106,0x00000107,
+ 0x0004002b,0x00000006,0x00000109,0x3ca8ad86,0x0004002b,0x00000006,0x0000010a,0xbaa3b615,
+ 0x0004002b,0x00000006,0x0000010b,0xbee1359b,0x0004002b,0x00000006,0x0000010c,0x3e13387b,
+ 0x0007002c,0x00000009,0x0000010d,0x00000109,0x0000010a,0x0000010b,0x0000010c,0x0007002c,
+ 0x0000002d,0x0000010e,0x000000fe,0x00000103,0x00000108,0x0000010d,0x0005002c,0x00000007,
+ 0x0000010f,0x0000007d,0x00000047,0x0004002b,0x00000006,0x00000117,0x3e606f23,0x0004002b,
+ 0x00000006,0x00000118,0x380fed15,0x0004002b,0x00000006,0x00000119,0x3e83c333,0x0004002b,
+ 0x00000006,0x0000011a,0xbeafc904,0x0007002c,0x00000009,0x0000011b,0x00000117,0x00000118,
+ 0x00000119,0x0000011a,0x0004002b,0x00000006,0x0000011c,0x3c80c8a4,0x0004002b,0x00000006,
+ 0x0000011d,0x3e890488,0x0004002b,0x00000006,0x0000011e,0xbd8b69d7,0x0004002b,0x00000006,
+ 0x0000011f,0x3e1a02d9,0x0007002c,0x00000009,0x00000120,0x0000011c,0x0000011d,0x0000011e,
+ 0x0000011f,0x0004002b,0x00000006,0x00000121,0xbe720db5,0x0004002b,0x00000006,0x00000122,
+ 0xbba49a86,0x0004002b,0x00000006,0x00000123,0xbe0bf0f3,0x0004002b,0x00000006,0x00000124,
+ 0x3ee88e5b,0x0007002c,0x00000009,0x00000125,0x00000121,0x00000122,0x00000123,0x00000124,
+ 0x0004002b,0x00000006,0x00000126,0xbd098366,0x0004002b,0x00000006,0x00000127,0xbdad116b,
+ 0x0004002b,0x00000006,0x00000128,0xbe6f044f,0x0004002b,0x00000006,0x00000129,0x3d5b1938,
+ 0x0007002c,0x00000009,0x0000012a,0x00000126,0x00000127,0x00000128,0x00000129,0x0007002c,
+ 0x0000002d,0x0000012b,0x0000011b,0x00000120,0x00000125,0x0000012a,0x0005002c,0x00000007,
+ 0x0000012c,0x0000007d,0x0000007d,0x0004002b,0x00000006,0x00000134,0xbe330479,0x0004002b,
+ 0x00000006,0x00000135,0x3d6c1f67,0x0004002b,0x00000006,0x00000136,0x3ea9a74a,0x0004002b,
+ 0x00000006,0x00000137,0x3dae3bdb,0x0007002c,0x00000009,0x00000138,0x00000134,0x00000135,
+ 0x00000136,0x00000137,0x0004002b,0x00000006,0x00000139,0xbe300298,0x0004002b,0x00000006,
+ 0x0000013a,0xbdaeeca5,0x0004002b,0x00000006,0x0000013b,0x3d16b730,0x0004002b,0x00000006,
+ 0x0000013c,0xbe0e1466,0x0007002c,0x00000009,0x0000013d,0x00000139,0x0000013a,0x0000013b,
+ 0x0000013c,0x0004002b,0x00000006,0x0000013e,0xbddf4fad,0x0004002b,0x00000006,0x0000013f,
+ 0xbe42a280,0x0004002b,0x00000006,0x00000140,0xbd786527,0x0004002b,0x00000006,0x00000141,
+ 0xbd1b136c,0x0007002c,0x00000009,0x00000142,0x0000013e,0x0000013f,0x00000140,0x00000141,
+ 0x0004002b,0x00000006,0x00000143,0xbd164e9a,0x0004002b,0x00000006,0x00000144,0x3da0a77d,
+ 0x0004002b,0x00000006,0x00000145,0x3c4d2e0c,0x0004002b,0x00000006,0x00000146,0xbc800884,
+ 0x0007002c,0x00000009,0x00000147,0x00000143,0x00000144,0x00000145,0x00000146,0x0007002c,
+ 0x0000002d,0x00000148,0x00000138,0x0000013d,0x00000142,0x00000147,0x0004002b,0x00000006,
+ 0x00000151,0xbd34b724,0x0004002b,0x00000006,0x00000152,0xbdd3987d,0x0004002b,0x00000006,
+ 0x00000153,0x3dcdd3f5,0x0004002b,0x00000006,0x00000154,0x3dfe15b6,0x0007002c,0x00000009,
+ 0x00000155,0x00000151,0x00000152,0x00000153,0x00000154,0x0004002b,0x00000006,0x00000156,
+ 0x3d9832f2,0x0004002b,0x00000006,0x00000157,0x3e9a2960,0x0004002b,0x00000006,0x00000158,
+ 0xbe3351c8,0x0004002b,0x00000006,0x00000159,0xbe07d1a3,0x0007002c,0x00000009,0x0000015a,
+ 0x00000156,0x00000157,0x00000158,0x00000159,0x0004002b,0x00000006,0x0000015b,0xbdd0be83,
+ 0x0004002b,0x00000006,0x0000015c,0x3da02de7,0x0004002b,0x00000006,0x0000015d,0xbe6587d4,
+ 0x0004002b,0x00000006,0x0000015e,0x3e82d419,0x0007002c,0x00000009,0x0000015f,0x0000015b,
+ 0x0000015c,0x0000015d,0x0000015e,0x0004002b,0x00000006,0x00000160,0x3e371ad3,0x0004002b,
+ 0x00000006,0x00000161,0xbe0e7b74,0x0004002b,0x00000006,0x00000162,0x3de13ccb,0x0004002b,
+ 0x00000006,0x00000163,0xbad7ca9b,0x0007002c,0x00000009,0x00000164,0x00000160,0x00000161,
+ 0x00000162,0x00000163,0x0007002c,0x0000002d,0x00000165,0x00000155,0x0000015a,0x0000015f,
+ 0x00000164,0x0004002b,0x00000006,0x0000016e,0xbc9c9a15,0x0004002b,0x00000006,0x0000016f,
+ 0xbe1dd304,0x0004002b,0x00000006,0x00000170,0x3cecc63e,0x0004002b,0x00000006,0x00000171,
+ 0x3e55515c,0x0007002c,0x00000009,0x00000172,0x0000016e,0x0000016f,0x00000170,0x00000171,
+ 0x0004002b,0x00000006,0x00000173,0x3b75dfec,0x0004002b,0x00000006,0x00000174,0x3da61cc1,
+ 0x0004002b,0x00000006,0x00000175,0x3d996f57,0x0004002b,0x00000006,0x00000176,0xbe34092c,
+ 0x0007002c,0x00000009,0x00000177,0x00000173,0x00000174,0x00000175,0x00000176,0x0004002b,
+ 0x00000006,0x00000178,0xbc806f1e,0x0004002b,0x00000006,0x00000179,0x3d8534e3,0x0004002b,
+ 0x00000006,0x0000017a,0x3db496c3,0x0004002b,0x00000006,0x0000017b,0xbe00300b,0x0007002c,
+ 0x00000009,0x0000017c,0x00000178,0x00000179,0x0000017a,0x0000017b,0x0004002b,0x00000006,
+ 0x0000017d,0xbdc3534d,0x0004002b,0x00000006,0x0000017e,0x3cecca5d,0x0004002b,0x00000006,
+ 0x0000017f,0xbd5213dd,0x0004002b,0x00000006,0x00000180,0x3d5e8d69,0x0007002c,0x00000009,
+ 0x00000181,0x0000017d,0x0000017e,0x0000017f,0x00000180,0x0007002c,0x0000002d,0x00000182,
+ 0x00000172,0x00000177,0x0000017c,0x00000181,0x0004002b,0x00000006,0x0000018b,0x3e920ff2,
+ 0x0004002b,0x00000006,0x0000018c,0xbe94174c,0x0004002b,0x00000006,0x0000018d,0x3ebc7136,
+ 0x0004002b,0x00000006,0x0000018e,0x3e57da22,0x0007002c,0x00000009,0x0000018f,0x0000018b,
+ 0x0000018c,0x0000018d,0x0000018e,0x0004002b,0x00000006,0x00000190,0xbe91152f,0x0004002b,
+ 0x00000006,0x00000191,0x3e2bff5c,0x0004002b,0x00000006,0x00000192,0xbdb0f877,0x0004002b,
+ 0x00000006,0x00000193,0xbddb1fb5,0x0007002c,0x00000009,0x00000194,0x00000190,0x00000191,
+ 0x00000192,0x00000193,0x0004002b,0x00000006,0x00000195,0xbe24c31d,0x0004002b,0x00000006,
+ 0x00000196,0x3e03d9fa,0x0004002b,0x00000006,0x00000197,0xbe22eb70,0x0004002b,0x00000006,
+ 0x00000198,0x3d6ae544,0x0007002c,0x00000009,0x00000199,0x00000195,0x00000196,0x00000197,
+ 0x00000198,0x0004002b,0x00000006,0x0000019a,0x3e22a4f9,0x0004002b,0x00000006,0x0000019b,
+ 0x3badc1ae,0x0004002b,0x00000006,0x0000019c,0x3da538cd,0x0004002b,0x00000006,0x0000019d,
+ 0x3d4ee774,0x0007002c,0x00000009,0x0000019e,0x0000019a,0x0000019b,0x0000019c,0x0000019d,
+ 0x0007002c,0x0000002d,0x0000019f,0x0000018f,0x00000194,0x00000199,0x0000019e,0x0004002b,
+ 0x00000006,0x000001a8,0x3e349fbe,0x0004002b,0x00000006,0x000001a9,0x3ec20de3,0x0004002b,
+ 0x00000006,0x000001aa,0xbe489695,0x0004002b,0x00000006,0x000001ab,0xbca66a23,0x0007002c,
+ 0x00000009,0x000001ac,0x000001a8,0x000001a9,0x000001aa,0x000001ab,0x0004002b,0x00000006,
+ 0x000001ad,0x3e86216f,0x0004002b,0x00000006,0x000001ae,0x3db89f59,0x0004002b,0x00000006,
+ 0x000001af,0x3e49b20a,0x0004002b,0x00000006,0x000001b0,0xbed20cd6,0x0007002c,0x00000009,
+ 0x000001b1,0x000001ad,0x000001ae,0x000001af,0x000001b0,0x0004002b,0x00000006,0x000001b2,
+ 0xbdaa2673,0x0004002b,0x00000006,0x000001b3,0xbeaa6416,0x0004002b,0x00000006,0x000001b4,
+ 0xbe66b1da,0x0004002b,0x00000006,0x000001b5,0x3d7cd2b7,0x0007002c,0x00000009,0x000001b6,
+ 0x000001b2,0x000001b3,0x000001b4,0x000001b5,0x0004002b,0x00000006,0x000001b7,0xbe0bd7fc,
+ 0x0004002b,0x00000006,0x000001b8,0xbe061616,0x0004002b,0x00000006,0x000001b9,0xbba6ad26,
+ 0x0004002b,0x00000006,0x000001ba,0x3db65278,0x0007002c,0x00000009,0x000001bb,0x000001b7,
+ 0x000001b8,0x000001b9,0x000001ba,0x0007002c,0x0000002d,0x000001bc,0x000001ac,0x000001b1,
+ 0x000001b6,0x000001bb,0x0004002b,0x00000006,0x000001c5,0x3d57927b,0x0004002b,0x00000006,
+ 0x000001c6,0x3a25122d,0x0004002b,0x00000006,0x000001c7,0x3e29c044,0x0004002b,0x00000006,
+ 0x000001c8,0xbea6dee3,0x0007002c,0x00000009,0x000001c9,0x000001c5,0x000001c6,0x000001c7,
+ 0x000001c8,0x0004002b,0x00000006,0x000001ca,0x3df85ad7,0x0004002b,0x00000006,0x000001cb,
+ 0x3d7c14c5,0x0004002b,0x00000006,0x000001cc,0xbdd79700,0x0004002b,0x00000006,0x000001cd,
+ 0x3d2a53eb,0x0007002c,0x00000009,0x000001ce,0x000001ca,0x000001cb,0x000001cc,0x000001cd,
+ 0x0004002b,0x00000006,0x000001cf,0x3dc28347,0x0004002b,0x00000006,0x000001d0,0x3dc0d7c8,
+ 0x0004002b,0x00000006,0x000001d1,0xbe617a29,0x0004002b,0x00000006,0x000001d2,0xbd6f2a6e,
+ 0x0007002c,0x00000009,0x000001d3,0x000001cf,0x000001d0,0x000001d1,0x000001d2,0x0004002b,
+ 0x00000006,0x000001d4,0xbe545dbb,0x0004002b,0x00000006,0x000001d5,0x3d6a977d,0x0004002b,
+ 0x00000006,0x000001d6,0x3e4846de,0x0004002b,0x00000006,0x000001d7,0x3b89e372,0x0007002c,
+ 0x00000009,0x000001d8,0x000001d4,0x000001d5,0x000001d6,0x000001d7,0x0007002c,0x0000002d,
+ 0x000001d9,0x000001c9,0x000001ce,0x000001d3,0x000001d8,0x0004002b,0x00000006,0x000001e2,
+ 0x3e99a11f,0x0004002b,0x00000006,0x000001e3,0x3e3d3969,0x0004002b,0x00000006,0x000001e4,
+ 0xbe6f0820,0x0004002b,0x00000006,0x000001e5,0x3e65f25b,0x0007002c,0x00000009,0x000001e6,
+ 0x000001e2,0x000001e3,0x000001e4,0x000001e5,0x0004002b,0x00000006,0x000001e7,0xbc871219,
+ 0x0004002b,0x00000006,0x000001e8,0x3dcc0d12,0x0004002b,0x00000006,0x000001e9,0x3ea1e610,
+ 0x0004002b,0x00000006,0x000001ea,0xbe211649,0x0007002c,0x00000009,0x000001eb,0x000001e7,
+ 0x000001e8,0x000001e9,0x000001ea,0x0004002b,0x00000006,0x000001ec,0x3dc485ab,0x0004002b,
+ 0x00000006,0x000001ed,0x3ab48c2f,0x0004002b,0x00000006,0x000001ee,0x3ef728c7,0x0004002b,
+ 0x00000006,0x000001ef,0xbd8feea0,0x0007002c,0x00000009,0x000001f0,0x000001ec,0x000001ed,
+ 0x000001ee,0x000001ef,0x0004002b,0x00000006,0x000001f1,0xbe40259a,0x0004002b,0x00000006,
+ 0x000001f2,0xbe861d96,0x0004002b,0x00000006,0x000001f3,0xbdf18bb5,0x0004002b,0x00000006,
+ 0x000001f4,0xbc4773c9,0x0007002c,0x00000009,0x000001f5,0x000001f1,0x000001f2,0x000001f3,
+ 0x000001f4,0x0007002c,0x0000002d,0x000001f6,0x000001e6,0x000001eb,0x000001f0,0x000001f5,
+ 0x0004002b,0x00000006,0x000001ff,0x3df1a309,0x0004002b,0x00000006,0x00000200,0xbe0dc9d1,
+ 0x0004002b,0x00000006,0x00000201,0xbca0af3e,0x0004002b,0x00000006,0x00000202,0xbe9a2c4c,
+ 0x0007002c,0x00000009,0x00000203,0x000001ff,0x00000200,0x00000201,0x00000202,0x0004002b,
+ 0x00000006,0x00000204,0x3f0cd46e,0x0004002b,0x00000006,0x00000205,0x3eae8559,0x0004002b,
+ 0x00000006,0x00000206,0xbecd43e0,0x0004002b,0x00000006,0x00000207,0x3e20d6a9,0x0007002c,
+ 0x00000009,0x00000208,0x00000204,0x00000205,0x00000206,0x00000207,0x0004002b,0x00000006,
+ 0x00000209,0x3e05a457,0x0004002b,0x00000006,0x0000020a,0x3d5413b2,0x0004002b,0x00000006,
+ 0x0000020b,0x3e54eb74,0x0004002b,0x00000006,0x0000020c,0x3e6f82b6,0x0007002c,0x00000009,
+ 0x0000020d,0x00000209,0x0000020a,0x0000020b,0x0000020c,0x0004002b,0x00000006,0x0000020e,
+ 0xbe6b2ac4,0x0004002b,0x00000006,0x0000020f,0xbd5a97b3,0x0004002b,0x00000006,0x00000210,
+ 0x3ec845f1,0x0004002b,0x00000006,0x00000211,0xbd071f0d,0x0007002c,0x00000009,0x00000212,
+ 0x0000020e,0x0000020f,0x00000210,0x00000211,0x0007002c,0x0000002d,0x00000213,0x00000203,
+ 0x00000208,0x0000020d,0x00000212,0x0004002b,0x00000006,0x0000021c,0x3d604556,0x0004002b,
+ 0x00000006,0x0000021d,0xbc0b07bc,0x0004002b,0x00000006,0x0000021e,0xbe7b0d1c,0x0004002b,
+ 0x00000006,0x0000021f,0x3e337cf0,0x0007002c,0x00000009,0x00000220,0x0000021c,0x0000021d,
+ 0x0000021e,0x0000021f,0x0004002b,0x00000006,0x00000221,0x3e0bdb39,0x0004002b,0x00000006,
+ 0x00000222,0x3c2bb622,0x0004002b,0x00000006,0x00000223,0x3d9cb37e,0x0004002b,0x00000006,
+ 0x00000224,0xbeddc83d,0x0007002c,0x00000009,0x00000225,0x00000221,0x00000222,0x00000223,
+ 0x00000224,0x0004002b,0x00000006,0x00000226,0x3e026b47,0x0004002b,0x00000006,0x00000227,
+ 0x3e0d5bbb,0x0004002b,0x00000006,0x00000228,0x3e004c0d,0x0004002b,0x00000006,0x00000229,
+ 0xbe9e71da,0x0007002c,0x00000009,0x0000022a,0x00000226,0x00000227,0x00000228,0x00000229,
+ 0x0004002b,0x00000006,0x0000022b,0xbe13b28c,0x0004002b,0x00000006,0x0000022c,0x3dac1863,
+ 0x0004002b,0x00000006,0x0000022d,0x3e79312b,0x0004002b,0x00000006,0x0000022e,0x3d6aa6dc,
+ 0x0007002c,0x00000009,0x0000022f,0x0000022b,0x0000022c,0x0000022d,0x0000022e,0x0007002c,
+ 0x0000002d,0x00000230,0x00000220,0x00000225,0x0000022a,0x0000022f,0x0004002b,0x00000006,
+ 0x00000239,0x3c45df7f,0x0004002b,0x00000006,0x0000023a,0x3c55be66,0x0004002b,0x00000006,
+ 0x0000023b,0x3d1bf778,0x0004002b,0x00000006,0x0000023c,0xbcee4b2c,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_s_conv2.comp b/src/display/shaders/a4k_s_conv2.comp
new file mode 100644
index 0000000..ab11fd2
--- /dev/null
+++ b/src/display/shaders/a4k_s_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-v3.2-Upscale-CNN-x2-(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.036115196, -0.06971895, -0.07508942, 0.016036168, 0.12120111, 0.24536026, 0.044755507, -0.20663576, 0.029635755, -0.15427187, 0.027148994, -0.20795093, 0.10170582, 0.077919215, 0.66063017, -0.4632968) * go_0(-1.0, -1.0);
+ result += mat4(-0.0052889925, -0.019060908, -0.08660142, -0.022095207, -0.08097976, -0.015142803, -0.18552722, -0.078493506, -0.16293915, -0.20099808, -0.08370822, 0.3701389, 0.09094984, 0.2487225, 0.24338846, 0.044003833) * go_0(-1.0, 0.0);
+ result += mat4(-0.061406493, -0.017232792, -0.10917424, 0.11203319, 0.040699825, -0.019294346, 0.084953666, -0.018133596, 0.07209552, 0.016069936, 0.17805555, -0.089537814, 0.15809004, 0.1027023, 0.15044671, -0.15530108) * go_0(-1.0, 1.0);
+ result += mat4(0.0948676, -0.040305693, -0.005591629, -0.048048403, -0.07547777, 0.056606572, 0.021390207, 0.32600567, -0.20805131, -0.099587254, 0.029613169, 0.0092129605, -0.29429698, -0.09898621, 0.44470885, -0.89487344) * go_0(0.0, -1.0);
+ result += mat4(-0.122259885, 0.11445877, 0.06666907, 0.1869428, -0.1553992, -0.1658741, 0.2988138, -0.57746625, -0.34609964, 0.11169158, -0.41877756, 0.38075635, 0.21293911, 0.09640372, -0.12754214, -0.08026104) * go_0(0.0, 0.0);
+ result += mat4(0.15128808, 0.050087795, 0.09219755, -0.18080945, 0.0044571217, -0.046019405, -0.1289922, 0.20305426, 0.19601224, 0.04667917, 0.17465587, 0.027672665, 0.18441725, 0.06845396, 0.11288585, -0.23283863) * go_0(0.0, 1.0);
+ result += mat4(-0.072962, -0.06639447, 0.049347494, -0.1386401, 0.10396071, 0.08187777, -0.04280746, 0.07390891, 0.06628344, 0.037797406, 0.021885803, -0.013147403, 0.22376558, 0.36243078, 0.12874891, -0.0023783944) * go_0(1.0, -1.0);
+ result += mat4(0.074945286, 0.16045591, -0.11798349, 0.12910712, 0.054760084, -0.095626175, -0.047832094, 0.03493912, 0.11817307, 0.037452437, -0.14301221, -0.027356789, -0.052390423, 0.11373512, 0.07686775, 0.010008694) * go_0(1.0, 0.0);
+ result += mat4(-0.023999173, -0.091900624, 0.02388157, 0.03173873, 0.0065633506, -0.033716757, -0.1198324, 0.12057766, 0.026465805, -0.07517131, -0.07760598, 0.060463097, 0.07345541, 0.046037503, 0.21101558, -0.26785463) * go_0(1.0, 1.0);
+ result += mat4(0.15544604, -0.03902825, 0.04630384, -0.25173616, -0.0691359, 0.07476507, 0.009071253, 0.089964196, -0.26539803, -0.3958477, -0.22155671, 0.20735882, -0.105860494, -0.003996804, -0.044815883, 0.39544627) * go_1(-1.0, -1.0);
+ result += mat4(0.6169709, 0.23717614, -0.37884676, -0.7484867, 0.020169826, -0.30718836, 1.0965588, -0.20711036, -0.39149985, -0.06843563, -0.06522909, 0.103805855, 0.03265825, -0.15137726, 0.12837899, -0.01294922) * go_1(-1.0, 0.0);
+ result += mat4(-0.23638196, -0.4560866, -0.11948684, -0.1464144, 0.10690008, 0.007835961, 0.11864342, -0.13101323, -0.16509797, 0.075027354, 0.08122998, 0.13451207, 0.0011890623, 0.052157886, 0.08372405, -0.07085038) * go_1(-1.0, 1.0);
+ result += mat4(-0.21997726, -0.16488647, -0.0291317, 0.17997476, 0.1493211, 0.027494298, 0.0034613227, -0.3207727, 0.18699001, 0.14728633, -0.042895135, -0.07612043, 0.125076, -0.14714554, -0.03480009, -0.22753975) * go_1(0.0, -1.0);
+ result += mat4(-0.5342686, -0.7426105, -0.38294584, 0.42549992, 0.46053204, 0.7867879, 0.106234804, -0.041163098, 0.5198579, -0.5219404, 0.14809476, -0.41802374, 0.06810794, -0.15122683, -0.047409, 0.13178343) * go_1(0.0, 0.0);
+ result += mat4(-0.50428164, 0.18220626, 0.35510704, -0.081787474, 0.03155813, 0.019284263, 0.0032388573, -0.20513348, -0.05385551, 0.17803182, -0.26206362, 0.2870375, 0.008557827, 0.08401449, -0.027598893, -0.010791235) * go_1(0.0, 1.0);
+ result += mat4(0.16657415, 0.067647465, 0.093076974, -0.14438486, -0.10017002, 0.0022367141, 0.03250936, -0.052794546, -0.009178676, -0.019673595, -0.0016697067, -0.15424626, -0.112123474, -0.11079971, 0.011987111, -0.11747758) * go_1(1.0, -1.0);
+ result += mat4(-0.023021797, -0.058703423, -0.037978355, -0.062433913, -0.13130441, 0.048656322, 0.056839373, 0.109036915, -0.07823158, 0.14785293, 0.058555078, -0.11679035, -0.14002073, 0.07395252, 0.098268874, -0.06710464) * go_1(1.0, 0.0);
+ result += mat4(0.14906375, 0.030001195, -0.10338215, 0.0662968, -0.161953, -0.13682815, 0.09563142, 0.009514228, -0.009491218, 0.06737101, -0.1393389, 0.15231515, -0.073147796, 0.00767062, 0.028675212, 0.014213088) * go_1(1.0, 1.0);
+ result += vec4(0.018736731, -0.0026039074, 0.050130025, -0.055364225);
+ 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_s_conv2.spv.h b/src/display/shaders/a4k_s_conv2.spv.h
new file mode 100644
index 0000000..e50f8ec
--- /dev/null
+++ b/src/display/shaders/a4k_s_conv2.spv.h
@@ -0,0 +1,408 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_s_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,0xbd13ed87,0x0004002b,0x00000006,0x0000002f,0xbd8ec8cf,0x0004002b,
+ 0x00000006,0x00000030,0xbd99c87b,0x0004002b,0x00000006,0x00000031,0x3c835e48,0x0007002c,
+ 0x00000009,0x00000032,0x0000002e,0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,
+ 0x00000033,0x3df8384a,0x0004002b,0x00000006,0x00000034,0x3e7b3fb8,0x0004002b,0x00000006,
+ 0x00000035,0x3d37518d,0x0004002b,0x00000006,0x00000036,0xbe539853,0x0007002c,0x00000009,
+ 0x00000037,0x00000033,0x00000034,0x00000035,0x00000036,0x0004002b,0x00000006,0x00000038,
+ 0x3cf2c6af,0x0004002b,0x00000006,0x00000039,0xbe1df972,0x0004002b,0x00000006,0x0000003a,
+ 0x3cde6791,0x0004002b,0x00000006,0x0000003b,0xbe54f117,0x0007002c,0x00000009,0x0000003c,
+ 0x00000038,0x00000039,0x0000003a,0x0000003b,0x0004002b,0x00000006,0x0000003d,0x3dd04b24,
+ 0x0004002b,0x00000006,0x0000003e,0x3d9f941c,0x0004002b,0x00000006,0x0000003f,0x3f291f0f,
+ 0x0004002b,0x00000006,0x00000040,0xbeed353d,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,0xbbad4f49,0x0004002b,0x00000006,0x0000004c,0xbc9c259f,0x0004002b,
+ 0x00000006,0x0000004d,0xbdb15c16,0x0004002b,0x00000006,0x0000004e,0xbcb50102,0x0007002c,
+ 0x00000009,0x0000004f,0x0000004b,0x0000004c,0x0000004d,0x0000004e,0x0004002b,0x00000006,
+ 0x00000050,0xbda5d8b7,0x0004002b,0x00000006,0x00000051,0xbc781985,0x0004002b,0x00000006,
+ 0x00000052,0xbe3dfad9,0x0004002b,0x00000006,0x00000053,0xbda0c134,0x0007002c,0x00000009,
+ 0x00000054,0x00000050,0x00000051,0x00000052,0x00000053,0x0004002b,0x00000006,0x00000055,
+ 0xbe26d985,0x0004002b,0x00000006,0x00000056,0xbe4dd271,0x0004002b,0x00000006,0x00000057,
+ 0xbdab6f37,0x0004002b,0x00000006,0x00000058,0x3ebd82d9,0x0007002c,0x00000009,0x00000059,
+ 0x00000055,0x00000056,0x00000057,0x00000058,0x0004002b,0x00000006,0x0000005a,0x3dba43e9,
+ 0x0004002b,0x00000006,0x0000005b,0x3e7eb11c,0x0004002b,0x00000006,0x0000005c,0x3e793ad3,
+ 0x0004002b,0x00000006,0x0000005d,0x3d343d5d,0x0007002c,0x00000009,0x0000005e,0x0000005a,
+ 0x0000005b,0x0000005c,0x0000005d,0x0007002c,0x0000002d,0x0000005f,0x0000004f,0x00000054,
+ 0x00000059,0x0000005e,0x0005002c,0x00000007,0x00000060,0x00000043,0x00000047,0x0004002b,
+ 0x00000006,0x00000068,0xbd7b8560,0x0004002b,0x00000006,0x00000069,0xbc8d2bc9,0x0004002b,
+ 0x00000006,0x0000006a,0xbddf96be,0x0004002b,0x00000006,0x0000006b,0x3de571a8,0x0007002c,
+ 0x00000009,0x0000006c,0x00000068,0x00000069,0x0000006a,0x0000006b,0x0004002b,0x00000006,
+ 0x0000006d,0x3d26b4dc,0x0004002b,0x00000006,0x0000006e,0xbc9e0f2d,0x0004002b,0x00000006,
+ 0x0000006f,0x3dadfc30,0x0004002b,0x00000006,0x00000070,0xbc948ce8,0x0007002c,0x00000009,
+ 0x00000071,0x0000006d,0x0000006e,0x0000006f,0x00000070,0x0004002b,0x00000006,0x00000072,
+ 0x3d93a6d1,0x0004002b,0x00000006,0x00000073,0x3c83a519,0x0004002b,0x00000006,0x00000074,
+ 0x3e365432,0x0004002b,0x00000006,0x00000075,0xbdb75f9a,0x0007002c,0x00000009,0x00000076,
+ 0x00000072,0x00000073,0x00000074,0x00000075,0x0004002b,0x00000006,0x00000077,0x3e21e25b,
+ 0x0004002b,0x00000006,0x00000078,0x3dd25595,0x0004002b,0x00000006,0x00000079,0x3e1a0eb4,
+ 0x0004002b,0x00000006,0x0000007a,0xbe1f073f,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,0x3dc249f2,0x0004002b,
+ 0x00000006,0x00000087,0xbd251795,0x0004002b,0x00000006,0x00000088,0xbbb739fc,0x0004002b,
+ 0x00000006,0x00000089,0xbd44ce67,0x0007002c,0x00000009,0x0000008a,0x00000086,0x00000087,
+ 0x00000088,0x00000089,0x0004002b,0x00000006,0x0000008b,0xbd9a9417,0x0004002b,0x00000006,
+ 0x0000008c,0x3d67dc4b,0x0004002b,0x00000006,0x0000008d,0x3caf3a84,0x0004002b,0x00000006,
+ 0x0000008e,0x3ea6ea37,0x0007002c,0x00000009,0x0000008f,0x0000008b,0x0000008c,0x0000008d,
+ 0x0000008e,0x0004002b,0x00000006,0x00000090,0xbe550b67,0x0004002b,0x00000006,0x00000091,
+ 0xbdcbf467,0x0004002b,0x00000006,0x00000092,0x3cf29751,0x0004002b,0x00000006,0x00000093,
+ 0x3c16f1f5,0x0007002c,0x00000009,0x00000094,0x00000090,0x00000091,0x00000092,0x00000093,
+ 0x0004002b,0x00000006,0x00000095,0xbe96ae18,0x0004002b,0x00000006,0x00000096,0xbdcab948,
+ 0x0004002b,0x00000006,0x00000097,0x3ee3b0e1,0x0004002b,0x00000006,0x00000098,0xbf65166d,
+ 0x0007002c,0x00000009,0x00000099,0x00000095,0x00000096,0x00000097,0x00000098,0x0007002c,
+ 0x0000002d,0x0000009a,0x0000008a,0x0000008f,0x00000094,0x00000099,0x0005002c,0x00000007,
+ 0x0000009b,0x00000047,0x00000043,0x0004002b,0x00000006,0x000000a3,0xbdfa6364,0x0004002b,
+ 0x00000006,0x000000a4,0x3dea695c,0x0004002b,0x00000006,0x000000a5,0x3d8889cb,0x0004002b,
+ 0x00000006,0x000000a6,0x3e3f6def,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,
+ 0x000000a5,0x000000a6,0x0004002b,0x00000006,0x000000a8,0xbe1f20f8,0x0004002b,0x00000006,
+ 0x000000a9,0xbe29dae6,0x0004002b,0x00000006,0x000000aa,0x3e98fe1f,0x0004002b,0x00000006,
+ 0x000000ab,0xbf13d4d4,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,
+ 0x000000ab,0x0004002b,0x00000006,0x000000ad,0xbeb133f9,0x0004002b,0x00000006,0x000000ae,
+ 0x3de4be8e,0x0004002b,0x00000006,0x000000af,0xbed66a03,0x0004002b,0x00000006,0x000000b0,
+ 0x3ec2f27f,0x0007002c,0x00000009,0x000000b1,0x000000ad,0x000000ae,0x000000af,0x000000b0,
+ 0x0004002b,0x00000006,0x000000b2,0x3e5a0cb6,0x0004002b,0x00000006,0x000000b3,0x3dc56f50,
+ 0x0004002b,0x00000006,0x000000b4,0xbe029a68,0x0004002b,0x00000006,0x000000b5,0xbda45fe6,
+ 0x0007002c,0x00000009,0x000000b6,0x000000b2,0x000000b3,0x000000b4,0x000000b5,0x0007002c,
+ 0x0000002d,0x000000b7,0x000000a7,0x000000ac,0x000000b1,0x000000b6,0x0005002c,0x00000007,
+ 0x000000b8,0x00000047,0x00000047,0x0004002b,0x00000006,0x000000c0,0x3e1aeb43,0x0004002b,
+ 0x00000006,0x000000c1,0x3d4d28dc,0x0004002b,0x00000006,0x000000c2,0x3dbcd212,0x0004002b,
+ 0x00000006,0x000000c3,0xbe39261d,0x0007002c,0x00000009,0x000000c4,0x000000c0,0x000000c1,
+ 0x000000c2,0x000000c3,0x0004002b,0x00000006,0x000000c5,0x3b920d0c,0x0004002b,0x00000006,
+ 0x000000c6,0xbd3c7ed8,0x0004002b,0x00000006,0x000000c7,0xbe041688,0x0004002b,0x00000006,
+ 0x000000c8,0x3e4fed75,0x0007002c,0x00000009,0x000000c9,0x000000c5,0x000000c6,0x000000c7,
+ 0x000000c8,0x0004002b,0x00000006,0x000000ca,0x3e48b76f,0x0004002b,0x00000006,0x000000cb,
+ 0x3d3f32a8,0x0004002b,0x00000006,0x000000cc,0x3e32d8fd,0x0004002b,0x00000006,0x000000cd,
+ 0x3ce2b1c9,0x0007002c,0x00000009,0x000000ce,0x000000ca,0x000000cb,0x000000cc,0x000000cd,
+ 0x0004002b,0x00000006,0x000000cf,0x3e3cd7e0,0x0004002b,0x00000006,0x000000d0,0x3d8c3197,
+ 0x0004002b,0x00000006,0x000000d1,0x3de730b2,0x0004002b,0x00000006,0x000000d2,0xbe6e6d40,
+ 0x0007002c,0x00000009,0x000000d3,0x000000cf,0x000000d0,0x000000d1,0x000000d2,0x0007002c,
+ 0x0000002d,0x000000d4,0x000000c4,0x000000c9,0x000000ce,0x000000d3,0x0005002c,0x00000007,
+ 0x000000d5,0x00000047,0x0000007d,0x0004002b,0x00000006,0x000000dd,0xbd956d1a,0x0004002b,
+ 0x00000006,0x000000de,0xbd87f9d3,0x0004002b,0x00000006,0x000000df,0x3d4a2099,0x0004002b,
+ 0x00000006,0x000000e0,0xbe0df7ac,0x0007002c,0x00000009,0x000000e1,0x000000dd,0x000000de,
+ 0x000000df,0x000000e0,0x0004002b,0x00000006,0x000000e2,0x3dd4e95a,0x0004002b,0x00000006,
+ 0x000000e3,0x3da7af88,0x0004002b,0x00000006,0x000000e4,0xbd2f56e0,0x0004002b,0x00000006,
+ 0x000000e5,0x3d975d8e,0x0007002c,0x00000009,0x000000e6,0x000000e2,0x000000e3,0x000000e4,
+ 0x000000e5,0x0004002b,0x00000006,0x000000e7,0x3d87bf9d,0x0004002b,0x00000006,0x000000e8,
+ 0x3d1ad174,0x0004002b,0x00000006,0x000000e9,0x3cb349db,0x0004002b,0x00000006,0x000000ea,
+ 0xbc576834,0x0007002c,0x00000009,0x000000eb,0x000000e7,0x000000e8,0x000000e9,0x000000ea,
+ 0x0004002b,0x00000006,0x000000ec,0x3e6522ce,0x0004002b,0x00000006,0x000000ed,0x3eb99087,
+ 0x0004002b,0x00000006,0x000000ee,0x3e03d6c1,0x0004002b,0x00000006,0x000000ef,0xbb1bded6,
+ 0x0007002c,0x00000009,0x000000f0,0x000000ec,0x000000ed,0x000000ee,0x000000ef,0x0007002c,
+ 0x0000002d,0x000000f1,0x000000e1,0x000000e6,0x000000eb,0x000000f0,0x0005002c,0x00000007,
+ 0x000000f2,0x0000007d,0x00000043,0x0004002b,0x00000006,0x000000fa,0x3d997cea,0x0004002b,
+ 0x00000006,0x000000fb,0x3e244e8e,0x0004002b,0x00000006,0x000000fc,0xbdf1a154,0x0004002b,
+ 0x00000006,0x000000fd,0x3e0434a8,0x0007002c,0x00000009,0x000000fe,0x000000fa,0x000000fb,
+ 0x000000fc,0x000000fd,0x0004002b,0x00000006,0x000000ff,0x3d604c1c,0x0004002b,0x00000006,
+ 0x00000100,0xbdc3d7a8,0x0004002b,0x00000006,0x00000101,0xbd43eb96,0x0004002b,0x00000006,
+ 0x00000102,0x3d0f1c53,0x0007002c,0x00000009,0x00000103,0x000000ff,0x00000100,0x00000101,
+ 0x00000102,0x0004002b,0x00000006,0x00000104,0x3df204b9,0x0004002b,0x00000006,0x00000105,
+ 0x3d1967ba,0x0004002b,0x00000006,0x00000106,0xbe1271cb,0x0004002b,0x00000006,0x00000107,
+ 0xbce01b58,0x0007002c,0x00000009,0x00000108,0x00000104,0x00000105,0x00000106,0x00000107,
+ 0x0004002b,0x00000006,0x00000109,0xbd569757,0x0004002b,0x00000006,0x0000010a,0x3de8edf5,
+ 0x0004002b,0x00000006,0x0000010b,0x3d9d6cd7,0x0004002b,0x00000006,0x0000010c,0x3c23fb81,
+ 0x0007002c,0x00000009,0x0000010d,0x00000109,0x0000010a,0x0000010b,0x0000010c,0x0007002c,
+ 0x0000002d,0x0000010e,0x000000fe,0x00000103,0x00000108,0x0000010d,0x0005002c,0x00000007,
+ 0x0000010f,0x0000007d,0x00000047,0x0004002b,0x00000006,0x00000117,0xbcc499ea,0x0004002b,
+ 0x00000006,0x00000118,0xbdbc3665,0x0004002b,0x00000006,0x00000119,0x3cc3a348,0x0004002b,
+ 0x00000006,0x0000011a,0x3d020078,0x0007002c,0x00000009,0x0000011b,0x00000117,0x00000118,
+ 0x00000119,0x0000011a,0x0004002b,0x00000006,0x0000011c,0x3bd71160,0x0004002b,0x00000006,
+ 0x0000011d,0xbd0a1a95,0x0004002b,0x00000006,0x0000011e,0xbdf56ab0,0x0004002b,0x00000006,
+ 0x0000011f,0x3df6f16c,0x0007002c,0x00000009,0x00000120,0x0000011c,0x0000011d,0x0000011e,
+ 0x0000011f,0x0004002b,0x00000006,0x00000121,0x3cd8ced1,0x0004002b,0x00000006,0x00000122,
+ 0xbd99f36a,0x0004002b,0x00000006,0x00000123,0xbd9eefe2,0x0004002b,0x00000006,0x00000124,
+ 0x3d77a827,0x0007002c,0x00000009,0x00000125,0x00000121,0x00000122,0x00000123,0x00000124,
+ 0x0004002b,0x00000006,0x00000126,0x3d966fca,0x0004002b,0x00000006,0x00000127,0x3d3c91d2,
+ 0x0004002b,0x00000006,0x00000128,0x3e581478,0x0004002b,0x00000006,0x00000129,0xbe89243e,
+ 0x0007002c,0x00000009,0x0000012a,0x00000126,0x00000127,0x00000128,0x00000129,0x0007002c,
+ 0x0000002d,0x0000012b,0x0000011b,0x00000120,0x00000125,0x0000012a,0x0005002c,0x00000007,
+ 0x0000012c,0x0000007d,0x0000007d,0x0004002b,0x00000006,0x00000134,0x3e1f2d3f,0x0004002b,
+ 0x00000006,0x00000135,0xbd1fdc16,0x0004002b,0x00000006,0x00000136,0x3d3da918,0x0004002b,
+ 0x00000006,0x00000137,0xbe80e390,0x0007002c,0x00000009,0x00000138,0x00000134,0x00000135,
+ 0x00000136,0x00000137,0x0004002b,0x00000006,0x00000139,0xbd8d971f,0x0004002b,0x00000006,
+ 0x0000013a,0x3d991e6e,0x0004002b,0x00000006,0x0000013b,0x3c149f98,0x0004002b,0x00000006,
+ 0x0000013c,0x3db83f26,0x0007002c,0x00000009,0x0000013d,0x00000139,0x0000013a,0x0000013b,
+ 0x0000013c,0x0004002b,0x00000006,0x0000013e,0xbe87e240,0x0004002b,0x00000006,0x0000013f,
+ 0xbecaac8d,0x0004002b,0x00000006,0x00000140,0xbe62dfc3,0x0004002b,0x00000006,0x00000141,
+ 0x3e5455df,0x0007002c,0x00000009,0x00000142,0x0000013e,0x0000013f,0x00000140,0x00000141,
+ 0x0004002b,0x00000006,0x00000143,0xbdd8cd63,0x0004002b,0x00000006,0x00000144,0xbb82f79f,
+ 0x0004002b,0x00000006,0x00000145,0xbd3790dc,0x0004002b,0x00000006,0x00000146,0x3eca77ef,
+ 0x0007002c,0x00000009,0x00000147,0x00000143,0x00000144,0x00000145,0x00000146,0x0007002c,
+ 0x0000002d,0x00000148,0x00000138,0x0000013d,0x00000142,0x00000147,0x0004002b,0x00000006,
+ 0x00000151,0x3f1df1ce,0x0004002b,0x00000006,0x00000152,0x3e72de4d,0x0004002b,0x00000006,
+ 0x00000153,0xbec1f834,0x0004002b,0x00000006,0x00000154,0xbf3f9cd3,0x0007002c,0x00000009,
+ 0x00000155,0x00000151,0x00000152,0x00000153,0x00000154,0x0004002b,0x00000006,0x00000156,
+ 0x3ca53b31,0x0004002b,0x00000006,0x00000157,0xbe9d47cb,0x0004002b,0x00000006,0x00000158,
+ 0x3f8c5c0a,0x0004002b,0x00000006,0x00000159,0xbe5414bd,0x0007002c,0x00000009,0x0000015a,
+ 0x00000156,0x00000157,0x00000158,0x00000159,0x0004002b,0x00000006,0x0000015b,0xbec872ab,
+ 0x0004002b,0x00000006,0x0000015c,0xbd8c27fb,0x0004002b,0x00000006,0x0000015d,0xbd8596d4,
+ 0x0004002b,0x00000006,0x0000015e,0x3dd4982a,0x0007002c,0x00000009,0x0000015f,0x0000015b,
+ 0x0000015c,0x0000015d,0x0000015e,0x0004002b,0x00000006,0x00000160,0x3d05c4a8,0x0004002b,
+ 0x00000006,0x00000161,0xbe1b02a4,0x0004002b,0x00000006,0x00000162,0x3e0375c8,0x0004002b,
+ 0x00000006,0x00000163,0xbc5428f7,0x0007002c,0x00000009,0x00000164,0x00000160,0x00000161,
+ 0x00000162,0x00000163,0x0007002c,0x0000002d,0x00000165,0x00000155,0x0000015a,0x0000015f,
+ 0x00000164,0x0004002b,0x00000006,0x0000016e,0xbe720e1d,0x0004002b,0x00000006,0x0000016f,
+ 0xbee9842f,0x0004002b,0x00000006,0x00000170,0xbdf4b584,0x0004002b,0x00000006,0x00000171,
+ 0xbe15eda8,0x0007002c,0x00000009,0x00000172,0x0000016e,0x0000016f,0x00000170,0x00000171,
+ 0x0004002b,0x00000006,0x00000173,0x3ddaee6e,0x0004002b,0x00000006,0x00000174,0x3c006267,
+ 0x0004002b,0x00000006,0x00000175,0x3df2fb52,0x0004002b,0x00000006,0x00000176,0xbe062855,
+ 0x0007002c,0x00000009,0x00000177,0x00000173,0x00000174,0x00000175,0x00000176,0x0004002b,
+ 0x00000006,0x00000178,0xbe290f71,0x0004002b,0x00000006,0x00000179,0x3d99a7f1,0x0004002b,
+ 0x00000006,0x0000017a,0x3da65be7,0x0004002b,0x00000006,0x0000017b,0x3e09bd88,0x0007002c,
+ 0x00000009,0x0000017c,0x00000178,0x00000179,0x0000017a,0x0000017b,0x0004002b,0x00000006,
+ 0x0000017d,0x3a9bda4f,0x0004002b,0x00000006,0x0000017e,0x3d55a382,0x0004002b,0x00000006,
+ 0x0000017f,0x3dab7784,0x0004002b,0x00000006,0x00000180,0xbd911a01,0x0007002c,0x00000009,
+ 0x00000181,0x0000017d,0x0000017e,0x0000017f,0x00000180,0x0007002c,0x0000002d,0x00000182,
+ 0x00000172,0x00000177,0x0000017c,0x00000181,0x0004002b,0x00000006,0x0000018b,0xbe6141b8,
+ 0x0004002b,0x00000006,0x0000018c,0xbe28d800,0x0004002b,0x00000006,0x0000018d,0xbceea59a,
+ 0x0004002b,0x00000006,0x0000018e,0x3e384b4e,0x0007002c,0x00000009,0x0000018f,0x0000018b,
+ 0x0000018c,0x0000018d,0x0000018e,0x0004002b,0x00000006,0x00000190,0x3e18e7a1,0x0004002b,
+ 0x00000006,0x00000191,0x3ce13bb9,0x0004002b,0x00000006,0x00000192,0x3b62d75c,0x0004002b,
+ 0x00000006,0x00000193,0xbea43c52,0x0007002c,0x00000009,0x00000194,0x00000190,0x00000191,
+ 0x00000192,0x00000193,0x0004002b,0x00000006,0x00000195,0x3e3f7a4f,0x0004002b,0x00000006,
+ 0x00000196,0x3e16d23a,0x0004002b,0x00000006,0x00000197,0xbd2fb2cf,0x0004002b,0x00000006,
+ 0x00000198,0xbd9be507,0x0007002c,0x00000009,0x00000199,0x00000195,0x00000196,0x00000197,
+ 0x00000198,0x0004002b,0x00000006,0x0000019a,0x3e0013ec,0x0004002b,0x00000006,0x0000019b,
+ 0xbe16ad52,0x0004002b,0x00000006,0x0000019c,0xbd0e8a8a,0x0004002b,0x00000006,0x0000019d,
+ 0xbe69002e,0x0007002c,0x00000009,0x0000019e,0x0000019a,0x0000019b,0x0000019c,0x0000019d,
+ 0x0007002c,0x0000002d,0x0000019f,0x0000018f,0x00000194,0x00000199,0x0000019e,0x0004002b,
+ 0x00000006,0x000001a8,0xbf08c5d4,0x0004002b,0x00000006,0x000001a9,0xbf3e1bb9,0x0004002b,
+ 0x00000006,0x000001aa,0xbec4117a,0x0004002b,0x00000006,0x000001ab,0x3ed9db20,0x0007002c,
+ 0x00000009,0x000001ac,0x000001a8,0x000001a9,0x000001aa,0x000001ab,0x0004002b,0x00000006,
+ 0x000001ad,0x3eebcadb,0x0004002b,0x00000006,0x000001ae,0x3f496aef,0x0004002b,0x00000006,
+ 0x000001af,0x3dd991a2,0x0004002b,0x00000006,0x000001b0,0xbd289aa3,0x0007002c,0x00000009,
+ 0x000001b1,0x000001ad,0x000001ae,0x000001af,0x000001b0,0x0004002b,0x00000006,0x000001b2,
+ 0x3f051568,0x0004002b,0x00000006,0x000001b3,0xbf059de3,0x0004002b,0x00000006,0x000001b4,
+ 0x3e17a627,0x0004002b,0x00000006,0x000001b5,0xbed60735,0x0007002c,0x00000009,0x000001b6,
+ 0x000001b2,0x000001b3,0x000001b4,0x000001b5,0x0004002b,0x00000006,0x000001b7,0x3d8b7c2d,
+ 0x0004002b,0x00000006,0x000001b8,0xbe1adb35,0x0004002b,0x00000006,0x000001b9,0xbd422ff1,
+ 0x0004002b,0x00000006,0x000001ba,0x3e06f23c,0x0007002c,0x00000009,0x000001bb,0x000001b7,
+ 0x000001b8,0x000001b9,0x000001ba,0x0007002c,0x0000002d,0x000001bc,0x000001ac,0x000001b1,
+ 0x000001b6,0x000001bb,0x0004002b,0x00000006,0x000001c5,0xbf01189a,0x0004002b,0x00000006,
+ 0x000001c6,0x3e3a9447,0x0004002b,0x00000006,0x000001c7,0x3eb5d097,0x0004002b,0x00000006,
+ 0x000001c8,0xbda78031,0x0007002c,0x00000009,0x000001c9,0x000001c5,0x000001c6,0x000001c7,
+ 0x000001c8,0x0004002b,0x00000006,0x000001ca,0x3d014319,0x0004002b,0x00000006,0x000001cb,
+ 0x3c9dfa08,0x0004002b,0x00000006,0x000001cc,0x3b544302,0x0004002b,0x00000006,0x000001cd,
+ 0xbe520e83,0x0007002c,0x00000009,0x000001ce,0x000001ca,0x000001cb,0x000001cc,0x000001cd,
+ 0x0004002b,0x00000006,0x000001cf,0xbd5c9798,0x0004002b,0x00000006,0x000001d0,0x3e364df9,
+ 0x0004002b,0x00000006,0x000001d1,0xbe862d34,0x0004002b,0x00000006,0x000001d2,0x3e92f694,
+ 0x0007002c,0x00000009,0x000001d3,0x000001cf,0x000001d0,0x000001d1,0x000001d2,0x0004002b,
+ 0x00000006,0x000001d4,0x3c0c3621,0x0004002b,0x00000006,0x000001d5,0x3dac0fca,0x0004002b,
+ 0x00000006,0x000001d6,0xbce21713,0x0004002b,0x00000006,0x000001d7,0xbc30cdb8,0x0007002c,
+ 0x00000009,0x000001d8,0x000001d4,0x000001d5,0x000001d6,0x000001d7,0x0007002c,0x0000002d,
+ 0x000001d9,0x000001c9,0x000001ce,0x000001d3,0x000001d8,0x0004002b,0x00000006,0x000001e2,
+ 0x3e2a926a,0x0004002b,0x00000006,0x000001e3,0x3d8a8ac1,0x0004002b,0x00000006,0x000001e4,
+ 0x3dbe9f24,0x0004002b,0x00000006,0x000001e5,0xbe13d9a0,0x0007002c,0x00000009,0x000001e6,
+ 0x000001e2,0x000001e3,0x000001e4,0x000001e5,0x0004002b,0x00000006,0x000001e7,0xbdcd25f0,
+ 0x0004002b,0x00000006,0x000001e8,0x3b1295d6,0x0004002b,0x00000006,0x000001e9,0x3d052889,
+ 0x0004002b,0x00000006,0x000001ea,0xbd583f18,0x0007002c,0x00000009,0x000001eb,0x000001e7,
+ 0x000001e8,0x000001e9,0x000001ea,0x0004002b,0x00000006,0x000001ec,0xbc166228,0x0004002b,
+ 0x00000006,0x000001ed,0xbca12a85,0x0004002b,0x00000006,0x000001ee,0xbadada0f,0x0004002b,
+ 0x00000006,0x000001ef,0xbe1df2bb,0x0007002c,0x00000009,0x000001f0,0x000001ec,0x000001ed,
+ 0x000001ee,0x000001ef,0x0004002b,0x00000006,0x000001f1,0xbde5a0fe,0x0004002b,0x00000006,
+ 0x000001f2,0xbde2eaf5,0x0004002b,0x00000006,0x000001f3,0x3c446596,0x0004002b,0x00000006,
+ 0x000001f4,0xbdf09816,0x0007002c,0x00000009,0x000001f5,0x000001f1,0x000001f2,0x000001f3,
+ 0x000001f4,0x0007002c,0x0000002d,0x000001f6,0x000001e6,0x000001eb,0x000001f0,0x000001f5,
+ 0x0004002b,0x00000006,0x000001ff,0xbcbc9835,0x0004002b,0x00000006,0x00000200,0xbd707300,
+ 0x0004002b,0x00000006,0x00000201,0xbd1b8f31,0x0004002b,0x00000006,0x00000202,0xbd7fbab4,
+ 0x0007002c,0x00000009,0x00000203,0x000001ff,0x00000200,0x00000201,0x00000202,0x0004002b,
+ 0x00000006,0x00000204,0xbe0674aa,0x0004002b,0x00000006,0x00000205,0x3d474bda,0x0004002b,
+ 0x00000006,0x00000206,0x3d68d067,0x0004002b,0x00000006,0x00000207,0x3ddf4ebf,0x0007002c,
+ 0x00000009,0x00000208,0x00000204,0x00000205,0x00000206,0x00000207,0x0004002b,0x00000006,
+ 0x00000209,0xbda037e1,0x0004002b,0x00000006,0x0000020a,0x3e1766c2,0x0004002b,0x00000006,
+ 0x0000020b,0x3d6fd773,0x0004002b,0x00000006,0x0000020c,0xbdef2fc7,0x0007002c,0x00000009,
+ 0x0000020d,0x00000209,0x0000020a,0x0000020b,0x0000020c,0x0004002b,0x00000006,0x0000020e,
+ 0xbe0f6198,0x0004002b,0x00000006,0x0000020f,0x3d97746b,0x0004002b,0x00000006,0x00000210,
+ 0x3dc94131,0x0004002b,0x00000006,0x00000211,0xbd896e28,0x0007002c,0x00000009,0x00000212,
+ 0x0000020e,0x0000020f,0x00000210,0x00000211,0x0007002c,0x0000002d,0x00000213,0x00000203,
+ 0x00000208,0x0000020d,0x00000212,0x0004002b,0x00000006,0x0000021c,0x3e18a42b,0x0004002b,
+ 0x00000006,0x0000021d,0x3cf5c511,0x0004002b,0x00000006,0x0000021e,0xbdd3ba05,0x0004002b,
+ 0x00000006,0x0000021f,0x3d87c69e,0x0007002c,0x00000009,0x00000220,0x0000021c,0x0000021d,
+ 0x0000021e,0x0000021f,0x0004002b,0x00000006,0x00000221,0xbe25d702,0x0004002b,0x00000006,
+ 0x00000222,0xbe0c1cae,0x0004002b,0x00000006,0x00000223,0x3dc3da68,0x0004002b,0x00000006,
+ 0x00000224,0x3c1be191,0x0007002c,0x00000009,0x00000225,0x00000221,0x00000222,0x00000223,
+ 0x00000224,0x0004002b,0x00000006,0x00000226,0xbc1b810e,0x0004002b,0x00000006,0x00000227,
+ 0x3d89f9d0,0x0004002b,0x00000006,0x00000228,0xbe0eaedb,0x0004002b,0x00000006,0x00000229,
+ 0x3e1bf881,0x0007002c,0x00000009,0x0000022a,0x00000226,0x00000227,0x00000228,0x00000229,
+ 0x0004002b,0x00000006,0x0000022b,0xbd95ce83,0x0004002b,0x00000006,0x0000022c,0x3bfb59d3,
+ 0x0004002b,0x00000006,0x0000022d,0x3ceae847,0x0004002b,0x00000006,0x0000022e,0x3c68de03,
+ 0x0007002c,0x00000009,0x0000022f,0x0000022b,0x0000022c,0x0000022d,0x0000022e,0x0007002c,
+ 0x0000002d,0x00000230,0x00000220,0x00000225,0x0000022a,0x0000022f,0x0004002b,0x00000006,
+ 0x00000239,0x3c997dc6,0x0004002b,0x00000006,0x0000023a,0xbb2aa651,0x0004002b,0x00000006,
+ 0x0000023b,0x3d4d5524,0x0004002b,0x00000006,0x0000023c,0xbd62c599,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_s_conv3.comp b/src/display/shaders/a4k_s_conv3.comp
new file mode 100644
index 0000000..828d7be
--- /dev/null
+++ b/src/display/shaders/a4k_s_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-v3.2-Upscale-CNN-x2-(S)-Conv-4x3x3x8 (input 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, 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.019100675, -0.014241565, 0.004667036, -0.03865062, 0.106731094, 0.026099661, 0.014594411, -0.011881356, 0.0040967264, -0.004626336, 0.006469508, 0.010875305, -0.033909045, -0.085905954, 0.07861378, 0.019452631) * go_0(-1.0, -1.0);
+ result += mat4(0.20777655, -0.060354974, 0.0023840065, -0.064121604, -0.17397617, 0.019293457, -0.09707183, 0.080641985, 0.01025124, -0.017382381, 0.008661793, -0.010995665, 0.21943407, -0.115574986, 0.14471593, -0.068836235) * go_0(-1.0, 0.0);
+ result += mat4(0.057942886, -0.06311754, 0.2253396, -0.04159292, -0.020731755, 0.007877151, 0.041525815, 0.025278691, 0.03041967, -0.025137542, 0.024364179, -0.024543528, 0.029438615, -0.015506873, 0.081686, -0.07812221) * go_0(-1.0, 1.0);
+ result += mat4(0.054237515, 0.0676094, -0.0047708177, 0.0043467237, -0.10032304, -0.020498628, 0.04240586, 0.07272254, 0.0784221, 0.017945962, -0.022310399, -0.013134622, 0.015638694, -0.10001543, 0.1043031, 0.05898838) * go_0(0.0, -1.0);
+ result += mat4(-0.021652509, 0.35796642, 0.059497777, 0.23948468, 0.15454951, -0.10017235, -0.19072174, -0.44812536, -0.03974552, 0.04529369, 0.22207436, 0.026222564, -0.09705454, 0.5623026, -0.3354105, -0.017278556) * go_0(0.0, 0.0);
+ result += mat4(-0.053682446, -0.03411237, -0.09399936, 0.15128824, -0.07463, -0.042020727, 0.0031783928, 0.13481957, -0.07731454, 0.044114403, -0.23085599, 0.060444202, -0.15015422, 0.0018040676, -0.18684982, 0.2812511) * go_0(0.0, 1.0);
+ result += mat4(0.0029329916, 0.001596018, 0.0007512241, 0.016544111, -0.04876942, -0.05272409, 0.037884697, 0.049948208, 0.015518177, 0.11368592, -0.03815777, -0.013149978, -0.027638039, 0.107719295, -0.04115787, 0.02745414) * go_0(1.0, -1.0);
+ result += mat4(0.016691081, 0.010204119, 0.04078854, 0.01613337, 0.03325829, 0.0114824055, -0.017286912, -0.07284126, -0.110984206, -0.21041764, 0.0089543555, 0.18986733, 0.01537506, -0.2059135, 0.029074017, 0.013117443) * go_0(1.0, 0.0);
+ result += mat4(0.013965926, 0.029871881, 0.0034499036, -0.011343668, 0.022120327, -0.0068748263, 0.009324342, -0.039081004, 0.08032371, 0.050809264, 0.035050742, -0.2032847, 0.06305391, -0.021958945, 0.038569167, -0.22465245) * go_0(1.0, 1.0);
+ result += mat4(0.046307724, -0.012419472, 0.007673863, -0.042344846, 0.011042414, 0.016994251, -0.018166406, -0.016955731, -0.13240299, 0.01768431, -0.027607648, 0.0699927, -0.02840628, 0.004414203, 0.0049618417, 0.011084679) * go_1(-1.0, -1.0);
+ result += mat4(-0.119954154, -0.007455482, -0.031108133, -0.009946449, 0.0077065965, 0.01660345, 0.032943666, 0.016376585, 0.10273124, 0.1556573, -0.24643841, 0.107307844, -0.068235755, 0.0561896, -0.0104672015, 0.042693343) * go_1(-1.0, 0.0);
+ result += mat4(-0.01634601, 0.04195375, -0.10401894, 0.047641944, -0.034602515, -0.0034419263, -0.010457858, 0.015194475, -0.03962551, -0.030031368, 0.16036317, 0.019283568, -0.05877721, 0.016504882, -0.15523468, 0.018161612) * go_1(-1.0, 1.0);
+ result += mat4(-0.08083991, 0.0024665035, -0.049373373, 0.030371357, 0.0113322195, -0.014676956, 0.011646689, -0.01142667, 0.124930486, 0.06625774, -0.045840867, -0.009693036, -0.012649251, -0.07388084, 0.008790075, 0.0013844534) * go_1(0.0, -1.0);
+ result += mat4(-0.33941835, -0.2763476, -0.118311435, -0.063535266, 0.20936015, 0.13731301, 0.13443594, 0.07464433, 0.059650812, -0.36973104, 0.16444235, -0.37082872, 0.06432777, -0.18283032, -0.044489607, -0.13895285) * go_1(0.0, 0.0);
+ result += mat4(0.13533665, 0.08268915, -0.03675727, -0.14348659, 0.0186255, -0.05051692, 0.056702953, 0.0061717895, 0.047663026, -0.088188455, 0.23254345, -0.014015464, 0.08400204, -0.0073777726, 0.2202068, -0.12366078) * go_1(0.0, 1.0);
+ result += mat4(0.04361004, 0.046543695, 0.0064863074, -0.03358146, -0.022602187, 0.018138997, -0.011071864, 0.010244091, -0.019814799, -0.17250171, 0.040823266, -0.040131986, 0.010125854, 0.020660749, 0.0020435036, -0.010819304) * go_1(1.0, -1.0);
+ result += mat4(-0.004810193, -0.11286074, 0.051985834, 0.04788631, -0.023950428, 0.036145125, -0.038203828, 0.052401308, 0.022986965, 0.26420745, -0.06076917, -0.09252999, 0.03164547, 0.15652153, -0.037934, -0.0035418556) * go_1(1.0, 0.0);
+ result += mat4(0.03358366, -0.005219482, 0.007060882, -0.06569114, -0.02941682, 0.00966056, -0.0153679885, 0.019905418, -0.107232265, -0.03405676, -0.044340115, 0.26892832, -0.04723829, -0.02589829, 0.004563232, 0.19318114) * go_1(1.0, 1.0);
+ result += vec4(-0.00346731, -0.0046263863, -0.004627155, -0.0057769152);
+ 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_s_conv3.spv.h b/src/display/shaders/a4k_s_conv3.spv.h
new file mode 100644
index 0000000..ccd9759
--- /dev/null
+++ b/src/display/shaders/a4k_s_conv3.spv.h
@@ -0,0 +1,408 @@
+ // 1116.2.0
+ #pragma once
+const uint32_t kShader_a4k_s_conv3[] = {
+ 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,0x3c9c7905,0x0004002b,0x00000006,0x0000002f,0xbc695574,0x0004002b,
+ 0x00000006,0x00000030,0x3b98edef,0x0004002b,0x00000006,0x00000031,0xbd1e501d,0x0007002c,
+ 0x00000009,0x00000032,0x0000002e,0x0000002f,0x00000030,0x00000031,0x0004002b,0x00000006,
+ 0x00000033,0x3dda95d5,0x0004002b,0x00000006,0x00000034,0x3cd5cef5,0x0004002b,0x00000006,
+ 0x00000035,0x3c6f1d65,0x0004002b,0x00000006,0x00000036,0xbc42aa05,0x0007002c,0x00000009,
+ 0x00000037,0x00000033,0x00000034,0x00000035,0x00000036,0x0004002b,0x00000006,0x00000038,
+ 0x3b863dd5,0x0004002b,0x00000006,0x00000039,0xbb979885,0x0004002b,0x00000006,0x0000003a,
+ 0x3bd3fe2b,0x0004002b,0x00000006,0x0000003b,0x3c322e56,0x0007002c,0x00000009,0x0000003c,
+ 0x00000038,0x00000039,0x0000003a,0x0000003b,0x0004002b,0x00000006,0x0000003d,0xbd0ae436,
+ 0x0004002b,0x00000006,0x0000003e,0xbdafef76,0x0004002b,0x00000006,0x0000003f,0x3da10043,
+ 0x0004002b,0x00000006,0x00000040,0x3c9f5b20,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,0x3e54c360,0x0004002b,0x00000006,0x0000004c,0xbd7736c7,0x0004002b,
+ 0x00000006,0x0000004d,0x3b1c3cfe,0x0004002b,0x00000006,0x0000004e,0xbd835230,0x0007002c,
+ 0x00000009,0x0000004f,0x0000004b,0x0000004c,0x0000004d,0x0000004e,0x0004002b,0x00000006,
+ 0x00000050,0xbe3226cf,0x0004002b,0x00000006,0x00000051,0x3c9e0d50,0x0004002b,0x00000006,
+ 0x00000052,0xbdc6cd98,0x0004002b,0x00000006,0x00000053,0x3da527a0,0x0007002c,0x00000009,
+ 0x00000054,0x00000050,0x00000051,0x00000052,0x00000053,0x0004002b,0x00000006,0x00000055,
+ 0x3c27f4d1,0x0004002b,0x00000006,0x00000056,0xbc8e657f,0x0004002b,0x00000006,0x00000057,
+ 0x3c0dea31,0x0004002b,0x00000006,0x00000058,0xbc342729,0x0007002c,0x00000009,0x00000059,
+ 0x00000055,0x00000056,0x00000057,0x00000058,0x0004002b,0x00000006,0x0000005a,0x3e60b353,
+ 0x0004002b,0x00000006,0x0000005b,0xbdecb294,0x0004002b,0x00000006,0x0000005c,0x3e14306a,
+ 0x0004002b,0x00000006,0x0000005d,0xbd8cfa03,0x0007002c,0x00000009,0x0000005e,0x0000005a,
+ 0x0000005b,0x0000005c,0x0000005d,0x0007002c,0x0000002d,0x0000005f,0x0000004f,0x00000054,
+ 0x00000059,0x0000005e,0x0005002c,0x00000007,0x00000060,0x00000043,0x00000047,0x0004002b,
+ 0x00000006,0x00000068,0x3d6d5585,0x0004002b,0x00000006,0x00000069,0xbd8143c5,0x0004002b,
+ 0x00000006,0x0000006a,0x3e66bf6d,0x0004002b,0x00000006,0x0000006b,0xbd2a5d56,0x0007002c,
+ 0x00000009,0x0000006c,0x00000068,0x00000069,0x0000006a,0x0000006b,0x0004002b,0x00000006,
+ 0x0000006d,0xbca9d5a4,0x0004002b,0x00000006,0x0000006e,0x3c010f2a,0x0004002b,0x00000006,
+ 0x0000006f,0x3d2a16f9,0x0004002b,0x00000006,0x00000070,0x3ccf1542,0x0007002c,0x00000009,
+ 0x00000071,0x0000006d,0x0000006e,0x0000006f,0x00000070,0x0004002b,0x00000006,0x00000072,
+ 0x3cf932ac,0x0004002b,0x00000006,0x00000073,0xbccded3f,0x0004002b,0x00000006,0x00000074,
+ 0x3cc79763,0x0004002b,0x00000006,0x00000075,0xbcc90f82,0x0007002c,0x00000009,0x00000076,
+ 0x00000072,0x00000073,0x00000074,0x00000075,0x0004002b,0x00000006,0x00000077,0x3cf12940,
+ 0x0004002b,0x00000006,0x00000078,0xbc7e108a,0x0004002b,0x00000006,0x00000079,0x3da74afd,
+ 0x0004002b,0x00000006,0x0000007a,0xbd9ffe8a,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,0x3d5e2828,0x0004002b,
+ 0x00000006,0x00000087,0x3d8a76cc,0x0004002b,0x00000006,0x00000088,0xbb9c5485,0x0004002b,
+ 0x00000006,0x00000089,0x3b8e6ef6,0x0007002c,0x00000009,0x0000008a,0x00000086,0x00000087,
+ 0x00000088,0x00000089,0x0004002b,0x00000006,0x0000008b,0xbdcd762a,0x0004002b,0x00000006,
+ 0x0000008c,0xbca7ecbd,0x0004002b,0x00000006,0x0000008d,0x3d2db1c4,0x0004002b,0x00000006,
+ 0x0000008e,0x3d94ef8e,0x0007002c,0x00000009,0x0000008f,0x0000008b,0x0000008c,0x0000008d,
+ 0x0000008e,0x0004002b,0x00000006,0x00000090,0x3da09bc4,0x0004002b,0x00000006,0x00000091,
+ 0x3c930369,0x0004002b,0x00000006,0x00000092,0xbcb6c44c,0x0004002b,0x00000006,0x00000093,
+ 0xbc573299,0x0007002c,0x00000009,0x00000094,0x00000090,0x00000091,0x00000092,0x00000093,
+ 0x0004002b,0x00000006,0x00000095,0x3c801cb8,0x0004002b,0x00000006,0x00000096,0xbdccd4e4,
+ 0x0004002b,0x00000006,0x00000097,0x3dd59cdd,0x0004002b,0x00000006,0x00000098,0x3d719dcd,
+ 0x0007002c,0x00000009,0x00000099,0x00000095,0x00000096,0x00000097,0x00000098,0x0007002c,
+ 0x0000002d,0x0000009a,0x0000008a,0x0000008f,0x00000094,0x00000099,0x0005002c,0x00000007,
+ 0x0000009b,0x00000047,0x00000043,0x0004002b,0x00000006,0x000000a3,0xbcb1609a,0x0004002b,
+ 0x00000006,0x000000a4,0x3eb74760,0x0004002b,0x00000006,0x000000a5,0x3d73b3f1,0x0004002b,
+ 0x00000006,0x000000a6,0x3e753b79,0x0007002c,0x00000009,0x000000a7,0x000000a3,0x000000a4,
+ 0x000000a5,0x000000a6,0x0004002b,0x00000006,0x000000a8,0x3e1e423a,0x0004002b,0x00000006,
+ 0x000000a9,0xbdcd2729,0x0004002b,0x00000006,0x000000aa,0xbe434c8f,0x0004002b,0x00000006,
+ 0x000000ab,0xbee570b0,0x0007002c,0x00000009,0x000000ac,0x000000a8,0x000000a9,0x000000aa,
+ 0x000000ab,0x0004002b,0x00000006,0x000000ad,0xbd22cc33,0x0004002b,0x00000006,0x000000ae,
+ 0x3d3985e0,0x0004002b,0x00000006,0x000000af,0x3e636776,0x0004002b,0x00000006,0x000000b0,
+ 0x3cd6d0b4,0x0007002c,0x00000009,0x000000b1,0x000000ad,0x000000ae,0x000000af,0x000000b0,
+ 0x0004002b,0x00000006,0x000000b2,0xbdc6c488,0x0004002b,0x00000006,0x000000b3,0x3f0ff310,
+ 0x0004002b,0x00000006,0x000000b4,0xbeabbaed,0x0004002b,0x00000006,0x000000b5,0xbc8d8bc2,
+ 0x0007002c,0x00000009,0x000000b6,0x000000b2,0x000000b3,0x000000b4,0x000000b5,0x0007002c,
+ 0x0000002d,0x000000b7,0x000000a7,0x000000ac,0x000000b1,0x000000b6,0x0005002c,0x00000007,
+ 0x000000b8,0x00000047,0x00000047,0x0004002b,0x00000006,0x000000c0,0xbd5be220,0x0004002b,
+ 0x00000006,0x000000c1,0xbd0bb96a,0x0004002b,0x00000006,0x000000c2,0xbdc082bd,0x0004002b,
+ 0x00000006,0x000000c3,0x3e1aeb4e,0x0007002c,0x00000009,0x000000c4,0x000000c0,0x000000c1,
+ 0x000000c2,0x000000c3,0x0004002b,0x00000006,0x000000c5,0xbd98d79d,0x0004002b,0x00000006,
+ 0x000000c6,0xbd2c1ded,0x0004002b,0x00000006,0x000000c7,0x3b504c95,0x0004002b,0x00000006,
+ 0x000000c8,0x3e0a0e24,0x0007002c,0x00000009,0x000000c9,0x000000c5,0x000000c6,0x000000c7,
+ 0x000000c8,0x0004002b,0x00000006,0x000000ca,0xbd9e5716,0x0004002b,0x00000006,0x000000cb,
+ 0x3d34b14e,0x0004002b,0x00000006,0x000000cc,0xbe6c6583,0x0004002b,0x00000006,0x000000cd,
+ 0x3d779457,0x0007002c,0x00000009,0x000000ce,0x000000ca,0x000000cb,0x000000cc,0x000000cd,
+ 0x0004002b,0x00000006,0x000000cf,0xbe19c207,0x0004002b,0x00000006,0x000000d0,0x3aec7677,
+ 0x0004002b,0x00000006,0x000000d1,0xbe3f558f,0x0004002b,0x00000006,0x000000d2,0x3e900025,
+ 0x0007002c,0x00000009,0x000000d3,0x000000cf,0x000000d0,0x000000d1,0x000000d2,0x0007002c,
+ 0x0000002d,0x000000d4,0x000000c4,0x000000c9,0x000000ce,0x000000d3,0x0005002c,0x00000007,
+ 0x000000d5,0x00000047,0x0000007d,0x0004002b,0x00000006,0x000000dd,0x3b40376f,0x0004002b,
+ 0x00000006,0x000000de,0x3ad1317a,0x0004002b,0x00000006,0x000000df,0x3a44edcc,0x0004002b,
+ 0x00000006,0x000000e0,0x3c878784,0x0007002c,0x00000009,0x000000e1,0x000000dd,0x000000de,
+ 0x000000df,0x000000e0,0x0004002b,0x00000006,0x000000e2,0xbd47c271,0x0004002b,0x00000006,
+ 0x000000e3,0xbd57f537,0x0004002b,0x00000006,0x000000e4,0x3d1b2cfc,0x0004002b,0x00000006,
+ 0x000000e5,0x3d4c967e,0x0007002c,0x00000009,0x000000e6,0x000000e2,0x000000e3,0x000000e4,
+ 0x000000e5,0x0004002b,0x00000006,0x000000e7,0x3c7e3ff4,0x0004002b,0x00000006,0x000000e8,
+ 0x3de8d42a,0x0004002b,0x00000006,0x000000e9,0xbd1c4b52,0x0004002b,0x00000006,0x000000ea,
+ 0xbc577301,0x0007002c,0x00000009,0x000000eb,0x000000e7,0x000000e8,0x000000e9,0x000000ea,
+ 0x0004002b,0x00000006,0x000000ec,0xbce2692b,0x0004002b,0x00000006,0x000000ed,0x3ddc9bef,
+ 0x0004002b,0x00000006,0x000000ee,0xbd289528,0x0004002b,0x00000006,0x000000ef,0x3ce0e781,
+ 0x0007002c,0x00000009,0x000000f0,0x000000ec,0x000000ed,0x000000ee,0x000000ef,0x0007002c,
+ 0x0000002d,0x000000f1,0x000000e1,0x000000e6,0x000000eb,0x000000f0,0x0005002c,0x00000007,
+ 0x000000f2,0x0000007d,0x00000043,0x0004002b,0x00000006,0x000000fa,0x3c88bbbc,0x0004002b,
+ 0x00000006,0x000000fb,0x3c272f2d,0x0004002b,0x00000006,0x000000fc,0x3d2711e2,0x0004002b,
+ 0x00000006,0x000000fd,0x3c842a21,0x0007002c,0x00000009,0x000000fe,0x000000fa,0x000000fb,
+ 0x000000fc,0x000000fd,0x0004002b,0x00000006,0x000000ff,0x3d0839d8,0x0004002b,0x00000006,
+ 0x00000100,0x3c3c20b3,0x0004002b,0x00000006,0x00000101,0xbc8d9d48,0x0004002b,0x00000006,
+ 0x00000102,0xbd952dcc,0x0007002c,0x00000009,0x00000103,0x000000ff,0x00000100,0x00000101,
+ 0x00000102,0x0004002b,0x00000006,0x00000104,0xbde34bb0,0x0004002b,0x00000006,0x00000105,
+ 0xbe5777b9,0x0004002b,0x00000006,0x00000106,0x3c12b54a,0x0004002b,0x00000006,0x00000107,
+ 0x3e426c95,0x0007002c,0x00000009,0x00000108,0x00000104,0x00000105,0x00000106,0x00000107,
+ 0x0004002b,0x00000006,0x00000109,0x3c7be7ad,0x0004002b,0x00000006,0x0000010a,0xbe52dafd,
+ 0x0004002b,0x00000006,0x0000010b,0x3cee2ca2,0x0004002b,0x00000006,0x0000010c,0x3c56ea8b,
+ 0x0007002c,0x00000009,0x0000010d,0x00000109,0x0000010a,0x0000010b,0x0000010c,0x0007002c,
+ 0x0000002d,0x0000010e,0x000000fe,0x00000103,0x00000108,0x0000010d,0x0005002c,0x00000007,
+ 0x0000010f,0x0000007d,0x00000047,0x0004002b,0x00000006,0x00000117,0x3c64d157,0x0004002b,
+ 0x00000006,0x00000118,0x3cf4b5e0,0x0004002b,0x00000006,0x00000119,0x3b6217c7,0x0004002b,
+ 0x00000006,0x0000011a,0xbc39dacb,0x0007002c,0x00000009,0x0000011b,0x00000117,0x00000118,
+ 0x00000119,0x0000011a,0x0004002b,0x00000006,0x0000011c,0x3cb535b0,0x0004002b,0x00000006,
+ 0x0000011d,0xbbe14639,0x0004002b,0x00000006,0x0000011e,0x3c18c520,0x0004002b,0x00000006,
+ 0x0000011f,0xbd201367,0x0007002c,0x00000009,0x00000120,0x0000011c,0x0000011d,0x0000011e,
+ 0x0000011f,0x0004002b,0x00000006,0x00000121,0x3da480c2,0x0004002b,0x00000006,0x00000122,
+ 0x3d501d60,0x0004002b,0x00000006,0x00000123,0x3d0f915e,0x0004002b,0x00000006,0x00000124,
+ 0xbe5029dd,0x0007002c,0x00000009,0x00000125,0x00000121,0x00000122,0x00000123,0x00000124,
+ 0x0004002b,0x00000006,0x00000126,0x3d812269,0x0004002b,0x00000006,0x00000127,0xbcb3e33f,
+ 0x0004002b,0x00000006,0x00000128,0x3d1dfab4,0x0004002b,0x00000006,0x00000129,0xbe660b4b,
+ 0x0007002c,0x00000009,0x0000012a,0x00000126,0x00000127,0x00000128,0x00000129,0x0007002c,
+ 0x0000002d,0x0000012b,0x0000011b,0x00000120,0x00000125,0x0000012a,0x0005002c,0x00000007,
+ 0x0000012c,0x0000007d,0x0000007d,0x0004002b,0x00000006,0x00000134,0x3d3dad2b,0x0004002b,
+ 0x00000006,0x00000135,0xbc4b7b0b,0x0004002b,0x00000006,0x00000136,0x3bfb7507,0x0004002b,
+ 0x00000006,0x00000137,0xbd2d71ca,0x0007002c,0x00000009,0x00000138,0x00000134,0x00000135,
+ 0x00000136,0x00000137,0x0004002b,0x00000006,0x00000139,0x3c34eb3e,0x0004002b,0x00000006,
+ 0x0000013a,0x3c8b3787,0x0004002b,0x00000006,0x0000013b,0xbc94d1b7,0x0004002b,0x00000006,
+ 0x0000013c,0xbc8ae6bf,0x0007002c,0x00000009,0x0000013d,0x00000139,0x0000013a,0x0000013b,
+ 0x0000013c,0x0004002b,0x00000006,0x0000013e,0xbe0794a6,0x0004002b,0x00000006,0x0000013f,
+ 0x3c90deb0,0x0004002b,0x00000006,0x00000140,0xbce2296f,0x0004002b,0x00000006,0x00000141,
+ 0x3d8f5855,0x0007002c,0x00000009,0x00000142,0x0000013e,0x0000013f,0x00000140,0x00000141,
+ 0x0004002b,0x00000006,0x00000143,0xbce8b449,0x0004002b,0x00000006,0x00000144,0x3b90a505,
+ 0x0004002b,0x00000006,0x00000145,0x3ba296f2,0x0004002b,0x00000006,0x00000146,0x3c359c83,
+ 0x0007002c,0x00000009,0x00000147,0x00000143,0x00000144,0x00000145,0x00000146,0x0007002c,
+ 0x0000002d,0x00000148,0x00000138,0x0000013d,0x00000142,0x00000147,0x0004002b,0x00000006,
+ 0x00000151,0xbdf5aa86,0x0004002b,0x00000006,0x00000152,0xbbf44d1e,0x0004002b,0x00000006,
+ 0x00000153,0xbcfed67c,0x0004002b,0x00000006,0x00000154,0xbc22f66e,0x0007002c,0x00000009,
+ 0x00000155,0x00000151,0x00000152,0x00000153,0x00000154,0x0004002b,0x00000006,0x00000156,
+ 0x3bfc879e,0x0004002b,0x00000006,0x00000157,0x3c8803f5,0x0004002b,0x00000006,0x00000158,
+ 0x3d06eff0,0x0004002b,0x00000006,0x00000159,0x3c862830,0x0007002c,0x00000009,0x0000015a,
+ 0x00000156,0x00000157,0x00000158,0x00000159,0x0004002b,0x00000006,0x0000015b,0x3dd264c2,
+ 0x0004002b,0x00000006,0x0000015c,0x3e1f64a1,0x0004002b,0x00000006,0x0000015d,0xbe7c5a5a,
+ 0x0004002b,0x00000006,0x0000015e,0x3ddbc437,0x0007002c,0x00000009,0x0000015f,0x0000015b,
+ 0x0000015c,0x0000015d,0x0000015e,0x0004002b,0x00000006,0x00000160,0xbd8bbf30,0x0004002b,
+ 0x00000006,0x00000161,0x3d662711,0x0004002b,0x00000006,0x00000162,0xbc2b7ea0,0x0004002b,
+ 0x00000006,0x00000163,0x3d2edf37,0x0007002c,0x00000009,0x00000164,0x00000160,0x00000161,
+ 0x00000162,0x00000163,0x0007002c,0x0000002d,0x00000165,0x00000155,0x0000015a,0x0000015f,
+ 0x00000164,0x0004002b,0x00000006,0x0000016e,0xbc85e811,0x0004002b,0x00000006,0x0000016f,
+ 0x3d2bd7b2,0x0004002b,0x00000006,0x00000170,0xbdd507e2,0x0004002b,0x00000006,0x00000171,
+ 0x3d432433,0x0007002c,0x00000009,0x00000172,0x0000016e,0x0000016f,0x00000170,0x00000171,
+ 0x0004002b,0x00000006,0x00000173,0xbd0dbb5e,0x0004002b,0x00000006,0x00000174,0xbb6191f1,
+ 0x0004002b,0x00000006,0x00000175,0xbc2b5770,0x0004002b,0x00000006,0x00000176,0x3c78f23f,
+ 0x0007002c,0x00000009,0x00000177,0x00000173,0x00000174,0x00000175,0x00000176,0x0004002b,
+ 0x00000006,0x00000178,0xbd224e5c,0x0004002b,0x00000006,0x00000179,0xbcf60458,0x0004002b,
+ 0x00000006,0x0000017a,0x3e24363e,0x0004002b,0x00000006,0x0000017b,0x3c9df893,0x0007002c,
+ 0x00000009,0x0000017c,0x00000178,0x00000179,0x0000017a,0x0000017b,0x0004002b,0x00000006,
+ 0x0000017d,0xbd70c05f,0x0004002b,0x00000006,0x0000017e,0x3c87353f,0x0004002b,0x00000006,
+ 0x0000017f,0xbe1ef5d7,0x0004002b,0x00000006,0x00000180,0x3c94c7a9,0x0007002c,0x00000009,
+ 0x00000181,0x0000017d,0x0000017e,0x0000017f,0x00000180,0x0007002c,0x0000002d,0x00000182,
+ 0x00000172,0x00000177,0x0000017c,0x00000181,0x0004002b,0x00000006,0x0000018b,0xbda58f65,
+ 0x0004002b,0x00000006,0x0000018c,0x3b21a510,0x0004002b,0x00000006,0x0000018d,0xbd4a3bbc,
+ 0x0004002b,0x00000006,0x0000018e,0x3cf8cd5a,0x0007002c,0x00000009,0x0000018f,0x0000018b,
+ 0x0000018c,0x0000018d,0x0000018e,0x0004002b,0x00000006,0x00000190,0x3c39aac6,0x0004002b,
+ 0x00000006,0x00000191,0xbc70779e,0x0004002b,0x00000006,0x00000192,0x3c3ed1c1,0x0004002b,
+ 0x00000006,0x00000193,0xbc3b36ed,0x0007002c,0x00000009,0x00000194,0x00000190,0x00000191,
+ 0x00000192,0x00000193,0x0004002b,0x00000006,0x00000195,0x3dffdb8e,0x0004002b,0x00000006,
+ 0x00000196,0x3d87b223,0x0004002b,0x00000006,0x00000197,0xbd3bc3a2,0x0004002b,0x00000006,
+ 0x00000198,0xbc1ecf8a,0x0007002c,0x00000009,0x00000199,0x00000195,0x00000196,0x00000197,
+ 0x00000198,0x0004002b,0x00000006,0x0000019a,0xbc4f3ece,0x0004002b,0x00000006,0x0000019b,
+ 0xbd974ed6,0x0004002b,0x00000006,0x0000019c,0x3c10043f,0x0004002b,0x00000006,0x0000019d,
+ 0x3ab5768c,0x0007002c,0x00000009,0x0000019e,0x0000019a,0x0000019b,0x0000019c,0x0000019d,
+ 0x0007002c,0x0000002d,0x0000019f,0x0000018f,0x00000194,0x00000199,0x0000019e,0x0004002b,
+ 0x00000006,0x000001a8,0xbeadc83e,0x0004002b,0x00000006,0x000001a9,0xbe8d7d6f,0x0004002b,
+ 0x00000006,0x000001aa,0xbdf24d44,0x0004002b,0x00000006,0x000001ab,0xbd821ec7,0x0007002c,
+ 0x00000009,0x000001ac,0x000001a8,0x000001a9,0x000001aa,0x000001ab,0x0004002b,0x00000006,
+ 0x000001ad,0x3e566282,0x0004002b,0x00000006,0x000001ae,0x3e0c9bc8,0x0004002b,0x00000006,
+ 0x000001af,0x3e09a993,0x0004002b,0x00000006,0x000001b0,0x3d98df20,0x0007002c,0x00000009,
+ 0x000001b1,0x000001ad,0x000001ae,0x000001af,0x000001b0,0x0004002b,0x00000006,0x000001b2,
+ 0x3d745469,0x0004002b,0x00000006,0x000001b3,0xbebd4d63,0x0004002b,0x00000006,0x000001b4,
+ 0x3e286393,0x0004002b,0x00000006,0x000001b5,0xbebddd43,0x0007002c,0x00000009,0x000001b6,
+ 0x000001b2,0x000001b3,0x000001b4,0x000001b5,0x0004002b,0x00000006,0x000001b7,0x3d83be47,
+ 0x0004002b,0x00000006,0x000001b8,0xbe3b37df,0x0004002b,0x00000006,0x000001b9,0xbd363abc,
+ 0x0004002b,0x00000006,0x000001ba,0xbe0e49a8,0x0007002c,0x00000009,0x000001bb,0x000001b7,
+ 0x000001b8,0x000001b9,0x000001ba,0x0007002c,0x0000002d,0x000001bc,0x000001ac,0x000001b1,
+ 0x000001b6,0x000001bb,0x0004002b,0x00000006,0x000001c5,0x3e0a95b1,0x0004002b,0x00000006,
+ 0x000001c6,0x3da958ee,0x0004002b,0x00000006,0x000001c7,0xbd168ecb,0x0004002b,0x00000006,
+ 0x000001c8,0xbe12ee26,0x0007002c,0x00000009,0x000001c9,0x000001c5,0x000001c6,0x000001c7,
+ 0x000001c8,0x0004002b,0x00000006,0x000001ca,0x3c989481,0x0004002b,0x00000006,0x000001cb,
+ 0xbd4eead4,0x0004002b,0x00000006,0x000001cc,0x3d68415b,0x0004002b,0x00000006,0x000001cd,
+ 0x3bca3cb9,0x0007002c,0x00000009,0x000001ce,0x000001ca,0x000001cb,0x000001cc,0x000001cd,
+ 0x0004002b,0x00000006,0x000001cf,0x3d433a4e,0x0004002b,0x00000006,0x000001d0,0xbdb49c26,
+ 0x0004002b,0x00000006,0x000001d1,0x3e6e1fdf,0x0004002b,0x00000006,0x000001d2,0xbc65a11e,
+ 0x0007002c,0x00000009,0x000001d3,0x000001cf,0x000001d0,0x000001d1,0x000001d2,0x0004002b,
+ 0x00000006,0x000001d4,0x3dac0943,0x0004002b,0x00000006,0x000001d5,0xbbf1c13e,0x0004002b,
+ 0x00000006,0x000001d6,0x3e617de4,0x0004002b,0x00000006,0x000001d7,0xbdfd41dd,0x0007002c,
+ 0x00000009,0x000001d8,0x000001d4,0x000001d5,0x000001d6,0x000001d7,0x0007002c,0x0000002d,
+ 0x000001d9,0x000001c9,0x000001ce,0x000001d3,0x000001d8,0x0004002b,0x00000006,0x000001e2,
+ 0x3d32a071,0x0004002b,0x00000006,0x000001e3,0x3d3ea49a,0x0004002b,0x00000006,0x000001e4,
+ 0x3bd48b17,0x0004002b,0x00000006,0x000001e5,0xbd098cb7,0x0007002c,0x00000009,0x000001e6,
+ 0x000001e2,0x000001e3,0x000001e4,0x000001e5,0x0004002b,0x00000006,0x000001e7,0xbcb92839,
+ 0x0004002b,0x00000006,0x000001e8,0x3c94983c,0x0004002b,0x00000006,0x000001e9,0xbc3566c3,
+ 0x0004002b,0x00000006,0x000001ea,0x3c27d6d5,0x0007002c,0x00000009,0x000001eb,0x000001e7,
+ 0x000001e8,0x000001e9,0x000001ea,0x0004002b,0x00000006,0x000001ec,0xbca252a5,0x0004002b,
+ 0x00000006,0x000001ed,0xbe30a44a,0x0004002b,0x00000006,0x000001ee,0x3d27364c,0x0004002b,
+ 0x00000006,0x000001ef,0xbd246170,0x0007002c,0x00000009,0x000001f0,0x000001ec,0x000001ed,
+ 0x000001ee,0x000001ef,0x0004002b,0x00000006,0x000001f1,0x3c25e6e9,0x0004002b,0x00000006,
+ 0x000001f2,0x3ca940bb,0x0004002b,0x00000006,0x000001f3,0x3b05ec4d,0x0004002b,0x00000006,
+ 0x000001f4,0xbc314373,0x0007002c,0x00000009,0x000001f5,0x000001f1,0x000001f2,0x000001f3,
+ 0x000001f4,0x0007002c,0x0000002d,0x000001f6,0x000001e6,0x000001eb,0x000001f0,0x000001f5,
+ 0x0004002b,0x00000006,0x000001ff,0xbb9d9ed3,0x0004002b,0x00000006,0x00000200,0xbde72388,
+ 0x0004002b,0x00000006,0x00000201,0x3d54ef19,0x0004002b,0x00000006,0x00000202,0x3d44246f,
+ 0x0007002c,0x00000009,0x00000203,0x000001ff,0x00000200,0x00000201,0x00000202,0x0004002b,
+ 0x00000006,0x00000204,0xbcc433b0,0x0004002b,0x00000006,0x00000205,0x3d140ce9,0x0004002b,
+ 0x00000006,0x00000206,0xbd1c7b9e,0x0004002b,0x00000006,0x00000207,0x3d56a2c1,0x0007002c,
+ 0x00000009,0x00000208,0x00000204,0x00000205,0x00000206,0x00000207,0x0004002b,0x00000006,
+ 0x00000209,0x3cbc4f29,0x0004002b,0x00000006,0x0000020a,0x3e874633,0x0004002b,0x00000006,
+ 0x0000020b,0xbd78e918,0x0004002b,0x00000006,0x0000020c,0xbdbd805d,0x0007002c,0x00000009,
+ 0x0000020d,0x00000209,0x0000020a,0x0000020b,0x0000020c,0x0004002b,0x00000006,0x0000020e,
+ 0x3d019eae,0x0004002b,0x00000006,0x0000020f,0x3e20472e,0x0004002b,0x00000006,0x00000210,
+ 0xbd1b60af,0x0004002b,0x00000006,0x00000211,0xbb681e7a,0x0007002c,0x00000009,0x00000212,
+ 0x0000020e,0x0000020f,0x00000210,0x00000211,0x0007002c,0x0000002d,0x00000213,0x00000203,
+ 0x00000208,0x0000020d,0x00000212,0x0004002b,0x00000006,0x0000021c,0x3d098f05,0x0004002b,
+ 0x00000006,0x0000021d,0xbbab0830,0x0004002b,0x00000006,0x0000021e,0x3be75ef9,0x0004002b,
+ 0x00000006,0x0000021f,0xbd868914,0x0007002c,0x00000009,0x00000220,0x0000021c,0x0000021d,
+ 0x0000021e,0x0000021f,0x0004002b,0x00000006,0x00000221,0xbcf0fb8b,0x0004002b,0x00000006,
+ 0x00000222,0x3c1e4753,0x0004002b,0x00000006,0x00000223,0xbc7bca04,0x0004002b,0x00000006,
+ 0x00000224,0x3ca310b0,0x0007002c,0x00000009,0x00000225,0x00000221,0x00000222,0x00000223,
+ 0x00000224,0x0004002b,0x00000006,0x00000226,0xbddb9c97,0x0004002b,0x00000006,0x00000227,
+ 0xbd0b7f1a,0x0004002b,0x00000006,0x00000228,0xbd359dfb,0x0004002b,0x00000006,0x00000229,
+ 0x3e89b0f9,0x0007002c,0x00000009,0x0000022a,0x00000226,0x00000227,0x00000228,0x00000229,
+ 0x0004002b,0x00000006,0x0000022b,0xbd417cf0,0x0004002b,0x00000006,0x0000022c,0xbcd428a7,
+ 0x0004002b,0x00000006,0x0000022d,0x3b95872a,0x0004002b,0x00000006,0x0000022e,0x3e45d147,
+ 0x0007002c,0x00000009,0x0000022f,0x0000022b,0x0000022c,0x0000022d,0x0000022e,0x0007002c,
+ 0x0000002d,0x00000230,0x00000220,0x00000225,0x0000022a,0x0000022f,0x0004002b,0x00000006,
+ 0x00000239,0xbb633bcf,0x0004002b,0x00000006,0x0000023a,0xbb9798f1,0x0004002b,0x00000006,
+ 0x0000023b,0xbb979f64,0x0004002b,0x00000006,0x0000023c,0xbbbd4c47,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/ui/stream_menu.cpp b/src/ui/stream_menu.cpp
index 02c1fe9..7a39670 100644
--- a/src/ui/stream_menu.cpp
+++ b/src/ui/stream_menu.cpp
@@ -29,11 +29,12 @@ std::string fmt(const char* f, double v) {
} // namespace
-void StreamMenu::open(int resolution, bool stats, int sharpness, int deband) {
+void StreamMenu::open(int resolution, bool stats, int sharpness, int deband, int upscaler) {
open_ = true;
stats_ = stats;
sharpness_ = sharpness;
deband_ = deband;
+ upscaler_ = upscaler;
selected_ = Resume;
resolution_ = applied_ = resolution;
resolutionAsked_ = false;
@@ -58,6 +59,10 @@ MenuAction StreamMenu::handle(const NavInput& in) {
sharpness_ = in.left ? (sharpness_ + 3) % 4 : (sharpness_ + 1) % 4;
return MenuAction::Sharpness;
}
+ if (selected_ == Upscaler && (in.left || in.right || in.accept)) {
+ upscaler_ = 1 - upscaler_;
+ return MenuAction::Upscaler;
+ }
if (selected_ == Deband && (in.left || in.right || in.accept)) {
deband_ = in.left ? (deband_ + 2) % 3 : (deband_ + 1) % 3;
return MenuAction::Deband;
@@ -88,7 +93,7 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {
fonts_.bold.draw(c, tr(Str::MenuTitle), kPad, 40, 34, kWhite);
// The items: the selected one white, like the Xbox guide.
- constexpr int kRowH = 60, kTop = 110, kPx = 24;
+ constexpr int kRowH = 54, kTop = 108, kPx = 24;
for (int i = 0; i < ItemCount; ++i) {
Rect row{kPad - 16, kTop + i * kRowH, kMenuW - 2 * (kPad - 16), kRowH - 8};
bool sel = i == selected_;
@@ -99,6 +104,7 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {
: i == Stats ? tr(Str::MenuStats)
: i == Sharpness ? tr(Str::MenuSharpness)
: i == Deband ? tr(Str::MenuDeband)
+ : i == Upscaler ? tr(Str::MenuUpscaler)
: i == Resolution ? tr(Str::MenuResolution)
: i == Refresh ? tr(Str::MenuRefresh)
: tr(Str::MenuLeave);
@@ -110,6 +116,10 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {
value = tr(kLevels[sharpness_]);
if (sel) value = "< " + value + " >";
}
+ if (i == Upscaler) {
+ value = upscaler_ ? 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_]);
diff --git a/src/ui/stream_menu.h b/src/ui/stream_menu.h
index 999a7cf..35ea005 100644
--- a/src/ui/stream_menu.h
+++ b/src/ui/stream_menu.h
@@ -23,7 +23,7 @@ struct StreamInfo {
int width = 0, height = 0; // of the decoded picture
};
-enum class MenuAction { None, Close, Leave, Refresh, Resolution, Stats, Sharpness, Deband };
+enum class MenuAction { None, Close, Leave, Refresh, Resolution, Stats, Sharpness, Deband, Upscaler };
class StreamMenu {
public:
@@ -36,7 +36,8 @@ public:
// `resolution` as SettingsChoice::resolution (0 = 1080p, 1 = 720p, 2 = 1440p).
// `sharpness` 0 = off, 1..3 = low, medium, high; `deband` 0..2 = off,
// low, high.
- void open(int resolution, bool stats, int sharpness = 0, int deband = 1);
+ // `upscaler` 0 = FSR, 1 = Anime4K.
+ void open(int resolution, bool stats, int sharpness = 0, int deband = 1, int upscaler = 0);
void close() { open_ = false; }
bool isOpen() const { return open_; }
MenuAction handle(const NavInput& in);
@@ -44,6 +45,7 @@ public:
bool statsOn() const { return stats_; }
int sharpness() const { return sharpness_; }
int deband() const { return deband_; }
+ int upscaler() const { return upscaler_; }
// Circle confirms: the hints swap their buttons.
void setCircleConfirms(bool on) { circleConfirms_ = on; }
// The controllers in use, under the connection.
@@ -53,13 +55,13 @@ public:
Canvas renderStats(const StreamInfo& info) const;
private:
- enum Item { Resume, Stats, Sharpness, Deband, Resolution, Refresh, Leave, ItemCount };
+ enum Item { Resume, Stats, Upscaler, Sharpness, Deband, Resolution, Refresh, Leave, ItemCount };
const Fonts& fonts_;
bool open_ = false, stats_ = false;
int selected_ = Resume;
int resolution_ = 0, applied_ = 0;
- int sharpness_ = 0, deband_ = 1;
+ int sharpness_ = 0, deband_ = 1, upscaler_ = 0;
bool resolutionAsked_ = false;
bool circleConfirms_ = false;
PadSlots pads_{};
diff --git a/src/ui/strings.cpp b/src/ui/strings.cpp
index 756387a..f28c003 100644
--- a/src/ui/strings.cpp
+++ b/src/ui/strings.cpp
@@ -150,6 +150,8 @@ constexpr Column kEnglish = {
"Connection lost: reconnecting...", // Reconnecting
"Reconnected", // Reconnected
"Light bar in the game's colour", // LightBar
+ "Upscaling", // MenuUpscaler
+ "AI (Anime4K)", // UpscalerAi
};
constexpr Column kPortugueseBR = {
@@ -270,6 +272,8 @@ constexpr Column kPortugueseBR = {
"Conexão perdida: reconectando...",
"Reconectado",
"Barra de luz com a cor do jogo",
+ "Ampliação",
+ "IA (Anime4K)",
};
constexpr Column kSpanish = {
@@ -390,6 +394,8 @@ constexpr Column kSpanish = {
"Conexión perdida: reconectando...",
"Reconectado",
"Barra de luz con el color del juego",
+ "Escalado",
+ "IA (Anime4K)",
};
constexpr Column kFrench = {
@@ -510,6 +516,8 @@ constexpr Column kFrench = {
"Connexion perdue : reconnexion...",
"Reconnecté",
"Barre lumineuse aux couleurs du jeu",
+ "Mise à l'échelle",
+ "IA (Anime4K)",
};
constexpr Column kGerman = {
@@ -630,6 +638,8 @@ constexpr Column kGerman = {
"Verbindung verloren: neu verbinden...",
"Wieder verbunden",
"Lichtleiste in der Farbe des Spiels",
+ "Hochskalierung",
+ "KI (Anime4K)",
};
constexpr Column kItalian = {
@@ -750,6 +760,8 @@ constexpr Column kItalian = {
"Connessione persa: riconnessione...",
"Riconnesso",
"Barra luminosa con il colore del gioco",
+ "Upscaling",
+ "IA (Anime4K)",
};
constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,
diff --git a/src/ui/strings.h b/src/ui/strings.h
index a68f6c2..251e415 100644
--- a/src/ui/strings.h
+++ b/src/ui/strings.h
@@ -127,6 +127,8 @@ enum class Str {
Reconnecting, // the connection dropped mid-game
Reconnected,
LightBar, // settings: the light bar takes the game's colour
+ MenuUpscaler, // game menu: how the picture is upscaled to 4K
+ UpscalerAi, // the Anime4K network
Count
};
diff --git a/tests/test_main.cpp b/tests/test_main.cpp
index 5cf0212..9f2a349 100644
--- a/tests/test_main.cpp
+++ b/tests/test_main.cpp
@@ -226,6 +226,9 @@ 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(menu.upscaler() == 1);
+ 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; });
@@ -237,7 +240,7 @@ static void testStreamMenu() {
press([](xc::ui::NavInput& n) { n.left = true; }); // wraps to 1440p
CHECK(menu.resolution() == 2);
CHECK(press([](xc::ui::NavInput& n) { n.accept = true; }) == MenuAction::Resolution);
- for (int i = 0; i < 5; ++i) press([](xc::ui::NavInput& n) { n.up = true; }); // wraps to "Leave game"
+ for (int i = 0; i < 6; ++i) press([](xc::ui::NavInput& n) { n.up = true; }); // wraps to "Leave game"
CHECK(press([](xc::ui::NavInput& n) { n.accept = true; }) == MenuAction::Leave);
CHECK(!menu.isOpen());
menu.open(1, true);
diff --git a/tools/gen-anime4k.py b/tools/gen-anime4k.py
new file mode 100755
index 0000000..3906849
--- /dev/null
+++ b/tools/gen-anime4k.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: GPL-3.0-or-later
+# Copyright (C) 2026 RafaelNGP
+"""Anime4K's mpv hooks (extern/anime4k, MIT) as Vulkan compute shaders.
+
+Every convolution pass of Anime4K_Upscale_CNN_x2_<size>.glsl becomes
+src/display/shaders/a4k_<size>_conv<N>.comp: same weights and body, its
+texture reads (`<name>_texOff`) turned into clamped imageLoad()s, and the
+result stored to a 16-bit float feature map. The depth-to-space pass is
+not generated: a4k_d2s.comp writes it straight into the 4K picture.
+Then run tools/gen-shaders.sh.
+"""
+import pathlib
+import re
+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()
+license_head = src[: src.index("//!DESC")]
+
+passes = []
+for block in src.split("//!DESC")[1:]:
+ lines = block.splitlines()
+ desc = lines[0].strip()
+ binds = [l.split()[1] for l in lines if l.startswith("//!BIND")]
+ save = next(l.split()[1] for l in lines if l.startswith("//!SAVE"))
+ body = "\n".join(l for l in lines[1:] if not l.startswith("//!"))
+ passes.append((desc, binds, save, body))
+
+out_dir = root / "src/display/shaders"
+generated = []
+for n, (desc, binds, save, body) in enumerate(passes):
+ if "Depth-to-Space" in desc:
+ continue
+ if len(binds) != 1:
+ sys.exit(f"{desc}: expected one input, got {binds}")
+ name = binds[0]
+ # mpv: <name>_texOff(vec2(x, y)) samples the input x, y pixels away.
+ body = body.replace(f"{name}_texOff(", "load_input(")
+ shader = f"""#version 450
+{license_head.strip()}
+// Generated by tools/gen-anime4k.py from {desc} (input {name}); do not edit.
+layout(local_size_x = 8, local_size_y = 8) in;
+layout(binding = 0, {"rgba8" if name == "MAIN" else "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));
+}}
+{body.strip()}
+
+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());
+}}
+"""
+ path = out_dir / f"a4k_{size.lower()}_conv{len(generated)}.comp"
+ path.write_text(shader)
+ generated.append(path.name)
+print(" ".join(generated))
diff --git a/tools/ps5/package.sh b/tools/ps5/package.sh
index 1845bdb..71d66c0 100755
--- a/tools/ps5/package.sh
+++ b/tools/ps5/package.sh
@@ -39,6 +39,7 @@ cp "$root/THIRD_PARTY_NOTICES.md" "$app/licenses/"
cp "$root/assets/fonts/OFL.txt" "$app/licenses/Inter-OFL.txt"
cp "$root/deps/mbedtls/LICENSE" "$app/licenses/mbedtls-LICENSE.txt"
cp "$root/extern/fsr1/LICENSE.txt" "$app/licenses/FidelityFX-FSR-MIT.txt"
+cp "$root/extern/anime4k/LICENSE" "$app/licenses/Anime4K-MIT.txt"
# RADV (Mesa), linked into eboot.bin: mostly MIT, per-file SPDX otherwise.
mesa=${PS5_MESA:-$vk/../PS5_Mesa}
cp "$mesa/licenses/MIT" "$app/licenses/Mesa-MIT.txt"