From e3ba2bc68da0c47d878990506676b3d38f1f8b9d Mon Sep 17 00:00:00 2001 From: The412Banner <205237651+The412Banner@users.noreply.github.com> Date: Sat, 28 Nov 2026 20:12:18 -0500 Subject: [PATCH] perf(effects): half-precision upscalers, AMD CAS and a gather-based NIS from Bannerlator (#3391) * perf(effects): half-precision upscalers, AMD CAS and a gather-based NIS from Bannerlator The screen-effect chain ran every upscaler and CAS in fp32, and NIS read its 36-tap support and coefficient tables per pixel. Ported from Bannerlator (The412Banner/Bannerlator 16595ed8 + 671feb8c), where the same shaders run in its Wayland compositor: - SGSR, SGSR HQ, FSR EASU and RCAS get a half-precision build of the same source (-DDD_HALF=1, *_half_frag.h). The divide-by-zero guards DroidDeck added to EASU, RCAS and CAS are kept. - CAS: AMD's FidelityFX CAS (ffx_cas.h v1.0.2, 5-tap), half precision. - NIS: a prepass writes the scene with luma in alpha at scene size (nis_luma.frag); nis3.frag gathers that luma and reads its coefficient banks from a 4 KB uniform buffer (nis_coef.h, set 1 of its own pipeline layout). Without the buffer, NIS falls back to nis.frag. - debug.droiddeck.upscale.shaders=old builds the previous fp32 set, for A/B. The half SGSR, SGSR HQ, CAS, NIS luma and nis3 SPIR-V is identical to Bannerlator's (glslang 16.2.0). Notices: AMD CAS added to THIRD_PARTY_NOTICES.txt; NVIDIA NIS covers the new NIS files. * fix(effects): NIS prepass address at full precision; fast NIS only where it is safe From review: - nis_luma.frag: the half build made gl_FragCoord RelaxedPrecision, so a 16-bit load rounds pixel centres past x = 1024 (1279.5 -> 1280) and texelFetch reads the wrong or an outside texel. Only colour and luma are mediump now; the load and the integer address stay full precision (checked in the SPIR-V). - Fast NIS keeps luma in alpha, so it runs only on chain formats with at least 8 alpha bits; the 10-bit HDR composition format (2-bit alpha) uses nis.frag. - A driver that rejects nis3_half or nis_luma_half gets nis.frag instead of a disabled effects chain. - If the NIS luma target cannot be allocated, that frame uses SGSR from the scene instead of skipping every effect. --- .../main/cpp/shaders/THIRD_PARTY_NOTICES.txt | 15 +- app/src/main/cpp/shaders/cas_ffx.frag | 108 ++ app/src/main/cpp/shaders/cas_ffx_half_frag.h | 214 +++ app/src/main/cpp/shaders/fsr_easu.frag | 45 +- app/src/main/cpp/shaders/fsr_easu_half_frag.h | 1157 ++++++++++++++ app/src/main/cpp/shaders/fsr_rcas.frag | 18 +- app/src/main/cpp/shaders/fsr_rcas_half_frag.h | 641 ++++++++ app/src/main/cpp/shaders/gen_shaders.sh | 34 +- app/src/main/cpp/shaders/nis.frag | 36 +- app/src/main/cpp/shaders/nis3.frag | 357 +++++ app/src/main/cpp/shaders/nis3_half_frag.h | 1364 +++++++++++++++++ app/src/main/cpp/shaders/nis_coef.h | 156 ++ app/src/main/cpp/shaders/nis_luma.frag | 36 + app/src/main/cpp/shaders/nis_luma_half_frag.h | 58 + app/src/main/cpp/shaders/sgsr.frag | 28 +- app/src/main/cpp/shaders/sgsr_half_frag.h | 530 +++++++ app/src/main/cpp/shaders/sgsr_quality.frag | 42 +- .../main/cpp/shaders/sgsr_quality_half_frag.h | 612 ++++++++ .../main/cpp/waylandcomp/src/effects_chain.c | 189 ++- 19 files changed, 5564 insertions(+), 76 deletions(-) create mode 100644 app/src/main/cpp/shaders/cas_ffx.frag create mode 100644 app/src/main/cpp/shaders/cas_ffx_half_frag.h create mode 100644 app/src/main/cpp/shaders/fsr_easu_half_frag.h create mode 100644 app/src/main/cpp/shaders/fsr_rcas_half_frag.h create mode 100644 app/src/main/cpp/shaders/nis3.frag create mode 100644 app/src/main/cpp/shaders/nis3_half_frag.h create mode 100644 app/src/main/cpp/shaders/nis_coef.h create mode 100644 app/src/main/cpp/shaders/nis_luma.frag create mode 100644 app/src/main/cpp/shaders/nis_luma_half_frag.h create mode 100644 app/src/main/cpp/shaders/sgsr_half_frag.h create mode 100644 app/src/main/cpp/shaders/sgsr_quality_half_frag.h diff --git a/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt b/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt index 6e2abb890c..761743c464 100644 --- a/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt +++ b/app/src/main/cpp/shaders/THIRD_PARTY_NOTICES.txt @@ -41,7 +41,20 @@ Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: MIT -The MIT License text above applies to both AMD FidelityFX FSR 1.0 and NVIDIA Image Scaling (NIS). +The NIS luma prepass (nis_luma.frag), the gather-based NIS pass (nis3.frag) and its +coefficient banks (nis_coef.h) are from the same NVIDIA reference. + +AMD FidelityFX CAS (Contrast Adaptive Sharpening) +------------------------------------------------- +The CAS fragment shader (cas_ffx.frag) is ported from AMD's reference header +GPUOpen-Effects/FidelityFX-CAS ffx-cas/ffx_cas.h (v1.0.2). + +Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved. + +SPDX-License-Identifier: MIT + +The MIT License text above applies to AMD FidelityFX FSR 1.0, AMD FidelityFX CAS and +NVIDIA Image Scaling (NIS). Snapdragon Game Super Resolution 1 (SGSR1) ------------------------------------------ diff --git a/app/src/main/cpp/shaders/cas_ffx.frag b/app/src/main/cpp/shaders/cas_ffx.frag new file mode 100644 index 0000000000..9e0b68a1f4 --- /dev/null +++ b/app/src/main/cpp/shaders/cas_ffx.frag @@ -0,0 +1,108 @@ +#version 450 + +// ============================================================================= +// AMD FidelityFX CAS (Contrast Adaptive Sharpening) - sharpen-only path. +// +// Ported from AMD's reference header: +// GPUOpen-Effects/FidelityFX-CAS ffx-cas/ffx_cas.h (v1.0.2, CAS 1.20190610) +// CasSetup() sharpness term + CasFilter() with noScaling == true. +// +// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved. +// SPDX-License-Identifier: MIT +// +// 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. +// +// Adapted in Bannerlator (The412Banner/Bannerlator) for its compositors; here +// in the Wayland effects chain, built half only (cas_ffx_half_frag.h): +// - AMD's default build: CAS_BETTER_DIAGONALS, CAS_SLOW and CAS_GO_SLOWER not +// defined -> the 5-tap "circle" (b d e f h) and the green channel's weight +// for all channels. cas.frag (the previous shader) is the BETTER_DIAGONALS +// + CAS_SLOW maths with 9 taps. +// - APrxLoRcp / APrxLoSqrt / APrxMedRcp (bit-trick approximations for AMD +// ALUs) are plain 1/x and sqrt here. +// - Same push constants as cas.frag: ndc, input size, sharpness [0..1]. +// CasSetup's const1.x = -1 / lerp(8, 5, sharpness) is computed here. +// - The input is the effect chain's previous target at the same size, so the +// output pixel reads the input pixel 1:1 (texelFetch, edges clamped). +// ============================================================================= + +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in AMD's +// CasFilterH; positions stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D InputTexture; + +layout(push_constant) uniform PC { + highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0) + highp vec2 resolution; // input (= output) size in pixels + float sharpness; // CAS sharpness [0..1] +} pc; + +layout(location = 0) in highp vec2 fragTexCoord; +layout(location = 0) out vec4 outColor; + +vec3 CasLoad(ivec2 p) { + ivec2 sz = textureSize(InputTexture, 0); + return texelFetch(InputTexture, clamp(p, ivec2(0), sz - ivec2(1)), 0).rgb; +} + +float AMin3F1(float x, float y, float z) { return min(x, min(y, z)); } +float AMax3F1(float x, float y, float z) { return max(x, max(y, z)); } + +void main() { + ivec2 sp = ivec2(fragTexCoord * pc.resolution); + + // CasSetup: sharp = -1 / lerp(8.0, 5.0, saturate(sharpness)). + float peak = -1.0 / mix(8.0, 5.0, clamp(pc.sharpness, 0.0, 1.0)); + + // b + // d e f + // h + vec3 b = CasLoad(sp + ivec2( 0, -1)); + vec3 d = CasLoad(sp + ivec2(-1, 0)); + vec3 e = CasLoad(sp); + vec3 f = CasLoad(sp + ivec2( 1, 0)); + vec3 h = CasLoad(sp + ivec2( 0, 1)); + + // Soft min and max of the circle (green only: the weight below uses green). + float mnG = AMin3F1(AMin3F1(d.g, e.g, f.g), b.g, h.g); + float mxG = AMax3F1(AMax3F1(d.g, e.g, f.g), b.g, h.g); + + // Smooth minimum distance to signal limit divided by smooth max. + // AMD's bit-trick reciprocal stays finite at 0; 1/0 here would give 0 * inf + // on black, so the max is floored (below one 8-bit step; mn = 0 there anyway). + float rcpMG = 1.0 / max(mxG, 1.0 / 1024.0); + float ampG = clamp(min(mnG, 1.0 - mxG) * rcpMG, 0.0, 1.0); + + // Shaping amount of sharpening. + ampG = sqrt(ampG); + + // Filter shape: 0 w 0 / w 1 w / 0 w 0 + float wG = ampG * peak; + float rcpWeight = 1.0 / (1.0 + 4.0 * wG); + vec3 pix = clamp((b * wG + d * wG + f * wG + h * wG + e) * rcpWeight, 0.0, 1.0); + + outColor = vec4(pix, 1.0); +} diff --git a/app/src/main/cpp/shaders/cas_ffx_half_frag.h b/app/src/main/cpp/shaders/cas_ffx_half_frag.h new file mode 100644 index 0000000000..22fbf6119b --- /dev/null +++ b/app/src/main/cpp/shaders/cas_ffx_half_frag.h @@ -0,0 +1,214 @@ + // 1116.2.0 + #pragma once +const uint32_t cas_ffx_half_code[] = { + 0x07230203,0x00010000,0x0008000b,0x000000d7,0x00000000,0x00020011,0x00000001,0x00020011, + 0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e, + 0x00000000,0x00000001,0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000043, + 0x000000d1,0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005, + 0x00000004,0x6e69616d,0x00000000,0x00060005,0x0000000d,0x4c736143,0x2864616f,0x3b326976, + 0x00000000,0x00030005,0x0000000c,0x00000070,0x00070005,0x00000014,0x6e694d41,0x28314633, + 0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000011,0x00000078,0x00030005,0x00000012, + 0x00000079,0x00030005,0x00000013,0x0000007a,0x00070005,0x00000019,0x78614d41,0x28314633, + 0x663b3166,0x31663b31,0x0000003b,0x00030005,0x00000016,0x00000078,0x00030005,0x00000017, + 0x00000079,0x00030005,0x00000018,0x0000007a,0x00030005,0x0000001b,0x00007a73,0x00060005, + 0x0000001f,0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x00000040,0x00007073, + 0x00060005,0x00000043,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00030005,0x00000045, + 0x00004350,0x00040006,0x00000045,0x00000000,0x0063646e,0x00060006,0x00000045,0x00000001, + 0x6f736572,0x6974756c,0x00006e6f,0x00060006,0x00000045,0x00000002,0x72616873,0x73656e70, + 0x00000073,0x00030005,0x00000047,0x00006370,0x00040005,0x0000004d,0x6b616570,0x00000000, + 0x00030005,0x0000005b,0x00000062,0x00040005,0x00000060,0x61726170,0x0000006d,0x00030005, + 0x00000062,0x00000064,0x00040005,0x00000066,0x61726170,0x0000006d,0x00030005,0x00000068, + 0x00000065,0x00040005,0x00000069,0x61726170,0x0000006d,0x00030005,0x0000006c,0x00000066, + 0x00040005,0x00000070,0x61726170,0x0000006d,0x00030005,0x00000072,0x00000068,0x00040005, + 0x00000076,0x61726170,0x0000006d,0x00030005,0x00000078,0x00476e6d,0x00040005,0x00000079, + 0x61726170,0x0000006d,0x00040005,0x0000007e,0x61726170,0x0000006d,0x00040005,0x00000081, + 0x61726170,0x0000006d,0x00040005,0x00000085,0x61726170,0x0000006d,0x00040005,0x00000086, + 0x61726170,0x0000006d,0x00040005,0x00000089,0x61726170,0x0000006d,0x00030005,0x0000008d, + 0x0047786d,0x00040005,0x0000008e,0x61726170,0x0000006d,0x00040005,0x00000091,0x61726170, + 0x0000006d,0x00040005,0x00000094,0x61726170,0x0000006d,0x00040005,0x00000098,0x61726170, + 0x0000006d,0x00040005,0x00000099,0x61726170,0x0000006d,0x00040005,0x0000009c,0x61726170, + 0x0000006d,0x00040005,0x000000a0,0x4d706372,0x00000047,0x00040005,0x000000a5,0x47706d61, + 0x00000000,0x00030005,0x000000af,0x00004777,0x00050005,0x000000b3,0x57706372,0x68676965, + 0x00000074,0x00030005,0x000000b9,0x00786970,0x00050005,0x000000d1,0x4374756f,0x726f6c6f, + 0x00000000,0x00030047,0x0000000d,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047, + 0x00000012,0x00000000,0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000, + 0x00030047,0x00000016,0x00000000,0x00030047,0x00000017,0x00000000,0x00030047,0x00000018, + 0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001f,0x00000000,0x00040047, + 0x0000001f,0x00000021,0x00000000,0x00040047,0x0000001f,0x00000022,0x00000000,0x00030047, + 0x00000020,0x00000000,0x00030047,0x00000024,0x00000000,0x00030047,0x0000002e,0x00000000, + 0x00030047,0x0000002f,0x00000000,0x00030047,0x00000032,0x00000000,0x00030047,0x00000033, + 0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000035,0x00000000,0x00030047, + 0x00000036,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047,0x0000003a,0x00000000, + 0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003c,0x00000000,0x00030047,0x0000003d, + 0x00000000,0x00040047,0x00000043,0x0000001e,0x00000000,0x00030047,0x00000045,0x00000002, + 0x00050048,0x00000045,0x00000000,0x00000023,0x00000000,0x00050048,0x00000045,0x00000001, + 0x00000023,0x00000010,0x00040048,0x00000045,0x00000002,0x00000000,0x00050048,0x00000045, + 0x00000002,0x00000023,0x00000018,0x00030047,0x0000004d,0x00000000,0x00030047,0x00000054, + 0x00000000,0x00030047,0x00000057,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047, + 0x00000059,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x00000061,0x00000000, + 0x00030047,0x00000062,0x00000000,0x00030047,0x00000067,0x00000000,0x00030047,0x00000068, + 0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,0x0000006c,0x00000000,0x00030047, + 0x00000071,0x00000000,0x00030047,0x00000072,0x00000000,0x00030047,0x00000077,0x00000000, + 0x00030047,0x00000078,0x00000000,0x00030047,0x00000079,0x00000000,0x00030047,0x0000007d, + 0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x00000080,0x00000000,0x00030047, + 0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,0x00030047,0x00000084,0x00000000, + 0x00030047,0x00000085,0x00000000,0x00030047,0x00000086,0x00000000,0x00030047,0x00000088, + 0x00000000,0x00030047,0x00000089,0x00000000,0x00030047,0x0000008b,0x00000000,0x00030047, + 0x0000008c,0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e,0x00000000, + 0x00030047,0x00000090,0x00000000,0x00030047,0x00000091,0x00000000,0x00030047,0x00000093, + 0x00000000,0x00030047,0x00000094,0x00000000,0x00030047,0x00000096,0x00000000,0x00030047, + 0x00000097,0x00000000,0x00030047,0x00000098,0x00000000,0x00030047,0x00000099,0x00000000, + 0x00030047,0x0000009b,0x00000000,0x00030047,0x0000009c,0x00000000,0x00030047,0x0000009e, + 0x00000000,0x00030047,0x0000009f,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047, + 0x000000a1,0x00000000,0x00030047,0x000000a3,0x00000000,0x00030047,0x000000a4,0x00000000, + 0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a6,0x00000000,0x00030047,0x000000a7, + 0x00000000,0x00030047,0x000000a8,0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047, + 0x000000aa,0x00000000,0x00030047,0x000000ab,0x00000000,0x00030047,0x000000ac,0x00000000, + 0x00030047,0x000000ad,0x00000000,0x00030047,0x000000ae,0x00000000,0x00030047,0x000000af, + 0x00000000,0x00030047,0x000000b0,0x00000000,0x00030047,0x000000b1,0x00000000,0x00030047, + 0x000000b2,0x00000000,0x00030047,0x000000b3,0x00000000,0x00030047,0x000000b5,0x00000000, + 0x00030047,0x000000b6,0x00000000,0x00030047,0x000000b7,0x00000000,0x00030047,0x000000b8, + 0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047,0x000000ba,0x00000000,0x00030047, + 0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000,0x00030047,0x000000bd,0x00000000, + 0x00030047,0x000000be,0x00000000,0x00030047,0x000000bf,0x00000000,0x00030047,0x000000c0, + 0x00000000,0x00030047,0x000000c1,0x00000000,0x00030047,0x000000c2,0x00000000,0x00030047, + 0x000000c3,0x00000000,0x00030047,0x000000c4,0x00000000,0x00030047,0x000000c5,0x00000000, + 0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c7,0x00000000,0x00030047,0x000000c8, + 0x00000000,0x00030047,0x000000c9,0x00000000,0x00030047,0x000000ca,0x00000000,0x00030047, + 0x000000cb,0x00000000,0x00030047,0x000000cc,0x00000000,0x00030047,0x000000cd,0x00000000, + 0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d1, + 0x00000000,0x00040047,0x000000d1,0x0000001e,0x00000000,0x00030047,0x000000d2,0x00000000, + 0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5, + 0x00000000,0x00030047,0x000000d6,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003, + 0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040017,0x00000007,0x00000006, + 0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00030016,0x00000009,0x00000020, + 0x00040017,0x0000000a,0x00000009,0x00000003,0x00040021,0x0000000b,0x0000000a,0x00000008, + 0x00040020,0x0000000f,0x00000007,0x00000009,0x00060021,0x00000010,0x00000009,0x0000000f, + 0x0000000f,0x0000000f,0x00090019,0x0000001c,0x00000009,0x00000001,0x00000000,0x00000000, + 0x00000000,0x00000001,0x00000000,0x0003001b,0x0000001d,0x0000001c,0x00040020,0x0000001e, + 0x00000000,0x0000001d,0x0004003b,0x0000001e,0x0000001f,0x00000000,0x0004002b,0x00000006, + 0x00000021,0x00000000,0x0005002c,0x00000007,0x00000026,0x00000021,0x00000021,0x0004002b, + 0x00000006,0x00000028,0x00000001,0x0005002c,0x00000007,0x00000029,0x00000028,0x00000028, + 0x00040017,0x0000002d,0x00000009,0x00000004,0x00040017,0x00000041,0x00000009,0x00000002, + 0x00040020,0x00000042,0x00000001,0x00000041,0x0004003b,0x00000042,0x00000043,0x00000001, + 0x0005001e,0x00000045,0x0000002d,0x00000041,0x00000009,0x00040020,0x00000046,0x00000009, + 0x00000045,0x0004003b,0x00000046,0x00000047,0x00000009,0x00040020,0x00000048,0x00000009, + 0x00000041,0x0004002b,0x00000009,0x0000004e,0xbf800000,0x0004002b,0x00000009,0x0000004f, + 0x41000000,0x0004002b,0x00000009,0x00000050,0x40a00000,0x0004002b,0x00000006,0x00000051, + 0x00000002,0x00040020,0x00000052,0x00000009,0x00000009,0x0004002b,0x00000009,0x00000055, + 0x00000000,0x0004002b,0x00000009,0x00000056,0x3f800000,0x00040020,0x0000005a,0x00000007, + 0x0000000a,0x0004002b,0x00000006,0x0000005d,0xffffffff,0x0005002c,0x00000007,0x0000005e, + 0x00000021,0x0000005d,0x0005002c,0x00000007,0x00000064,0x0000005d,0x00000021,0x0005002c, + 0x00000007,0x0000006e,0x00000028,0x00000021,0x0005002c,0x00000007,0x00000074,0x00000021, + 0x00000028,0x00040015,0x0000007a,0x00000020,0x00000000,0x0004002b,0x0000007a,0x0000007b, + 0x00000001,0x0004002b,0x00000009,0x000000a2,0x3a800000,0x0004002b,0x00000009,0x000000b4, + 0x40800000,0x00040020,0x000000d0,0x00000003,0x0000002d,0x0004003b,0x000000d0,0x000000d1, + 0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005, + 0x0004003b,0x00000008,0x00000040,0x00000007,0x0004003b,0x0000000f,0x0000004d,0x00000007, + 0x0004003b,0x0000005a,0x0000005b,0x00000007,0x0004003b,0x00000008,0x00000060,0x00000007, + 0x0004003b,0x0000005a,0x00000062,0x00000007,0x0004003b,0x00000008,0x00000066,0x00000007, + 0x0004003b,0x0000005a,0x00000068,0x00000007,0x0004003b,0x00000008,0x00000069,0x00000007, + 0x0004003b,0x0000005a,0x0000006c,0x00000007,0x0004003b,0x00000008,0x00000070,0x00000007, + 0x0004003b,0x0000005a,0x00000072,0x00000007,0x0004003b,0x00000008,0x00000076,0x00000007, + 0x0004003b,0x0000000f,0x00000078,0x00000007,0x0004003b,0x0000000f,0x00000079,0x00000007, + 0x0004003b,0x0000000f,0x0000007e,0x00000007,0x0004003b,0x0000000f,0x00000081,0x00000007, + 0x0004003b,0x0000000f,0x00000085,0x00000007,0x0004003b,0x0000000f,0x00000086,0x00000007, + 0x0004003b,0x0000000f,0x00000089,0x00000007,0x0004003b,0x0000000f,0x0000008d,0x00000007, + 0x0004003b,0x0000000f,0x0000008e,0x00000007,0x0004003b,0x0000000f,0x00000091,0x00000007, + 0x0004003b,0x0000000f,0x00000094,0x00000007,0x0004003b,0x0000000f,0x00000098,0x00000007, + 0x0004003b,0x0000000f,0x00000099,0x00000007,0x0004003b,0x0000000f,0x0000009c,0x00000007, + 0x0004003b,0x0000000f,0x000000a0,0x00000007,0x0004003b,0x0000000f,0x000000a5,0x00000007, + 0x0004003b,0x0000000f,0x000000af,0x00000007,0x0004003b,0x0000000f,0x000000b3,0x00000007, + 0x0004003b,0x0000005a,0x000000b9,0x00000007,0x0004003d,0x00000041,0x00000044,0x00000043, + 0x00050041,0x00000048,0x00000049,0x00000047,0x00000028,0x0004003d,0x00000041,0x0000004a, + 0x00000049,0x00050085,0x00000041,0x0000004b,0x00000044,0x0000004a,0x0004006e,0x00000007, + 0x0000004c,0x0000004b,0x0003003e,0x00000040,0x0000004c,0x00050041,0x00000052,0x00000053, + 0x00000047,0x00000051,0x0004003d,0x00000009,0x00000054,0x00000053,0x0008000c,0x00000009, + 0x00000057,0x00000001,0x0000002b,0x00000054,0x00000055,0x00000056,0x0008000c,0x00000009, + 0x00000058,0x00000001,0x0000002e,0x0000004f,0x00000050,0x00000057,0x00050088,0x00000009, + 0x00000059,0x0000004e,0x00000058,0x0003003e,0x0000004d,0x00000059,0x0004003d,0x00000007, + 0x0000005c,0x00000040,0x00050080,0x00000007,0x0000005f,0x0000005c,0x0000005e,0x0003003e, + 0x00000060,0x0000005f,0x00050039,0x0000000a,0x00000061,0x0000000d,0x00000060,0x0003003e, + 0x0000005b,0x00000061,0x0004003d,0x00000007,0x00000063,0x00000040,0x00050080,0x00000007, + 0x00000065,0x00000063,0x00000064,0x0003003e,0x00000066,0x00000065,0x00050039,0x0000000a, + 0x00000067,0x0000000d,0x00000066,0x0003003e,0x00000062,0x00000067,0x0004003d,0x00000007, + 0x0000006a,0x00000040,0x0003003e,0x00000069,0x0000006a,0x00050039,0x0000000a,0x0000006b, + 0x0000000d,0x00000069,0x0003003e,0x00000068,0x0000006b,0x0004003d,0x00000007,0x0000006d, + 0x00000040,0x00050080,0x00000007,0x0000006f,0x0000006d,0x0000006e,0x0003003e,0x00000070, + 0x0000006f,0x00050039,0x0000000a,0x00000071,0x0000000d,0x00000070,0x0003003e,0x0000006c, + 0x00000071,0x0004003d,0x00000007,0x00000073,0x00000040,0x00050080,0x00000007,0x00000075, + 0x00000073,0x00000074,0x0003003e,0x00000076,0x00000075,0x00050039,0x0000000a,0x00000077, + 0x0000000d,0x00000076,0x0003003e,0x00000072,0x00000077,0x00050041,0x0000000f,0x0000007c, + 0x00000062,0x0000007b,0x0004003d,0x00000009,0x0000007d,0x0000007c,0x0003003e,0x00000079, + 0x0000007d,0x00050041,0x0000000f,0x0000007f,0x00000068,0x0000007b,0x0004003d,0x00000009, + 0x00000080,0x0000007f,0x0003003e,0x0000007e,0x00000080,0x00050041,0x0000000f,0x00000082, + 0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000083,0x00000082,0x0003003e,0x00000081, + 0x00000083,0x00070039,0x00000009,0x00000084,0x00000014,0x00000079,0x0000007e,0x00000081, + 0x0003003e,0x00000085,0x00000084,0x00050041,0x0000000f,0x00000087,0x0000005b,0x0000007b, + 0x0004003d,0x00000009,0x00000088,0x00000087,0x0003003e,0x00000086,0x00000088,0x00050041, + 0x0000000f,0x0000008a,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000008b,0x0000008a, + 0x0003003e,0x00000089,0x0000008b,0x00070039,0x00000009,0x0000008c,0x00000014,0x00000085, + 0x00000086,0x00000089,0x0003003e,0x00000078,0x0000008c,0x00050041,0x0000000f,0x0000008f, + 0x00000062,0x0000007b,0x0004003d,0x00000009,0x00000090,0x0000008f,0x0003003e,0x0000008e, + 0x00000090,0x00050041,0x0000000f,0x00000092,0x00000068,0x0000007b,0x0004003d,0x00000009, + 0x00000093,0x00000092,0x0003003e,0x00000091,0x00000093,0x00050041,0x0000000f,0x00000095, + 0x0000006c,0x0000007b,0x0004003d,0x00000009,0x00000096,0x00000095,0x0003003e,0x00000094, + 0x00000096,0x00070039,0x00000009,0x00000097,0x00000019,0x0000008e,0x00000091,0x00000094, + 0x0003003e,0x00000098,0x00000097,0x00050041,0x0000000f,0x0000009a,0x0000005b,0x0000007b, + 0x0004003d,0x00000009,0x0000009b,0x0000009a,0x0003003e,0x00000099,0x0000009b,0x00050041, + 0x0000000f,0x0000009d,0x00000072,0x0000007b,0x0004003d,0x00000009,0x0000009e,0x0000009d, + 0x0003003e,0x0000009c,0x0000009e,0x00070039,0x00000009,0x0000009f,0x00000019,0x00000098, + 0x00000099,0x0000009c,0x0003003e,0x0000008d,0x0000009f,0x0004003d,0x00000009,0x000000a1, + 0x0000008d,0x0007000c,0x00000009,0x000000a3,0x00000001,0x00000028,0x000000a1,0x000000a2, + 0x00050088,0x00000009,0x000000a4,0x00000056,0x000000a3,0x0003003e,0x000000a0,0x000000a4, + 0x0004003d,0x00000009,0x000000a6,0x00000078,0x0004003d,0x00000009,0x000000a7,0x0000008d, + 0x00050083,0x00000009,0x000000a8,0x00000056,0x000000a7,0x0007000c,0x00000009,0x000000a9, + 0x00000001,0x00000025,0x000000a6,0x000000a8,0x0004003d,0x00000009,0x000000aa,0x000000a0, + 0x00050085,0x00000009,0x000000ab,0x000000a9,0x000000aa,0x0008000c,0x00000009,0x000000ac, + 0x00000001,0x0000002b,0x000000ab,0x00000055,0x00000056,0x0003003e,0x000000a5,0x000000ac, + 0x0004003d,0x00000009,0x000000ad,0x000000a5,0x0006000c,0x00000009,0x000000ae,0x00000001, + 0x0000001f,0x000000ad,0x0003003e,0x000000a5,0x000000ae,0x0004003d,0x00000009,0x000000b0, + 0x000000a5,0x0004003d,0x00000009,0x000000b1,0x0000004d,0x00050085,0x00000009,0x000000b2, + 0x000000b0,0x000000b1,0x0003003e,0x000000af,0x000000b2,0x0004003d,0x00000009,0x000000b5, + 0x000000af,0x00050085,0x00000009,0x000000b6,0x000000b4,0x000000b5,0x00050081,0x00000009, + 0x000000b7,0x00000056,0x000000b6,0x00050088,0x00000009,0x000000b8,0x00000056,0x000000b7, + 0x0003003e,0x000000b3,0x000000b8,0x0004003d,0x0000000a,0x000000ba,0x0000005b,0x0004003d, + 0x00000009,0x000000bb,0x000000af,0x0005008e,0x0000000a,0x000000bc,0x000000ba,0x000000bb, + 0x0004003d,0x0000000a,0x000000bd,0x00000062,0x0004003d,0x00000009,0x000000be,0x000000af, + 0x0005008e,0x0000000a,0x000000bf,0x000000bd,0x000000be,0x00050081,0x0000000a,0x000000c0, + 0x000000bc,0x000000bf,0x0004003d,0x0000000a,0x000000c1,0x0000006c,0x0004003d,0x00000009, + 0x000000c2,0x000000af,0x0005008e,0x0000000a,0x000000c3,0x000000c1,0x000000c2,0x00050081, + 0x0000000a,0x000000c4,0x000000c0,0x000000c3,0x0004003d,0x0000000a,0x000000c5,0x00000072, + 0x0004003d,0x00000009,0x000000c6,0x000000af,0x0005008e,0x0000000a,0x000000c7,0x000000c5, + 0x000000c6,0x00050081,0x0000000a,0x000000c8,0x000000c4,0x000000c7,0x0004003d,0x0000000a, + 0x000000c9,0x00000068,0x00050081,0x0000000a,0x000000ca,0x000000c8,0x000000c9,0x0004003d, + 0x00000009,0x000000cb,0x000000b3,0x0005008e,0x0000000a,0x000000cc,0x000000ca,0x000000cb, + 0x00060050,0x0000000a,0x000000cd,0x00000055,0x00000055,0x00000055,0x00060050,0x0000000a, + 0x000000ce,0x00000056,0x00000056,0x00000056,0x0008000c,0x0000000a,0x000000cf,0x00000001, + 0x0000002b,0x000000cc,0x000000cd,0x000000ce,0x0003003e,0x000000b9,0x000000cf,0x0004003d, + 0x0000000a,0x000000d2,0x000000b9,0x00050051,0x00000009,0x000000d3,0x000000d2,0x00000000, + 0x00050051,0x00000009,0x000000d4,0x000000d2,0x00000001,0x00050051,0x00000009,0x000000d5, + 0x000000d2,0x00000002,0x00070050,0x0000002d,0x000000d6,0x000000d3,0x000000d4,0x000000d5, + 0x00000056,0x0003003e,0x000000d1,0x000000d6,0x000100fd,0x00010038,0x00050036,0x0000000a, + 0x0000000d,0x00000000,0x0000000b,0x00030037,0x00000008,0x0000000c,0x000200f8,0x0000000e, + 0x0004003b,0x00000008,0x0000001b,0x00000007,0x0004003d,0x0000001d,0x00000020,0x0000001f, + 0x00040064,0x0000001c,0x00000022,0x00000020,0x00050067,0x00000007,0x00000023,0x00000022, + 0x00000021,0x0003003e,0x0000001b,0x00000023,0x0004003d,0x0000001d,0x00000024,0x0000001f, + 0x0004003d,0x00000007,0x00000025,0x0000000c,0x0004003d,0x00000007,0x00000027,0x0000001b, + 0x00050082,0x00000007,0x0000002a,0x00000027,0x00000029,0x0008000c,0x00000007,0x0000002b, + 0x00000001,0x0000002d,0x00000025,0x00000026,0x0000002a,0x00040064,0x0000001c,0x0000002c, + 0x00000024,0x0007005f,0x0000002d,0x0000002e,0x0000002c,0x0000002b,0x00000002,0x00000021, + 0x0008004f,0x0000000a,0x0000002f,0x0000002e,0x0000002e,0x00000000,0x00000001,0x00000002, + 0x000200fe,0x0000002f,0x00010038,0x00050036,0x00000009,0x00000014,0x00000000,0x00000010, + 0x00030037,0x0000000f,0x00000011,0x00030037,0x0000000f,0x00000012,0x00030037,0x0000000f, + 0x00000013,0x000200f8,0x00000015,0x0004003d,0x00000009,0x00000032,0x00000011,0x0004003d, + 0x00000009,0x00000033,0x00000012,0x0004003d,0x00000009,0x00000034,0x00000013,0x0007000c, + 0x00000009,0x00000035,0x00000001,0x00000025,0x00000033,0x00000034,0x0007000c,0x00000009, + 0x00000036,0x00000001,0x00000025,0x00000032,0x00000035,0x000200fe,0x00000036,0x00010038, + 0x00050036,0x00000009,0x00000019,0x00000000,0x00000010,0x00030037,0x0000000f,0x00000016, + 0x00030037,0x0000000f,0x00000017,0x00030037,0x0000000f,0x00000018,0x000200f8,0x0000001a, + 0x0004003d,0x00000009,0x00000039,0x00000016,0x0004003d,0x00000009,0x0000003a,0x00000017, + 0x0004003d,0x00000009,0x0000003b,0x00000018,0x0007000c,0x00000009,0x0000003c,0x00000001, + 0x00000028,0x0000003a,0x0000003b,0x0007000c,0x00000009,0x0000003d,0x00000001,0x00000028, + 0x00000039,0x0000003c,0x000200fe,0x0000003d,0x00010038 +}; diff --git a/app/src/main/cpp/shaders/fsr_easu.frag b/app/src/main/cpp/shaders/fsr_easu.frag index 6d97a79fe2..dbc66824eb 100644 --- a/app/src/main/cpp/shaders/fsr_easu.frag +++ b/app/src/main/cpp/shaders/fsr_easu.frag @@ -44,23 +44,40 @@ vec3 AMin3F3(vec3 a, vec3 b, vec3 c) { return min(a, min(b, c)); } vec3 AMax3F3(vec3 a, vec3 b, vec3 c) { return max(a, max(b, c)); } // --------------------------------------------------------------------------- -layout(binding = 0) uniform sampler2D InputTexture; +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in AMD's +// FSR_EASU_H / FSR_RCAS_H paths; positions and texture coordinates stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif +#ifdef DD_HALF +// 1/32768 is a 16-bit subnormal (flushed to 0 where denormals are not kept); +// 1/16384 is the smallest normal one. +#define BL_EASU_DIR_ZERO (1.0/16384.0) +#else +#define BL_EASU_DIR_ZERO (1.0/32768.0) +#endif + +layout(binding = 0) uniform BL_MP sampler2D InputTexture; layout(push_constant) uniform PC { - vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) + highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) uvec4 con0; uvec4 con1; uvec4 con2; uvec4 con3; - vec2 outputSize; // EASU output (this pass's render-target) size in pixels + highp vec2 outputSize; // EASU output (this pass's render-target) size in pixels } pc; -layout(location = 0) in vec2 fragTexCoord; +layout(location = 0) in highp vec2 fragTexCoord; layout(location = 0) out vec4 outColor; -AF4 FsrEasuRF(AF2 p) { return textureGather(InputTexture, p, 0); } -AF4 FsrEasuGF(AF2 p) { return textureGather(InputTexture, p, 1); } -AF4 FsrEasuBF(AF2 p) { return textureGather(InputTexture, p, 2); } +AF4 FsrEasuRF(highp AF2 p) { return textureGather(InputTexture, p, 0); } +AF4 FsrEasuGF(highp AF2 p) { return textureGather(InputTexture, p, 1); } +AF4 FsrEasuBF(highp AF2 p) { return textureGather(InputTexture, p, 2); } void FsrEasuTapF( inout AF3 aC, @@ -122,13 +139,13 @@ void FsrEasuF( AU4 con1, AU4 con2, AU4 con3){ - AF2 pp=AF2(ip)*AF2_AU2(con0.xy)+AF2_AU2(con0.zw); - AF2 fp=floor(pp); + highp AF2 pp=AF2(ip)*AF2_AU2(con0.xy)+AF2_AU2(con0.zw); + highp AF2 fp=floor(pp); pp-=fp; - AF2 p0=fp*AF2_AU2(con1.xy)+AF2_AU2(con1.zw); - AF2 p1=p0+AF2_AU2(con2.xy); - AF2 p2=p0+AF2_AU2(con2.zw); - AF2 p3=p0+AF2_AU2(con3.xy); + highp AF2 p0=fp*AF2_AU2(con1.xy)+AF2_AU2(con1.zw); + highp AF2 p1=p0+AF2_AU2(con2.xy); + highp AF2 p2=p0+AF2_AU2(con2.zw); + highp AF2 p3=p0+AF2_AU2(con3.xy); AF4 bczzR=FsrEasuRF(p0); AF4 bczzG=FsrEasuGF(p0); AF4 bczzB=FsrEasuBF(p0); @@ -165,7 +182,7 @@ void FsrEasuF( FsrEasuSetF(dir,len,pp,false,false,false,true ,gL,jL,kL,lL,oL); AF2 dir2=dir*dir; AF1 dirR=dir2.x+dir2.y; - AP1 zro=dirR _half_frag.h (array _half_code). The compositors +# pick the plain or the half set at start-up (debug.droiddeck.upscale.shaders). +# Names in HALF_ONLY are built half only. # ============================================================================= set -euo pipefail @@ -22,17 +27,34 @@ if ! command -v glslangValidator >/dev/null 2>&1; then exit 1 fi +HALF=(sgsr sgsr_quality fsr_easu fsr_rcas cas_ffx nis_luma nis3) +HALF_ONLY=(cas_ffx nis_luma nis3) + +in_list() { + local x="$1"; shift + for y in "$@"; do [ "$x" = "$y" ] && return 0; done + return 1 +} + gen() { local src="$1" # e.g. nis.frag local base="${src%.*}" # nis local ext="${src##*.}" # frag | vert - local vn="${base}_code" - if [ "$ext" = "vert" ]; then - vn="${base}_vert_code" + if ! in_list "${base}" "${HALF_ONLY[@]}"; then + local vn="${base}_code" + if [ "$ext" = "vert" ]; then + vn="${base}_vert_code" + fi + local out="${base}_${ext}.h" + echo " ${src} -> ${out} (--vn ${vn})" + glslangValidator -V "${src}" --vn "${vn}" -o "${out}" + fi + if in_list "${base}" "${HALF[@]}"; then + local hvn="${base}_half_code" + local hout="${base}_half_${ext}.h" + echo " ${src} -> ${hout} (--vn ${hvn}, -DDD_HALF=1)" + glslangValidator -V -DDD_HALF=1 "${src}" --vn "${hvn}" -o "${hout}" fi - local out="${base}_${ext}.h" - echo " ${src} -> ${out} (--vn ${vn})" - glslangValidator -V "${src}" --vn "${vn}" -o "${out}" } shaders=() diff --git a/app/src/main/cpp/shaders/nis.frag b/app/src/main/cpp/shaders/nis.frag index 23f9bd5c0a..025fa4f251 100644 --- a/app/src/main/cpp/shaders/nis.frag +++ b/app/src/main/cpp/shaders/nis.frag @@ -36,15 +36,25 @@ // then ViewportInfo (xy = 1/inputSize texel size, zw = inputSize px) + sharpness. // ============================================================================= -layout(binding = 0) uniform sampler2D InputTexture; +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as NVIDIA's +// NIS_USE_HALF_PRECISION path (pixels, weights, coefficient tables); positions and texture coordinates stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D InputTexture; layout(push_constant) uniform PC { - vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0) - vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels + highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0) + highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels float sharpness; // "Sharpness" slider mapped to [0..1] (NIS sharpness) } pc; -layout(location = 0) in vec2 fragTexCoord; +layout(location = 0) in highp vec2 fragTexCoord; layout(location = 0) out vec4 outColor; // ---- SDR (HDR mode None) constants, from NVScalerUpdateConfig ----------------- @@ -405,16 +415,16 @@ void main() { float sharpLimitMax = 0.5 + sharpen_slider * LimitScale * 0.6; gSharpLimitScale = sharpLimitMax - gSharpLimitMin; - vec2 inSize = pc.ViewportInfo.zw; - vec2 invIn = pc.ViewportInfo.xy; + highp vec2 inSize = pc.ViewportInfo.zw; + highp vec2 invIn = pc.ViewportInfo.xy; // Source sample position in input-pixel space (output viewport cancels out). - float srcX = fragTexCoord.x * inSize.x - 0.5; - float srcY = fragTexCoord.y * inSize.y - 0.5; - float fsx = floor(srcX); - float fsy = floor(srcY); - float fx = srcX - fsx; - float fy = srcY - fsy; + highp float srcX = fragTexCoord.x * inSize.x - 0.5; + highp float srcY = fragTexCoord.y * inSize.y - 0.5; + highp float fsx = floor(srcX); + highp float fsy = floor(srcY); + highp float fx = srcX - fsx; + highp float fy = srcY - fsy; int fx_int = int(fx * float(kPhaseCount)); int fy_int = int(fy * float(kPhaseCount)); @@ -422,7 +432,7 @@ void main() { float p[6][6]; for (int i = 0; i < 6; ++i) { for (int j = 0; j < 6; ++j) { - vec2 tc = (vec2(fsx + float(j) - 2.0, fsy + float(i) - 2.0) + 0.5) * invIn; + highp vec2 tc = (vec2(fsx + float(j) - 2.0, fsy + float(i) - 2.0) + 0.5) * invIn; p[i][j] = getY(textureLod(InputTexture, tc, 0.0).rgb); } } diff --git a/app/src/main/cpp/shaders/nis3.frag b/app/src/main/cpp/shaders/nis3.frag new file mode 100644 index 0000000000..4439f7a413 --- /dev/null +++ b/app/src/main/cpp/shaders/nis3.frag @@ -0,0 +1,357 @@ +#version 450 + +// ============================================================================= +// nis3.frag (feat/nis-rewrite): nis.frag's NVScaler maths with +// - the 6x6 luma support read from the nis_luma.frag prepass (luma in alpha) +// by 9 textureGather calls instead of 36 textureLod + getY per pixel; +// - the two coefficient banks in a uniform buffer (set 1, nis_coef.h) instead +// of const arrays: indexed by the per-pixel phase, the 384-entry const arrays +// were copied into a per-pixel variable before every lookup (glslang +// OpStore %indexable), several times per pixel. +// Edge maps and filter maths are nis.frag's. Built half only (nis3_half_frag.h); +// the old set keeps nis.frag. +// ============================================================================= + +// ============================================================================= +// NVIDIA Image Scaling (NIS) - NVScaler spatial upscaler + adaptive sharpen. +// +// Ported from NVIDIA's reference NVScaler: +// NVIDIAGameWorks/NVIDIAImageScaling NIS/NIS_Scaler.h (+ NIS_Config.h) +// +// The MIT License (MIT) +// Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-License-Identifier: MIT +// +// Adapted for the Winlator native Vulkan compositor: +// - #version 450 (Vulkan GLSL), single-pass FRAGMENT shader (the reference is +// an LDS-tiled compute shader). The block/LDS cooperative tile loads are +// replaced with direct per-fragment texture() fetches of the 6x6 luma +// support, and the edge map is computed inline from that support. The math +// (edge detection + 6-tap directional scale/USM blend) is the reference's. +// - The kPhaseCount x 6 scaler/USM coefficient banks (coef_scale, coef_usm, +// fp32 path) are BAKED below as const arrays - no second descriptor binding +// (the post dsLayout has ONE sampler at binding 0 shared by all pipelines). +// - Config-UBO reads are replaced by push constants + baked SDR constants; the +// sharpness-derived params are recomputed in-shader exactly as +// NVScalerUpdateConfig does, driven by the existing "Sharpness" slider. +// - fp32 only (NOT the fp16/bit-packed NIS_USE_HALF_PRECISION path) so there +// are no bitwise/bvec ops - Adreno-compile-safe. +// - HDR mode = None (SDR). The whole compositor chain is R8G8B8A8_UNORM and +// values are display(gamma)-encoded here, matching NIS LDR expectations. +// - Reuses upscale.vert: fragTexCoord spans [0,1] across the destination rect +// (= normalised output position). With kScaleX = inputW/outputW, the source +// sample position reduces to srcX = fragTexCoord.x*inputW - 0.5 (so the +// output viewport origin/size cancel out and are never needed here). +// +// Conventions match sgsr.frag / cas.frag: combined-image-sampler at binding 0, +// push-constant block leads with vec4 ndc (offset 0, consumed by upscale.vert), +// then ViewportInfo (xy = 1/inputSize texel size, zw = inputSize px) + sharpness. +// ============================================================================= + +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as NVIDIA's +// NIS_USE_HALF_PRECISION path (pixels, weights, coefficient tables); positions and texture coordinates stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D InputTexture; + +layout(push_constant) uniform PC { + highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0) + highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels + float sharpness; // "Sharpness" slider mapped to [0..1] (NIS sharpness) +} pc; + +layout(location = 0) in highp vec2 fragTexCoord; +layout(location = 0) out vec4 outColor; + +// ---- SDR (HDR mode None) constants, from NVScalerUpdateConfig ----------------- +const float kDetectRatio = 2.0 * 1127.0 / 1024.0; // 2.201171875 +const float kDetectThres = 64.0 / 1024.0; // 0.0625 +const float kMinContrastRatio = 2.0; +const float kMaxContrastRatio = 10.0; +const float kRatioNorm = 1.0 / (kMaxContrastRatio - kMinContrastRatio); // 0.125 +const float kContrastBoost = 1.0; +const float kEps = 1.0 / 255.0; +const float kSharpStartY = 0.45; +const float kSharpEndY = 0.9; +const float kSharpScaleY = 1.0 / (kSharpEndY - kSharpStartY); // 2.222... +const int kPhaseCount = 64; + +// Sharpness-derived params (recomputed in main from pc.sharpness, read here). +float gSharpStrengthMin; +float gSharpStrengthScale; +float gSharpLimitMin; +float gSharpLimitScale; + +// NVIDIA NIS coef_scale / coef_usm (64 phases x 6 taps, the values nis.frag bakes), filled by the +// compositor from nis_coef.h: two vec4 per phase (taps 0-3, taps 4-5 + 2 zeros), std140. +layout(std140, set = 1, binding = 0) uniform NisCoef { + vec4 scale[128]; + vec4 usm[128]; +} nisCoef; + +float getY(vec3 rgb) { + return 0.2126 * rgb.x + 0.7152 * rgb.y + 0.0722 * rgb.z; +} + +// GetEdgeMap on a 3x3 luma window (pRC: R=row 0=top, C=col 0=left). +vec4 edgeAt(float p00, float p01, float p02, + float p10, float p11, float p12, + float p20, float p21, float p22) { + float g_0 = abs(p00 + p01 + p02 - p20 - p21 - p22); + float g_45 = abs(p10 + p00 + p01 - p21 - p22 - p12); + float g_90 = abs(p00 + p10 + p20 - p02 - p12 - p22); + float g_135 = abs(p10 + p20 + p21 - p01 - p02 - p12); + + float g_0_90_max = max(g_0, g_90); + float g_0_90_min = min(g_0, g_90); + float g_45_135_max = max(g_45, g_135); + float g_45_135_min = min(g_45, g_135); + + if (g_0_90_max + g_45_135_max == 0.0) { + return vec4(0.0); + } + + float e_0_90 = min(g_0_90_max / (g_0_90_max + g_45_135_max), 1.0); + float e_45_135 = 1.0 - e_0_90; + + bool c_0_90 = (g_0_90_max > (g_0_90_min * kDetectRatio)) && (g_0_90_max > kDetectThres) && (g_0_90_max > g_45_135_min); + bool c_45_135 = (g_45_135_max > (g_45_135_min * kDetectRatio)) && (g_45_135_max > kDetectThres) && (g_45_135_max > g_0_90_min); + bool c_g_0_90 = (g_0_90_max == g_0); + bool c_g_45_135= (g_45_135_max == g_45); + + float f_e_0_90 = (c_0_90 && c_45_135) ? e_0_90 : 1.0; + float f_e_45_135 = (c_0_90 && c_45_135) ? e_45_135 : 1.0; + + float w0 = (c_0_90 && c_g_0_90) ? f_e_0_90 : 0.0; + float w90 = (c_0_90 && !c_g_0_90) ? f_e_0_90 : 0.0; + float w45 = (c_45_135 && c_g_45_135) ? f_e_45_135 : 0.0; + float w135 = (c_45_135 && !c_g_45_135)? f_e_45_135 : 0.0; + + return vec4(w0, w90, w45, w135); +} + +vec4 getInterpEdgeMap(vec4 e00, vec4 e01, vec4 e10, vec4 e11, float fx, float fy) { + vec4 h0 = mix(e00, e01, fx); + vec4 h1 = mix(e10, e11, fx); + return mix(h0, h1, fy); +} + +float calcLTI(float p0, float p1, float p2, float p3, float p4, float p5, int phase_index) { + bool selector = (phase_index <= kPhaseCount / 2); + float sel = selector ? p0 : p3; + float a_min = min(min(p1, p2), sel); + float a_max = max(max(p1, p2), sel); + sel = selector ? p2 : p5; + float b_min = min(min(p3, p4), sel); + float b_max = max(max(p3, p4), sel); + + float a_cont = a_max - a_min; + float b_cont = b_max - b_min; + + float cont_ratio = max(a_cont, b_cont) / (min(a_cont, b_cont) + kEps); + return (1.0 - clamp((cont_ratio - kMinContrastRatio) * kRatioNorm, 0.0, 1.0)) * kContrastBoost; +} + +float evalPoly6(float pxl[6], int phase_int) { + phase_int = clamp(phase_int, 0, 63); + vec4 s0 = nisCoef.scale[phase_int * 2], s1 = nisCoef.scale[phase_int * 2 + 1]; + vec4 u0 = nisCoef.usm[phase_int * 2], u1 = nisCoef.usm[phase_int * 2 + 1]; + float y = 0.0; + y += s0.x * pxl[0]; y += s0.y * pxl[1]; y += s0.z * pxl[2]; + y += s0.w * pxl[3]; y += s1.x * pxl[4]; y += s1.y * pxl[5]; + float y_usm = 0.0; + y_usm += u0.x * pxl[0]; y_usm += u0.y * pxl[1]; y_usm += u0.z * pxl[2]; + y_usm += u0.w * pxl[3]; y_usm += u1.x * pxl[4]; y_usm += u1.y * pxl[5]; + + // piece-wise ramp based on luma (NIS_SCALE_FLOAT == 1) + float y_scale = 1.0 - clamp((y - kSharpStartY) * kSharpScaleY, 0.0, 1.0); + float y_sharpness = y_scale * gSharpStrengthScale + gSharpStrengthMin; + y_usm *= y_sharpness; + + float y_sharpness_limit = (y_scale * gSharpLimitScale + gSharpLimitMin) * y; + y_usm = min(y_sharpness_limit, max(-y_sharpness_limit, y_usm)); + y_usm *= calcLTI(pxl[0], pxl[1], pxl[2], pxl[3], pxl[4], pxl[5], phase_int); + + return y + y_usm; +} + +float filterNormal(float p[6][6], int phase_x_int, int phase_y_int) { + phase_x_int = clamp(phase_x_int, 0, 63); + phase_y_int = clamp(phase_y_int, 0, 63); + vec4 y0 = nisCoef.scale[phase_y_int * 2], y1 = nisCoef.scale[phase_y_int * 2 + 1]; + vec4 x0 = nisCoef.scale[phase_x_int * 2], x1 = nisCoef.scale[phase_x_int * 2 + 1]; + float cy[6] = float[6](y0.x, y0.y, y0.z, y0.w, y1.x, y1.y); + float cx[6] = float[6](x0.x, x0.y, x0.z, x0.w, x1.x, x1.y); + float h_acc = 0.0; + for (int j = 0; j < 6; ++j) { + float v_acc = 0.0; + for (int i = 0; i < 6; ++i) { + v_acc += p[i][j] * cy[i]; + } + h_acc += v_acc * cx[j]; + } + return h_acc; +} + +float addDirFilters(float p[6][6], float phase_x_frac, float phase_y_frac, + int phase_x_frac_int, int phase_y_frac_int, vec4 w) { + float f = 0.0; + if (w.x > 0.0) { + // 0 deg filter + float interp0Deg[6]; + for (int i = 0; i < 6; ++i) { + interp0Deg[i] = mix(p[i][2], p[i][3], phase_x_frac); + } + f += evalPoly6(interp0Deg, phase_y_frac_int) * w.x; + } + if (w.y > 0.0) { + // 90 deg filter + float interp90Deg[6]; + for (int i = 0; i < 6; ++i) { + interp90Deg[i] = mix(p[2][i], p[3][i], phase_y_frac); + } + f += evalPoly6(interp90Deg, phase_x_frac_int) * w.y; + } + if (w.z > 0.0) { + // 45 deg filter + float pphase_b45 = 0.5 + 0.5 * (phase_x_frac - phase_y_frac); + + float temp_interp45Deg[7]; + temp_interp45Deg[1] = mix(p[2][1], p[1][2], pphase_b45); + temp_interp45Deg[3] = mix(p[3][2], p[2][3], pphase_b45); + temp_interp45Deg[5] = mix(p[4][3], p[3][4], pphase_b45); + { + pphase_b45 = pphase_b45 - 0.5; + float a = (pphase_b45 >= 0.0) ? p[0][2] : p[2][0]; + float b = (pphase_b45 >= 0.0) ? p[1][3] : p[3][1]; + float c = (pphase_b45 >= 0.0) ? p[2][4] : p[4][2]; + float d = (pphase_b45 >= 0.0) ? p[3][5] : p[5][3]; + temp_interp45Deg[0] = mix(p[1][1], a, abs(pphase_b45)); + temp_interp45Deg[2] = mix(p[2][2], b, abs(pphase_b45)); + temp_interp45Deg[4] = mix(p[3][3], c, abs(pphase_b45)); + temp_interp45Deg[6] = mix(p[4][4], d, abs(pphase_b45)); + } + + float interp45Deg[6]; + float pphase_p45 = phase_x_frac + phase_y_frac; + if (pphase_p45 >= 1.0) { + for (int i = 0; i < 6; ++i) { + interp45Deg[i] = temp_interp45Deg[i + 1]; + } + pphase_p45 = pphase_p45 - 1.0; + } else { + for (int i = 0; i < 6; ++i) { + interp45Deg[i] = temp_interp45Deg[i]; + } + } + + f += evalPoly6(interp45Deg, int(pphase_p45 * 64.0)) * w.z; + } + if (w.w > 0.0) { + // 135 deg filter + float pphase_b135 = 0.5 * (phase_x_frac + phase_y_frac); + + float temp_interp135Deg[7]; + temp_interp135Deg[1] = mix(p[3][1], p[4][2], pphase_b135); + temp_interp135Deg[3] = mix(p[2][2], p[3][3], pphase_b135); + temp_interp135Deg[5] = mix(p[1][3], p[2][4], pphase_b135); + { + pphase_b135 = pphase_b135 - 0.5; + float a = (pphase_b135 >= 0.0) ? p[5][2] : p[3][0]; + float b = (pphase_b135 >= 0.0) ? p[4][3] : p[2][1]; + float c = (pphase_b135 >= 0.0) ? p[3][4] : p[1][2]; + float d = (pphase_b135 >= 0.0) ? p[2][5] : p[0][3]; + temp_interp135Deg[0] = mix(p[4][1], a, abs(pphase_b135)); + temp_interp135Deg[2] = mix(p[3][2], b, abs(pphase_b135)); + temp_interp135Deg[4] = mix(p[2][3], c, abs(pphase_b135)); + temp_interp135Deg[6] = mix(p[1][4], d, abs(pphase_b135)); + } + + float interp135Deg[6]; + float pphase_p135 = 1.0 + (phase_x_frac - phase_y_frac); + if (pphase_p135 >= 1.0) { + for (int i = 0; i < 6; ++i) { + interp135Deg[i] = temp_interp135Deg[i + 1]; + } + pphase_p135 = pphase_p135 - 1.0; + } else { + for (int i = 0; i < 6; ++i) { + interp135Deg[i] = temp_interp135Deg[i]; + } + } + + f += evalPoly6(interp135Deg, int(pphase_p135 * 64.0)) * w.w; + } + return f; +} + +void main() { + // Sharpness-derived params - mirror NVScalerUpdateConfig (SDR path). + float sharpness = clamp(pc.sharpness, 0.0, 1.0); + float sharpen_slider = sharpness - 0.5; + float MaxScale = (sharpen_slider >= 0.0) ? 1.25 : 1.75; + float MinScale = (sharpen_slider >= 0.0) ? 1.25 : 1.0; + float LimitScale = (sharpen_slider >= 0.0) ? 1.25 : 1.0; + + gSharpStrengthMin = max(0.0, 0.4 + sharpen_slider * MinScale * 1.2); + float sharpStrengthMax = 1.6 + sharpen_slider * MaxScale * 1.8; + gSharpStrengthScale = sharpStrengthMax - gSharpStrengthMin; + gSharpLimitMin = max(0.1, 0.14 + sharpen_slider * LimitScale * 0.32); + float sharpLimitMax = 0.5 + sharpen_slider * LimitScale * 0.6; + gSharpLimitScale = sharpLimitMax - gSharpLimitMin; + + highp vec2 inSize = pc.ViewportInfo.zw; + highp vec2 invIn = pc.ViewportInfo.xy; + + // Source sample position in input-pixel space (output viewport cancels out). + highp float srcX = fragTexCoord.x * inSize.x - 0.5; + highp float srcY = fragTexCoord.y * inSize.y - 0.5; + highp float fsx = floor(srcX); + highp float fsy = floor(srcY); + highp float fx = srcX - fsx; + highp float fy = srcY - fsy; + int fx_int = int(fx * float(kPhaseCount)); + int fy_int = int(fy * float(kPhaseCount)); + + // 6x6 luma support: p[i][j] = luma at source texel (fsx + j - 2, fsy + i - 2), from the + // prepass alpha. A gather at the shared corner of texels (x, y)..(x + 1, y + 1) returns + // .w = (x, y), .z = (x + 1, y), .x = (x, y + 1), .y = (x + 1, y + 1); block (bi, bj) starts + // at x = fsx - 2 + 2 bj, y = fsy - 2 + 2 bi, so its corner is (fsx + 2 bj - 1, fsy + 2 bi - 1). + // Clamp-to-edge clamps each gathered texel like the per-texel fetches did. + float p[6][6]; + for (int bi = 0; bi < 3; ++bi) { + for (int bj = 0; bj < 3; ++bj) { + highp vec2 tc = vec2(fsx + float(2 * bj - 1), fsy + float(2 * bi - 1)) * invIn; + vec4 g = textureGather(InputTexture, tc, 3); + p[2 * bi][2 * bj] = g.w; + p[2 * bi][2 * bj + 1] = g.z; + p[2 * bi + 1][2 * bj] = g.x; + p[2 * bi + 1][2 * bj + 1] = g.y; + } + } + + // 2x2 edge map around the source pixel (3x3 luma window per corner). + vec4 e00 = edgeAt(p[1][1], p[1][2], p[1][3], p[2][1], p[2][2], p[2][3], p[3][1], p[3][2], p[3][3]); + vec4 e01 = edgeAt(p[1][2], p[1][3], p[1][4], p[2][2], p[2][3], p[2][4], p[3][2], p[3][3], p[3][4]); + vec4 e10 = edgeAt(p[2][1], p[2][2], p[2][3], p[3][1], p[3][2], p[3][3], p[4][1], p[4][2], p[4][3]); + vec4 e11 = edgeAt(p[2][2], p[2][3], p[2][4], p[3][2], p[3][3], p[3][4], p[4][2], p[4][3], p[4][4]); + vec4 w = getInterpEdgeMap(e00, e01, e10, e11, fx, fy); // * NIS_SCALE_INT (==1) + + float baseWeight = 1.0 - w.x - w.y - w.z - w.w; // NIS_SCALE_FLOAT - sum + float opY = filterNormal(p, fx_int, fy_int) * baseWeight; + opY += addDirFilters(p, fx, fy, fx_int, fy_int, w); + + // Bilinear color tap from the prepass rgb (= the game image) + luma correction. + vec4 op = texture(InputTexture, fragTexCoord); + float y = getY(op.rgb); + float corr = opY - y; // * (1/NIS_SCALE_FLOAT) == 1 + op.rgb += vec3(corr); + + outColor = vec4(clamp(op.rgb, 0.0, 1.0), 1.0); +} diff --git a/app/src/main/cpp/shaders/nis3_half_frag.h b/app/src/main/cpp/shaders/nis3_half_frag.h new file mode 100644 index 0000000000..7603498099 --- /dev/null +++ b/app/src/main/cpp/shaders/nis3_half_frag.h @@ -0,0 +1,1364 @@ + // 1116.2.0 + #pragma once +const uint32_t nis3_half_code[] = { + 0x07230203,0x00010000,0x0008000b,0x000005a2,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000462,0x00000595,0x00030010, + 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, + 0x00000000,0x00050005,0x0000000b,0x59746567,0x33667628,0x0000003b,0x00030005,0x0000000a, + 0x00626772,0x000b0005,0x00000019,0x65676465,0x66287441,0x31663b31,0x3b31663b,0x663b3166, + 0x31663b31,0x3b31663b,0x663b3166,0x00003b31,0x00030005,0x00000010,0x00303070,0x00030005, + 0x00000011,0x00313070,0x00030005,0x00000012,0x00323070,0x00030005,0x00000013,0x00303170, + 0x00030005,0x00000014,0x00313170,0x00030005,0x00000015,0x00323170,0x00030005,0x00000016, + 0x00303270,0x00030005,0x00000017,0x00313270,0x00030005,0x00000018,0x00323270,0x000c0005, + 0x00000023,0x49746567,0x7265746e,0x67644570,0x70614d65,0x34667628,0x3466763b,0x3466763b, + 0x3466763b,0x3b31663b,0x003b3166,0x00030005,0x0000001d,0x00303065,0x00030005,0x0000001e, + 0x00313065,0x00030005,0x0000001f,0x00303165,0x00030005,0x00000020,0x00313165,0x00030005, + 0x00000021,0x00007866,0x00030005,0x00000022,0x00007966,0x000a0005,0x0000002f,0x636c6163, + 0x2849544c,0x663b3166,0x31663b31,0x3b31663b,0x663b3166,0x31693b31,0x0000003b,0x00030005, + 0x00000028,0x00003070,0x00030005,0x00000029,0x00003170,0x00030005,0x0000002a,0x00003270, + 0x00030005,0x0000002b,0x00003370,0x00030005,0x0000002c,0x00003470,0x00030005,0x0000002d, + 0x00003570,0x00050005,0x0000002e,0x73616870,0x6e695f65,0x00786564,0x00070005,0x00000038, + 0x6c617665,0x796c6f50,0x31662836,0x3b5d365b,0x003b3169,0x00030005,0x00000036,0x006c7870, + 0x00050005,0x00000037,0x73616870,0x6e695f65,0x00000074,0x000a0005,0x00000040,0x746c6966, + 0x6f4e7265,0x6c616d72,0x5b316628,0x365b5d36,0x31693b5d,0x3b31693b,0x00000000,0x00030005, + 0x0000003d,0x00000070,0x00050005,0x0000003e,0x73616870,0x5f785f65,0x00746e69,0x00050005, + 0x0000003f,0x73616870,0x5f795f65,0x00746e69,0x000c0005,0x00000049,0x44646461,0x69467269, + 0x7265746c,0x31662873,0x5b5d365b,0x663b5d36,0x31663b31,0x3b31693b,0x763b3169,0x003b3466, + 0x00030005,0x00000043,0x00000070,0x00060005,0x00000044,0x73616870,0x5f785f65,0x63617266, + 0x00000000,0x00060005,0x00000045,0x73616870,0x5f795f65,0x63617266,0x00000000,0x00070005, + 0x00000046,0x73616870,0x5f785f65,0x63617266,0x746e695f,0x00000000,0x00070005,0x00000047, + 0x73616870,0x5f795f65,0x63617266,0x746e695f,0x00000000,0x00030005,0x00000048,0x00000077, + 0x00030005,0x0000005e,0x00305f67,0x00040005,0x0000006b,0x35345f67,0x00000000,0x00040005, + 0x00000078,0x30395f67,0x00000000,0x00040005,0x00000085,0x33315f67,0x00000035,0x00050005, + 0x00000092,0x5f305f67,0x6d5f3039,0x00007861,0x00050005,0x00000096,0x5f305f67,0x6d5f3039, + 0x00006e69,0x00060005,0x0000009a,0x35345f67,0x3533315f,0x78616d5f,0x00000000,0x00060005, + 0x0000009e,0x35345f67,0x3533315f,0x6e696d5f,0x00000000,0x00040005,0x000000ac,0x5f305f65, + 0x00003039,0x00050005,0x000000b4,0x35345f65,0x3533315f,0x00000000,0x00040005,0x000000b8, + 0x5f305f63,0x00003039,0x00050005,0x000000c6,0x35345f63,0x3533315f,0x00000000,0x00050005, + 0x000000d2,0x5f675f63,0x30395f30,0x00000000,0x00050005,0x000000d6,0x5f675f63,0x315f3534, + 0x00003533,0x00050005,0x000000da,0x5f655f66,0x30395f30,0x00000000,0x00050005,0x000000e0, + 0x5f655f66,0x315f3534,0x00003533,0x00030005,0x000000e6,0x00003077,0x00030005,0x000000ec, + 0x00303977,0x00030005,0x000000f3,0x00353477,0x00040005,0x000000f9,0x35333177,0x00000000, + 0x00030005,0x00000107,0x00003068,0x00030005,0x0000010d,0x00003168,0x00050005,0x0000011a, + 0x656c6573,0x726f7463,0x00000000,0x00030005,0x0000011e,0x006c6573,0x00040005,0x00000123, + 0x696d5f61,0x0000006e,0x00040005,0x00000129,0x616d5f61,0x00000078,0x00040005,0x00000133, + 0x696d5f62,0x0000006e,0x00040005,0x00000139,0x616d5f62,0x00000078,0x00040005,0x0000013f, + 0x6f635f61,0x0000746e,0x00040005,0x00000143,0x6f635f62,0x0000746e,0x00050005,0x00000147, + 0x746e6f63,0x7461725f,0x00006f69,0x00030005,0x0000015f,0x00003073,0x00040005,0x00000163, + 0x4373694e,0x0066656f,0x00050006,0x00000163,0x00000000,0x6c616373,0x00000065,0x00040006, + 0x00000163,0x00000001,0x006d7375,0x00040005,0x00000165,0x4373696e,0x0066656f,0x00030005, + 0x0000016c,0x00003173,0x00030005,0x00000173,0x00003075,0x00030005,0x00000178,0x00003175, + 0x00030005,0x0000017e,0x00000079,0x00040005,0x000001ad,0x73755f79,0x0000006d,0x00040005, + 0x000001d8,0x63735f79,0x00656c61,0x00050005,0x000001e0,0x68735f79,0x6e707261,0x00737365, + 0x00070005,0x000001e3,0x61685367,0x74537072,0x676e6572,0x63536874,0x00656c61,0x00070005, + 0x000001e6,0x61685367,0x74537072,0x676e6572,0x694d6874,0x0000006e,0x00070005,0x000001ec, + 0x68735f79,0x6e707261,0x5f737365,0x696d696c,0x00000074,0x00070005,0x000001ee,0x61685367, + 0x694c7072,0x5374696d,0x656c6163,0x00000000,0x00060005,0x000001f1,0x61685367,0x694c7072, + 0x4d74696d,0x00006e69,0x00040005,0x000001fc,0x61726170,0x0000006d,0x00040005,0x000001ff, + 0x61726170,0x0000006d,0x00040005,0x00000202,0x61726170,0x0000006d,0x00040005,0x00000205, + 0x61726170,0x0000006d,0x00040005,0x00000208,0x61726170,0x0000006d,0x00040005,0x0000020b, + 0x61726170,0x0000006d,0x00040005,0x0000020e,0x61726170,0x0000006d,0x00030005,0x0000021c, + 0x00003079,0x00030005,0x00000221,0x00003179,0x00030005,0x00000227,0x00003078,0x00030005, + 0x0000022c,0x00003178,0x00030005,0x00000232,0x00007963,0x00030005,0x00000240,0x00007863, + 0x00040005,0x0000024e,0x63615f68,0x00000063,0x00030005,0x0000024f,0x0000006a,0x00040005, + 0x00000258,0x63615f76,0x00000063,0x00030005,0x00000259,0x00000069,0x00030005,0x00000279, + 0x00000066,0x00030005,0x0000027f,0x00000069,0x00050005,0x00000287,0x65746e69,0x44307072, + 0x00006765,0x00040005,0x00000294,0x61726170,0x0000006d,0x00040005,0x00000296,0x61726170, + 0x0000006d,0x00030005,0x000002a3,0x00000069,0x00050005,0x000002ab,0x65746e69,0x30397072, + 0x00676544,0x00040005,0x000002b8,0x61726170,0x0000006d,0x00040005,0x000002ba,0x61726170, + 0x0000006d,0x00050005,0x000002c7,0x61687070,0x625f6573,0x00003534,0x00070005,0x000002d1, + 0x706d6574,0x746e695f,0x34707265,0x67654435,0x00000000,0x00030005,0x000002e9,0x00000061, + 0x00030005,0x000002f5,0x00000062,0x00030005,0x00000301,0x00000063,0x00030005,0x0000030d, + 0x00000064,0x00050005,0x00000335,0x61687070,0x705f6573,0x00003534,0x00030005,0x0000033d, + 0x00000069,0x00050005,0x00000345,0x65746e69,0x35347072,0x00676544,0x00030005,0x00000351, + 0x00000069,0x00040005,0x00000364,0x61726170,0x0000006d,0x00040005,0x00000366,0x61726170, + 0x0000006d,0x00050005,0x00000372,0x61687070,0x625f6573,0x00353331,0x00070005,0x00000377, + 0x706d6574,0x746e695f,0x31707265,0x65443533,0x00000067,0x00030005,0x0000038f,0x00000061, + 0x00030005,0x0000039b,0x00000062,0x00030005,0x000003a7,0x00000063,0x00030005,0x000003b3, + 0x00000064,0x00050005,0x000003db,0x61687070,0x705f6573,0x00353331,0x00030005,0x000003e4, + 0x00000069,0x00060005,0x000003ec,0x65746e69,0x33317072,0x67654435,0x00000000,0x00030005, + 0x000003f8,0x00000069,0x00040005,0x0000040a,0x61726170,0x0000006d,0x00040005,0x0000040c, + 0x61726170,0x0000006d,0x00050005,0x00000416,0x72616873,0x73656e70,0x00000073,0x00030005, + 0x00000417,0x00004350,0x00040006,0x00000417,0x00000000,0x0063646e,0x00070006,0x00000417, + 0x00000001,0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00060006,0x00000417,0x00000002, + 0x72616873,0x73656e70,0x00000073,0x00030005,0x00000419,0x00006370,0x00060005,0x0000041e, + 0x72616873,0x5f6e6570,0x64696c73,0x00007265,0x00050005,0x00000421,0x5378614d,0x656c6163, + 0x00000000,0x00050005,0x00000427,0x536e694d,0x656c6163,0x00000000,0x00050005,0x0000042b, + 0x696d694c,0x61635374,0x0000656c,0x00070005,0x00000437,0x72616873,0x72745370,0x74676e65, + 0x78614d68,0x00000000,0x00060005,0x0000044b,0x72616873,0x6d694c70,0x614d7469,0x00000078, + 0x00040005,0x00000457,0x69536e69,0x0000657a,0x00040005,0x0000045c,0x49766e69,0x0000006e, + 0x00040005,0x00000460,0x58637273,0x00000000,0x00060005,0x00000462,0x67617266,0x43786554, + 0x64726f6f,0x00000000,0x00040005,0x0000046a,0x59637273,0x00000000,0x00030005,0x00000471, + 0x00787366,0x00030005,0x00000474,0x00797366,0x00030005,0x00000477,0x00007866,0x00030005, + 0x0000047b,0x00007966,0x00040005,0x0000047f,0x695f7866,0x0000746e,0x00040005,0x00000483, + 0x695f7966,0x0000746e,0x00030005,0x00000487,0x00006962,0x00030005,0x0000048f,0x00006a62, + 0x00030005,0x00000497,0x00006374,0x00030005,0x000004a7,0x00000067,0x00060005,0x000004ab, + 0x75706e49,0x78655474,0x65727574,0x00000000,0x00030005,0x000004af,0x00000070,0x00030005, + 0x000004d4,0x00303065,0x00040005,0x000004d5,0x61726170,0x0000006d,0x00040005,0x000004d8, + 0x61726170,0x0000006d,0x00040005,0x000004db,0x61726170,0x0000006d,0x00040005,0x000004de, + 0x61726170,0x0000006d,0x00040005,0x000004e1,0x61726170,0x0000006d,0x00040005,0x000004e4, + 0x61726170,0x0000006d,0x00040005,0x000004e7,0x61726170,0x0000006d,0x00040005,0x000004ea, + 0x61726170,0x0000006d,0x00040005,0x000004ed,0x61726170,0x0000006d,0x00030005,0x000004f1, + 0x00313065,0x00040005,0x000004f2,0x61726170,0x0000006d,0x00040005,0x000004f5,0x61726170, + 0x0000006d,0x00040005,0x000004f8,0x61726170,0x0000006d,0x00040005,0x000004fb,0x61726170, + 0x0000006d,0x00040005,0x000004fe,0x61726170,0x0000006d,0x00040005,0x00000501,0x61726170, + 0x0000006d,0x00040005,0x00000504,0x61726170,0x0000006d,0x00040005,0x00000507,0x61726170, + 0x0000006d,0x00040005,0x0000050a,0x61726170,0x0000006d,0x00030005,0x0000050e,0x00303165, + 0x00040005,0x0000050f,0x61726170,0x0000006d,0x00040005,0x00000512,0x61726170,0x0000006d, + 0x00040005,0x00000515,0x61726170,0x0000006d,0x00040005,0x00000518,0x61726170,0x0000006d, + 0x00040005,0x0000051b,0x61726170,0x0000006d,0x00040005,0x0000051e,0x61726170,0x0000006d, + 0x00040005,0x00000521,0x61726170,0x0000006d,0x00040005,0x00000524,0x61726170,0x0000006d, + 0x00040005,0x00000527,0x61726170,0x0000006d,0x00030005,0x0000052b,0x00313165,0x00040005, + 0x0000052c,0x61726170,0x0000006d,0x00040005,0x0000052f,0x61726170,0x0000006d,0x00040005, + 0x00000532,0x61726170,0x0000006d,0x00040005,0x00000535,0x61726170,0x0000006d,0x00040005, + 0x00000538,0x61726170,0x0000006d,0x00040005,0x0000053b,0x61726170,0x0000006d,0x00040005, + 0x0000053e,0x61726170,0x0000006d,0x00040005,0x00000541,0x61726170,0x0000006d,0x00040005, + 0x00000544,0x61726170,0x0000006d,0x00030005,0x00000548,0x00000077,0x00040005,0x00000549, + 0x61726170,0x0000006d,0x00040005,0x0000054b,0x61726170,0x0000006d,0x00040005,0x0000054d, + 0x61726170,0x0000006d,0x00040005,0x0000054f,0x61726170,0x0000006d,0x00040005,0x00000551, + 0x61726170,0x0000006d,0x00040005,0x00000553,0x61726170,0x0000006d,0x00050005,0x00000556, + 0x65736162,0x67696557,0x00007468,0x00030005,0x00000563,0x0059706f,0x00040005,0x00000564, + 0x61726170,0x0000006d,0x00040005,0x00000566,0x61726170,0x0000006d,0x00040005,0x00000568, + 0x61726170,0x0000006d,0x00040005,0x0000056d,0x61726170,0x0000006d,0x00040005,0x0000056f, + 0x61726170,0x0000006d,0x00040005,0x00000571,0x61726170,0x0000006d,0x00040005,0x00000573, + 0x61726170,0x0000006d,0x00040005,0x00000575,0x61726170,0x0000006d,0x00040005,0x00000577, + 0x61726170,0x0000006d,0x00030005,0x0000057c,0x0000706f,0x00030005,0x00000580,0x00000079, + 0x00040005,0x00000581,0x61726170,0x0000006d,0x00040005,0x00000585,0x72726f63,0x00000000, + 0x00050005,0x00000595,0x4374756f,0x726f6c6f,0x00000000,0x00030047,0x0000000a,0x00000000, + 0x00030047,0x0000000b,0x00000000,0x00030047,0x00000010,0x00000000,0x00030047,0x00000011, + 0x00000000,0x00030047,0x00000012,0x00000000,0x00030047,0x00000013,0x00000000,0x00030047, + 0x00000014,0x00000000,0x00030047,0x00000015,0x00000000,0x00030047,0x00000016,0x00000000, + 0x00030047,0x00000017,0x00000000,0x00030047,0x00000018,0x00000000,0x00030047,0x00000019, + 0x00000000,0x00030047,0x0000001d,0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047, + 0x0000001f,0x00000000,0x00030047,0x00000020,0x00000000,0x00030047,0x00000021,0x00000000, + 0x00030047,0x00000022,0x00000000,0x00030047,0x00000023,0x00000000,0x00030047,0x00000028, + 0x00000000,0x00030047,0x00000029,0x00000000,0x00030047,0x0000002a,0x00000000,0x00030047, + 0x0000002b,0x00000000,0x00030047,0x0000002c,0x00000000,0x00030047,0x0000002d,0x00000000, + 0x00030047,0x0000002f,0x00000000,0x00030047,0x00000036,0x00000000,0x00030047,0x00000038, + 0x00000000,0x00030047,0x0000003d,0x00000000,0x00030047,0x00000040,0x00000000,0x00030047, + 0x00000043,0x00000000,0x00030047,0x00000044,0x00000000,0x00030047,0x00000045,0x00000000, + 0x00030047,0x00000048,0x00000000,0x00030047,0x00000049,0x00000000,0x00030047,0x0000004e, + 0x00000000,0x00030047,0x0000004f,0x00000000,0x00030047,0x00000053,0x00000000,0x00030047, + 0x00000054,0x00000000,0x00030047,0x00000055,0x00000000,0x00030047,0x00000059,0x00000000, + 0x00030047,0x0000005a,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x0000005e, + 0x00000000,0x00030047,0x0000005f,0x00000000,0x00030047,0x00000060,0x00000000,0x00030047, + 0x00000061,0x00000000,0x00030047,0x00000062,0x00000000,0x00030047,0x00000063,0x00000000, + 0x00030047,0x00000064,0x00000000,0x00030047,0x00000065,0x00000000,0x00030047,0x00000066, + 0x00000000,0x00030047,0x00000067,0x00000000,0x00030047,0x00000068,0x00000000,0x00030047, + 0x00000069,0x00000000,0x00030047,0x0000006a,0x00000000,0x00030047,0x0000006b,0x00000000, + 0x00030047,0x0000006c,0x00000000,0x00030047,0x0000006d,0x00000000,0x00030047,0x0000006e, + 0x00000000,0x00030047,0x0000006f,0x00000000,0x00030047,0x00000070,0x00000000,0x00030047, + 0x00000071,0x00000000,0x00030047,0x00000072,0x00000000,0x00030047,0x00000073,0x00000000, + 0x00030047,0x00000074,0x00000000,0x00030047,0x00000075,0x00000000,0x00030047,0x00000076, + 0x00000000,0x00030047,0x00000077,0x00000000,0x00030047,0x00000078,0x00000000,0x00030047, + 0x00000079,0x00000000,0x00030047,0x0000007a,0x00000000,0x00030047,0x0000007b,0x00000000, + 0x00030047,0x0000007c,0x00000000,0x00030047,0x0000007d,0x00000000,0x00030047,0x0000007e, + 0x00000000,0x00030047,0x0000007f,0x00000000,0x00030047,0x00000080,0x00000000,0x00030047, + 0x00000081,0x00000000,0x00030047,0x00000082,0x00000000,0x00030047,0x00000083,0x00000000, + 0x00030047,0x00000084,0x00000000,0x00030047,0x00000085,0x00000000,0x00030047,0x00000086, + 0x00000000,0x00030047,0x00000087,0x00000000,0x00030047,0x00000088,0x00000000,0x00030047, + 0x00000089,0x00000000,0x00030047,0x0000008a,0x00000000,0x00030047,0x0000008b,0x00000000, + 0x00030047,0x0000008c,0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e, + 0x00000000,0x00030047,0x0000008f,0x00000000,0x00030047,0x00000090,0x00000000,0x00030047, + 0x00000091,0x00000000,0x00030047,0x00000092,0x00000000,0x00030047,0x00000093,0x00000000, + 0x00030047,0x00000094,0x00000000,0x00030047,0x00000095,0x00000000,0x00030047,0x00000096, + 0x00000000,0x00030047,0x00000097,0x00000000,0x00030047,0x00000098,0x00000000,0x00030047, + 0x00000099,0x00000000,0x00030047,0x0000009a,0x00000000,0x00030047,0x0000009b,0x00000000, + 0x00030047,0x0000009c,0x00000000,0x00030047,0x0000009d,0x00000000,0x00030047,0x0000009e, + 0x00000000,0x00030047,0x0000009f,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047, + 0x000000a1,0x00000000,0x00030047,0x000000a2,0x00000000,0x00030047,0x000000a3,0x00000000, + 0x00030047,0x000000a4,0x00000000,0x00030047,0x000000ac,0x00000000,0x00030047,0x000000ad, + 0x00000000,0x00030047,0x000000ae,0x00000000,0x00030047,0x000000af,0x00000000,0x00030047, + 0x000000b0,0x00000000,0x00030047,0x000000b1,0x00000000,0x00030047,0x000000b2,0x00000000, + 0x00030047,0x000000b3,0x00000000,0x00030047,0x000000b4,0x00000000,0x00030047,0x000000b5, + 0x00000000,0x00030047,0x000000b6,0x00000000,0x00030047,0x000000b9,0x00000000,0x00030047, + 0x000000ba,0x00000000,0x00030047,0x000000bb,0x00000000,0x00030047,0x000000bc,0x00000000, + 0x00030047,0x000000be,0x00000000,0x00030047,0x000000bf,0x00000000,0x00030047,0x000000c2, + 0x00000000,0x00030047,0x000000c3,0x00000000,0x00030047,0x000000c7,0x00000000,0x00030047, + 0x000000c8,0x00000000,0x00030047,0x000000c9,0x00000000,0x00030047,0x000000cb,0x00000000, + 0x00030047,0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d3, + 0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d7,0x00000000,0x00030047, + 0x000000d8,0x00000000,0x00030047,0x000000da,0x00000000,0x00030047,0x000000de,0x00000000, + 0x00030047,0x000000e0,0x00000000,0x00030047,0x000000e4,0x00000000,0x00030047,0x000000e6, + 0x00000000,0x00030047,0x000000ea,0x00000000,0x00030047,0x000000ec,0x00000000,0x00030047, + 0x000000f1,0x00000000,0x00030047,0x000000f3,0x00000000,0x00030047,0x000000f7,0x00000000, + 0x00030047,0x000000f9,0x00000000,0x00030047,0x000000fe,0x00000000,0x00030047,0x00000100, + 0x00000000,0x00030047,0x00000101,0x00000000,0x00030047,0x00000102,0x00000000,0x00030047, + 0x00000103,0x00000000,0x00030047,0x00000104,0x00000000,0x00030047,0x00000107,0x00000000, + 0x00030047,0x00000108,0x00000000,0x00030047,0x00000109,0x00000000,0x00030047,0x0000010a, + 0x00000000,0x00030047,0x0000010b,0x00000000,0x00030047,0x0000010c,0x00000000,0x00030047, + 0x0000010d,0x00000000,0x00030047,0x0000010e,0x00000000,0x00030047,0x0000010f,0x00000000, + 0x00030047,0x00000110,0x00000000,0x00030047,0x00000111,0x00000000,0x00030047,0x00000112, + 0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114,0x00000000,0x00030047, + 0x00000115,0x00000000,0x00030047,0x00000116,0x00000000,0x00030047,0x00000117,0x00000000, + 0x00030047,0x0000011e,0x00000000,0x00030047,0x00000120,0x00000000,0x00030047,0x00000121, + 0x00000000,0x00030047,0x00000123,0x00000000,0x00030047,0x00000124,0x00000000,0x00030047, + 0x00000125,0x00000000,0x00030047,0x00000126,0x00000000,0x00030047,0x00000127,0x00000000, + 0x00030047,0x00000128,0x00000000,0x00030047,0x00000129,0x00000000,0x00030047,0x0000012a, + 0x00000000,0x00030047,0x0000012b,0x00000000,0x00030047,0x0000012c,0x00000000,0x00030047, + 0x0000012d,0x00000000,0x00030047,0x0000012e,0x00000000,0x00030047,0x00000130,0x00000000, + 0x00030047,0x00000131,0x00000000,0x00030047,0x00000133,0x00000000,0x00030047,0x00000134, + 0x00000000,0x00030047,0x00000135,0x00000000,0x00030047,0x00000136,0x00000000,0x00030047, + 0x00000137,0x00000000,0x00030047,0x00000138,0x00000000,0x00030047,0x00000139,0x00000000, + 0x00030047,0x0000013a,0x00000000,0x00030047,0x0000013b,0x00000000,0x00030047,0x0000013c, + 0x00000000,0x00030047,0x0000013d,0x00000000,0x00030047,0x0000013e,0x00000000,0x00030047, + 0x0000013f,0x00000000,0x00030047,0x00000140,0x00000000,0x00030047,0x00000141,0x00000000, + 0x00030047,0x00000142,0x00000000,0x00030047,0x00000143,0x00000000,0x00030047,0x00000144, + 0x00000000,0x00030047,0x00000145,0x00000000,0x00030047,0x00000146,0x00000000,0x00030047, + 0x00000147,0x00000000,0x00030047,0x00000148,0x00000000,0x00030047,0x00000149,0x00000000, + 0x00030047,0x0000014a,0x00000000,0x00030047,0x0000014b,0x00000000,0x00030047,0x0000014c, + 0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014e,0x00000000,0x00030047, + 0x0000014f,0x00000000,0x00030047,0x00000150,0x00000000,0x00030047,0x00000151,0x00000000, + 0x00030047,0x00000152,0x00000000,0x00030047,0x00000153,0x00000000,0x00030047,0x00000154, + 0x00000000,0x00030047,0x00000155,0x00000000,0x00030047,0x00000156,0x00000000,0x00030047, + 0x00000157,0x00000000,0x00030047,0x00000158,0x00000000,0x00030047,0x0000015f,0x00000000, + 0x00040047,0x00000161,0x00000006,0x00000010,0x00040047,0x00000162,0x00000006,0x00000010, + 0x00030047,0x00000163,0x00000002,0x00040048,0x00000163,0x00000000,0x00000000,0x00050048, + 0x00000163,0x00000000,0x00000023,0x00000000,0x00040048,0x00000163,0x00000001,0x00000000, + 0x00050048,0x00000163,0x00000001,0x00000023,0x00000800,0x00040047,0x00000165,0x00000021, + 0x00000000,0x00040047,0x00000165,0x00000022,0x00000001,0x00030047,0x0000016b,0x00000000, + 0x00030047,0x0000016c,0x00000000,0x00030047,0x00000172,0x00000000,0x00030047,0x00000173, + 0x00000000,0x00030047,0x00000177,0x00000000,0x00030047,0x00000178,0x00000000,0x00030047, + 0x0000017d,0x00000000,0x00030047,0x0000017e,0x00000000,0x00030047,0x00000180,0x00000000, + 0x00030047,0x00000182,0x00000000,0x00030047,0x00000183,0x00000000,0x00030047,0x00000184, + 0x00000000,0x00030047,0x00000185,0x00000000,0x00030047,0x00000187,0x00000000,0x00030047, + 0x00000189,0x00000000,0x00030047,0x0000018a,0x00000000,0x00030047,0x0000018b,0x00000000, + 0x00030047,0x0000018c,0x00000000,0x00030047,0x0000018e,0x00000000,0x00030047,0x00000190, + 0x00000000,0x00030047,0x00000191,0x00000000,0x00030047,0x00000192,0x00000000,0x00030047, + 0x00000193,0x00000000,0x00030047,0x00000196,0x00000000,0x00030047,0x00000199,0x00000000, + 0x00030047,0x0000019a,0x00000000,0x00030047,0x0000019b,0x00000000,0x00030047,0x0000019c, + 0x00000000,0x00030047,0x0000019e,0x00000000,0x00030047,0x000001a1,0x00000000,0x00030047, + 0x000001a2,0x00000000,0x00030047,0x000001a3,0x00000000,0x00030047,0x000001a4,0x00000000, + 0x00030047,0x000001a6,0x00000000,0x00030047,0x000001a9,0x00000000,0x00030047,0x000001aa, + 0x00000000,0x00030047,0x000001ab,0x00000000,0x00030047,0x000001ac,0x00000000,0x00030047, + 0x000001ad,0x00000000,0x00030047,0x000001af,0x00000000,0x00030047,0x000001b1,0x00000000, + 0x00030047,0x000001b2,0x00000000,0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4, + 0x00000000,0x00030047,0x000001b6,0x00000000,0x00030047,0x000001b8,0x00000000,0x00030047, + 0x000001b9,0x00000000,0x00030047,0x000001ba,0x00000000,0x00030047,0x000001bb,0x00000000, + 0x00030047,0x000001bd,0x00000000,0x00030047,0x000001bf,0x00000000,0x00030047,0x000001c0, + 0x00000000,0x00030047,0x000001c1,0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047, + 0x000001c4,0x00000000,0x00030047,0x000001c6,0x00000000,0x00030047,0x000001c7,0x00000000, + 0x00030047,0x000001c8,0x00000000,0x00030047,0x000001c9,0x00000000,0x00030047,0x000001cb, + 0x00000000,0x00030047,0x000001cd,0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047, + 0x000001cf,0x00000000,0x00030047,0x000001d0,0x00000000,0x00030047,0x000001d2,0x00000000, + 0x00030047,0x000001d4,0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d6, + 0x00000000,0x00030047,0x000001d7,0x00000000,0x00030047,0x000001d8,0x00000000,0x00030047, + 0x000001d9,0x00000000,0x00030047,0x000001da,0x00000000,0x00030047,0x000001db,0x00000000, + 0x00030047,0x000001dc,0x00000000,0x00030047,0x000001dd,0x00000000,0x00030047,0x000001de, + 0x00000000,0x00030047,0x000001df,0x00000000,0x00030047,0x000001e0,0x00000000,0x00030047, + 0x000001e1,0x00000000,0x00030047,0x000001e3,0x00000000,0x00030047,0x000001e4,0x00000000, + 0x00030047,0x000001e5,0x00000000,0x00030047,0x000001e6,0x00000000,0x00030047,0x000001e7, + 0x00000000,0x00030047,0x000001e8,0x00000000,0x00030047,0x000001e9,0x00000000,0x00030047, + 0x000001ea,0x00000000,0x00030047,0x000001eb,0x00000000,0x00030047,0x000001ec,0x00000000, + 0x00030047,0x000001ed,0x00000000,0x00030047,0x000001ee,0x00000000,0x00030047,0x000001ef, + 0x00000000,0x00030047,0x000001f0,0x00000000,0x00030047,0x000001f1,0x00000000,0x00030047, + 0x000001f2,0x00000000,0x00030047,0x000001f3,0x00000000,0x00030047,0x000001f4,0x00000000, + 0x00030047,0x000001f5,0x00000000,0x00030047,0x000001f6,0x00000000,0x00030047,0x000001f7, + 0x00000000,0x00030047,0x000001f8,0x00000000,0x00030047,0x000001f9,0x00000000,0x00030047, + 0x000001fa,0x00000000,0x00030047,0x000001fb,0x00000000,0x00030047,0x000001fc,0x00000000, + 0x00030047,0x000001fe,0x00000000,0x00030047,0x000001ff,0x00000000,0x00030047,0x00000201, + 0x00000000,0x00030047,0x00000202,0x00000000,0x00030047,0x00000204,0x00000000,0x00030047, + 0x00000205,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047,0x00000208,0x00000000, + 0x00030047,0x0000020a,0x00000000,0x00030047,0x0000020b,0x00000000,0x00030047,0x0000020d, + 0x00000000,0x00030047,0x00000210,0x00000000,0x00030047,0x00000211,0x00000000,0x00030047, + 0x00000212,0x00000000,0x00030047,0x00000213,0x00000000,0x00030047,0x00000214,0x00000000, + 0x00030047,0x00000215,0x00000000,0x00030047,0x0000021c,0x00000000,0x00030047,0x00000220, + 0x00000000,0x00030047,0x00000221,0x00000000,0x00030047,0x00000226,0x00000000,0x00030047, + 0x00000227,0x00000000,0x00030047,0x0000022b,0x00000000,0x00030047,0x0000022c,0x00000000, + 0x00030047,0x00000231,0x00000000,0x00030047,0x00000232,0x00000000,0x00030047,0x00000234, + 0x00000000,0x00030047,0x00000236,0x00000000,0x00030047,0x00000238,0x00000000,0x00030047, + 0x0000023a,0x00000000,0x00030047,0x0000023c,0x00000000,0x00030047,0x0000023e,0x00000000, + 0x00030047,0x00000240,0x00000000,0x00030047,0x00000242,0x00000000,0x00030047,0x00000244, + 0x00000000,0x00030047,0x00000246,0x00000000,0x00030047,0x00000248,0x00000000,0x00030047, + 0x0000024a,0x00000000,0x00030047,0x0000024c,0x00000000,0x00030047,0x0000024e,0x00000000, + 0x00030047,0x00000258,0x00000000,0x00030047,0x00000264,0x00000000,0x00030047,0x00000267, + 0x00000000,0x00030047,0x00000268,0x00000000,0x00030047,0x00000269,0x00000000,0x00030047, + 0x0000026a,0x00000000,0x00030047,0x0000026d,0x00000000,0x00030047,0x00000270,0x00000000, + 0x00030047,0x00000271,0x00000000,0x00030047,0x00000272,0x00000000,0x00030047,0x00000273, + 0x00000000,0x00030047,0x00000276,0x00000000,0x00030047,0x00000279,0x00000000,0x00030047, + 0x0000027b,0x00000000,0x00030047,0x00000287,0x00000000,0x00030047,0x0000028b,0x00000000, + 0x00030047,0x0000028e,0x00000000,0x00030047,0x0000028f,0x00000000,0x00030047,0x00000290, + 0x00000000,0x00030047,0x00000294,0x00000000,0x00030047,0x00000295,0x00000000,0x00030047, + 0x00000298,0x00000000,0x00030047,0x0000029a,0x00000000,0x00030047,0x0000029b,0x00000000, + 0x00030047,0x0000029c,0x00000000,0x00030047,0x0000029d,0x00000000,0x00030047,0x0000029f, + 0x00000000,0x00030047,0x000002ab,0x00000000,0x00030047,0x000002af,0x00000000,0x00030047, + 0x000002b2,0x00000000,0x00030047,0x000002b3,0x00000000,0x00030047,0x000002b4,0x00000000, + 0x00030047,0x000002b8,0x00000000,0x00030047,0x000002b9,0x00000000,0x00030047,0x000002bc, + 0x00000000,0x00030047,0x000002be,0x00000000,0x00030047,0x000002bf,0x00000000,0x00030047, + 0x000002c0,0x00000000,0x00030047,0x000002c1,0x00000000,0x00030047,0x000002c3,0x00000000, + 0x00030047,0x000002c7,0x00000000,0x00030047,0x000002c9,0x00000000,0x00030047,0x000002ca, + 0x00000000,0x00030047,0x000002cb,0x00000000,0x00030047,0x000002cc,0x00000000,0x00030047, + 0x000002cd,0x00000000,0x00030047,0x000002d1,0x00000000,0x00030047,0x000002d3,0x00000000, + 0x00030047,0x000002d5,0x00000000,0x00030047,0x000002d6,0x00000000,0x00030047,0x000002d7, + 0x00000000,0x00030047,0x000002da,0x00000000,0x00030047,0x000002dc,0x00000000,0x00030047, + 0x000002dd,0x00000000,0x00030047,0x000002de,0x00000000,0x00030047,0x000002e1,0x00000000, + 0x00030047,0x000002e3,0x00000000,0x00030047,0x000002e4,0x00000000,0x00030047,0x000002e5, + 0x00000000,0x00030047,0x000002e7,0x00000000,0x00030047,0x000002e8,0x00000000,0x00030047, + 0x000002e9,0x00000000,0x00030047,0x000002ea,0x00000000,0x00030047,0x000002ec,0x00000000, + 0x00030047,0x000002f0,0x00000000,0x00030047,0x000002f3,0x00000000,0x00030047,0x000002f4, + 0x00000000,0x00030047,0x000002f5,0x00000000,0x00030047,0x000002f6,0x00000000,0x00030047, + 0x000002f8,0x00000000,0x00030047,0x000002fc,0x00000000,0x00030047,0x000002ff,0x00000000, + 0x00030047,0x00000300,0x00000000,0x00030047,0x00000301,0x00000000,0x00030047,0x00000302, + 0x00000000,0x00030047,0x00000304,0x00000000,0x00030047,0x00000308,0x00000000,0x00030047, + 0x0000030b,0x00000000,0x00030047,0x0000030c,0x00000000,0x00030047,0x0000030d,0x00000000, + 0x00030047,0x0000030e,0x00000000,0x00030047,0x00000310,0x00000000,0x00030047,0x00000314, + 0x00000000,0x00030047,0x00000317,0x00000000,0x00030047,0x00000318,0x00000000,0x00030047, + 0x0000031a,0x00000000,0x00030047,0x0000031b,0x00000000,0x00030047,0x0000031c,0x00000000, + 0x00030047,0x0000031d,0x00000000,0x00030047,0x0000031e,0x00000000,0x00030047,0x00000321, + 0x00000000,0x00030047,0x00000322,0x00000000,0x00030047,0x00000323,0x00000000,0x00030047, + 0x00000324,0x00000000,0x00030047,0x00000325,0x00000000,0x00030047,0x00000328,0x00000000, + 0x00030047,0x00000329,0x00000000,0x00030047,0x0000032a,0x00000000,0x00030047,0x0000032b, + 0x00000000,0x00030047,0x0000032c,0x00000000,0x00030047,0x0000032f,0x00000000,0x00030047, + 0x00000330,0x00000000,0x00030047,0x00000331,0x00000000,0x00030047,0x00000332,0x00000000, + 0x00030047,0x00000333,0x00000000,0x00030047,0x00000335,0x00000000,0x00030047,0x00000336, + 0x00000000,0x00030047,0x00000337,0x00000000,0x00030047,0x00000338,0x00000000,0x00030047, + 0x00000339,0x00000000,0x00030047,0x00000345,0x00000000,0x00030047,0x0000034a,0x00000000, + 0x00030047,0x0000034e,0x00000000,0x00030047,0x0000034f,0x00000000,0x00030047,0x0000035c, + 0x00000000,0x00030047,0x00000360,0x00000000,0x00030047,0x00000362,0x00000000,0x00030047, + 0x00000363,0x00000000,0x00030047,0x00000364,0x00000000,0x00030047,0x00000365,0x00000000, + 0x00030047,0x00000367,0x00000000,0x00030047,0x00000369,0x00000000,0x00030047,0x0000036a, + 0x00000000,0x00030047,0x0000036b,0x00000000,0x00030047,0x0000036c,0x00000000,0x00030047, + 0x0000036e,0x00000000,0x00030047,0x00000372,0x00000000,0x00030047,0x00000373,0x00000000, + 0x00030047,0x00000374,0x00000000,0x00030047,0x00000375,0x00000000,0x00030047,0x00000376, + 0x00000000,0x00030047,0x00000377,0x00000000,0x00030047,0x00000379,0x00000000,0x00030047, + 0x0000037b,0x00000000,0x00030047,0x0000037c,0x00000000,0x00030047,0x0000037d,0x00000000, + 0x00030047,0x00000380,0x00000000,0x00030047,0x00000382,0x00000000,0x00030047,0x00000383, + 0x00000000,0x00030047,0x00000384,0x00000000,0x00030047,0x00000387,0x00000000,0x00030047, + 0x00000389,0x00000000,0x00030047,0x0000038a,0x00000000,0x00030047,0x0000038b,0x00000000, + 0x00030047,0x0000038d,0x00000000,0x00030047,0x0000038e,0x00000000,0x00030047,0x0000038f, + 0x00000000,0x00030047,0x00000390,0x00000000,0x00030047,0x00000392,0x00000000,0x00030047, + 0x00000396,0x00000000,0x00030047,0x00000399,0x00000000,0x00030047,0x0000039a,0x00000000, + 0x00030047,0x0000039b,0x00000000,0x00030047,0x0000039c,0x00000000,0x00030047,0x0000039e, + 0x00000000,0x00030047,0x000003a2,0x00000000,0x00030047,0x000003a5,0x00000000,0x00030047, + 0x000003a6,0x00000000,0x00030047,0x000003a7,0x00000000,0x00030047,0x000003a8,0x00000000, + 0x00030047,0x000003aa,0x00000000,0x00030047,0x000003ae,0x00000000,0x00030047,0x000003b1, + 0x00000000,0x00030047,0x000003b2,0x00000000,0x00030047,0x000003b3,0x00000000,0x00030047, + 0x000003b4,0x00000000,0x00030047,0x000003b6,0x00000000,0x00030047,0x000003ba,0x00000000, + 0x00030047,0x000003bd,0x00000000,0x00030047,0x000003be,0x00000000,0x00030047,0x000003c0, + 0x00000000,0x00030047,0x000003c1,0x00000000,0x00030047,0x000003c2,0x00000000,0x00030047, + 0x000003c3,0x00000000,0x00030047,0x000003c4,0x00000000,0x00030047,0x000003c7,0x00000000, + 0x00030047,0x000003c8,0x00000000,0x00030047,0x000003c9,0x00000000,0x00030047,0x000003ca, + 0x00000000,0x00030047,0x000003cb,0x00000000,0x00030047,0x000003ce,0x00000000,0x00030047, + 0x000003cf,0x00000000,0x00030047,0x000003d0,0x00000000,0x00030047,0x000003d1,0x00000000, + 0x00030047,0x000003d2,0x00000000,0x00030047,0x000003d5,0x00000000,0x00030047,0x000003d6, + 0x00000000,0x00030047,0x000003d7,0x00000000,0x00030047,0x000003d8,0x00000000,0x00030047, + 0x000003d9,0x00000000,0x00030047,0x000003db,0x00000000,0x00030047,0x000003dc,0x00000000, + 0x00030047,0x000003dd,0x00000000,0x00030047,0x000003de,0x00000000,0x00030047,0x000003df, + 0x00000000,0x00030047,0x000003e0,0x00000000,0x00030047,0x000003ec,0x00000000,0x00030047, + 0x000003f1,0x00000000,0x00030047,0x000003f5,0x00000000,0x00030047,0x000003f6,0x00000000, + 0x00030047,0x00000403,0x00000000,0x00030047,0x00000407,0x00000000,0x00030047,0x00000408, + 0x00000000,0x00030047,0x00000409,0x00000000,0x00030047,0x0000040a,0x00000000,0x00030047, + 0x0000040b,0x00000000,0x00030047,0x0000040d,0x00000000,0x00030047,0x0000040f,0x00000000, + 0x00030047,0x00000410,0x00000000,0x00030047,0x00000411,0x00000000,0x00030047,0x00000412, + 0x00000000,0x00030047,0x00000413,0x00000000,0x00030047,0x00000416,0x00000000,0x00030047, + 0x00000417,0x00000002,0x00050048,0x00000417,0x00000000,0x00000023,0x00000000,0x00050048, + 0x00000417,0x00000001,0x00000023,0x00000010,0x00040048,0x00000417,0x00000002,0x00000000, + 0x00050048,0x00000417,0x00000002,0x00000023,0x00000020,0x00030047,0x0000041c,0x00000000, + 0x00030047,0x0000041d,0x00000000,0x00030047,0x0000041e,0x00000000,0x00030047,0x0000041f, + 0x00000000,0x00030047,0x00000420,0x00000000,0x00030047,0x00000421,0x00000000,0x00030047, + 0x00000422,0x00000000,0x00030047,0x00000427,0x00000000,0x00030047,0x00000428,0x00000000, + 0x00030047,0x0000042b,0x00000000,0x00030047,0x0000042c,0x00000000,0x00030047,0x00000430, + 0x00000000,0x00030047,0x00000431,0x00000000,0x00030047,0x00000432,0x00000000,0x00030047, + 0x00000434,0x00000000,0x00030047,0x00000435,0x00000000,0x00030047,0x00000436,0x00000000, + 0x00030047,0x00000437,0x00000000,0x00030047,0x00000439,0x00000000,0x00030047,0x0000043a, + 0x00000000,0x00030047,0x0000043b,0x00000000,0x00030047,0x0000043d,0x00000000,0x00030047, + 0x0000043e,0x00000000,0x00030047,0x0000043f,0x00000000,0x00030047,0x00000440,0x00000000, + 0x00030047,0x00000441,0x00000000,0x00030047,0x00000444,0x00000000,0x00030047,0x00000445, + 0x00000000,0x00030047,0x00000446,0x00000000,0x00030047,0x00000448,0x00000000,0x00030047, + 0x00000449,0x00000000,0x00030047,0x0000044a,0x00000000,0x00030047,0x0000044b,0x00000000, + 0x00030047,0x0000044c,0x00000000,0x00030047,0x0000044d,0x00000000,0x00030047,0x0000044e, + 0x00000000,0x00030047,0x00000450,0x00000000,0x00030047,0x00000451,0x00000000,0x00030047, + 0x00000452,0x00000000,0x00030047,0x00000453,0x00000000,0x00030047,0x00000454,0x00000000, + 0x00040047,0x00000462,0x0000001e,0x00000000,0x00030047,0x000004a7,0x00000000,0x00030047, + 0x000004ab,0x00000000,0x00040047,0x000004ab,0x00000021,0x00000000,0x00040047,0x000004ab, + 0x00000022,0x00000000,0x00030047,0x000004ac,0x00000000,0x00030047,0x000004ae,0x00000000, + 0x00030047,0x000004af,0x00000000,0x00030047,0x000004b5,0x00000000,0x00030047,0x000004bd, + 0x00000000,0x00030047,0x000004c5,0x00000000,0x00030047,0x000004ce,0x00000000,0x00030047, + 0x000004d4,0x00000000,0x00030047,0x000004d5,0x00000000,0x00030047,0x000004d7,0x00000000, + 0x00030047,0x000004d8,0x00000000,0x00030047,0x000004da,0x00000000,0x00030047,0x000004db, + 0x00000000,0x00030047,0x000004dd,0x00000000,0x00030047,0x000004de,0x00000000,0x00030047, + 0x000004e0,0x00000000,0x00030047,0x000004e1,0x00000000,0x00030047,0x000004e3,0x00000000, + 0x00030047,0x000004e4,0x00000000,0x00030047,0x000004e6,0x00000000,0x00030047,0x000004e7, + 0x00000000,0x00030047,0x000004e9,0x00000000,0x00030047,0x000004ea,0x00000000,0x00030047, + 0x000004ec,0x00000000,0x00030047,0x000004ed,0x00000000,0x00030047,0x000004ef,0x00000000, + 0x00030047,0x000004f0,0x00000000,0x00030047,0x000004f1,0x00000000,0x00030047,0x000004f2, + 0x00000000,0x00030047,0x000004f4,0x00000000,0x00030047,0x000004f5,0x00000000,0x00030047, + 0x000004f7,0x00000000,0x00030047,0x000004f8,0x00000000,0x00030047,0x000004fa,0x00000000, + 0x00030047,0x000004fb,0x00000000,0x00030047,0x000004fd,0x00000000,0x00030047,0x000004fe, + 0x00000000,0x00030047,0x00000500,0x00000000,0x00030047,0x00000501,0x00000000,0x00030047, + 0x00000503,0x00000000,0x00030047,0x00000504,0x00000000,0x00030047,0x00000506,0x00000000, + 0x00030047,0x00000507,0x00000000,0x00030047,0x00000509,0x00000000,0x00030047,0x0000050a, + 0x00000000,0x00030047,0x0000050c,0x00000000,0x00030047,0x0000050d,0x00000000,0x00030047, + 0x0000050e,0x00000000,0x00030047,0x0000050f,0x00000000,0x00030047,0x00000511,0x00000000, + 0x00030047,0x00000512,0x00000000,0x00030047,0x00000514,0x00000000,0x00030047,0x00000515, + 0x00000000,0x00030047,0x00000517,0x00000000,0x00030047,0x00000518,0x00000000,0x00030047, + 0x0000051a,0x00000000,0x00030047,0x0000051b,0x00000000,0x00030047,0x0000051d,0x00000000, + 0x00030047,0x0000051e,0x00000000,0x00030047,0x00000520,0x00000000,0x00030047,0x00000521, + 0x00000000,0x00030047,0x00000523,0x00000000,0x00030047,0x00000524,0x00000000,0x00030047, + 0x00000526,0x00000000,0x00030047,0x00000527,0x00000000,0x00030047,0x00000529,0x00000000, + 0x00030047,0x0000052a,0x00000000,0x00030047,0x0000052b,0x00000000,0x00030047,0x0000052c, + 0x00000000,0x00030047,0x0000052e,0x00000000,0x00030047,0x0000052f,0x00000000,0x00030047, + 0x00000531,0x00000000,0x00030047,0x00000532,0x00000000,0x00030047,0x00000534,0x00000000, + 0x00030047,0x00000535,0x00000000,0x00030047,0x00000537,0x00000000,0x00030047,0x00000538, + 0x00000000,0x00030047,0x0000053a,0x00000000,0x00030047,0x0000053b,0x00000000,0x00030047, + 0x0000053d,0x00000000,0x00030047,0x0000053e,0x00000000,0x00030047,0x00000540,0x00000000, + 0x00030047,0x00000541,0x00000000,0x00030047,0x00000543,0x00000000,0x00030047,0x00000544, + 0x00000000,0x00030047,0x00000546,0x00000000,0x00030047,0x00000547,0x00000000,0x00030047, + 0x00000548,0x00000000,0x00030047,0x00000549,0x00000000,0x00030047,0x0000054a,0x00000000, + 0x00030047,0x0000054b,0x00000000,0x00030047,0x0000054c,0x00000000,0x00030047,0x0000054d, + 0x00000000,0x00030047,0x0000054e,0x00000000,0x00030047,0x0000054f,0x00000000,0x00030047, + 0x00000550,0x00000000,0x00030047,0x00000551,0x00000000,0x00030047,0x00000553,0x00000000, + 0x00030047,0x00000555,0x00000000,0x00030047,0x00000556,0x00000000,0x00030047,0x00000558, + 0x00000000,0x00030047,0x00000559,0x00000000,0x00030047,0x0000055b,0x00000000,0x00030047, + 0x0000055c,0x00000000,0x00030047,0x0000055e,0x00000000,0x00030047,0x0000055f,0x00000000, + 0x00030047,0x00000561,0x00000000,0x00030047,0x00000562,0x00000000,0x00030047,0x00000563, + 0x00000000,0x00030047,0x00000564,0x00000000,0x00030047,0x00000565,0x00000000,0x00030047, + 0x0000056a,0x00000000,0x00030047,0x0000056b,0x00000000,0x00030047,0x0000056c,0x00000000, + 0x00030047,0x0000056d,0x00000000,0x00030047,0x0000056e,0x00000000,0x00030047,0x0000056f, + 0x00000000,0x00030047,0x00000571,0x00000000,0x00030047,0x00000577,0x00000000,0x00030047, + 0x00000578,0x00000000,0x00030047,0x00000579,0x00000000,0x00030047,0x0000057a,0x00000000, + 0x00030047,0x0000057b,0x00000000,0x00030047,0x0000057c,0x00000000,0x00030047,0x0000057d, + 0x00000000,0x00030047,0x0000057f,0x00000000,0x00030047,0x00000580,0x00000000,0x00030047, + 0x00000581,0x00000000,0x00030047,0x00000582,0x00000000,0x00030047,0x00000583,0x00000000, + 0x00030047,0x00000584,0x00000000,0x00030047,0x00000585,0x00000000,0x00030047,0x00000586, + 0x00000000,0x00030047,0x00000587,0x00000000,0x00030047,0x00000588,0x00000000,0x00030047, + 0x00000589,0x00000000,0x00030047,0x0000058a,0x00000000,0x00030047,0x0000058b,0x00000000, + 0x00030047,0x0000058c,0x00000000,0x00030047,0x0000058d,0x00000000,0x00030047,0x00000595, + 0x00000000,0x00040047,0x00000595,0x0000001e,0x00000000,0x00030047,0x00000596,0x00000000, + 0x00030047,0x00000597,0x00000000,0x00030047,0x00000598,0x00000000,0x00030047,0x00000599, + 0x00000000,0x00030047,0x0000059a,0x00000000,0x00030047,0x0000059b,0x00000000,0x00030047, + 0x0000059c,0x00000000,0x00030047,0x0000059d,0x00000000,0x00030047,0x0000059e,0x00000000, + 0x00030047,0x0000059f,0x00000000,0x00030047,0x000005a0,0x00000000,0x00020013,0x00000002, + 0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,0x00000007, + 0x00000006,0x00000003,0x00040020,0x00000008,0x00000007,0x00000007,0x00040021,0x00000009, + 0x00000006,0x00000008,0x00040020,0x0000000d,0x00000007,0x00000006,0x00040017,0x0000000e, + 0x00000006,0x00000004,0x000c0021,0x0000000f,0x0000000e,0x0000000d,0x0000000d,0x0000000d, + 0x0000000d,0x0000000d,0x0000000d,0x0000000d,0x0000000d,0x0000000d,0x00040020,0x0000001b, + 0x00000007,0x0000000e,0x00090021,0x0000001c,0x0000000e,0x0000001b,0x0000001b,0x0000001b, + 0x0000001b,0x0000000d,0x0000000d,0x00040015,0x00000025,0x00000020,0x00000001,0x00040020, + 0x00000026,0x00000007,0x00000025,0x000a0021,0x00000027,0x00000006,0x0000000d,0x0000000d, + 0x0000000d,0x0000000d,0x0000000d,0x0000000d,0x00000026,0x00040015,0x00000031,0x00000020, + 0x00000000,0x0004002b,0x00000031,0x00000032,0x00000006,0x0004001c,0x00000033,0x00000006, + 0x00000032,0x00040020,0x00000034,0x00000007,0x00000033,0x00050021,0x00000035,0x00000006, + 0x00000034,0x00000026,0x0004001c,0x0000003a,0x00000033,0x00000032,0x00040020,0x0000003b, + 0x00000007,0x0000003a,0x00060021,0x0000003c,0x00000006,0x0000003b,0x00000026,0x00000026, + 0x00090021,0x00000042,0x00000006,0x0000003b,0x0000000d,0x0000000d,0x00000026,0x00000026, + 0x0000001b,0x0004002b,0x00000006,0x0000004b,0x3e59b3d0,0x0004002b,0x00000031,0x0000004c, + 0x00000000,0x0004002b,0x00000006,0x00000050,0x3f371759,0x0004002b,0x00000031,0x00000051, + 0x00000001,0x0004002b,0x00000006,0x00000056,0x3d93dd98,0x0004002b,0x00000031,0x00000057, + 0x00000002,0x0004002b,0x00000006,0x000000a5,0x00000000,0x00020014,0x000000a6,0x0007002c, + 0x0000000e,0x000000aa,0x000000a5,0x000000a5,0x000000a5,0x000000a5,0x0004002b,0x00000006, + 0x000000b2,0x3f800000,0x00040020,0x000000b7,0x00000007,0x000000a6,0x0004002b,0x00000006, + 0x000000bb,0x400ce000,0x0004002b,0x00000006,0x000000bf,0x3d800000,0x0004002b,0x00000025, + 0x0000011c,0x00000020,0x0004002b,0x00000006,0x0000014e,0x3b808081,0x0004002b,0x00000006, + 0x00000152,0x40000000,0x0004002b,0x00000006,0x00000154,0x3e000000,0x0004002b,0x00000025, + 0x0000015c,0x00000000,0x0004002b,0x00000025,0x0000015d,0x0000003f,0x0004002b,0x00000031, + 0x00000160,0x00000080,0x0004001c,0x00000161,0x0000000e,0x00000160,0x0004001c,0x00000162, + 0x0000000e,0x00000160,0x0004001e,0x00000163,0x00000161,0x00000162,0x00040020,0x00000164, + 0x00000002,0x00000163,0x0004003b,0x00000164,0x00000165,0x00000002,0x0004002b,0x00000025, + 0x00000167,0x00000002,0x00040020,0x00000169,0x00000002,0x0000000e,0x0004002b,0x00000025, + 0x0000016f,0x00000001,0x0004002b,0x00000031,0x00000194,0x00000003,0x0004002b,0x00000025, + 0x00000197,0x00000003,0x0004002b,0x00000025,0x0000019f,0x00000004,0x0004002b,0x00000025, + 0x000001a7,0x00000005,0x0004002b,0x00000006,0x000001da,0x3ee66666,0x0004002b,0x00000006, + 0x000001dc,0x400e38e4,0x00040020,0x000001e2,0x00000006,0x00000006,0x0004003b,0x000001e2, + 0x000001e3,0x00000006,0x0004003b,0x000001e2,0x000001e6,0x00000006,0x0004003b,0x000001e2, + 0x000001ee,0x00000006,0x0004003b,0x000001e2,0x000001f1,0x00000006,0x0004002b,0x00000025, + 0x00000256,0x00000006,0x0004002b,0x00000006,0x000002c8,0x3f000000,0x0004002b,0x00000031, + 0x000002ce,0x00000007,0x0004001c,0x000002cf,0x00000006,0x000002ce,0x00040020,0x000002d0, + 0x00000007,0x000002cf,0x0004002b,0x00000006,0x00000361,0x42800000,0x0005001e,0x00000417, + 0x0000000e,0x0000000e,0x00000006,0x00040020,0x00000418,0x00000009,0x00000417,0x0004003b, + 0x00000418,0x00000419,0x00000009,0x00040020,0x0000041a,0x00000009,0x00000006,0x0004002b, + 0x00000006,0x00000424,0x3fa00000,0x0004002b,0x00000006,0x00000425,0x3fe00000,0x0004002b, + 0x00000006,0x0000042f,0x3ecccccd,0x0004002b,0x00000006,0x00000433,0x3f99999a,0x0004002b, + 0x00000006,0x00000438,0x3fcccccd,0x0004002b,0x00000006,0x0000043c,0x3fe66666,0x0004002b, + 0x00000006,0x00000442,0x3dcccccd,0x0004002b,0x00000006,0x00000443,0x3e0f5c29,0x0004002b, + 0x00000006,0x00000447,0x3ea3d70a,0x0004002b,0x00000006,0x0000044f,0x3f19999a,0x00040017, + 0x00000455,0x00000006,0x00000002,0x00040020,0x00000456,0x00000007,0x00000455,0x00040020, + 0x00000458,0x00000009,0x0000000e,0x00040020,0x00000461,0x00000001,0x00000455,0x0004003b, + 0x00000461,0x00000462,0x00000001,0x00040020,0x00000463,0x00000001,0x00000006,0x00090019, + 0x000004a8,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000, + 0x0003001b,0x000004a9,0x000004a8,0x00040020,0x000004aa,0x00000000,0x000004a9,0x0004003b, + 0x000004aa,0x000004ab,0x00000000,0x00040020,0x00000594,0x00000003,0x0000000e,0x0004003b, + 0x00000594,0x00000595,0x00000003,0x0004002b,0x00000006,0x0000059f,0x41200000,0x0004002b, + 0x00000006,0x000005a0,0x3f666666,0x0004002b,0x00000025,0x000005a1,0x00000040,0x00050036, + 0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x0000000d, + 0x00000416,0x00000007,0x0004003b,0x0000000d,0x0000041e,0x00000007,0x0004003b,0x0000000d, + 0x00000421,0x00000007,0x0004003b,0x0000000d,0x00000427,0x00000007,0x0004003b,0x0000000d, + 0x0000042b,0x00000007,0x0004003b,0x0000000d,0x00000437,0x00000007,0x0004003b,0x0000000d, + 0x0000044b,0x00000007,0x0004003b,0x00000456,0x00000457,0x00000007,0x0004003b,0x00000456, + 0x0000045c,0x00000007,0x0004003b,0x0000000d,0x00000460,0x00000007,0x0004003b,0x0000000d, + 0x0000046a,0x00000007,0x0004003b,0x0000000d,0x00000471,0x00000007,0x0004003b,0x0000000d, + 0x00000474,0x00000007,0x0004003b,0x0000000d,0x00000477,0x00000007,0x0004003b,0x0000000d, + 0x0000047b,0x00000007,0x0004003b,0x00000026,0x0000047f,0x00000007,0x0004003b,0x00000026, + 0x00000483,0x00000007,0x0004003b,0x00000026,0x00000487,0x00000007,0x0004003b,0x00000026, + 0x0000048f,0x00000007,0x0004003b,0x00000456,0x00000497,0x00000007,0x0004003b,0x0000001b, + 0x000004a7,0x00000007,0x0004003b,0x0000003b,0x000004af,0x00000007,0x0004003b,0x0000001b, + 0x000004d4,0x00000007,0x0004003b,0x0000000d,0x000004d5,0x00000007,0x0004003b,0x0000000d, + 0x000004d8,0x00000007,0x0004003b,0x0000000d,0x000004db,0x00000007,0x0004003b,0x0000000d, + 0x000004de,0x00000007,0x0004003b,0x0000000d,0x000004e1,0x00000007,0x0004003b,0x0000000d, + 0x000004e4,0x00000007,0x0004003b,0x0000000d,0x000004e7,0x00000007,0x0004003b,0x0000000d, + 0x000004ea,0x00000007,0x0004003b,0x0000000d,0x000004ed,0x00000007,0x0004003b,0x0000001b, + 0x000004f1,0x00000007,0x0004003b,0x0000000d,0x000004f2,0x00000007,0x0004003b,0x0000000d, + 0x000004f5,0x00000007,0x0004003b,0x0000000d,0x000004f8,0x00000007,0x0004003b,0x0000000d, + 0x000004fb,0x00000007,0x0004003b,0x0000000d,0x000004fe,0x00000007,0x0004003b,0x0000000d, + 0x00000501,0x00000007,0x0004003b,0x0000000d,0x00000504,0x00000007,0x0004003b,0x0000000d, + 0x00000507,0x00000007,0x0004003b,0x0000000d,0x0000050a,0x00000007,0x0004003b,0x0000001b, + 0x0000050e,0x00000007,0x0004003b,0x0000000d,0x0000050f,0x00000007,0x0004003b,0x0000000d, + 0x00000512,0x00000007,0x0004003b,0x0000000d,0x00000515,0x00000007,0x0004003b,0x0000000d, + 0x00000518,0x00000007,0x0004003b,0x0000000d,0x0000051b,0x00000007,0x0004003b,0x0000000d, + 0x0000051e,0x00000007,0x0004003b,0x0000000d,0x00000521,0x00000007,0x0004003b,0x0000000d, + 0x00000524,0x00000007,0x0004003b,0x0000000d,0x00000527,0x00000007,0x0004003b,0x0000001b, + 0x0000052b,0x00000007,0x0004003b,0x0000000d,0x0000052c,0x00000007,0x0004003b,0x0000000d, + 0x0000052f,0x00000007,0x0004003b,0x0000000d,0x00000532,0x00000007,0x0004003b,0x0000000d, + 0x00000535,0x00000007,0x0004003b,0x0000000d,0x00000538,0x00000007,0x0004003b,0x0000000d, + 0x0000053b,0x00000007,0x0004003b,0x0000000d,0x0000053e,0x00000007,0x0004003b,0x0000000d, + 0x00000541,0x00000007,0x0004003b,0x0000000d,0x00000544,0x00000007,0x0004003b,0x0000001b, + 0x00000548,0x00000007,0x0004003b,0x0000001b,0x00000549,0x00000007,0x0004003b,0x0000001b, + 0x0000054b,0x00000007,0x0004003b,0x0000001b,0x0000054d,0x00000007,0x0004003b,0x0000001b, + 0x0000054f,0x00000007,0x0004003b,0x0000000d,0x00000551,0x00000007,0x0004003b,0x0000000d, + 0x00000553,0x00000007,0x0004003b,0x0000000d,0x00000556,0x00000007,0x0004003b,0x0000000d, + 0x00000563,0x00000007,0x0004003b,0x0000003b,0x00000564,0x00000007,0x0004003b,0x00000026, + 0x00000566,0x00000007,0x0004003b,0x00000026,0x00000568,0x00000007,0x0004003b,0x0000003b, + 0x0000056d,0x00000007,0x0004003b,0x0000000d,0x0000056f,0x00000007,0x0004003b,0x0000000d, + 0x00000571,0x00000007,0x0004003b,0x00000026,0x00000573,0x00000007,0x0004003b,0x00000026, + 0x00000575,0x00000007,0x0004003b,0x0000001b,0x00000577,0x00000007,0x0004003b,0x0000001b, + 0x0000057c,0x00000007,0x0004003b,0x0000000d,0x00000580,0x00000007,0x0004003b,0x00000008, + 0x00000581,0x00000007,0x0004003b,0x0000000d,0x00000585,0x00000007,0x00050041,0x0000041a, + 0x0000041b,0x00000419,0x00000167,0x0004003d,0x00000006,0x0000041c,0x0000041b,0x0008000c, + 0x00000006,0x0000041d,0x00000001,0x0000002b,0x0000041c,0x000000a5,0x000000b2,0x0003003e, + 0x00000416,0x0000041d,0x0004003d,0x00000006,0x0000041f,0x00000416,0x00050083,0x00000006, + 0x00000420,0x0000041f,0x000002c8,0x0003003e,0x0000041e,0x00000420,0x0004003d,0x00000006, + 0x00000422,0x0000041e,0x000500be,0x000000a6,0x00000423,0x00000422,0x000000a5,0x000600a9, + 0x00000006,0x00000426,0x00000423,0x00000424,0x00000425,0x0003003e,0x00000421,0x00000426, + 0x0004003d,0x00000006,0x00000428,0x0000041e,0x000500be,0x000000a6,0x00000429,0x00000428, + 0x000000a5,0x000600a9,0x00000006,0x0000042a,0x00000429,0x00000424,0x000000b2,0x0003003e, + 0x00000427,0x0000042a,0x0004003d,0x00000006,0x0000042c,0x0000041e,0x000500be,0x000000a6, + 0x0000042d,0x0000042c,0x000000a5,0x000600a9,0x00000006,0x0000042e,0x0000042d,0x00000424, + 0x000000b2,0x0003003e,0x0000042b,0x0000042e,0x0004003d,0x00000006,0x00000430,0x0000041e, + 0x0004003d,0x00000006,0x00000431,0x00000427,0x00050085,0x00000006,0x00000432,0x00000430, + 0x00000431,0x00050085,0x00000006,0x00000434,0x00000432,0x00000433,0x00050081,0x00000006, + 0x00000435,0x0000042f,0x00000434,0x0007000c,0x00000006,0x00000436,0x00000001,0x00000028, + 0x000000a5,0x00000435,0x0003003e,0x000001e6,0x00000436,0x0004003d,0x00000006,0x00000439, + 0x0000041e,0x0004003d,0x00000006,0x0000043a,0x00000421,0x00050085,0x00000006,0x0000043b, + 0x00000439,0x0000043a,0x00050085,0x00000006,0x0000043d,0x0000043b,0x0000043c,0x00050081, + 0x00000006,0x0000043e,0x00000438,0x0000043d,0x0003003e,0x00000437,0x0000043e,0x0004003d, + 0x00000006,0x0000043f,0x00000437,0x0004003d,0x00000006,0x00000440,0x000001e6,0x00050083, + 0x00000006,0x00000441,0x0000043f,0x00000440,0x0003003e,0x000001e3,0x00000441,0x0004003d, + 0x00000006,0x00000444,0x0000041e,0x0004003d,0x00000006,0x00000445,0x0000042b,0x00050085, + 0x00000006,0x00000446,0x00000444,0x00000445,0x00050085,0x00000006,0x00000448,0x00000446, + 0x00000447,0x00050081,0x00000006,0x00000449,0x00000443,0x00000448,0x0007000c,0x00000006, + 0x0000044a,0x00000001,0x00000028,0x00000442,0x00000449,0x0003003e,0x000001f1,0x0000044a, + 0x0004003d,0x00000006,0x0000044c,0x0000041e,0x0004003d,0x00000006,0x0000044d,0x0000042b, + 0x00050085,0x00000006,0x0000044e,0x0000044c,0x0000044d,0x00050085,0x00000006,0x00000450, + 0x0000044e,0x0000044f,0x00050081,0x00000006,0x00000451,0x000002c8,0x00000450,0x0003003e, + 0x0000044b,0x00000451,0x0004003d,0x00000006,0x00000452,0x0000044b,0x0004003d,0x00000006, + 0x00000453,0x000001f1,0x00050083,0x00000006,0x00000454,0x00000452,0x00000453,0x0003003e, + 0x000001ee,0x00000454,0x00050041,0x00000458,0x00000459,0x00000419,0x0000016f,0x0004003d, + 0x0000000e,0x0000045a,0x00000459,0x0007004f,0x00000455,0x0000045b,0x0000045a,0x0000045a, + 0x00000002,0x00000003,0x0003003e,0x00000457,0x0000045b,0x00050041,0x00000458,0x0000045d, + 0x00000419,0x0000016f,0x0004003d,0x0000000e,0x0000045e,0x0000045d,0x0007004f,0x00000455, + 0x0000045f,0x0000045e,0x0000045e,0x00000000,0x00000001,0x0003003e,0x0000045c,0x0000045f, + 0x00050041,0x00000463,0x00000464,0x00000462,0x0000004c,0x0004003d,0x00000006,0x00000465, + 0x00000464,0x00050041,0x0000000d,0x00000466,0x00000457,0x0000004c,0x0004003d,0x00000006, + 0x00000467,0x00000466,0x00050085,0x00000006,0x00000468,0x00000465,0x00000467,0x00050083, + 0x00000006,0x00000469,0x00000468,0x000002c8,0x0003003e,0x00000460,0x00000469,0x00050041, + 0x00000463,0x0000046b,0x00000462,0x00000051,0x0004003d,0x00000006,0x0000046c,0x0000046b, + 0x00050041,0x0000000d,0x0000046d,0x00000457,0x00000051,0x0004003d,0x00000006,0x0000046e, + 0x0000046d,0x00050085,0x00000006,0x0000046f,0x0000046c,0x0000046e,0x00050083,0x00000006, + 0x00000470,0x0000046f,0x000002c8,0x0003003e,0x0000046a,0x00000470,0x0004003d,0x00000006, + 0x00000472,0x00000460,0x0006000c,0x00000006,0x00000473,0x00000001,0x00000008,0x00000472, + 0x0003003e,0x00000471,0x00000473,0x0004003d,0x00000006,0x00000475,0x0000046a,0x0006000c, + 0x00000006,0x00000476,0x00000001,0x00000008,0x00000475,0x0003003e,0x00000474,0x00000476, + 0x0004003d,0x00000006,0x00000478,0x00000460,0x0004003d,0x00000006,0x00000479,0x00000471, + 0x00050083,0x00000006,0x0000047a,0x00000478,0x00000479,0x0003003e,0x00000477,0x0000047a, + 0x0004003d,0x00000006,0x0000047c,0x0000046a,0x0004003d,0x00000006,0x0000047d,0x00000474, + 0x00050083,0x00000006,0x0000047e,0x0000047c,0x0000047d,0x0003003e,0x0000047b,0x0000047e, + 0x0004003d,0x00000006,0x00000480,0x00000477,0x00050085,0x00000006,0x00000481,0x00000480, + 0x00000361,0x0004006e,0x00000025,0x00000482,0x00000481,0x0003003e,0x0000047f,0x00000482, + 0x0004003d,0x00000006,0x00000484,0x0000047b,0x00050085,0x00000006,0x00000485,0x00000484, + 0x00000361,0x0004006e,0x00000025,0x00000486,0x00000485,0x0003003e,0x00000483,0x00000486, + 0x0003003e,0x00000487,0x0000015c,0x000200f9,0x00000488,0x000200f8,0x00000488,0x000400f6, + 0x0000048a,0x0000048b,0x00000000,0x000200f9,0x0000048c,0x000200f8,0x0000048c,0x0004003d, + 0x00000025,0x0000048d,0x00000487,0x000500b1,0x000000a6,0x0000048e,0x0000048d,0x00000197, + 0x000400fa,0x0000048e,0x00000489,0x0000048a,0x000200f8,0x00000489,0x0003003e,0x0000048f, + 0x0000015c,0x000200f9,0x00000490,0x000200f8,0x00000490,0x000400f6,0x00000492,0x00000493, + 0x00000000,0x000200f9,0x00000494,0x000200f8,0x00000494,0x0004003d,0x00000025,0x00000495, + 0x0000048f,0x000500b1,0x000000a6,0x00000496,0x00000495,0x00000197,0x000400fa,0x00000496, + 0x00000491,0x00000492,0x000200f8,0x00000491,0x0004003d,0x00000006,0x00000498,0x00000471, + 0x0004003d,0x00000025,0x00000499,0x0000048f,0x00050084,0x00000025,0x0000049a,0x00000167, + 0x00000499,0x00050082,0x00000025,0x0000049b,0x0000049a,0x0000016f,0x0004006f,0x00000006, + 0x0000049c,0x0000049b,0x00050081,0x00000006,0x0000049d,0x00000498,0x0000049c,0x0004003d, + 0x00000006,0x0000049e,0x00000474,0x0004003d,0x00000025,0x0000049f,0x00000487,0x00050084, + 0x00000025,0x000004a0,0x00000167,0x0000049f,0x00050082,0x00000025,0x000004a1,0x000004a0, + 0x0000016f,0x0004006f,0x00000006,0x000004a2,0x000004a1,0x00050081,0x00000006,0x000004a3, + 0x0000049e,0x000004a2,0x00050050,0x00000455,0x000004a4,0x0000049d,0x000004a3,0x0004003d, + 0x00000455,0x000004a5,0x0000045c,0x00050085,0x00000455,0x000004a6,0x000004a4,0x000004a5, + 0x0003003e,0x00000497,0x000004a6,0x0004003d,0x000004a9,0x000004ac,0x000004ab,0x0004003d, + 0x00000455,0x000004ad,0x00000497,0x00060060,0x0000000e,0x000004ae,0x000004ac,0x000004ad, + 0x00000197,0x0003003e,0x000004a7,0x000004ae,0x0004003d,0x00000025,0x000004b0,0x00000487, + 0x00050084,0x00000025,0x000004b1,0x00000167,0x000004b0,0x0004003d,0x00000025,0x000004b2, + 0x0000048f,0x00050084,0x00000025,0x000004b3,0x00000167,0x000004b2,0x00050041,0x0000000d, + 0x000004b4,0x000004a7,0x00000194,0x0004003d,0x00000006,0x000004b5,0x000004b4,0x00060041, + 0x0000000d,0x000004b6,0x000004af,0x000004b1,0x000004b3,0x0003003e,0x000004b6,0x000004b5, + 0x0004003d,0x00000025,0x000004b7,0x00000487,0x00050084,0x00000025,0x000004b8,0x00000167, + 0x000004b7,0x0004003d,0x00000025,0x000004b9,0x0000048f,0x00050084,0x00000025,0x000004ba, + 0x00000167,0x000004b9,0x00050080,0x00000025,0x000004bb,0x000004ba,0x0000016f,0x00050041, + 0x0000000d,0x000004bc,0x000004a7,0x00000057,0x0004003d,0x00000006,0x000004bd,0x000004bc, + 0x00060041,0x0000000d,0x000004be,0x000004af,0x000004b8,0x000004bb,0x0003003e,0x000004be, + 0x000004bd,0x0004003d,0x00000025,0x000004bf,0x00000487,0x00050084,0x00000025,0x000004c0, + 0x00000167,0x000004bf,0x00050080,0x00000025,0x000004c1,0x000004c0,0x0000016f,0x0004003d, + 0x00000025,0x000004c2,0x0000048f,0x00050084,0x00000025,0x000004c3,0x00000167,0x000004c2, + 0x00050041,0x0000000d,0x000004c4,0x000004a7,0x0000004c,0x0004003d,0x00000006,0x000004c5, + 0x000004c4,0x00060041,0x0000000d,0x000004c6,0x000004af,0x000004c1,0x000004c3,0x0003003e, + 0x000004c6,0x000004c5,0x0004003d,0x00000025,0x000004c7,0x00000487,0x00050084,0x00000025, + 0x000004c8,0x00000167,0x000004c7,0x00050080,0x00000025,0x000004c9,0x000004c8,0x0000016f, + 0x0004003d,0x00000025,0x000004ca,0x0000048f,0x00050084,0x00000025,0x000004cb,0x00000167, + 0x000004ca,0x00050080,0x00000025,0x000004cc,0x000004cb,0x0000016f,0x00050041,0x0000000d, + 0x000004cd,0x000004a7,0x00000051,0x0004003d,0x00000006,0x000004ce,0x000004cd,0x00060041, + 0x0000000d,0x000004cf,0x000004af,0x000004c9,0x000004cc,0x0003003e,0x000004cf,0x000004ce, + 0x000200f9,0x00000493,0x000200f8,0x00000493,0x0004003d,0x00000025,0x000004d0,0x0000048f, + 0x00050080,0x00000025,0x000004d1,0x000004d0,0x0000016f,0x0003003e,0x0000048f,0x000004d1, + 0x000200f9,0x00000490,0x000200f8,0x00000492,0x000200f9,0x0000048b,0x000200f8,0x0000048b, + 0x0004003d,0x00000025,0x000004d2,0x00000487,0x00050080,0x00000025,0x000004d3,0x000004d2, + 0x0000016f,0x0003003e,0x00000487,0x000004d3,0x000200f9,0x00000488,0x000200f8,0x0000048a, + 0x00060041,0x0000000d,0x000004d6,0x000004af,0x0000016f,0x0000016f,0x0004003d,0x00000006, + 0x000004d7,0x000004d6,0x0003003e,0x000004d5,0x000004d7,0x00060041,0x0000000d,0x000004d9, + 0x000004af,0x0000016f,0x00000167,0x0004003d,0x00000006,0x000004da,0x000004d9,0x0003003e, + 0x000004d8,0x000004da,0x00060041,0x0000000d,0x000004dc,0x000004af,0x0000016f,0x00000197, + 0x0004003d,0x00000006,0x000004dd,0x000004dc,0x0003003e,0x000004db,0x000004dd,0x00060041, + 0x0000000d,0x000004df,0x000004af,0x00000167,0x0000016f,0x0004003d,0x00000006,0x000004e0, + 0x000004df,0x0003003e,0x000004de,0x000004e0,0x00060041,0x0000000d,0x000004e2,0x000004af, + 0x00000167,0x00000167,0x0004003d,0x00000006,0x000004e3,0x000004e2,0x0003003e,0x000004e1, + 0x000004e3,0x00060041,0x0000000d,0x000004e5,0x000004af,0x00000167,0x00000197,0x0004003d, + 0x00000006,0x000004e6,0x000004e5,0x0003003e,0x000004e4,0x000004e6,0x00060041,0x0000000d, + 0x000004e8,0x000004af,0x00000197,0x0000016f,0x0004003d,0x00000006,0x000004e9,0x000004e8, + 0x0003003e,0x000004e7,0x000004e9,0x00060041,0x0000000d,0x000004eb,0x000004af,0x00000197, + 0x00000167,0x0004003d,0x00000006,0x000004ec,0x000004eb,0x0003003e,0x000004ea,0x000004ec, + 0x00060041,0x0000000d,0x000004ee,0x000004af,0x00000197,0x00000197,0x0004003d,0x00000006, + 0x000004ef,0x000004ee,0x0003003e,0x000004ed,0x000004ef,0x000d0039,0x0000000e,0x000004f0, + 0x00000019,0x000004d5,0x000004d8,0x000004db,0x000004de,0x000004e1,0x000004e4,0x000004e7, + 0x000004ea,0x000004ed,0x0003003e,0x000004d4,0x000004f0,0x00060041,0x0000000d,0x000004f3, + 0x000004af,0x0000016f,0x00000167,0x0004003d,0x00000006,0x000004f4,0x000004f3,0x0003003e, + 0x000004f2,0x000004f4,0x00060041,0x0000000d,0x000004f6,0x000004af,0x0000016f,0x00000197, + 0x0004003d,0x00000006,0x000004f7,0x000004f6,0x0003003e,0x000004f5,0x000004f7,0x00060041, + 0x0000000d,0x000004f9,0x000004af,0x0000016f,0x0000019f,0x0004003d,0x00000006,0x000004fa, + 0x000004f9,0x0003003e,0x000004f8,0x000004fa,0x00060041,0x0000000d,0x000004fc,0x000004af, + 0x00000167,0x00000167,0x0004003d,0x00000006,0x000004fd,0x000004fc,0x0003003e,0x000004fb, + 0x000004fd,0x00060041,0x0000000d,0x000004ff,0x000004af,0x00000167,0x00000197,0x0004003d, + 0x00000006,0x00000500,0x000004ff,0x0003003e,0x000004fe,0x00000500,0x00060041,0x0000000d, + 0x00000502,0x000004af,0x00000167,0x0000019f,0x0004003d,0x00000006,0x00000503,0x00000502, + 0x0003003e,0x00000501,0x00000503,0x00060041,0x0000000d,0x00000505,0x000004af,0x00000197, + 0x00000167,0x0004003d,0x00000006,0x00000506,0x00000505,0x0003003e,0x00000504,0x00000506, + 0x00060041,0x0000000d,0x00000508,0x000004af,0x00000197,0x00000197,0x0004003d,0x00000006, + 0x00000509,0x00000508,0x0003003e,0x00000507,0x00000509,0x00060041,0x0000000d,0x0000050b, + 0x000004af,0x00000197,0x0000019f,0x0004003d,0x00000006,0x0000050c,0x0000050b,0x0003003e, + 0x0000050a,0x0000050c,0x000d0039,0x0000000e,0x0000050d,0x00000019,0x000004f2,0x000004f5, + 0x000004f8,0x000004fb,0x000004fe,0x00000501,0x00000504,0x00000507,0x0000050a,0x0003003e, + 0x000004f1,0x0000050d,0x00060041,0x0000000d,0x00000510,0x000004af,0x00000167,0x0000016f, + 0x0004003d,0x00000006,0x00000511,0x00000510,0x0003003e,0x0000050f,0x00000511,0x00060041, + 0x0000000d,0x00000513,0x000004af,0x00000167,0x00000167,0x0004003d,0x00000006,0x00000514, + 0x00000513,0x0003003e,0x00000512,0x00000514,0x00060041,0x0000000d,0x00000516,0x000004af, + 0x00000167,0x00000197,0x0004003d,0x00000006,0x00000517,0x00000516,0x0003003e,0x00000515, + 0x00000517,0x00060041,0x0000000d,0x00000519,0x000004af,0x00000197,0x0000016f,0x0004003d, + 0x00000006,0x0000051a,0x00000519,0x0003003e,0x00000518,0x0000051a,0x00060041,0x0000000d, + 0x0000051c,0x000004af,0x00000197,0x00000167,0x0004003d,0x00000006,0x0000051d,0x0000051c, + 0x0003003e,0x0000051b,0x0000051d,0x00060041,0x0000000d,0x0000051f,0x000004af,0x00000197, + 0x00000197,0x0004003d,0x00000006,0x00000520,0x0000051f,0x0003003e,0x0000051e,0x00000520, + 0x00060041,0x0000000d,0x00000522,0x000004af,0x0000019f,0x0000016f,0x0004003d,0x00000006, + 0x00000523,0x00000522,0x0003003e,0x00000521,0x00000523,0x00060041,0x0000000d,0x00000525, + 0x000004af,0x0000019f,0x00000167,0x0004003d,0x00000006,0x00000526,0x00000525,0x0003003e, + 0x00000524,0x00000526,0x00060041,0x0000000d,0x00000528,0x000004af,0x0000019f,0x00000197, + 0x0004003d,0x00000006,0x00000529,0x00000528,0x0003003e,0x00000527,0x00000529,0x000d0039, + 0x0000000e,0x0000052a,0x00000019,0x0000050f,0x00000512,0x00000515,0x00000518,0x0000051b, + 0x0000051e,0x00000521,0x00000524,0x00000527,0x0003003e,0x0000050e,0x0000052a,0x00060041, + 0x0000000d,0x0000052d,0x000004af,0x00000167,0x00000167,0x0004003d,0x00000006,0x0000052e, + 0x0000052d,0x0003003e,0x0000052c,0x0000052e,0x00060041,0x0000000d,0x00000530,0x000004af, + 0x00000167,0x00000197,0x0004003d,0x00000006,0x00000531,0x00000530,0x0003003e,0x0000052f, + 0x00000531,0x00060041,0x0000000d,0x00000533,0x000004af,0x00000167,0x0000019f,0x0004003d, + 0x00000006,0x00000534,0x00000533,0x0003003e,0x00000532,0x00000534,0x00060041,0x0000000d, + 0x00000536,0x000004af,0x00000197,0x00000167,0x0004003d,0x00000006,0x00000537,0x00000536, + 0x0003003e,0x00000535,0x00000537,0x00060041,0x0000000d,0x00000539,0x000004af,0x00000197, + 0x00000197,0x0004003d,0x00000006,0x0000053a,0x00000539,0x0003003e,0x00000538,0x0000053a, + 0x00060041,0x0000000d,0x0000053c,0x000004af,0x00000197,0x0000019f,0x0004003d,0x00000006, + 0x0000053d,0x0000053c,0x0003003e,0x0000053b,0x0000053d,0x00060041,0x0000000d,0x0000053f, + 0x000004af,0x0000019f,0x00000167,0x0004003d,0x00000006,0x00000540,0x0000053f,0x0003003e, + 0x0000053e,0x00000540,0x00060041,0x0000000d,0x00000542,0x000004af,0x0000019f,0x00000197, + 0x0004003d,0x00000006,0x00000543,0x00000542,0x0003003e,0x00000541,0x00000543,0x00060041, + 0x0000000d,0x00000545,0x000004af,0x0000019f,0x0000019f,0x0004003d,0x00000006,0x00000546, + 0x00000545,0x0003003e,0x00000544,0x00000546,0x000d0039,0x0000000e,0x00000547,0x00000019, + 0x0000052c,0x0000052f,0x00000532,0x00000535,0x00000538,0x0000053b,0x0000053e,0x00000541, + 0x00000544,0x0003003e,0x0000052b,0x00000547,0x0004003d,0x0000000e,0x0000054a,0x000004d4, + 0x0003003e,0x00000549,0x0000054a,0x0004003d,0x0000000e,0x0000054c,0x000004f1,0x0003003e, + 0x0000054b,0x0000054c,0x0004003d,0x0000000e,0x0000054e,0x0000050e,0x0003003e,0x0000054d, + 0x0000054e,0x0004003d,0x0000000e,0x00000550,0x0000052b,0x0003003e,0x0000054f,0x00000550, + 0x0004003d,0x00000006,0x00000552,0x00000477,0x0003003e,0x00000551,0x00000552,0x0004003d, + 0x00000006,0x00000554,0x0000047b,0x0003003e,0x00000553,0x00000554,0x000a0039,0x0000000e, + 0x00000555,0x00000023,0x00000549,0x0000054b,0x0000054d,0x0000054f,0x00000551,0x00000553, + 0x0003003e,0x00000548,0x00000555,0x00050041,0x0000000d,0x00000557,0x00000548,0x0000004c, + 0x0004003d,0x00000006,0x00000558,0x00000557,0x00050083,0x00000006,0x00000559,0x000000b2, + 0x00000558,0x00050041,0x0000000d,0x0000055a,0x00000548,0x00000051,0x0004003d,0x00000006, + 0x0000055b,0x0000055a,0x00050083,0x00000006,0x0000055c,0x00000559,0x0000055b,0x00050041, + 0x0000000d,0x0000055d,0x00000548,0x00000057,0x0004003d,0x00000006,0x0000055e,0x0000055d, + 0x00050083,0x00000006,0x0000055f,0x0000055c,0x0000055e,0x00050041,0x0000000d,0x00000560, + 0x00000548,0x00000194,0x0004003d,0x00000006,0x00000561,0x00000560,0x00050083,0x00000006, + 0x00000562,0x0000055f,0x00000561,0x0003003e,0x00000556,0x00000562,0x0004003d,0x0000003a, + 0x00000565,0x000004af,0x0003003e,0x00000564,0x00000565,0x0004003d,0x00000025,0x00000567, + 0x0000047f,0x0003003e,0x00000566,0x00000567,0x0004003d,0x00000025,0x00000569,0x00000483, + 0x0003003e,0x00000568,0x00000569,0x00070039,0x00000006,0x0000056a,0x00000040,0x00000564, + 0x00000566,0x00000568,0x0004003d,0x00000006,0x0000056b,0x00000556,0x00050085,0x00000006, + 0x0000056c,0x0000056a,0x0000056b,0x0003003e,0x00000563,0x0000056c,0x0004003d,0x0000003a, + 0x0000056e,0x000004af,0x0003003e,0x0000056d,0x0000056e,0x0004003d,0x00000006,0x00000570, + 0x00000477,0x0003003e,0x0000056f,0x00000570,0x0004003d,0x00000006,0x00000572,0x0000047b, + 0x0003003e,0x00000571,0x00000572,0x0004003d,0x00000025,0x00000574,0x0000047f,0x0003003e, + 0x00000573,0x00000574,0x0004003d,0x00000025,0x00000576,0x00000483,0x0003003e,0x00000575, + 0x00000576,0x0004003d,0x0000000e,0x00000578,0x00000548,0x0003003e,0x00000577,0x00000578, + 0x000a0039,0x00000006,0x00000579,0x00000049,0x0000056d,0x0000056f,0x00000571,0x00000573, + 0x00000575,0x00000577,0x0004003d,0x00000006,0x0000057a,0x00000563,0x00050081,0x00000006, + 0x0000057b,0x0000057a,0x00000579,0x0003003e,0x00000563,0x0000057b,0x0004003d,0x000004a9, + 0x0000057d,0x000004ab,0x0004003d,0x00000455,0x0000057e,0x00000462,0x00050057,0x0000000e, + 0x0000057f,0x0000057d,0x0000057e,0x0003003e,0x0000057c,0x0000057f,0x0004003d,0x0000000e, + 0x00000582,0x0000057c,0x0008004f,0x00000007,0x00000583,0x00000582,0x00000582,0x00000000, + 0x00000001,0x00000002,0x0003003e,0x00000581,0x00000583,0x00050039,0x00000006,0x00000584, + 0x0000000b,0x00000581,0x0003003e,0x00000580,0x00000584,0x0004003d,0x00000006,0x00000586, + 0x00000563,0x0004003d,0x00000006,0x00000587,0x00000580,0x00050083,0x00000006,0x00000588, + 0x00000586,0x00000587,0x0003003e,0x00000585,0x00000588,0x0004003d,0x00000006,0x00000589, + 0x00000585,0x00060050,0x00000007,0x0000058a,0x00000589,0x00000589,0x00000589,0x0004003d, + 0x0000000e,0x0000058b,0x0000057c,0x0008004f,0x00000007,0x0000058c,0x0000058b,0x0000058b, + 0x00000000,0x00000001,0x00000002,0x00050081,0x00000007,0x0000058d,0x0000058c,0x0000058a, + 0x00050041,0x0000000d,0x0000058e,0x0000057c,0x0000004c,0x00050051,0x00000006,0x0000058f, + 0x0000058d,0x00000000,0x0003003e,0x0000058e,0x0000058f,0x00050041,0x0000000d,0x00000590, + 0x0000057c,0x00000051,0x00050051,0x00000006,0x00000591,0x0000058d,0x00000001,0x0003003e, + 0x00000590,0x00000591,0x00050041,0x0000000d,0x00000592,0x0000057c,0x00000057,0x00050051, + 0x00000006,0x00000593,0x0000058d,0x00000002,0x0003003e,0x00000592,0x00000593,0x0004003d, + 0x0000000e,0x00000596,0x0000057c,0x0008004f,0x00000007,0x00000597,0x00000596,0x00000596, + 0x00000000,0x00000001,0x00000002,0x00060050,0x00000007,0x00000598,0x000000a5,0x000000a5, + 0x000000a5,0x00060050,0x00000007,0x00000599,0x000000b2,0x000000b2,0x000000b2,0x0008000c, + 0x00000007,0x0000059a,0x00000001,0x0000002b,0x00000597,0x00000598,0x00000599,0x00050051, + 0x00000006,0x0000059b,0x0000059a,0x00000000,0x00050051,0x00000006,0x0000059c,0x0000059a, + 0x00000001,0x00050051,0x00000006,0x0000059d,0x0000059a,0x00000002,0x00070050,0x0000000e, + 0x0000059e,0x0000059b,0x0000059c,0x0000059d,0x000000b2,0x0003003e,0x00000595,0x0000059e, + 0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000b,0x00000000,0x00000009,0x00030037, + 0x00000008,0x0000000a,0x000200f8,0x0000000c,0x00050041,0x0000000d,0x0000004d,0x0000000a, + 0x0000004c,0x0004003d,0x00000006,0x0000004e,0x0000004d,0x00050085,0x00000006,0x0000004f, + 0x0000004b,0x0000004e,0x00050041,0x0000000d,0x00000052,0x0000000a,0x00000051,0x0004003d, + 0x00000006,0x00000053,0x00000052,0x00050085,0x00000006,0x00000054,0x00000050,0x00000053, + 0x00050081,0x00000006,0x00000055,0x0000004f,0x00000054,0x00050041,0x0000000d,0x00000058, + 0x0000000a,0x00000057,0x0004003d,0x00000006,0x00000059,0x00000058,0x00050085,0x00000006, + 0x0000005a,0x00000056,0x00000059,0x00050081,0x00000006,0x0000005b,0x00000055,0x0000005a, + 0x000200fe,0x0000005b,0x00010038,0x00050036,0x0000000e,0x00000019,0x00000000,0x0000000f, + 0x00030037,0x0000000d,0x00000010,0x00030037,0x0000000d,0x00000011,0x00030037,0x0000000d, + 0x00000012,0x00030037,0x0000000d,0x00000013,0x00030037,0x0000000d,0x00000014,0x00030037, + 0x0000000d,0x00000015,0x00030037,0x0000000d,0x00000016,0x00030037,0x0000000d,0x00000017, + 0x00030037,0x0000000d,0x00000018,0x000200f8,0x0000001a,0x0004003b,0x0000000d,0x0000005e, + 0x00000007,0x0004003b,0x0000000d,0x0000006b,0x00000007,0x0004003b,0x0000000d,0x00000078, + 0x00000007,0x0004003b,0x0000000d,0x00000085,0x00000007,0x0004003b,0x0000000d,0x00000092, + 0x00000007,0x0004003b,0x0000000d,0x00000096,0x00000007,0x0004003b,0x0000000d,0x0000009a, + 0x00000007,0x0004003b,0x0000000d,0x0000009e,0x00000007,0x0004003b,0x0000000d,0x000000ac, + 0x00000007,0x0004003b,0x0000000d,0x000000b4,0x00000007,0x0004003b,0x000000b7,0x000000b8, + 0x00000007,0x0004003b,0x000000b7,0x000000c6,0x00000007,0x0004003b,0x000000b7,0x000000d2, + 0x00000007,0x0004003b,0x000000b7,0x000000d6,0x00000007,0x0004003b,0x0000000d,0x000000da, + 0x00000007,0x0004003b,0x0000000d,0x000000e0,0x00000007,0x0004003b,0x0000000d,0x000000e6, + 0x00000007,0x0004003b,0x0000000d,0x000000ec,0x00000007,0x0004003b,0x0000000d,0x000000f3, + 0x00000007,0x0004003b,0x0000000d,0x000000f9,0x00000007,0x0004003d,0x00000006,0x0000005f, + 0x00000010,0x0004003d,0x00000006,0x00000060,0x00000011,0x00050081,0x00000006,0x00000061, + 0x0000005f,0x00000060,0x0004003d,0x00000006,0x00000062,0x00000012,0x00050081,0x00000006, + 0x00000063,0x00000061,0x00000062,0x0004003d,0x00000006,0x00000064,0x00000016,0x00050083, + 0x00000006,0x00000065,0x00000063,0x00000064,0x0004003d,0x00000006,0x00000066,0x00000017, + 0x00050083,0x00000006,0x00000067,0x00000065,0x00000066,0x0004003d,0x00000006,0x00000068, + 0x00000018,0x00050083,0x00000006,0x00000069,0x00000067,0x00000068,0x0006000c,0x00000006, + 0x0000006a,0x00000001,0x00000004,0x00000069,0x0003003e,0x0000005e,0x0000006a,0x0004003d, + 0x00000006,0x0000006c,0x00000013,0x0004003d,0x00000006,0x0000006d,0x00000010,0x00050081, + 0x00000006,0x0000006e,0x0000006c,0x0000006d,0x0004003d,0x00000006,0x0000006f,0x00000011, + 0x00050081,0x00000006,0x00000070,0x0000006e,0x0000006f,0x0004003d,0x00000006,0x00000071, + 0x00000017,0x00050083,0x00000006,0x00000072,0x00000070,0x00000071,0x0004003d,0x00000006, + 0x00000073,0x00000018,0x00050083,0x00000006,0x00000074,0x00000072,0x00000073,0x0004003d, + 0x00000006,0x00000075,0x00000015,0x00050083,0x00000006,0x00000076,0x00000074,0x00000075, + 0x0006000c,0x00000006,0x00000077,0x00000001,0x00000004,0x00000076,0x0003003e,0x0000006b, + 0x00000077,0x0004003d,0x00000006,0x00000079,0x00000010,0x0004003d,0x00000006,0x0000007a, + 0x00000013,0x00050081,0x00000006,0x0000007b,0x00000079,0x0000007a,0x0004003d,0x00000006, + 0x0000007c,0x00000016,0x00050081,0x00000006,0x0000007d,0x0000007b,0x0000007c,0x0004003d, + 0x00000006,0x0000007e,0x00000012,0x00050083,0x00000006,0x0000007f,0x0000007d,0x0000007e, + 0x0004003d,0x00000006,0x00000080,0x00000015,0x00050083,0x00000006,0x00000081,0x0000007f, + 0x00000080,0x0004003d,0x00000006,0x00000082,0x00000018,0x00050083,0x00000006,0x00000083, + 0x00000081,0x00000082,0x0006000c,0x00000006,0x00000084,0x00000001,0x00000004,0x00000083, + 0x0003003e,0x00000078,0x00000084,0x0004003d,0x00000006,0x00000086,0x00000013,0x0004003d, + 0x00000006,0x00000087,0x00000016,0x00050081,0x00000006,0x00000088,0x00000086,0x00000087, + 0x0004003d,0x00000006,0x00000089,0x00000017,0x00050081,0x00000006,0x0000008a,0x00000088, + 0x00000089,0x0004003d,0x00000006,0x0000008b,0x00000011,0x00050083,0x00000006,0x0000008c, + 0x0000008a,0x0000008b,0x0004003d,0x00000006,0x0000008d,0x00000012,0x00050083,0x00000006, + 0x0000008e,0x0000008c,0x0000008d,0x0004003d,0x00000006,0x0000008f,0x00000015,0x00050083, + 0x00000006,0x00000090,0x0000008e,0x0000008f,0x0006000c,0x00000006,0x00000091,0x00000001, + 0x00000004,0x00000090,0x0003003e,0x00000085,0x00000091,0x0004003d,0x00000006,0x00000093, + 0x0000005e,0x0004003d,0x00000006,0x00000094,0x00000078,0x0007000c,0x00000006,0x00000095, + 0x00000001,0x00000028,0x00000093,0x00000094,0x0003003e,0x00000092,0x00000095,0x0004003d, + 0x00000006,0x00000097,0x0000005e,0x0004003d,0x00000006,0x00000098,0x00000078,0x0007000c, + 0x00000006,0x00000099,0x00000001,0x00000025,0x00000097,0x00000098,0x0003003e,0x00000096, + 0x00000099,0x0004003d,0x00000006,0x0000009b,0x0000006b,0x0004003d,0x00000006,0x0000009c, + 0x00000085,0x0007000c,0x00000006,0x0000009d,0x00000001,0x00000028,0x0000009b,0x0000009c, + 0x0003003e,0x0000009a,0x0000009d,0x0004003d,0x00000006,0x0000009f,0x0000006b,0x0004003d, + 0x00000006,0x000000a0,0x00000085,0x0007000c,0x00000006,0x000000a1,0x00000001,0x00000025, + 0x0000009f,0x000000a0,0x0003003e,0x0000009e,0x000000a1,0x0004003d,0x00000006,0x000000a2, + 0x00000092,0x0004003d,0x00000006,0x000000a3,0x0000009a,0x00050081,0x00000006,0x000000a4, + 0x000000a2,0x000000a3,0x000500b4,0x000000a6,0x000000a7,0x000000a4,0x000000a5,0x000300f7, + 0x000000a9,0x00000000,0x000400fa,0x000000a7,0x000000a8,0x000000a9,0x000200f8,0x000000a8, + 0x000200fe,0x000000aa,0x000200f8,0x000000a9,0x0004003d,0x00000006,0x000000ad,0x00000092, + 0x0004003d,0x00000006,0x000000ae,0x00000092,0x0004003d,0x00000006,0x000000af,0x0000009a, + 0x00050081,0x00000006,0x000000b0,0x000000ae,0x000000af,0x00050088,0x00000006,0x000000b1, + 0x000000ad,0x000000b0,0x0007000c,0x00000006,0x000000b3,0x00000001,0x00000025,0x000000b1, + 0x000000b2,0x0003003e,0x000000ac,0x000000b3,0x0004003d,0x00000006,0x000000b5,0x000000ac, + 0x00050083,0x00000006,0x000000b6,0x000000b2,0x000000b5,0x0003003e,0x000000b4,0x000000b6, + 0x0004003d,0x00000006,0x000000b9,0x00000092,0x0004003d,0x00000006,0x000000ba,0x00000096, + 0x00050085,0x00000006,0x000000bc,0x000000ba,0x000000bb,0x000500ba,0x000000a6,0x000000bd, + 0x000000b9,0x000000bc,0x0004003d,0x00000006,0x000000be,0x00000092,0x000500ba,0x000000a6, + 0x000000c0,0x000000be,0x000000bf,0x000500a7,0x000000a6,0x000000c1,0x000000bd,0x000000c0, + 0x0004003d,0x00000006,0x000000c2,0x00000092,0x0004003d,0x00000006,0x000000c3,0x0000009e, + 0x000500ba,0x000000a6,0x000000c4,0x000000c2,0x000000c3,0x000500a7,0x000000a6,0x000000c5, + 0x000000c1,0x000000c4,0x0003003e,0x000000b8,0x000000c5,0x0004003d,0x00000006,0x000000c7, + 0x0000009a,0x0004003d,0x00000006,0x000000c8,0x0000009e,0x00050085,0x00000006,0x000000c9, + 0x000000c8,0x000000bb,0x000500ba,0x000000a6,0x000000ca,0x000000c7,0x000000c9,0x0004003d, + 0x00000006,0x000000cb,0x0000009a,0x000500ba,0x000000a6,0x000000cc,0x000000cb,0x000000bf, + 0x000500a7,0x000000a6,0x000000cd,0x000000ca,0x000000cc,0x0004003d,0x00000006,0x000000ce, + 0x0000009a,0x0004003d,0x00000006,0x000000cf,0x00000096,0x000500ba,0x000000a6,0x000000d0, + 0x000000ce,0x000000cf,0x000500a7,0x000000a6,0x000000d1,0x000000cd,0x000000d0,0x0003003e, + 0x000000c6,0x000000d1,0x0004003d,0x00000006,0x000000d3,0x00000092,0x0004003d,0x00000006, + 0x000000d4,0x0000005e,0x000500b4,0x000000a6,0x000000d5,0x000000d3,0x000000d4,0x0003003e, + 0x000000d2,0x000000d5,0x0004003d,0x00000006,0x000000d7,0x0000009a,0x0004003d,0x00000006, + 0x000000d8,0x0000006b,0x000500b4,0x000000a6,0x000000d9,0x000000d7,0x000000d8,0x0003003e, + 0x000000d6,0x000000d9,0x0004003d,0x000000a6,0x000000db,0x000000b8,0x0004003d,0x000000a6, + 0x000000dc,0x000000c6,0x000500a7,0x000000a6,0x000000dd,0x000000db,0x000000dc,0x0004003d, + 0x00000006,0x000000de,0x000000ac,0x000600a9,0x00000006,0x000000df,0x000000dd,0x000000de, + 0x000000b2,0x0003003e,0x000000da,0x000000df,0x0004003d,0x000000a6,0x000000e1,0x000000b8, + 0x0004003d,0x000000a6,0x000000e2,0x000000c6,0x000500a7,0x000000a6,0x000000e3,0x000000e1, + 0x000000e2,0x0004003d,0x00000006,0x000000e4,0x000000b4,0x000600a9,0x00000006,0x000000e5, + 0x000000e3,0x000000e4,0x000000b2,0x0003003e,0x000000e0,0x000000e5,0x0004003d,0x000000a6, + 0x000000e7,0x000000b8,0x0004003d,0x000000a6,0x000000e8,0x000000d2,0x000500a7,0x000000a6, + 0x000000e9,0x000000e7,0x000000e8,0x0004003d,0x00000006,0x000000ea,0x000000da,0x000600a9, + 0x00000006,0x000000eb,0x000000e9,0x000000ea,0x000000a5,0x0003003e,0x000000e6,0x000000eb, + 0x0004003d,0x000000a6,0x000000ed,0x000000b8,0x0004003d,0x000000a6,0x000000ee,0x000000d2, + 0x000400a8,0x000000a6,0x000000ef,0x000000ee,0x000500a7,0x000000a6,0x000000f0,0x000000ed, + 0x000000ef,0x0004003d,0x00000006,0x000000f1,0x000000da,0x000600a9,0x00000006,0x000000f2, + 0x000000f0,0x000000f1,0x000000a5,0x0003003e,0x000000ec,0x000000f2,0x0004003d,0x000000a6, + 0x000000f4,0x000000c6,0x0004003d,0x000000a6,0x000000f5,0x000000d6,0x000500a7,0x000000a6, + 0x000000f6,0x000000f4,0x000000f5,0x0004003d,0x00000006,0x000000f7,0x000000e0,0x000600a9, + 0x00000006,0x000000f8,0x000000f6,0x000000f7,0x000000a5,0x0003003e,0x000000f3,0x000000f8, + 0x0004003d,0x000000a6,0x000000fa,0x000000c6,0x0004003d,0x000000a6,0x000000fb,0x000000d6, + 0x000400a8,0x000000a6,0x000000fc,0x000000fb,0x000500a7,0x000000a6,0x000000fd,0x000000fa, + 0x000000fc,0x0004003d,0x00000006,0x000000fe,0x000000e0,0x000600a9,0x00000006,0x000000ff, + 0x000000fd,0x000000fe,0x000000a5,0x0003003e,0x000000f9,0x000000ff,0x0004003d,0x00000006, + 0x00000100,0x000000e6,0x0004003d,0x00000006,0x00000101,0x000000ec,0x0004003d,0x00000006, + 0x00000102,0x000000f3,0x0004003d,0x00000006,0x00000103,0x000000f9,0x00070050,0x0000000e, + 0x00000104,0x00000100,0x00000101,0x00000102,0x00000103,0x000200fe,0x00000104,0x00010038, + 0x00050036,0x0000000e,0x00000023,0x00000000,0x0000001c,0x00030037,0x0000001b,0x0000001d, + 0x00030037,0x0000001b,0x0000001e,0x00030037,0x0000001b,0x0000001f,0x00030037,0x0000001b, + 0x00000020,0x00030037,0x0000000d,0x00000021,0x00030037,0x0000000d,0x00000022,0x000200f8, + 0x00000024,0x0004003b,0x0000001b,0x00000107,0x00000007,0x0004003b,0x0000001b,0x0000010d, + 0x00000007,0x0004003d,0x0000000e,0x00000108,0x0000001d,0x0004003d,0x0000000e,0x00000109, + 0x0000001e,0x0004003d,0x00000006,0x0000010a,0x00000021,0x00070050,0x0000000e,0x0000010b, + 0x0000010a,0x0000010a,0x0000010a,0x0000010a,0x0008000c,0x0000000e,0x0000010c,0x00000001, + 0x0000002e,0x00000108,0x00000109,0x0000010b,0x0003003e,0x00000107,0x0000010c,0x0004003d, + 0x0000000e,0x0000010e,0x0000001f,0x0004003d,0x0000000e,0x0000010f,0x00000020,0x0004003d, + 0x00000006,0x00000110,0x00000021,0x00070050,0x0000000e,0x00000111,0x00000110,0x00000110, + 0x00000110,0x00000110,0x0008000c,0x0000000e,0x00000112,0x00000001,0x0000002e,0x0000010e, + 0x0000010f,0x00000111,0x0003003e,0x0000010d,0x00000112,0x0004003d,0x0000000e,0x00000113, + 0x00000107,0x0004003d,0x0000000e,0x00000114,0x0000010d,0x0004003d,0x00000006,0x00000115, + 0x00000022,0x00070050,0x0000000e,0x00000116,0x00000115,0x00000115,0x00000115,0x00000115, + 0x0008000c,0x0000000e,0x00000117,0x00000001,0x0000002e,0x00000113,0x00000114,0x00000116, + 0x000200fe,0x00000117,0x00010038,0x00050036,0x00000006,0x0000002f,0x00000000,0x00000027, + 0x00030037,0x0000000d,0x00000028,0x00030037,0x0000000d,0x00000029,0x00030037,0x0000000d, + 0x0000002a,0x00030037,0x0000000d,0x0000002b,0x00030037,0x0000000d,0x0000002c,0x00030037, + 0x0000000d,0x0000002d,0x00030037,0x00000026,0x0000002e,0x000200f8,0x00000030,0x0004003b, + 0x000000b7,0x0000011a,0x00000007,0x0004003b,0x0000000d,0x0000011e,0x00000007,0x0004003b, + 0x0000000d,0x00000123,0x00000007,0x0004003b,0x0000000d,0x00000129,0x00000007,0x0004003b, + 0x0000000d,0x00000133,0x00000007,0x0004003b,0x0000000d,0x00000139,0x00000007,0x0004003b, + 0x0000000d,0x0000013f,0x00000007,0x0004003b,0x0000000d,0x00000143,0x00000007,0x0004003b, + 0x0000000d,0x00000147,0x00000007,0x0004003d,0x00000025,0x0000011b,0x0000002e,0x000500b3, + 0x000000a6,0x0000011d,0x0000011b,0x0000011c,0x0003003e,0x0000011a,0x0000011d,0x0004003d, + 0x000000a6,0x0000011f,0x0000011a,0x0004003d,0x00000006,0x00000120,0x00000028,0x0004003d, + 0x00000006,0x00000121,0x0000002b,0x000600a9,0x00000006,0x00000122,0x0000011f,0x00000120, + 0x00000121,0x0003003e,0x0000011e,0x00000122,0x0004003d,0x00000006,0x00000124,0x00000029, + 0x0004003d,0x00000006,0x00000125,0x0000002a,0x0007000c,0x00000006,0x00000126,0x00000001, + 0x00000025,0x00000124,0x00000125,0x0004003d,0x00000006,0x00000127,0x0000011e,0x0007000c, + 0x00000006,0x00000128,0x00000001,0x00000025,0x00000126,0x00000127,0x0003003e,0x00000123, + 0x00000128,0x0004003d,0x00000006,0x0000012a,0x00000029,0x0004003d,0x00000006,0x0000012b, + 0x0000002a,0x0007000c,0x00000006,0x0000012c,0x00000001,0x00000028,0x0000012a,0x0000012b, + 0x0004003d,0x00000006,0x0000012d,0x0000011e,0x0007000c,0x00000006,0x0000012e,0x00000001, + 0x00000028,0x0000012c,0x0000012d,0x0003003e,0x00000129,0x0000012e,0x0004003d,0x000000a6, + 0x0000012f,0x0000011a,0x0004003d,0x00000006,0x00000130,0x0000002a,0x0004003d,0x00000006, + 0x00000131,0x0000002d,0x000600a9,0x00000006,0x00000132,0x0000012f,0x00000130,0x00000131, + 0x0003003e,0x0000011e,0x00000132,0x0004003d,0x00000006,0x00000134,0x0000002b,0x0004003d, + 0x00000006,0x00000135,0x0000002c,0x0007000c,0x00000006,0x00000136,0x00000001,0x00000025, + 0x00000134,0x00000135,0x0004003d,0x00000006,0x00000137,0x0000011e,0x0007000c,0x00000006, + 0x00000138,0x00000001,0x00000025,0x00000136,0x00000137,0x0003003e,0x00000133,0x00000138, + 0x0004003d,0x00000006,0x0000013a,0x0000002b,0x0004003d,0x00000006,0x0000013b,0x0000002c, + 0x0007000c,0x00000006,0x0000013c,0x00000001,0x00000028,0x0000013a,0x0000013b,0x0004003d, + 0x00000006,0x0000013d,0x0000011e,0x0007000c,0x00000006,0x0000013e,0x00000001,0x00000028, + 0x0000013c,0x0000013d,0x0003003e,0x00000139,0x0000013e,0x0004003d,0x00000006,0x00000140, + 0x00000129,0x0004003d,0x00000006,0x00000141,0x00000123,0x00050083,0x00000006,0x00000142, + 0x00000140,0x00000141,0x0003003e,0x0000013f,0x00000142,0x0004003d,0x00000006,0x00000144, + 0x00000139,0x0004003d,0x00000006,0x00000145,0x00000133,0x00050083,0x00000006,0x00000146, + 0x00000144,0x00000145,0x0003003e,0x00000143,0x00000146,0x0004003d,0x00000006,0x00000148, + 0x0000013f,0x0004003d,0x00000006,0x00000149,0x00000143,0x0007000c,0x00000006,0x0000014a, + 0x00000001,0x00000028,0x00000148,0x00000149,0x0004003d,0x00000006,0x0000014b,0x0000013f, + 0x0004003d,0x00000006,0x0000014c,0x00000143,0x0007000c,0x00000006,0x0000014d,0x00000001, + 0x00000025,0x0000014b,0x0000014c,0x00050081,0x00000006,0x0000014f,0x0000014d,0x0000014e, + 0x00050088,0x00000006,0x00000150,0x0000014a,0x0000014f,0x0003003e,0x00000147,0x00000150, + 0x0004003d,0x00000006,0x00000151,0x00000147,0x00050083,0x00000006,0x00000153,0x00000151, + 0x00000152,0x00050085,0x00000006,0x00000155,0x00000153,0x00000154,0x0008000c,0x00000006, + 0x00000156,0x00000001,0x0000002b,0x00000155,0x000000a5,0x000000b2,0x00050083,0x00000006, + 0x00000157,0x000000b2,0x00000156,0x00050085,0x00000006,0x00000158,0x00000157,0x000000b2, + 0x000200fe,0x00000158,0x00010038,0x00050036,0x00000006,0x00000038,0x00000000,0x00000035, + 0x00030037,0x00000034,0x00000036,0x00030037,0x00000026,0x00000037,0x000200f8,0x00000039, + 0x0004003b,0x0000001b,0x0000015f,0x00000007,0x0004003b,0x0000001b,0x0000016c,0x00000007, + 0x0004003b,0x0000001b,0x00000173,0x00000007,0x0004003b,0x0000001b,0x00000178,0x00000007, + 0x0004003b,0x0000000d,0x0000017e,0x00000007,0x0004003b,0x0000000d,0x000001ad,0x00000007, + 0x0004003b,0x0000000d,0x000001d8,0x00000007,0x0004003b,0x0000000d,0x000001e0,0x00000007, + 0x0004003b,0x0000000d,0x000001ec,0x00000007,0x0004003b,0x0000000d,0x000001fc,0x00000007, + 0x0004003b,0x0000000d,0x000001ff,0x00000007,0x0004003b,0x0000000d,0x00000202,0x00000007, + 0x0004003b,0x0000000d,0x00000205,0x00000007,0x0004003b,0x0000000d,0x00000208,0x00000007, + 0x0004003b,0x0000000d,0x0000020b,0x00000007,0x0004003b,0x00000026,0x0000020e,0x00000007, + 0x0004003d,0x00000025,0x0000015b,0x00000037,0x0008000c,0x00000025,0x0000015e,0x00000001, + 0x0000002d,0x0000015b,0x0000015c,0x0000015d,0x0003003e,0x00000037,0x0000015e,0x0004003d, + 0x00000025,0x00000166,0x00000037,0x00050084,0x00000025,0x00000168,0x00000166,0x00000167, + 0x00060041,0x00000169,0x0000016a,0x00000165,0x0000015c,0x00000168,0x0004003d,0x0000000e, + 0x0000016b,0x0000016a,0x0003003e,0x0000015f,0x0000016b,0x0004003d,0x00000025,0x0000016d, + 0x00000037,0x00050084,0x00000025,0x0000016e,0x0000016d,0x00000167,0x00050080,0x00000025, + 0x00000170,0x0000016e,0x0000016f,0x00060041,0x00000169,0x00000171,0x00000165,0x0000015c, + 0x00000170,0x0004003d,0x0000000e,0x00000172,0x00000171,0x0003003e,0x0000016c,0x00000172, + 0x0004003d,0x00000025,0x00000174,0x00000037,0x00050084,0x00000025,0x00000175,0x00000174, + 0x00000167,0x00060041,0x00000169,0x00000176,0x00000165,0x0000016f,0x00000175,0x0004003d, + 0x0000000e,0x00000177,0x00000176,0x0003003e,0x00000173,0x00000177,0x0004003d,0x00000025, + 0x00000179,0x00000037,0x00050084,0x00000025,0x0000017a,0x00000179,0x00000167,0x00050080, + 0x00000025,0x0000017b,0x0000017a,0x0000016f,0x00060041,0x00000169,0x0000017c,0x00000165, + 0x0000016f,0x0000017b,0x0004003d,0x0000000e,0x0000017d,0x0000017c,0x0003003e,0x00000178, + 0x0000017d,0x0003003e,0x0000017e,0x000000a5,0x00050041,0x0000000d,0x0000017f,0x0000015f, + 0x0000004c,0x0004003d,0x00000006,0x00000180,0x0000017f,0x00050041,0x0000000d,0x00000181, + 0x00000036,0x0000015c,0x0004003d,0x00000006,0x00000182,0x00000181,0x00050085,0x00000006, + 0x00000183,0x00000180,0x00000182,0x0004003d,0x00000006,0x00000184,0x0000017e,0x00050081, + 0x00000006,0x00000185,0x00000184,0x00000183,0x0003003e,0x0000017e,0x00000185,0x00050041, + 0x0000000d,0x00000186,0x0000015f,0x00000051,0x0004003d,0x00000006,0x00000187,0x00000186, + 0x00050041,0x0000000d,0x00000188,0x00000036,0x0000016f,0x0004003d,0x00000006,0x00000189, + 0x00000188,0x00050085,0x00000006,0x0000018a,0x00000187,0x00000189,0x0004003d,0x00000006, + 0x0000018b,0x0000017e,0x00050081,0x00000006,0x0000018c,0x0000018b,0x0000018a,0x0003003e, + 0x0000017e,0x0000018c,0x00050041,0x0000000d,0x0000018d,0x0000015f,0x00000057,0x0004003d, + 0x00000006,0x0000018e,0x0000018d,0x00050041,0x0000000d,0x0000018f,0x00000036,0x00000167, + 0x0004003d,0x00000006,0x00000190,0x0000018f,0x00050085,0x00000006,0x00000191,0x0000018e, + 0x00000190,0x0004003d,0x00000006,0x00000192,0x0000017e,0x00050081,0x00000006,0x00000193, + 0x00000192,0x00000191,0x0003003e,0x0000017e,0x00000193,0x00050041,0x0000000d,0x00000195, + 0x0000015f,0x00000194,0x0004003d,0x00000006,0x00000196,0x00000195,0x00050041,0x0000000d, + 0x00000198,0x00000036,0x00000197,0x0004003d,0x00000006,0x00000199,0x00000198,0x00050085, + 0x00000006,0x0000019a,0x00000196,0x00000199,0x0004003d,0x00000006,0x0000019b,0x0000017e, + 0x00050081,0x00000006,0x0000019c,0x0000019b,0x0000019a,0x0003003e,0x0000017e,0x0000019c, + 0x00050041,0x0000000d,0x0000019d,0x0000016c,0x0000004c,0x0004003d,0x00000006,0x0000019e, + 0x0000019d,0x00050041,0x0000000d,0x000001a0,0x00000036,0x0000019f,0x0004003d,0x00000006, + 0x000001a1,0x000001a0,0x00050085,0x00000006,0x000001a2,0x0000019e,0x000001a1,0x0004003d, + 0x00000006,0x000001a3,0x0000017e,0x00050081,0x00000006,0x000001a4,0x000001a3,0x000001a2, + 0x0003003e,0x0000017e,0x000001a4,0x00050041,0x0000000d,0x000001a5,0x0000016c,0x00000051, + 0x0004003d,0x00000006,0x000001a6,0x000001a5,0x00050041,0x0000000d,0x000001a8,0x00000036, + 0x000001a7,0x0004003d,0x00000006,0x000001a9,0x000001a8,0x00050085,0x00000006,0x000001aa, + 0x000001a6,0x000001a9,0x0004003d,0x00000006,0x000001ab,0x0000017e,0x00050081,0x00000006, + 0x000001ac,0x000001ab,0x000001aa,0x0003003e,0x0000017e,0x000001ac,0x0003003e,0x000001ad, + 0x000000a5,0x00050041,0x0000000d,0x000001ae,0x00000173,0x0000004c,0x0004003d,0x00000006, + 0x000001af,0x000001ae,0x00050041,0x0000000d,0x000001b0,0x00000036,0x0000015c,0x0004003d, + 0x00000006,0x000001b1,0x000001b0,0x00050085,0x00000006,0x000001b2,0x000001af,0x000001b1, + 0x0004003d,0x00000006,0x000001b3,0x000001ad,0x00050081,0x00000006,0x000001b4,0x000001b3, + 0x000001b2,0x0003003e,0x000001ad,0x000001b4,0x00050041,0x0000000d,0x000001b5,0x00000173, + 0x00000051,0x0004003d,0x00000006,0x000001b6,0x000001b5,0x00050041,0x0000000d,0x000001b7, + 0x00000036,0x0000016f,0x0004003d,0x00000006,0x000001b8,0x000001b7,0x00050085,0x00000006, + 0x000001b9,0x000001b6,0x000001b8,0x0004003d,0x00000006,0x000001ba,0x000001ad,0x00050081, + 0x00000006,0x000001bb,0x000001ba,0x000001b9,0x0003003e,0x000001ad,0x000001bb,0x00050041, + 0x0000000d,0x000001bc,0x00000173,0x00000057,0x0004003d,0x00000006,0x000001bd,0x000001bc, + 0x00050041,0x0000000d,0x000001be,0x00000036,0x00000167,0x0004003d,0x00000006,0x000001bf, + 0x000001be,0x00050085,0x00000006,0x000001c0,0x000001bd,0x000001bf,0x0004003d,0x00000006, + 0x000001c1,0x000001ad,0x00050081,0x00000006,0x000001c2,0x000001c1,0x000001c0,0x0003003e, + 0x000001ad,0x000001c2,0x00050041,0x0000000d,0x000001c3,0x00000173,0x00000194,0x0004003d, + 0x00000006,0x000001c4,0x000001c3,0x00050041,0x0000000d,0x000001c5,0x00000036,0x00000197, + 0x0004003d,0x00000006,0x000001c6,0x000001c5,0x00050085,0x00000006,0x000001c7,0x000001c4, + 0x000001c6,0x0004003d,0x00000006,0x000001c8,0x000001ad,0x00050081,0x00000006,0x000001c9, + 0x000001c8,0x000001c7,0x0003003e,0x000001ad,0x000001c9,0x00050041,0x0000000d,0x000001ca, + 0x00000178,0x0000004c,0x0004003d,0x00000006,0x000001cb,0x000001ca,0x00050041,0x0000000d, + 0x000001cc,0x00000036,0x0000019f,0x0004003d,0x00000006,0x000001cd,0x000001cc,0x00050085, + 0x00000006,0x000001ce,0x000001cb,0x000001cd,0x0004003d,0x00000006,0x000001cf,0x000001ad, + 0x00050081,0x00000006,0x000001d0,0x000001cf,0x000001ce,0x0003003e,0x000001ad,0x000001d0, + 0x00050041,0x0000000d,0x000001d1,0x00000178,0x00000051,0x0004003d,0x00000006,0x000001d2, + 0x000001d1,0x00050041,0x0000000d,0x000001d3,0x00000036,0x000001a7,0x0004003d,0x00000006, + 0x000001d4,0x000001d3,0x00050085,0x00000006,0x000001d5,0x000001d2,0x000001d4,0x0004003d, + 0x00000006,0x000001d6,0x000001ad,0x00050081,0x00000006,0x000001d7,0x000001d6,0x000001d5, + 0x0003003e,0x000001ad,0x000001d7,0x0004003d,0x00000006,0x000001d9,0x0000017e,0x00050083, + 0x00000006,0x000001db,0x000001d9,0x000001da,0x00050085,0x00000006,0x000001dd,0x000001db, + 0x000001dc,0x0008000c,0x00000006,0x000001de,0x00000001,0x0000002b,0x000001dd,0x000000a5, + 0x000000b2,0x00050083,0x00000006,0x000001df,0x000000b2,0x000001de,0x0003003e,0x000001d8, + 0x000001df,0x0004003d,0x00000006,0x000001e1,0x000001d8,0x0004003d,0x00000006,0x000001e4, + 0x000001e3,0x00050085,0x00000006,0x000001e5,0x000001e1,0x000001e4,0x0004003d,0x00000006, + 0x000001e7,0x000001e6,0x00050081,0x00000006,0x000001e8,0x000001e5,0x000001e7,0x0003003e, + 0x000001e0,0x000001e8,0x0004003d,0x00000006,0x000001e9,0x000001e0,0x0004003d,0x00000006, + 0x000001ea,0x000001ad,0x00050085,0x00000006,0x000001eb,0x000001ea,0x000001e9,0x0003003e, + 0x000001ad,0x000001eb,0x0004003d,0x00000006,0x000001ed,0x000001d8,0x0004003d,0x00000006, + 0x000001ef,0x000001ee,0x00050085,0x00000006,0x000001f0,0x000001ed,0x000001ef,0x0004003d, + 0x00000006,0x000001f2,0x000001f1,0x00050081,0x00000006,0x000001f3,0x000001f0,0x000001f2, + 0x0004003d,0x00000006,0x000001f4,0x0000017e,0x00050085,0x00000006,0x000001f5,0x000001f3, + 0x000001f4,0x0003003e,0x000001ec,0x000001f5,0x0004003d,0x00000006,0x000001f6,0x000001ec, + 0x0004003d,0x00000006,0x000001f7,0x000001ec,0x0004007f,0x00000006,0x000001f8,0x000001f7, + 0x0004003d,0x00000006,0x000001f9,0x000001ad,0x0007000c,0x00000006,0x000001fa,0x00000001, + 0x00000028,0x000001f8,0x000001f9,0x0007000c,0x00000006,0x000001fb,0x00000001,0x00000025, + 0x000001f6,0x000001fa,0x0003003e,0x000001ad,0x000001fb,0x00050041,0x0000000d,0x000001fd, + 0x00000036,0x0000015c,0x0004003d,0x00000006,0x000001fe,0x000001fd,0x0003003e,0x000001fc, + 0x000001fe,0x00050041,0x0000000d,0x00000200,0x00000036,0x0000016f,0x0004003d,0x00000006, + 0x00000201,0x00000200,0x0003003e,0x000001ff,0x00000201,0x00050041,0x0000000d,0x00000203, + 0x00000036,0x00000167,0x0004003d,0x00000006,0x00000204,0x00000203,0x0003003e,0x00000202, + 0x00000204,0x00050041,0x0000000d,0x00000206,0x00000036,0x00000197,0x0004003d,0x00000006, + 0x00000207,0x00000206,0x0003003e,0x00000205,0x00000207,0x00050041,0x0000000d,0x00000209, + 0x00000036,0x0000019f,0x0004003d,0x00000006,0x0000020a,0x00000209,0x0003003e,0x00000208, + 0x0000020a,0x00050041,0x0000000d,0x0000020c,0x00000036,0x000001a7,0x0004003d,0x00000006, + 0x0000020d,0x0000020c,0x0003003e,0x0000020b,0x0000020d,0x0004003d,0x00000025,0x0000020f, + 0x00000037,0x0003003e,0x0000020e,0x0000020f,0x000b0039,0x00000006,0x00000210,0x0000002f, + 0x000001fc,0x000001ff,0x00000202,0x00000205,0x00000208,0x0000020b,0x0000020e,0x0004003d, + 0x00000006,0x00000211,0x000001ad,0x00050085,0x00000006,0x00000212,0x00000211,0x00000210, + 0x0003003e,0x000001ad,0x00000212,0x0004003d,0x00000006,0x00000213,0x0000017e,0x0004003d, + 0x00000006,0x00000214,0x000001ad,0x00050081,0x00000006,0x00000215,0x00000213,0x00000214, + 0x000200fe,0x00000215,0x00010038,0x00050036,0x00000006,0x00000040,0x00000000,0x0000003c, + 0x00030037,0x0000003b,0x0000003d,0x00030037,0x00000026,0x0000003e,0x00030037,0x00000026, + 0x0000003f,0x000200f8,0x00000041,0x0004003b,0x0000001b,0x0000021c,0x00000007,0x0004003b, + 0x0000001b,0x00000221,0x00000007,0x0004003b,0x0000001b,0x00000227,0x00000007,0x0004003b, + 0x0000001b,0x0000022c,0x00000007,0x0004003b,0x00000034,0x00000232,0x00000007,0x0004003b, + 0x00000034,0x00000240,0x00000007,0x0004003b,0x0000000d,0x0000024e,0x00000007,0x0004003b, + 0x00000026,0x0000024f,0x00000007,0x0004003b,0x0000000d,0x00000258,0x00000007,0x0004003b, + 0x00000026,0x00000259,0x00000007,0x0004003d,0x00000025,0x00000218,0x0000003e,0x0008000c, + 0x00000025,0x00000219,0x00000001,0x0000002d,0x00000218,0x0000015c,0x0000015d,0x0003003e, + 0x0000003e,0x00000219,0x0004003d,0x00000025,0x0000021a,0x0000003f,0x0008000c,0x00000025, + 0x0000021b,0x00000001,0x0000002d,0x0000021a,0x0000015c,0x0000015d,0x0003003e,0x0000003f, + 0x0000021b,0x0004003d,0x00000025,0x0000021d,0x0000003f,0x00050084,0x00000025,0x0000021e, + 0x0000021d,0x00000167,0x00060041,0x00000169,0x0000021f,0x00000165,0x0000015c,0x0000021e, + 0x0004003d,0x0000000e,0x00000220,0x0000021f,0x0003003e,0x0000021c,0x00000220,0x0004003d, + 0x00000025,0x00000222,0x0000003f,0x00050084,0x00000025,0x00000223,0x00000222,0x00000167, + 0x00050080,0x00000025,0x00000224,0x00000223,0x0000016f,0x00060041,0x00000169,0x00000225, + 0x00000165,0x0000015c,0x00000224,0x0004003d,0x0000000e,0x00000226,0x00000225,0x0003003e, + 0x00000221,0x00000226,0x0004003d,0x00000025,0x00000228,0x0000003e,0x00050084,0x00000025, + 0x00000229,0x00000228,0x00000167,0x00060041,0x00000169,0x0000022a,0x00000165,0x0000015c, + 0x00000229,0x0004003d,0x0000000e,0x0000022b,0x0000022a,0x0003003e,0x00000227,0x0000022b, + 0x0004003d,0x00000025,0x0000022d,0x0000003e,0x00050084,0x00000025,0x0000022e,0x0000022d, + 0x00000167,0x00050080,0x00000025,0x0000022f,0x0000022e,0x0000016f,0x00060041,0x00000169, + 0x00000230,0x00000165,0x0000015c,0x0000022f,0x0004003d,0x0000000e,0x00000231,0x00000230, + 0x0003003e,0x0000022c,0x00000231,0x00050041,0x0000000d,0x00000233,0x0000021c,0x0000004c, + 0x0004003d,0x00000006,0x00000234,0x00000233,0x00050041,0x0000000d,0x00000235,0x0000021c, + 0x00000051,0x0004003d,0x00000006,0x00000236,0x00000235,0x00050041,0x0000000d,0x00000237, + 0x0000021c,0x00000057,0x0004003d,0x00000006,0x00000238,0x00000237,0x00050041,0x0000000d, + 0x00000239,0x0000021c,0x00000194,0x0004003d,0x00000006,0x0000023a,0x00000239,0x00050041, + 0x0000000d,0x0000023b,0x00000221,0x0000004c,0x0004003d,0x00000006,0x0000023c,0x0000023b, + 0x00050041,0x0000000d,0x0000023d,0x00000221,0x00000051,0x0004003d,0x00000006,0x0000023e, + 0x0000023d,0x00090050,0x00000033,0x0000023f,0x00000234,0x00000236,0x00000238,0x0000023a, + 0x0000023c,0x0000023e,0x0003003e,0x00000232,0x0000023f,0x00050041,0x0000000d,0x00000241, + 0x00000227,0x0000004c,0x0004003d,0x00000006,0x00000242,0x00000241,0x00050041,0x0000000d, + 0x00000243,0x00000227,0x00000051,0x0004003d,0x00000006,0x00000244,0x00000243,0x00050041, + 0x0000000d,0x00000245,0x00000227,0x00000057,0x0004003d,0x00000006,0x00000246,0x00000245, + 0x00050041,0x0000000d,0x00000247,0x00000227,0x00000194,0x0004003d,0x00000006,0x00000248, + 0x00000247,0x00050041,0x0000000d,0x00000249,0x0000022c,0x0000004c,0x0004003d,0x00000006, + 0x0000024a,0x00000249,0x00050041,0x0000000d,0x0000024b,0x0000022c,0x00000051,0x0004003d, + 0x00000006,0x0000024c,0x0000024b,0x00090050,0x00000033,0x0000024d,0x00000242,0x00000244, + 0x00000246,0x00000248,0x0000024a,0x0000024c,0x0003003e,0x00000240,0x0000024d,0x0003003e, + 0x0000024e,0x000000a5,0x0003003e,0x0000024f,0x0000015c,0x000200f9,0x00000250,0x000200f8, + 0x00000250,0x000400f6,0x00000252,0x00000253,0x00000000,0x000200f9,0x00000254,0x000200f8, + 0x00000254,0x0004003d,0x00000025,0x00000255,0x0000024f,0x000500b1,0x000000a6,0x00000257, + 0x00000255,0x00000256,0x000400fa,0x00000257,0x00000251,0x00000252,0x000200f8,0x00000251, + 0x0003003e,0x00000258,0x000000a5,0x0003003e,0x00000259,0x0000015c,0x000200f9,0x0000025a, + 0x000200f8,0x0000025a,0x000400f6,0x0000025c,0x0000025d,0x00000000,0x000200f9,0x0000025e, + 0x000200f8,0x0000025e,0x0004003d,0x00000025,0x0000025f,0x00000259,0x000500b1,0x000000a6, + 0x00000260,0x0000025f,0x00000256,0x000400fa,0x00000260,0x0000025b,0x0000025c,0x000200f8, + 0x0000025b,0x0004003d,0x00000025,0x00000261,0x00000259,0x0004003d,0x00000025,0x00000262, + 0x0000024f,0x00060041,0x0000000d,0x00000263,0x0000003d,0x00000261,0x00000262,0x0004003d, + 0x00000006,0x00000264,0x00000263,0x0004003d,0x00000025,0x00000265,0x00000259,0x00050041, + 0x0000000d,0x00000266,0x00000232,0x00000265,0x0004003d,0x00000006,0x00000267,0x00000266, + 0x00050085,0x00000006,0x00000268,0x00000264,0x00000267,0x0004003d,0x00000006,0x00000269, + 0x00000258,0x00050081,0x00000006,0x0000026a,0x00000269,0x00000268,0x0003003e,0x00000258, + 0x0000026a,0x000200f9,0x0000025d,0x000200f8,0x0000025d,0x0004003d,0x00000025,0x0000026b, + 0x00000259,0x00050080,0x00000025,0x0000026c,0x0000026b,0x0000016f,0x0003003e,0x00000259, + 0x0000026c,0x000200f9,0x0000025a,0x000200f8,0x0000025c,0x0004003d,0x00000006,0x0000026d, + 0x00000258,0x0004003d,0x00000025,0x0000026e,0x0000024f,0x00050041,0x0000000d,0x0000026f, + 0x00000240,0x0000026e,0x0004003d,0x00000006,0x00000270,0x0000026f,0x00050085,0x00000006, + 0x00000271,0x0000026d,0x00000270,0x0004003d,0x00000006,0x00000272,0x0000024e,0x00050081, + 0x00000006,0x00000273,0x00000272,0x00000271,0x0003003e,0x0000024e,0x00000273,0x000200f9, + 0x00000253,0x000200f8,0x00000253,0x0004003d,0x00000025,0x00000274,0x0000024f,0x00050080, + 0x00000025,0x00000275,0x00000274,0x0000016f,0x0003003e,0x0000024f,0x00000275,0x000200f9, + 0x00000250,0x000200f8,0x00000252,0x0004003d,0x00000006,0x00000276,0x0000024e,0x000200fe, + 0x00000276,0x00010038,0x00050036,0x00000006,0x00000049,0x00000000,0x00000042,0x00030037, + 0x0000003b,0x00000043,0x00030037,0x0000000d,0x00000044,0x00030037,0x0000000d,0x00000045, + 0x00030037,0x00000026,0x00000046,0x00030037,0x00000026,0x00000047,0x00030037,0x0000001b, + 0x00000048,0x000200f8,0x0000004a,0x0004003b,0x0000000d,0x00000279,0x00000007,0x0004003b, + 0x00000026,0x0000027f,0x00000007,0x0004003b,0x00000034,0x00000287,0x00000007,0x0004003b, + 0x00000034,0x00000294,0x00000007,0x0004003b,0x00000026,0x00000296,0x00000007,0x0004003b, + 0x00000026,0x000002a3,0x00000007,0x0004003b,0x00000034,0x000002ab,0x00000007,0x0004003b, + 0x00000034,0x000002b8,0x00000007,0x0004003b,0x00000026,0x000002ba,0x00000007,0x0004003b, + 0x0000000d,0x000002c7,0x00000007,0x0004003b,0x000002d0,0x000002d1,0x00000007,0x0004003b, + 0x0000000d,0x000002e9,0x00000007,0x0004003b,0x0000000d,0x000002ec,0x00000007,0x0004003b, + 0x0000000d,0x000002f5,0x00000007,0x0004003b,0x0000000d,0x000002f8,0x00000007,0x0004003b, + 0x0000000d,0x00000301,0x00000007,0x0004003b,0x0000000d,0x00000304,0x00000007,0x0004003b, + 0x0000000d,0x0000030d,0x00000007,0x0004003b,0x0000000d,0x00000310,0x00000007,0x0004003b, + 0x0000000d,0x00000335,0x00000007,0x0004003b,0x00000026,0x0000033d,0x00000007,0x0004003b, + 0x00000034,0x00000345,0x00000007,0x0004003b,0x00000026,0x00000351,0x00000007,0x0004003b, + 0x00000034,0x00000364,0x00000007,0x0004003b,0x00000026,0x00000366,0x00000007,0x0004003b, + 0x0000000d,0x00000372,0x00000007,0x0004003b,0x000002d0,0x00000377,0x00000007,0x0004003b, + 0x0000000d,0x0000038f,0x00000007,0x0004003b,0x0000000d,0x00000392,0x00000007,0x0004003b, + 0x0000000d,0x0000039b,0x00000007,0x0004003b,0x0000000d,0x0000039e,0x00000007,0x0004003b, + 0x0000000d,0x000003a7,0x00000007,0x0004003b,0x0000000d,0x000003aa,0x00000007,0x0004003b, + 0x0000000d,0x000003b3,0x00000007,0x0004003b,0x0000000d,0x000003b6,0x00000007,0x0004003b, + 0x0000000d,0x000003db,0x00000007,0x0004003b,0x00000026,0x000003e4,0x00000007,0x0004003b, + 0x00000034,0x000003ec,0x00000007,0x0004003b,0x00000026,0x000003f8,0x00000007,0x0004003b, + 0x00000034,0x0000040a,0x00000007,0x0004003b,0x00000026,0x0000040c,0x00000007,0x0003003e, + 0x00000279,0x000000a5,0x00050041,0x0000000d,0x0000027a,0x00000048,0x0000004c,0x0004003d, + 0x00000006,0x0000027b,0x0000027a,0x000500ba,0x000000a6,0x0000027c,0x0000027b,0x000000a5, + 0x000300f7,0x0000027e,0x00000000,0x000400fa,0x0000027c,0x0000027d,0x0000027e,0x000200f8, + 0x0000027d,0x0003003e,0x0000027f,0x0000015c,0x000200f9,0x00000280,0x000200f8,0x00000280, + 0x000400f6,0x00000282,0x00000283,0x00000000,0x000200f9,0x00000284,0x000200f8,0x00000284, + 0x0004003d,0x00000025,0x00000285,0x0000027f,0x000500b1,0x000000a6,0x00000286,0x00000285, + 0x00000256,0x000400fa,0x00000286,0x00000281,0x00000282,0x000200f8,0x00000281,0x0004003d, + 0x00000025,0x00000288,0x0000027f,0x0004003d,0x00000025,0x00000289,0x0000027f,0x00060041, + 0x0000000d,0x0000028a,0x00000043,0x00000289,0x00000167,0x0004003d,0x00000006,0x0000028b, + 0x0000028a,0x0004003d,0x00000025,0x0000028c,0x0000027f,0x00060041,0x0000000d,0x0000028d, + 0x00000043,0x0000028c,0x00000197,0x0004003d,0x00000006,0x0000028e,0x0000028d,0x0004003d, + 0x00000006,0x0000028f,0x00000044,0x0008000c,0x00000006,0x00000290,0x00000001,0x0000002e, + 0x0000028b,0x0000028e,0x0000028f,0x00050041,0x0000000d,0x00000291,0x00000287,0x00000288, + 0x0003003e,0x00000291,0x00000290,0x000200f9,0x00000283,0x000200f8,0x00000283,0x0004003d, + 0x00000025,0x00000292,0x0000027f,0x00050080,0x00000025,0x00000293,0x00000292,0x0000016f, + 0x0003003e,0x0000027f,0x00000293,0x000200f9,0x00000280,0x000200f8,0x00000282,0x0004003d, + 0x00000033,0x00000295,0x00000287,0x0003003e,0x00000294,0x00000295,0x0004003d,0x00000025, + 0x00000297,0x00000047,0x0003003e,0x00000296,0x00000297,0x00060039,0x00000006,0x00000298, + 0x00000038,0x00000294,0x00000296,0x00050041,0x0000000d,0x00000299,0x00000048,0x0000004c, + 0x0004003d,0x00000006,0x0000029a,0x00000299,0x00050085,0x00000006,0x0000029b,0x00000298, + 0x0000029a,0x0004003d,0x00000006,0x0000029c,0x00000279,0x00050081,0x00000006,0x0000029d, + 0x0000029c,0x0000029b,0x0003003e,0x00000279,0x0000029d,0x000200f9,0x0000027e,0x000200f8, + 0x0000027e,0x00050041,0x0000000d,0x0000029e,0x00000048,0x00000051,0x0004003d,0x00000006, + 0x0000029f,0x0000029e,0x000500ba,0x000000a6,0x000002a0,0x0000029f,0x000000a5,0x000300f7, + 0x000002a2,0x00000000,0x000400fa,0x000002a0,0x000002a1,0x000002a2,0x000200f8,0x000002a1, + 0x0003003e,0x000002a3,0x0000015c,0x000200f9,0x000002a4,0x000200f8,0x000002a4,0x000400f6, + 0x000002a6,0x000002a7,0x00000000,0x000200f9,0x000002a8,0x000200f8,0x000002a8,0x0004003d, + 0x00000025,0x000002a9,0x000002a3,0x000500b1,0x000000a6,0x000002aa,0x000002a9,0x00000256, + 0x000400fa,0x000002aa,0x000002a5,0x000002a6,0x000200f8,0x000002a5,0x0004003d,0x00000025, + 0x000002ac,0x000002a3,0x0004003d,0x00000025,0x000002ad,0x000002a3,0x00060041,0x0000000d, + 0x000002ae,0x00000043,0x00000167,0x000002ad,0x0004003d,0x00000006,0x000002af,0x000002ae, + 0x0004003d,0x00000025,0x000002b0,0x000002a3,0x00060041,0x0000000d,0x000002b1,0x00000043, + 0x00000197,0x000002b0,0x0004003d,0x00000006,0x000002b2,0x000002b1,0x0004003d,0x00000006, + 0x000002b3,0x00000045,0x0008000c,0x00000006,0x000002b4,0x00000001,0x0000002e,0x000002af, + 0x000002b2,0x000002b3,0x00050041,0x0000000d,0x000002b5,0x000002ab,0x000002ac,0x0003003e, + 0x000002b5,0x000002b4,0x000200f9,0x000002a7,0x000200f8,0x000002a7,0x0004003d,0x00000025, + 0x000002b6,0x000002a3,0x00050080,0x00000025,0x000002b7,0x000002b6,0x0000016f,0x0003003e, + 0x000002a3,0x000002b7,0x000200f9,0x000002a4,0x000200f8,0x000002a6,0x0004003d,0x00000033, + 0x000002b9,0x000002ab,0x0003003e,0x000002b8,0x000002b9,0x0004003d,0x00000025,0x000002bb, + 0x00000046,0x0003003e,0x000002ba,0x000002bb,0x00060039,0x00000006,0x000002bc,0x00000038, + 0x000002b8,0x000002ba,0x00050041,0x0000000d,0x000002bd,0x00000048,0x00000051,0x0004003d, + 0x00000006,0x000002be,0x000002bd,0x00050085,0x00000006,0x000002bf,0x000002bc,0x000002be, + 0x0004003d,0x00000006,0x000002c0,0x00000279,0x00050081,0x00000006,0x000002c1,0x000002c0, + 0x000002bf,0x0003003e,0x00000279,0x000002c1,0x000200f9,0x000002a2,0x000200f8,0x000002a2, + 0x00050041,0x0000000d,0x000002c2,0x00000048,0x00000057,0x0004003d,0x00000006,0x000002c3, + 0x000002c2,0x000500ba,0x000000a6,0x000002c4,0x000002c3,0x000000a5,0x000300f7,0x000002c6, + 0x00000000,0x000400fa,0x000002c4,0x000002c5,0x000002c6,0x000200f8,0x000002c5,0x0004003d, + 0x00000006,0x000002c9,0x00000044,0x0004003d,0x00000006,0x000002ca,0x00000045,0x00050083, + 0x00000006,0x000002cb,0x000002c9,0x000002ca,0x00050085,0x00000006,0x000002cc,0x000002c8, + 0x000002cb,0x00050081,0x00000006,0x000002cd,0x000002c8,0x000002cc,0x0003003e,0x000002c7, + 0x000002cd,0x00060041,0x0000000d,0x000002d2,0x00000043,0x00000167,0x0000016f,0x0004003d, + 0x00000006,0x000002d3,0x000002d2,0x00060041,0x0000000d,0x000002d4,0x00000043,0x0000016f, + 0x00000167,0x0004003d,0x00000006,0x000002d5,0x000002d4,0x0004003d,0x00000006,0x000002d6, + 0x000002c7,0x0008000c,0x00000006,0x000002d7,0x00000001,0x0000002e,0x000002d3,0x000002d5, + 0x000002d6,0x00050041,0x0000000d,0x000002d8,0x000002d1,0x0000016f,0x0003003e,0x000002d8, + 0x000002d7,0x00060041,0x0000000d,0x000002d9,0x00000043,0x00000197,0x00000167,0x0004003d, + 0x00000006,0x000002da,0x000002d9,0x00060041,0x0000000d,0x000002db,0x00000043,0x00000167, + 0x00000197,0x0004003d,0x00000006,0x000002dc,0x000002db,0x0004003d,0x00000006,0x000002dd, + 0x000002c7,0x0008000c,0x00000006,0x000002de,0x00000001,0x0000002e,0x000002da,0x000002dc, + 0x000002dd,0x00050041,0x0000000d,0x000002df,0x000002d1,0x00000197,0x0003003e,0x000002df, + 0x000002de,0x00060041,0x0000000d,0x000002e0,0x00000043,0x0000019f,0x00000197,0x0004003d, + 0x00000006,0x000002e1,0x000002e0,0x00060041,0x0000000d,0x000002e2,0x00000043,0x00000197, + 0x0000019f,0x0004003d,0x00000006,0x000002e3,0x000002e2,0x0004003d,0x00000006,0x000002e4, + 0x000002c7,0x0008000c,0x00000006,0x000002e5,0x00000001,0x0000002e,0x000002e1,0x000002e3, + 0x000002e4,0x00050041,0x0000000d,0x000002e6,0x000002d1,0x000001a7,0x0003003e,0x000002e6, + 0x000002e5,0x0004003d,0x00000006,0x000002e7,0x000002c7,0x00050083,0x00000006,0x000002e8, + 0x000002e7,0x000002c8,0x0003003e,0x000002c7,0x000002e8,0x0004003d,0x00000006,0x000002ea, + 0x000002c7,0x000500be,0x000000a6,0x000002eb,0x000002ea,0x000000a5,0x000300f7,0x000002ee, + 0x00000000,0x000400fa,0x000002eb,0x000002ed,0x000002f1,0x000200f8,0x000002ed,0x00060041, + 0x0000000d,0x000002ef,0x00000043,0x0000015c,0x00000167,0x0004003d,0x00000006,0x000002f0, + 0x000002ef,0x0003003e,0x000002ec,0x000002f0,0x000200f9,0x000002ee,0x000200f8,0x000002f1, + 0x00060041,0x0000000d,0x000002f2,0x00000043,0x00000167,0x0000015c,0x0004003d,0x00000006, + 0x000002f3,0x000002f2,0x0003003e,0x000002ec,0x000002f3,0x000200f9,0x000002ee,0x000200f8, + 0x000002ee,0x0004003d,0x00000006,0x000002f4,0x000002ec,0x0003003e,0x000002e9,0x000002f4, + 0x0004003d,0x00000006,0x000002f6,0x000002c7,0x000500be,0x000000a6,0x000002f7,0x000002f6, + 0x000000a5,0x000300f7,0x000002fa,0x00000000,0x000400fa,0x000002f7,0x000002f9,0x000002fd, + 0x000200f8,0x000002f9,0x00060041,0x0000000d,0x000002fb,0x00000043,0x0000016f,0x00000197, + 0x0004003d,0x00000006,0x000002fc,0x000002fb,0x0003003e,0x000002f8,0x000002fc,0x000200f9, + 0x000002fa,0x000200f8,0x000002fd,0x00060041,0x0000000d,0x000002fe,0x00000043,0x00000197, + 0x0000016f,0x0004003d,0x00000006,0x000002ff,0x000002fe,0x0003003e,0x000002f8,0x000002ff, + 0x000200f9,0x000002fa,0x000200f8,0x000002fa,0x0004003d,0x00000006,0x00000300,0x000002f8, + 0x0003003e,0x000002f5,0x00000300,0x0004003d,0x00000006,0x00000302,0x000002c7,0x000500be, + 0x000000a6,0x00000303,0x00000302,0x000000a5,0x000300f7,0x00000306,0x00000000,0x000400fa, + 0x00000303,0x00000305,0x00000309,0x000200f8,0x00000305,0x00060041,0x0000000d,0x00000307, + 0x00000043,0x00000167,0x0000019f,0x0004003d,0x00000006,0x00000308,0x00000307,0x0003003e, + 0x00000304,0x00000308,0x000200f9,0x00000306,0x000200f8,0x00000309,0x00060041,0x0000000d, + 0x0000030a,0x00000043,0x0000019f,0x00000167,0x0004003d,0x00000006,0x0000030b,0x0000030a, + 0x0003003e,0x00000304,0x0000030b,0x000200f9,0x00000306,0x000200f8,0x00000306,0x0004003d, + 0x00000006,0x0000030c,0x00000304,0x0003003e,0x00000301,0x0000030c,0x0004003d,0x00000006, + 0x0000030e,0x000002c7,0x000500be,0x000000a6,0x0000030f,0x0000030e,0x000000a5,0x000300f7, + 0x00000312,0x00000000,0x000400fa,0x0000030f,0x00000311,0x00000315,0x000200f8,0x00000311, + 0x00060041,0x0000000d,0x00000313,0x00000043,0x00000197,0x000001a7,0x0004003d,0x00000006, + 0x00000314,0x00000313,0x0003003e,0x00000310,0x00000314,0x000200f9,0x00000312,0x000200f8, + 0x00000315,0x00060041,0x0000000d,0x00000316,0x00000043,0x000001a7,0x00000197,0x0004003d, + 0x00000006,0x00000317,0x00000316,0x0003003e,0x00000310,0x00000317,0x000200f9,0x00000312, + 0x000200f8,0x00000312,0x0004003d,0x00000006,0x00000318,0x00000310,0x0003003e,0x0000030d, + 0x00000318,0x00060041,0x0000000d,0x00000319,0x00000043,0x0000016f,0x0000016f,0x0004003d, + 0x00000006,0x0000031a,0x00000319,0x0004003d,0x00000006,0x0000031b,0x000002e9,0x0004003d, + 0x00000006,0x0000031c,0x000002c7,0x0006000c,0x00000006,0x0000031d,0x00000001,0x00000004, + 0x0000031c,0x0008000c,0x00000006,0x0000031e,0x00000001,0x0000002e,0x0000031a,0x0000031b, + 0x0000031d,0x00050041,0x0000000d,0x0000031f,0x000002d1,0x0000015c,0x0003003e,0x0000031f, + 0x0000031e,0x00060041,0x0000000d,0x00000320,0x00000043,0x00000167,0x00000167,0x0004003d, + 0x00000006,0x00000321,0x00000320,0x0004003d,0x00000006,0x00000322,0x000002f5,0x0004003d, + 0x00000006,0x00000323,0x000002c7,0x0006000c,0x00000006,0x00000324,0x00000001,0x00000004, + 0x00000323,0x0008000c,0x00000006,0x00000325,0x00000001,0x0000002e,0x00000321,0x00000322, + 0x00000324,0x00050041,0x0000000d,0x00000326,0x000002d1,0x00000167,0x0003003e,0x00000326, + 0x00000325,0x00060041,0x0000000d,0x00000327,0x00000043,0x00000197,0x00000197,0x0004003d, + 0x00000006,0x00000328,0x00000327,0x0004003d,0x00000006,0x00000329,0x00000301,0x0004003d, + 0x00000006,0x0000032a,0x000002c7,0x0006000c,0x00000006,0x0000032b,0x00000001,0x00000004, + 0x0000032a,0x0008000c,0x00000006,0x0000032c,0x00000001,0x0000002e,0x00000328,0x00000329, + 0x0000032b,0x00050041,0x0000000d,0x0000032d,0x000002d1,0x0000019f,0x0003003e,0x0000032d, + 0x0000032c,0x00060041,0x0000000d,0x0000032e,0x00000043,0x0000019f,0x0000019f,0x0004003d, + 0x00000006,0x0000032f,0x0000032e,0x0004003d,0x00000006,0x00000330,0x0000030d,0x0004003d, + 0x00000006,0x00000331,0x000002c7,0x0006000c,0x00000006,0x00000332,0x00000001,0x00000004, + 0x00000331,0x0008000c,0x00000006,0x00000333,0x00000001,0x0000002e,0x0000032f,0x00000330, + 0x00000332,0x00050041,0x0000000d,0x00000334,0x000002d1,0x00000256,0x0003003e,0x00000334, + 0x00000333,0x0004003d,0x00000006,0x00000336,0x00000044,0x0004003d,0x00000006,0x00000337, + 0x00000045,0x00050081,0x00000006,0x00000338,0x00000336,0x00000337,0x0003003e,0x00000335, + 0x00000338,0x0004003d,0x00000006,0x00000339,0x00000335,0x000500be,0x000000a6,0x0000033a, + 0x00000339,0x000000b2,0x000300f7,0x0000033c,0x00000000,0x000400fa,0x0000033a,0x0000033b, + 0x00000350,0x000200f8,0x0000033b,0x0003003e,0x0000033d,0x0000015c,0x000200f9,0x0000033e, + 0x000200f8,0x0000033e,0x000400f6,0x00000340,0x00000341,0x00000000,0x000200f9,0x00000342, + 0x000200f8,0x00000342,0x0004003d,0x00000025,0x00000343,0x0000033d,0x000500b1,0x000000a6, + 0x00000344,0x00000343,0x00000256,0x000400fa,0x00000344,0x0000033f,0x00000340,0x000200f8, + 0x0000033f,0x0004003d,0x00000025,0x00000346,0x0000033d,0x0004003d,0x00000025,0x00000347, + 0x0000033d,0x00050080,0x00000025,0x00000348,0x00000347,0x0000016f,0x00050041,0x0000000d, + 0x00000349,0x000002d1,0x00000348,0x0004003d,0x00000006,0x0000034a,0x00000349,0x00050041, + 0x0000000d,0x0000034b,0x00000345,0x00000346,0x0003003e,0x0000034b,0x0000034a,0x000200f9, + 0x00000341,0x000200f8,0x00000341,0x0004003d,0x00000025,0x0000034c,0x0000033d,0x00050080, + 0x00000025,0x0000034d,0x0000034c,0x0000016f,0x0003003e,0x0000033d,0x0000034d,0x000200f9, + 0x0000033e,0x000200f8,0x00000340,0x0004003d,0x00000006,0x0000034e,0x00000335,0x00050083, + 0x00000006,0x0000034f,0x0000034e,0x000000b2,0x0003003e,0x00000335,0x0000034f,0x000200f9, + 0x0000033c,0x000200f8,0x00000350,0x0003003e,0x00000351,0x0000015c,0x000200f9,0x00000352, + 0x000200f8,0x00000352,0x000400f6,0x00000354,0x00000355,0x00000000,0x000200f9,0x00000356, + 0x000200f8,0x00000356,0x0004003d,0x00000025,0x00000357,0x00000351,0x000500b1,0x000000a6, + 0x00000358,0x00000357,0x00000256,0x000400fa,0x00000358,0x00000353,0x00000354,0x000200f8, + 0x00000353,0x0004003d,0x00000025,0x00000359,0x00000351,0x0004003d,0x00000025,0x0000035a, + 0x00000351,0x00050041,0x0000000d,0x0000035b,0x000002d1,0x0000035a,0x0004003d,0x00000006, + 0x0000035c,0x0000035b,0x00050041,0x0000000d,0x0000035d,0x00000345,0x00000359,0x0003003e, + 0x0000035d,0x0000035c,0x000200f9,0x00000355,0x000200f8,0x00000355,0x0004003d,0x00000025, + 0x0000035e,0x00000351,0x00050080,0x00000025,0x0000035f,0x0000035e,0x0000016f,0x0003003e, + 0x00000351,0x0000035f,0x000200f9,0x00000352,0x000200f8,0x00000354,0x000200f9,0x0000033c, + 0x000200f8,0x0000033c,0x0004003d,0x00000006,0x00000360,0x00000335,0x00050085,0x00000006, + 0x00000362,0x00000360,0x00000361,0x0004006e,0x00000025,0x00000363,0x00000362,0x0004003d, + 0x00000033,0x00000365,0x00000345,0x0003003e,0x00000364,0x00000365,0x0003003e,0x00000366, + 0x00000363,0x00060039,0x00000006,0x00000367,0x00000038,0x00000364,0x00000366,0x00050041, + 0x0000000d,0x00000368,0x00000048,0x00000057,0x0004003d,0x00000006,0x00000369,0x00000368, + 0x00050085,0x00000006,0x0000036a,0x00000367,0x00000369,0x0004003d,0x00000006,0x0000036b, + 0x00000279,0x00050081,0x00000006,0x0000036c,0x0000036b,0x0000036a,0x0003003e,0x00000279, + 0x0000036c,0x000200f9,0x000002c6,0x000200f8,0x000002c6,0x00050041,0x0000000d,0x0000036d, + 0x00000048,0x00000194,0x0004003d,0x00000006,0x0000036e,0x0000036d,0x000500ba,0x000000a6, + 0x0000036f,0x0000036e,0x000000a5,0x000300f7,0x00000371,0x00000000,0x000400fa,0x0000036f, + 0x00000370,0x00000371,0x000200f8,0x00000370,0x0004003d,0x00000006,0x00000373,0x00000044, + 0x0004003d,0x00000006,0x00000374,0x00000045,0x00050081,0x00000006,0x00000375,0x00000373, + 0x00000374,0x00050085,0x00000006,0x00000376,0x000002c8,0x00000375,0x0003003e,0x00000372, + 0x00000376,0x00060041,0x0000000d,0x00000378,0x00000043,0x00000197,0x0000016f,0x0004003d, + 0x00000006,0x00000379,0x00000378,0x00060041,0x0000000d,0x0000037a,0x00000043,0x0000019f, + 0x00000167,0x0004003d,0x00000006,0x0000037b,0x0000037a,0x0004003d,0x00000006,0x0000037c, + 0x00000372,0x0008000c,0x00000006,0x0000037d,0x00000001,0x0000002e,0x00000379,0x0000037b, + 0x0000037c,0x00050041,0x0000000d,0x0000037e,0x00000377,0x0000016f,0x0003003e,0x0000037e, + 0x0000037d,0x00060041,0x0000000d,0x0000037f,0x00000043,0x00000167,0x00000167,0x0004003d, + 0x00000006,0x00000380,0x0000037f,0x00060041,0x0000000d,0x00000381,0x00000043,0x00000197, + 0x00000197,0x0004003d,0x00000006,0x00000382,0x00000381,0x0004003d,0x00000006,0x00000383, + 0x00000372,0x0008000c,0x00000006,0x00000384,0x00000001,0x0000002e,0x00000380,0x00000382, + 0x00000383,0x00050041,0x0000000d,0x00000385,0x00000377,0x00000197,0x0003003e,0x00000385, + 0x00000384,0x00060041,0x0000000d,0x00000386,0x00000043,0x0000016f,0x00000197,0x0004003d, + 0x00000006,0x00000387,0x00000386,0x00060041,0x0000000d,0x00000388,0x00000043,0x00000167, + 0x0000019f,0x0004003d,0x00000006,0x00000389,0x00000388,0x0004003d,0x00000006,0x0000038a, + 0x00000372,0x0008000c,0x00000006,0x0000038b,0x00000001,0x0000002e,0x00000387,0x00000389, + 0x0000038a,0x00050041,0x0000000d,0x0000038c,0x00000377,0x000001a7,0x0003003e,0x0000038c, + 0x0000038b,0x0004003d,0x00000006,0x0000038d,0x00000372,0x00050083,0x00000006,0x0000038e, + 0x0000038d,0x000002c8,0x0003003e,0x00000372,0x0000038e,0x0004003d,0x00000006,0x00000390, + 0x00000372,0x000500be,0x000000a6,0x00000391,0x00000390,0x000000a5,0x000300f7,0x00000394, + 0x00000000,0x000400fa,0x00000391,0x00000393,0x00000397,0x000200f8,0x00000393,0x00060041, + 0x0000000d,0x00000395,0x00000043,0x000001a7,0x00000167,0x0004003d,0x00000006,0x00000396, + 0x00000395,0x0003003e,0x00000392,0x00000396,0x000200f9,0x00000394,0x000200f8,0x00000397, + 0x00060041,0x0000000d,0x00000398,0x00000043,0x00000197,0x0000015c,0x0004003d,0x00000006, + 0x00000399,0x00000398,0x0003003e,0x00000392,0x00000399,0x000200f9,0x00000394,0x000200f8, + 0x00000394,0x0004003d,0x00000006,0x0000039a,0x00000392,0x0003003e,0x0000038f,0x0000039a, + 0x0004003d,0x00000006,0x0000039c,0x00000372,0x000500be,0x000000a6,0x0000039d,0x0000039c, + 0x000000a5,0x000300f7,0x000003a0,0x00000000,0x000400fa,0x0000039d,0x0000039f,0x000003a3, + 0x000200f8,0x0000039f,0x00060041,0x0000000d,0x000003a1,0x00000043,0x0000019f,0x00000197, + 0x0004003d,0x00000006,0x000003a2,0x000003a1,0x0003003e,0x0000039e,0x000003a2,0x000200f9, + 0x000003a0,0x000200f8,0x000003a3,0x00060041,0x0000000d,0x000003a4,0x00000043,0x00000167, + 0x0000016f,0x0004003d,0x00000006,0x000003a5,0x000003a4,0x0003003e,0x0000039e,0x000003a5, + 0x000200f9,0x000003a0,0x000200f8,0x000003a0,0x0004003d,0x00000006,0x000003a6,0x0000039e, + 0x0003003e,0x0000039b,0x000003a6,0x0004003d,0x00000006,0x000003a8,0x00000372,0x000500be, + 0x000000a6,0x000003a9,0x000003a8,0x000000a5,0x000300f7,0x000003ac,0x00000000,0x000400fa, + 0x000003a9,0x000003ab,0x000003af,0x000200f8,0x000003ab,0x00060041,0x0000000d,0x000003ad, + 0x00000043,0x00000197,0x0000019f,0x0004003d,0x00000006,0x000003ae,0x000003ad,0x0003003e, + 0x000003aa,0x000003ae,0x000200f9,0x000003ac,0x000200f8,0x000003af,0x00060041,0x0000000d, + 0x000003b0,0x00000043,0x0000016f,0x00000167,0x0004003d,0x00000006,0x000003b1,0x000003b0, + 0x0003003e,0x000003aa,0x000003b1,0x000200f9,0x000003ac,0x000200f8,0x000003ac,0x0004003d, + 0x00000006,0x000003b2,0x000003aa,0x0003003e,0x000003a7,0x000003b2,0x0004003d,0x00000006, + 0x000003b4,0x00000372,0x000500be,0x000000a6,0x000003b5,0x000003b4,0x000000a5,0x000300f7, + 0x000003b8,0x00000000,0x000400fa,0x000003b5,0x000003b7,0x000003bb,0x000200f8,0x000003b7, + 0x00060041,0x0000000d,0x000003b9,0x00000043,0x00000167,0x000001a7,0x0004003d,0x00000006, + 0x000003ba,0x000003b9,0x0003003e,0x000003b6,0x000003ba,0x000200f9,0x000003b8,0x000200f8, + 0x000003bb,0x00060041,0x0000000d,0x000003bc,0x00000043,0x0000015c,0x00000197,0x0004003d, + 0x00000006,0x000003bd,0x000003bc,0x0003003e,0x000003b6,0x000003bd,0x000200f9,0x000003b8, + 0x000200f8,0x000003b8,0x0004003d,0x00000006,0x000003be,0x000003b6,0x0003003e,0x000003b3, + 0x000003be,0x00060041,0x0000000d,0x000003bf,0x00000043,0x0000019f,0x0000016f,0x0004003d, + 0x00000006,0x000003c0,0x000003bf,0x0004003d,0x00000006,0x000003c1,0x0000038f,0x0004003d, + 0x00000006,0x000003c2,0x00000372,0x0006000c,0x00000006,0x000003c3,0x00000001,0x00000004, + 0x000003c2,0x0008000c,0x00000006,0x000003c4,0x00000001,0x0000002e,0x000003c0,0x000003c1, + 0x000003c3,0x00050041,0x0000000d,0x000003c5,0x00000377,0x0000015c,0x0003003e,0x000003c5, + 0x000003c4,0x00060041,0x0000000d,0x000003c6,0x00000043,0x00000197,0x00000167,0x0004003d, + 0x00000006,0x000003c7,0x000003c6,0x0004003d,0x00000006,0x000003c8,0x0000039b,0x0004003d, + 0x00000006,0x000003c9,0x00000372,0x0006000c,0x00000006,0x000003ca,0x00000001,0x00000004, + 0x000003c9,0x0008000c,0x00000006,0x000003cb,0x00000001,0x0000002e,0x000003c7,0x000003c8, + 0x000003ca,0x00050041,0x0000000d,0x000003cc,0x00000377,0x00000167,0x0003003e,0x000003cc, + 0x000003cb,0x00060041,0x0000000d,0x000003cd,0x00000043,0x00000167,0x00000197,0x0004003d, + 0x00000006,0x000003ce,0x000003cd,0x0004003d,0x00000006,0x000003cf,0x000003a7,0x0004003d, + 0x00000006,0x000003d0,0x00000372,0x0006000c,0x00000006,0x000003d1,0x00000001,0x00000004, + 0x000003d0,0x0008000c,0x00000006,0x000003d2,0x00000001,0x0000002e,0x000003ce,0x000003cf, + 0x000003d1,0x00050041,0x0000000d,0x000003d3,0x00000377,0x0000019f,0x0003003e,0x000003d3, + 0x000003d2,0x00060041,0x0000000d,0x000003d4,0x00000043,0x0000016f,0x0000019f,0x0004003d, + 0x00000006,0x000003d5,0x000003d4,0x0004003d,0x00000006,0x000003d6,0x000003b3,0x0004003d, + 0x00000006,0x000003d7,0x00000372,0x0006000c,0x00000006,0x000003d8,0x00000001,0x00000004, + 0x000003d7,0x0008000c,0x00000006,0x000003d9,0x00000001,0x0000002e,0x000003d5,0x000003d6, + 0x000003d8,0x00050041,0x0000000d,0x000003da,0x00000377,0x00000256,0x0003003e,0x000003da, + 0x000003d9,0x0004003d,0x00000006,0x000003dc,0x00000044,0x0004003d,0x00000006,0x000003dd, + 0x00000045,0x00050083,0x00000006,0x000003de,0x000003dc,0x000003dd,0x00050081,0x00000006, + 0x000003df,0x000000b2,0x000003de,0x0003003e,0x000003db,0x000003df,0x0004003d,0x00000006, + 0x000003e0,0x000003db,0x000500be,0x000000a6,0x000003e1,0x000003e0,0x000000b2,0x000300f7, + 0x000003e3,0x00000000,0x000400fa,0x000003e1,0x000003e2,0x000003f7,0x000200f8,0x000003e2, + 0x0003003e,0x000003e4,0x0000015c,0x000200f9,0x000003e5,0x000200f8,0x000003e5,0x000400f6, + 0x000003e7,0x000003e8,0x00000000,0x000200f9,0x000003e9,0x000200f8,0x000003e9,0x0004003d, + 0x00000025,0x000003ea,0x000003e4,0x000500b1,0x000000a6,0x000003eb,0x000003ea,0x00000256, + 0x000400fa,0x000003eb,0x000003e6,0x000003e7,0x000200f8,0x000003e6,0x0004003d,0x00000025, + 0x000003ed,0x000003e4,0x0004003d,0x00000025,0x000003ee,0x000003e4,0x00050080,0x00000025, + 0x000003ef,0x000003ee,0x0000016f,0x00050041,0x0000000d,0x000003f0,0x00000377,0x000003ef, + 0x0004003d,0x00000006,0x000003f1,0x000003f0,0x00050041,0x0000000d,0x000003f2,0x000003ec, + 0x000003ed,0x0003003e,0x000003f2,0x000003f1,0x000200f9,0x000003e8,0x000200f8,0x000003e8, + 0x0004003d,0x00000025,0x000003f3,0x000003e4,0x00050080,0x00000025,0x000003f4,0x000003f3, + 0x0000016f,0x0003003e,0x000003e4,0x000003f4,0x000200f9,0x000003e5,0x000200f8,0x000003e7, + 0x0004003d,0x00000006,0x000003f5,0x000003db,0x00050083,0x00000006,0x000003f6,0x000003f5, + 0x000000b2,0x0003003e,0x000003db,0x000003f6,0x000200f9,0x000003e3,0x000200f8,0x000003f7, + 0x0003003e,0x000003f8,0x0000015c,0x000200f9,0x000003f9,0x000200f8,0x000003f9,0x000400f6, + 0x000003fb,0x000003fc,0x00000000,0x000200f9,0x000003fd,0x000200f8,0x000003fd,0x0004003d, + 0x00000025,0x000003fe,0x000003f8,0x000500b1,0x000000a6,0x000003ff,0x000003fe,0x00000256, + 0x000400fa,0x000003ff,0x000003fa,0x000003fb,0x000200f8,0x000003fa,0x0004003d,0x00000025, + 0x00000400,0x000003f8,0x0004003d,0x00000025,0x00000401,0x000003f8,0x00050041,0x0000000d, + 0x00000402,0x00000377,0x00000401,0x0004003d,0x00000006,0x00000403,0x00000402,0x00050041, + 0x0000000d,0x00000404,0x000003ec,0x00000400,0x0003003e,0x00000404,0x00000403,0x000200f9, + 0x000003fc,0x000200f8,0x000003fc,0x0004003d,0x00000025,0x00000405,0x000003f8,0x00050080, + 0x00000025,0x00000406,0x00000405,0x0000016f,0x0003003e,0x000003f8,0x00000406,0x000200f9, + 0x000003f9,0x000200f8,0x000003fb,0x000200f9,0x000003e3,0x000200f8,0x000003e3,0x0004003d, + 0x00000006,0x00000407,0x000003db,0x00050085,0x00000006,0x00000408,0x00000407,0x00000361, + 0x0004006e,0x00000025,0x00000409,0x00000408,0x0004003d,0x00000033,0x0000040b,0x000003ec, + 0x0003003e,0x0000040a,0x0000040b,0x0003003e,0x0000040c,0x00000409,0x00060039,0x00000006, + 0x0000040d,0x00000038,0x0000040a,0x0000040c,0x00050041,0x0000000d,0x0000040e,0x00000048, + 0x00000194,0x0004003d,0x00000006,0x0000040f,0x0000040e,0x00050085,0x00000006,0x00000410, + 0x0000040d,0x0000040f,0x0004003d,0x00000006,0x00000411,0x00000279,0x00050081,0x00000006, + 0x00000412,0x00000411,0x00000410,0x0003003e,0x00000279,0x00000412,0x000200f9,0x00000371, + 0x000200f8,0x00000371,0x0004003d,0x00000006,0x00000413,0x00000279,0x000200fe,0x00000413, + 0x00010038 +}; diff --git a/app/src/main/cpp/shaders/nis_coef.h b/app/src/main/cpp/shaders/nis_coef.h new file mode 100644 index 0000000000..77252c738e --- /dev/null +++ b/app/src/main/cpp/shaders/nis_coef.h @@ -0,0 +1,156 @@ +// NVIDIA Image Scaling coefficient banks for nis3.frag (uniform buffer, set 1, binding 0): +// coef_scale and coef_usm, 64 phases x 6 taps, laid out as two vec4 per phase (taps 0-3, taps 4-5 +// + two zeros) to match the shader's std140 vec4[128] arrays. Values = nis.frag's baked tables. +// +// The MIT License (MIT) +// Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. 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. +#pragma once + +static const float kNisCoefScale[64 * 8] = { + 0.0000f, 0.0000f, 1.0000f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, // phase 0 + 0.0029f, -0.0127f, 1.0000f, 0.0132f, -0.0034f, 0.0000f, 0.0000f, 0.0000f, // phase 1 + 0.0063f, -0.0249f, 0.9985f, 0.0269f, -0.0068f, 0.0000f, 0.0000f, 0.0000f, // phase 2 + 0.0088f, -0.0361f, 0.9956f, 0.0415f, -0.0103f, 0.0005f, 0.0000f, 0.0000f, // phase 3 + 0.0117f, -0.0474f, 0.9932f, 0.0562f, -0.0142f, 0.0005f, 0.0000f, 0.0000f, // phase 4 + 0.0142f, -0.0576f, 0.9897f, 0.0713f, -0.0181f, 0.0005f, 0.0000f, 0.0000f, // phase 5 + 0.0166f, -0.0674f, 0.9844f, 0.0874f, -0.0220f, 0.0010f, 0.0000f, 0.0000f, // phase 6 + 0.0186f, -0.0762f, 0.9785f, 0.1040f, -0.0264f, 0.0015f, 0.0000f, 0.0000f, // phase 7 + 0.0205f, -0.0850f, 0.9727f, 0.1206f, -0.0308f, 0.0020f, 0.0000f, 0.0000f, // phase 8 + 0.0225f, -0.0928f, 0.9648f, 0.1382f, -0.0352f, 0.0024f, 0.0000f, 0.0000f, // phase 9 + 0.0239f, -0.1006f, 0.9575f, 0.1558f, -0.0396f, 0.0029f, 0.0000f, 0.0000f, // phase 10 + 0.0254f, -0.1074f, 0.9487f, 0.1738f, -0.0439f, 0.0034f, 0.0000f, 0.0000f, // phase 11 + 0.0264f, -0.1138f, 0.9390f, 0.1929f, -0.0488f, 0.0044f, 0.0000f, 0.0000f, // phase 12 + 0.0278f, -0.1191f, 0.9282f, 0.2119f, -0.0537f, 0.0049f, 0.0000f, 0.0000f, // phase 13 + 0.0288f, -0.1245f, 0.9170f, 0.2310f, -0.0581f, 0.0059f, 0.0000f, 0.0000f, // phase 14 + 0.0293f, -0.1294f, 0.9058f, 0.2510f, -0.0630f, 0.0063f, 0.0000f, 0.0000f, // phase 15 + 0.0303f, -0.1333f, 0.8926f, 0.2710f, -0.0679f, 0.0073f, 0.0000f, 0.0000f, // phase 16 + 0.0308f, -0.1367f, 0.8789f, 0.2915f, -0.0728f, 0.0083f, 0.0000f, 0.0000f, // phase 17 + 0.0308f, -0.1401f, 0.8657f, 0.3120f, -0.0776f, 0.0093f, 0.0000f, 0.0000f, // phase 18 + 0.0313f, -0.1426f, 0.8506f, 0.3330f, -0.0825f, 0.0103f, 0.0000f, 0.0000f, // phase 19 + 0.0313f, -0.1445f, 0.8354f, 0.3540f, -0.0874f, 0.0112f, 0.0000f, 0.0000f, // phase 20 + 0.0313f, -0.1460f, 0.8193f, 0.3755f, -0.0923f, 0.0122f, 0.0000f, 0.0000f, // phase 21 + 0.0313f, -0.1470f, 0.8022f, 0.3965f, -0.0967f, 0.0137f, 0.0000f, 0.0000f, // phase 22 + 0.0308f, -0.1479f, 0.7856f, 0.4185f, -0.1016f, 0.0146f, 0.0000f, 0.0000f, // phase 23 + 0.0303f, -0.1479f, 0.7681f, 0.4399f, -0.1060f, 0.0156f, 0.0000f, 0.0000f, // phase 24 + 0.0298f, -0.1479f, 0.7505f, 0.4614f, -0.1104f, 0.0166f, 0.0000f, 0.0000f, // phase 25 + 0.0293f, -0.1470f, 0.7314f, 0.4829f, -0.1147f, 0.0181f, 0.0000f, 0.0000f, // phase 26 + 0.0288f, -0.1460f, 0.7119f, 0.5049f, -0.1187f, 0.0190f, 0.0000f, 0.0000f, // phase 27 + 0.0278f, -0.1445f, 0.6929f, 0.5264f, -0.1226f, 0.0200f, 0.0000f, 0.0000f, // phase 28 + 0.0273f, -0.1431f, 0.6724f, 0.5479f, -0.1260f, 0.0215f, 0.0000f, 0.0000f, // phase 29 + 0.0264f, -0.1411f, 0.6528f, 0.5693f, -0.1299f, 0.0225f, 0.0000f, 0.0000f, // phase 30 + 0.0254f, -0.1387f, 0.6323f, 0.5903f, -0.1328f, 0.0234f, 0.0000f, 0.0000f, // phase 31 + 0.0244f, -0.1357f, 0.6113f, 0.6113f, -0.1357f, 0.0244f, 0.0000f, 0.0000f, // phase 32 + 0.0234f, -0.1328f, 0.5903f, 0.6323f, -0.1387f, 0.0254f, 0.0000f, 0.0000f, // phase 33 + 0.0225f, -0.1299f, 0.5693f, 0.6528f, -0.1411f, 0.0264f, 0.0000f, 0.0000f, // phase 34 + 0.0215f, -0.1260f, 0.5479f, 0.6724f, -0.1431f, 0.0273f, 0.0000f, 0.0000f, // phase 35 + 0.0200f, -0.1226f, 0.5264f, 0.6929f, -0.1445f, 0.0278f, 0.0000f, 0.0000f, // phase 36 + 0.0190f, -0.1187f, 0.5049f, 0.7119f, -0.1460f, 0.0288f, 0.0000f, 0.0000f, // phase 37 + 0.0181f, -0.1147f, 0.4829f, 0.7314f, -0.1470f, 0.0293f, 0.0000f, 0.0000f, // phase 38 + 0.0166f, -0.1104f, 0.4614f, 0.7505f, -0.1479f, 0.0298f, 0.0000f, 0.0000f, // phase 39 + 0.0156f, -0.1060f, 0.4399f, 0.7681f, -0.1479f, 0.0303f, 0.0000f, 0.0000f, // phase 40 + 0.0146f, -0.1016f, 0.4185f, 0.7856f, -0.1479f, 0.0308f, 0.0000f, 0.0000f, // phase 41 + 0.0137f, -0.0967f, 0.3965f, 0.8022f, -0.1470f, 0.0313f, 0.0000f, 0.0000f, // phase 42 + 0.0122f, -0.0923f, 0.3755f, 0.8193f, -0.1460f, 0.0313f, 0.0000f, 0.0000f, // phase 43 + 0.0112f, -0.0874f, 0.3540f, 0.8354f, -0.1445f, 0.0313f, 0.0000f, 0.0000f, // phase 44 + 0.0103f, -0.0825f, 0.3330f, 0.8506f, -0.1426f, 0.0313f, 0.0000f, 0.0000f, // phase 45 + 0.0093f, -0.0776f, 0.3120f, 0.8657f, -0.1401f, 0.0308f, 0.0000f, 0.0000f, // phase 46 + 0.0083f, -0.0728f, 0.2915f, 0.8789f, -0.1367f, 0.0308f, 0.0000f, 0.0000f, // phase 47 + 0.0073f, -0.0679f, 0.2710f, 0.8926f, -0.1333f, 0.0303f, 0.0000f, 0.0000f, // phase 48 + 0.0063f, -0.0630f, 0.2510f, 0.9058f, -0.1294f, 0.0293f, 0.0000f, 0.0000f, // phase 49 + 0.0059f, -0.0581f, 0.2310f, 0.9170f, -0.1245f, 0.0288f, 0.0000f, 0.0000f, // phase 50 + 0.0049f, -0.0537f, 0.2119f, 0.9282f, -0.1191f, 0.0278f, 0.0000f, 0.0000f, // phase 51 + 0.0044f, -0.0488f, 0.1929f, 0.9390f, -0.1138f, 0.0264f, 0.0000f, 0.0000f, // phase 52 + 0.0034f, -0.0439f, 0.1738f, 0.9487f, -0.1074f, 0.0254f, 0.0000f, 0.0000f, // phase 53 + 0.0029f, -0.0396f, 0.1558f, 0.9575f, -0.1006f, 0.0239f, 0.0000f, 0.0000f, // phase 54 + 0.0024f, -0.0352f, 0.1382f, 0.9648f, -0.0928f, 0.0225f, 0.0000f, 0.0000f, // phase 55 + 0.0020f, -0.0308f, 0.1206f, 0.9727f, -0.0850f, 0.0205f, 0.0000f, 0.0000f, // phase 56 + 0.0015f, -0.0264f, 0.1040f, 0.9785f, -0.0762f, 0.0186f, 0.0000f, 0.0000f, // phase 57 + 0.0010f, -0.0220f, 0.0874f, 0.9844f, -0.0674f, 0.0166f, 0.0000f, 0.0000f, // phase 58 + 0.0005f, -0.0181f, 0.0713f, 0.9897f, -0.0576f, 0.0142f, 0.0000f, 0.0000f, // phase 59 + 0.0005f, -0.0142f, 0.0562f, 0.9932f, -0.0474f, 0.0117f, 0.0000f, 0.0000f, // phase 60 + 0.0005f, -0.0103f, 0.0415f, 0.9956f, -0.0361f, 0.0088f, 0.0000f, 0.0000f, // phase 61 + 0.0000f, -0.0068f, 0.0269f, 0.9985f, -0.0249f, 0.0063f, 0.0000f, 0.0000f, // phase 62 + 0.0000f, -0.0034f, 0.0132f, 1.0000f, -0.0127f, 0.0029f, 0.0000f, 0.0000f, // phase 63 +}; + +static const float kNisCoefUsm[64 * 8] = { + 0.0000f, -0.6001f, 1.2002f, -0.6001f, 0.0000f, 0.0000f, 0.0000f, 0.0000f, // phase 0 + 0.0029f, -0.6084f, 1.1987f, -0.5903f, -0.0029f, 0.0000f, 0.0000f, 0.0000f, // phase 1 + 0.0049f, -0.6147f, 1.1958f, -0.5791f, -0.0068f, 0.0005f, 0.0000f, 0.0000f, // phase 2 + 0.0073f, -0.6196f, 1.1890f, -0.5659f, -0.0103f, 0.0000f, 0.0000f, 0.0000f, // phase 3 + 0.0093f, -0.6235f, 1.1802f, -0.5513f, -0.0151f, 0.0000f, 0.0000f, 0.0000f, // phase 4 + 0.0112f, -0.6265f, 1.1699f, -0.5352f, -0.0195f, 0.0005f, 0.0000f, 0.0000f, // phase 5 + 0.0122f, -0.6270f, 1.1582f, -0.5181f, -0.0259f, 0.0005f, 0.0000f, 0.0000f, // phase 6 + 0.0142f, -0.6284f, 1.1455f, -0.5005f, -0.0317f, 0.0005f, 0.0000f, 0.0000f, // phase 7 + 0.0156f, -0.6265f, 1.1274f, -0.4790f, -0.0386f, 0.0005f, 0.0000f, 0.0000f, // phase 8 + 0.0166f, -0.6235f, 1.1089f, -0.4570f, -0.0454f, 0.0010f, 0.0000f, 0.0000f, // phase 9 + 0.0176f, -0.6187f, 1.0879f, -0.4346f, -0.0532f, 0.0010f, 0.0000f, 0.0000f, // phase 10 + 0.0181f, -0.6138f, 1.0659f, -0.4102f, -0.0615f, 0.0015f, 0.0000f, 0.0000f, // phase 11 + 0.0190f, -0.6069f, 1.0405f, -0.3843f, -0.0698f, 0.0015f, 0.0000f, 0.0000f, // phase 12 + 0.0195f, -0.6006f, 1.0161f, -0.3574f, -0.0796f, 0.0020f, 0.0000f, 0.0000f, // phase 13 + 0.0200f, -0.5928f, 0.9893f, -0.3286f, -0.0898f, 0.0024f, 0.0000f, 0.0000f, // phase 14 + 0.0200f, -0.5820f, 0.9580f, -0.2988f, -0.1001f, 0.0029f, 0.0000f, 0.0000f, // phase 15 + 0.0200f, -0.5728f, 0.9292f, -0.2690f, -0.1104f, 0.0034f, 0.0000f, 0.0000f, // phase 16 + 0.0200f, -0.5620f, 0.8975f, -0.2368f, -0.1226f, 0.0039f, 0.0000f, 0.0000f, // phase 17 + 0.0205f, -0.5498f, 0.8643f, -0.2046f, -0.1343f, 0.0044f, 0.0000f, 0.0000f, // phase 18 + 0.0200f, -0.5371f, 0.8301f, -0.1709f, -0.1465f, 0.0049f, 0.0000f, 0.0000f, // phase 19 + 0.0195f, -0.5239f, 0.7944f, -0.1367f, -0.1587f, 0.0054f, 0.0000f, 0.0000f, // phase 20 + 0.0195f, -0.5107f, 0.7598f, -0.1021f, -0.1724f, 0.0059f, 0.0000f, 0.0000f, // phase 21 + 0.0190f, -0.4966f, 0.7231f, -0.0649f, -0.1865f, 0.0063f, 0.0000f, 0.0000f, // phase 22 + 0.0186f, -0.4819f, 0.6846f, -0.0288f, -0.1997f, 0.0068f, 0.0000f, 0.0000f, // phase 23 + 0.0186f, -0.4668f, 0.6460f, 0.0093f, -0.2144f, 0.0073f, 0.0000f, 0.0000f, // phase 24 + 0.0176f, -0.4507f, 0.6055f, 0.0479f, -0.2290f, 0.0083f, 0.0000f, 0.0000f, // phase 25 + 0.0171f, -0.4370f, 0.5693f, 0.0859f, -0.2446f, 0.0088f, 0.0000f, 0.0000f, // phase 26 + 0.0161f, -0.4199f, 0.5283f, 0.1255f, -0.2598f, 0.0098f, 0.0000f, 0.0000f, // phase 27 + 0.0161f, -0.4048f, 0.4883f, 0.1655f, -0.2754f, 0.0103f, 0.0000f, 0.0000f, // phase 28 + 0.0151f, -0.3887f, 0.4497f, 0.2041f, -0.2910f, 0.0107f, 0.0000f, 0.0000f, // phase 29 + 0.0142f, -0.3711f, 0.4072f, 0.2446f, -0.3066f, 0.0117f, 0.0000f, 0.0000f, // phase 30 + 0.0137f, -0.3555f, 0.3672f, 0.2852f, -0.3228f, 0.0122f, 0.0000f, 0.0000f, // phase 31 + 0.0132f, -0.3394f, 0.3262f, 0.3262f, -0.3394f, 0.0132f, 0.0000f, 0.0000f, // phase 32 + 0.0122f, -0.3228f, 0.2852f, 0.3672f, -0.3555f, 0.0137f, 0.0000f, 0.0000f, // phase 33 + 0.0117f, -0.3066f, 0.2446f, 0.4072f, -0.3711f, 0.0142f, 0.0000f, 0.0000f, // phase 34 + 0.0107f, -0.2910f, 0.2041f, 0.4497f, -0.3887f, 0.0151f, 0.0000f, 0.0000f, // phase 35 + 0.0103f, -0.2754f, 0.1655f, 0.4883f, -0.4048f, 0.0161f, 0.0000f, 0.0000f, // phase 36 + 0.0098f, -0.2598f, 0.1255f, 0.5283f, -0.4199f, 0.0161f, 0.0000f, 0.0000f, // phase 37 + 0.0088f, -0.2446f, 0.0859f, 0.5693f, -0.4370f, 0.0171f, 0.0000f, 0.0000f, // phase 38 + 0.0083f, -0.2290f, 0.0479f, 0.6055f, -0.4507f, 0.0176f, 0.0000f, 0.0000f, // phase 39 + 0.0073f, -0.2144f, 0.0093f, 0.6460f, -0.4668f, 0.0186f, 0.0000f, 0.0000f, // phase 40 + 0.0068f, -0.1997f, -0.0288f, 0.6846f, -0.4819f, 0.0186f, 0.0000f, 0.0000f, // phase 41 + 0.0063f, -0.1865f, -0.0649f, 0.7231f, -0.4966f, 0.0190f, 0.0000f, 0.0000f, // phase 42 + 0.0059f, -0.1724f, -0.1021f, 0.7598f, -0.5107f, 0.0195f, 0.0000f, 0.0000f, // phase 43 + 0.0054f, -0.1587f, -0.1367f, 0.7944f, -0.5239f, 0.0195f, 0.0000f, 0.0000f, // phase 44 + 0.0049f, -0.1465f, -0.1709f, 0.8301f, -0.5371f, 0.0200f, 0.0000f, 0.0000f, // phase 45 + 0.0044f, -0.1343f, -0.2046f, 0.8643f, -0.5498f, 0.0205f, 0.0000f, 0.0000f, // phase 46 + 0.0039f, -0.1226f, -0.2368f, 0.8975f, -0.5620f, 0.0200f, 0.0000f, 0.0000f, // phase 47 + 0.0034f, -0.1104f, -0.2690f, 0.9292f, -0.5728f, 0.0200f, 0.0000f, 0.0000f, // phase 48 + 0.0029f, -0.1001f, -0.2988f, 0.9580f, -0.5820f, 0.0200f, 0.0000f, 0.0000f, // phase 49 + 0.0024f, -0.0898f, -0.3286f, 0.9893f, -0.5928f, 0.0200f, 0.0000f, 0.0000f, // phase 50 + 0.0020f, -0.0796f, -0.3574f, 1.0161f, -0.6006f, 0.0195f, 0.0000f, 0.0000f, // phase 51 + 0.0015f, -0.0698f, -0.3843f, 1.0405f, -0.6069f, 0.0190f, 0.0000f, 0.0000f, // phase 52 + 0.0015f, -0.0615f, -0.4102f, 1.0659f, -0.6138f, 0.0181f, 0.0000f, 0.0000f, // phase 53 + 0.0010f, -0.0532f, -0.4346f, 1.0879f, -0.6187f, 0.0176f, 0.0000f, 0.0000f, // phase 54 + 0.0010f, -0.0454f, -0.4570f, 1.1089f, -0.6235f, 0.0166f, 0.0000f, 0.0000f, // phase 55 + 0.0005f, -0.0386f, -0.4790f, 1.1274f, -0.6265f, 0.0156f, 0.0000f, 0.0000f, // phase 56 + 0.0005f, -0.0317f, -0.5005f, 1.1455f, -0.6284f, 0.0142f, 0.0000f, 0.0000f, // phase 57 + 0.0005f, -0.0259f, -0.5181f, 1.1582f, -0.6270f, 0.0122f, 0.0000f, 0.0000f, // phase 58 + 0.0005f, -0.0195f, -0.5352f, 1.1699f, -0.6265f, 0.0112f, 0.0000f, 0.0000f, // phase 59 + 0.0000f, -0.0151f, -0.5513f, 1.1802f, -0.6235f, 0.0093f, 0.0000f, 0.0000f, // phase 60 + 0.0000f, -0.0103f, -0.5659f, 1.1890f, -0.6196f, 0.0073f, 0.0000f, 0.0000f, // phase 61 + 0.0005f, -0.0068f, -0.5791f, 1.1958f, -0.6147f, 0.0049f, 0.0000f, 0.0000f, // phase 62 + 0.0000f, -0.0029f, -0.5903f, 1.1987f, -0.6084f, 0.0029f, 0.0000f, 0.0000f, // phase 63 +}; diff --git a/app/src/main/cpp/shaders/nis_luma.frag b/app/src/main/cpp/shaders/nis_luma.frag new file mode 100644 index 0000000000..b1bdbebcb7 --- /dev/null +++ b/app/src/main/cpp/shaders/nis_luma.frag @@ -0,0 +1,36 @@ +#version 450 + +// ============================================================================= +// NIS prepass for nis3.frag: the game image copied 1:1 with its NIS luma in +// alpha (the compositor never uses the alpha of these targets). nis3.frag then +// reads four luma texels per textureGather instead of computing luma for each +// of 36 fetches per output pixel. +// +// Runs at the game (input) resolution into a target of the same size, so the +// output pixel reads its input pixel 1:1 (texelFetch at gl_FragCoord). +// Luma weights = nis.frag getY() (NVIDIA NIS, SDR: BT.709). +// ============================================================================= + +// DD_HALF: colour and luma in mediump; the texel address from gl_FragCoord stays highp +// (no default mediump: a 16-bit gl_FragCoord rounds pixel centres past x = 1024, e.g. +// 1279.5 -> 1280, and texelFetch then reads the wrong or an outside texel). +#ifdef DD_HALF +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D InputTexture; + +layout(push_constant) uniform PC { + highp vec4 ndc; // quad NDC rect, consumed by upscale.vert (offset 0); full target +} pc; + +layout(location = 0) in highp vec2 fragTexCoord; +layout(location = 0) out BL_MP vec4 outColor; + +void main() { + highp ivec2 p = ivec2(gl_FragCoord.xy); + BL_MP vec3 c = texelFetch(InputTexture, p, 0).rgb; + outColor = vec4(c, 0.2126 * c.r + 0.7152 * c.g + 0.0722 * c.b); +} diff --git a/app/src/main/cpp/shaders/nis_luma_half_frag.h b/app/src/main/cpp/shaders/nis_luma_half_frag.h new file mode 100644 index 0000000000..f03f042715 --- /dev/null +++ b/app/src/main/cpp/shaders/nis_luma_half_frag.h @@ -0,0 +1,58 @@ + // 1116.2.0 + #pragma once +const uint32_t nis_luma_half_code[] = { + 0x07230203,0x00010000,0x0008000b,0x0000003e,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0008000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000000d,0x00000020,0x0000003d, + 0x00030010,0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004, + 0x6e69616d,0x00000000,0x00030005,0x00000009,0x00000070,0x00060005,0x0000000d,0x465f6c67, + 0x43676172,0x64726f6f,0x00000000,0x00030005,0x00000014,0x00000063,0x00060005,0x00000018, + 0x75706e49,0x78655474,0x65727574,0x00000000,0x00050005,0x00000020,0x4374756f,0x726f6c6f, + 0x00000000,0x00030005,0x00000039,0x00004350,0x00040006,0x00000039,0x00000000,0x0063646e, + 0x00030005,0x0000003b,0x00006370,0x00060005,0x0000003d,0x67617266,0x43786554,0x64726f6f, + 0x00000000,0x00040047,0x0000000d,0x0000000b,0x0000000f,0x00030047,0x00000014,0x00000000, + 0x00030047,0x00000018,0x00000000,0x00040047,0x00000018,0x00000021,0x00000000,0x00040047, + 0x00000018,0x00000022,0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001d, + 0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x00000020,0x00000000,0x00040047, + 0x00000020,0x0000001e,0x00000000,0x00030047,0x00000021,0x00000000,0x00030047,0x00000027, + 0x00000000,0x00030047,0x00000028,0x00000000,0x00030047,0x0000002c,0x00000000,0x00030047, + 0x0000002d,0x00000000,0x00030047,0x0000002e,0x00000000,0x00030047,0x00000032,0x00000000, + 0x00030047,0x00000033,0x00000000,0x00030047,0x00000034,0x00000000,0x00030047,0x00000035, + 0x00000000,0x00030047,0x00000036,0x00000000,0x00030047,0x00000037,0x00000000,0x00030047, + 0x00000038,0x00000000,0x00030047,0x00000039,0x00000002,0x00050048,0x00000039,0x00000000, + 0x00000023,0x00000000,0x00040047,0x0000003d,0x0000001e,0x00000000,0x00020013,0x00000002, + 0x00030021,0x00000003,0x00000002,0x00040015,0x00000006,0x00000020,0x00000001,0x00040017, + 0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00030016, + 0x0000000a,0x00000020,0x00040017,0x0000000b,0x0000000a,0x00000004,0x00040020,0x0000000c, + 0x00000001,0x0000000b,0x0004003b,0x0000000c,0x0000000d,0x00000001,0x00040017,0x0000000e, + 0x0000000a,0x00000002,0x00040017,0x00000012,0x0000000a,0x00000003,0x00040020,0x00000013, + 0x00000007,0x00000012,0x00090019,0x00000015,0x0000000a,0x00000001,0x00000000,0x00000000, + 0x00000000,0x00000001,0x00000000,0x0003001b,0x00000016,0x00000015,0x00040020,0x00000017, + 0x00000000,0x00000016,0x0004003b,0x00000017,0x00000018,0x00000000,0x0004002b,0x00000006, + 0x0000001b,0x00000000,0x00040020,0x0000001f,0x00000003,0x0000000b,0x0004003b,0x0000001f, + 0x00000020,0x00000003,0x0004002b,0x0000000a,0x00000022,0x3e59b3d0,0x00040015,0x00000023, + 0x00000020,0x00000000,0x0004002b,0x00000023,0x00000024,0x00000000,0x00040020,0x00000025, + 0x00000007,0x0000000a,0x0004002b,0x0000000a,0x00000029,0x3f371759,0x0004002b,0x00000023, + 0x0000002a,0x00000001,0x0004002b,0x0000000a,0x0000002f,0x3d93dd98,0x0004002b,0x00000023, + 0x00000030,0x00000002,0x0003001e,0x00000039,0x0000000b,0x00040020,0x0000003a,0x00000009, + 0x00000039,0x0004003b,0x0000003a,0x0000003b,0x00000009,0x00040020,0x0000003c,0x00000001, + 0x0000000e,0x0004003b,0x0000003c,0x0000003d,0x00000001,0x00050036,0x00000002,0x00000004, + 0x00000000,0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007, + 0x0004003b,0x00000013,0x00000014,0x00000007,0x0004003d,0x0000000b,0x0000000f,0x0000000d, + 0x0007004f,0x0000000e,0x00000010,0x0000000f,0x0000000f,0x00000000,0x00000001,0x0004006e, + 0x00000007,0x00000011,0x00000010,0x0003003e,0x00000009,0x00000011,0x0004003d,0x00000016, + 0x00000019,0x00000018,0x0004003d,0x00000007,0x0000001a,0x00000009,0x00040064,0x00000015, + 0x0000001c,0x00000019,0x0007005f,0x0000000b,0x0000001d,0x0000001c,0x0000001a,0x00000002, + 0x0000001b,0x0008004f,0x00000012,0x0000001e,0x0000001d,0x0000001d,0x00000000,0x00000001, + 0x00000002,0x0003003e,0x00000014,0x0000001e,0x0004003d,0x00000012,0x00000021,0x00000014, + 0x00050041,0x00000025,0x00000026,0x00000014,0x00000024,0x0004003d,0x0000000a,0x00000027, + 0x00000026,0x00050085,0x0000000a,0x00000028,0x00000022,0x00000027,0x00050041,0x00000025, + 0x0000002b,0x00000014,0x0000002a,0x0004003d,0x0000000a,0x0000002c,0x0000002b,0x00050085, + 0x0000000a,0x0000002d,0x00000029,0x0000002c,0x00050081,0x0000000a,0x0000002e,0x00000028, + 0x0000002d,0x00050041,0x00000025,0x00000031,0x00000014,0x00000030,0x0004003d,0x0000000a, + 0x00000032,0x00000031,0x00050085,0x0000000a,0x00000033,0x0000002f,0x00000032,0x00050081, + 0x0000000a,0x00000034,0x0000002e,0x00000033,0x00050051,0x0000000a,0x00000035,0x00000021, + 0x00000000,0x00050051,0x0000000a,0x00000036,0x00000021,0x00000001,0x00050051,0x0000000a, + 0x00000037,0x00000021,0x00000002,0x00070050,0x0000000b,0x00000038,0x00000035,0x00000036, + 0x00000037,0x00000034,0x0003003e,0x00000020,0x00000038,0x000100fd,0x00010038 +}; diff --git a/app/src/main/cpp/shaders/sgsr.frag b/app/src/main/cpp/shaders/sgsr.frag index 5373bf361c..bd273e9ed7 100644 --- a/app/src/main/cpp/shaders/sgsr.frag +++ b/app/src/main/cpp/shaders/sgsr.frag @@ -17,15 +17,25 @@ // destination rect = normalised output position = normalised source position) // ============================================================================= -layout(binding = 0) uniform sampler2D ps0; +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in Qualcomm's +// reference; positions and texture coordinates stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D ps0; layout(push_constant) uniform PC { - vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) - vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels + highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) + highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels float EdgeSharpness; // driven by the "Sharpness" slider (default 2.0) } pc; -layout(location = 0) in vec2 fragTexCoord; +layout(location = 0) in highp vec2 fragTexCoord; layout(location = 0) out vec4 out_Target0; const float EdgeThreshold = 8.0 / 255.0; @@ -44,15 +54,15 @@ vec2 weightY(float dx, float dy, float c, float std) { } void main() { - vec4 ViewportInfo = pc.ViewportInfo; - vec2 uv = fragTexCoord; + highp vec4 ViewportInfo = pc.ViewportInfo; + highp vec2 uv = fragTexCoord; vec4 color; color.xyz = textureLod(ps0, uv, 0.0).xyz; - vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5)); - vec2 imgCoordPixel = floor(imgCoord); - vec2 coord = (imgCoordPixel * ViewportInfo.xy); + highp vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5)); + highp vec2 imgCoordPixel = floor(imgCoord); + highp vec2 coord = (imgCoordPixel * ViewportInfo.xy); vec2 pl = (imgCoord + (-imgCoordPixel)); vec4 left = textureGather(ps0, coord, 1); diff --git a/app/src/main/cpp/shaders/sgsr_half_frag.h b/app/src/main/cpp/shaders/sgsr_half_frag.h new file mode 100644 index 0000000000..12438b654b --- /dev/null +++ b/app/src/main/cpp/shaders/sgsr_half_frag.h @@ -0,0 +1,530 @@ + // 1116.2.0 + #pragma once +const uint32_t sgsr_half_code[] = { + 0x07230203,0x00010000,0x0008000b,0x00000216,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x00000051,0x00000214,0x00030010, + 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, + 0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000, + 0x00030005,0x00000009,0x00000078,0x00080005,0x00000012,0x67696577,0x28597468,0x663b3166, + 0x31663b31,0x3b31663b,0x00000000,0x00030005,0x0000000e,0x00007864,0x00030005,0x0000000f, + 0x00007964,0x00030005,0x00000010,0x00000063,0x00030005,0x00000011,0x00647473,0x00030005, + 0x00000014,0x00004177,0x00030005,0x00000018,0x00004277,0x00030005,0x00000026,0x00000078, + 0x00030005,0x00000038,0x00000077,0x00040005,0x00000039,0x61726170,0x0000006d,0x00060005, + 0x00000045,0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00030005,0x00000046,0x00004350, + 0x00040006,0x00000046,0x00000000,0x0063646e,0x00070006,0x00000046,0x00000001,0x77656956, + 0x74726f70,0x6f666e49,0x00000000,0x00070006,0x00000046,0x00000002,0x65676445,0x72616853, + 0x73656e70,0x00000073,0x00030005,0x00000048,0x00006370,0x00030005,0x0000004f,0x00007675, + 0x00060005,0x00000051,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x00000053, + 0x6f6c6f63,0x00000072,0x00030005,0x00000057,0x00307370,0x00050005,0x00000067,0x43676d69, + 0x64726f6f,0x00000000,0x00060005,0x00000070,0x43676d69,0x64726f6f,0x65786950,0x0000006c, + 0x00040005,0x00000073,0x726f6f63,0x00000064,0x00030005,0x00000078,0x00006c70,0x00040005, + 0x0000007d,0x7466656c,0x00000000,0x00050005,0x00000081,0x65676465,0x65746f56,0x00000000, + 0x00040005,0x000000a2,0x68676972,0x00000074,0x00040005,0x000000aa,0x6f447075,0x00006e77, + 0x00040005,0x000000c5,0x6e61656d,0x00000000,0x00030005,0x000000e4,0x006d7573,0x00030005, + 0x00000114,0x00647473,0x00030005,0x00000118,0x00595761,0x00040005,0x0000011c,0x61726170, + 0x0000006d,0x00040005,0x0000011f,0x61726170,0x0000006d,0x00040005,0x00000120,0x61726170, + 0x0000006d,0x00040005,0x00000123,0x61726170,0x0000006d,0x00040005,0x0000012c,0x61726170, + 0x0000006d,0x00040005,0x0000012d,0x61726170,0x0000006d,0x00040005,0x0000012e,0x61726170, + 0x0000006d,0x00040005,0x00000131,0x61726170,0x0000006d,0x00040005,0x0000013d,0x61726170, + 0x0000006d,0x00040005,0x0000013e,0x61726170,0x0000006d,0x00040005,0x0000013f,0x61726170, + 0x0000006d,0x00040005,0x00000142,0x61726170,0x0000006d,0x00040005,0x0000014a,0x61726170, + 0x0000006d,0x00040005,0x0000014d,0x61726170,0x0000006d,0x00040005,0x0000014e,0x61726170, + 0x0000006d,0x00040005,0x00000151,0x61726170,0x0000006d,0x00040005,0x0000015c,0x61726170, + 0x0000006d,0x00040005,0x0000015d,0x61726170,0x0000006d,0x00040005,0x0000015e,0x61726170, + 0x0000006d,0x00040005,0x00000161,0x61726170,0x0000006d,0x00040005,0x00000169,0x61726170, + 0x0000006d,0x00040005,0x0000016c,0x61726170,0x0000006d,0x00040005,0x0000016d,0x61726170, + 0x0000006d,0x00040005,0x00000170,0x61726170,0x0000006d,0x00040005,0x00000175,0x61726170, + 0x0000006d,0x00040005,0x00000178,0x61726170,0x0000006d,0x00040005,0x0000017b,0x61726170, + 0x0000006d,0x00040005,0x0000017e,0x61726170,0x0000006d,0x00040005,0x00000186,0x61726170, + 0x0000006d,0x00040005,0x00000187,0x61726170,0x0000006d,0x00040005,0x0000018a,0x61726170, + 0x0000006d,0x00040005,0x0000018d,0x61726170,0x0000006d,0x00040005,0x00000198,0x61726170, + 0x0000006d,0x00040005,0x00000199,0x61726170,0x0000006d,0x00040005,0x0000019a,0x61726170, + 0x0000006d,0x00040005,0x0000019d,0x61726170,0x0000006d,0x00040005,0x000001a8,0x61726170, + 0x0000006d,0x00040005,0x000001a9,0x61726170,0x0000006d,0x00040005,0x000001aa,0x61726170, + 0x0000006d,0x00040005,0x000001ad,0x61726170,0x0000006d,0x00040005,0x000001b5,0x61726170, + 0x0000006d,0x00040005,0x000001b6,0x61726170,0x0000006d,0x00040005,0x000001b9,0x61726170, + 0x0000006d,0x00040005,0x000001bc,0x61726170,0x0000006d,0x00040005,0x000001c4,0x61726170, + 0x0000006d,0x00040005,0x000001c5,0x61726170,0x0000006d,0x00040005,0x000001c8,0x61726170, + 0x0000006d,0x00040005,0x000001cb,0x61726170,0x0000006d,0x00040005,0x000001d0,0x616e6966, + 0x0000596c,0x00040005,0x000001d6,0x5978616d,0x00000000,0x00040005,0x000001e2,0x596e696d, + 0x00000000,0x00040005,0x000001f7,0x746c6564,0x00005961,0x00050005,0x00000214,0x5f74756f, + 0x67726154,0x00307465,0x00030047,0x00000009,0x00000000,0x00030047,0x0000000a,0x00000000, + 0x00030047,0x0000000e,0x00000000,0x00030047,0x0000000f,0x00000000,0x00030047,0x00000010, + 0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,0x00000012,0x00000000,0x00030047, + 0x00000014,0x00000000,0x00030047,0x00000015,0x00000000,0x00030047,0x00000017,0x00000000, + 0x00030047,0x00000018,0x00000000,0x00030047,0x00000019,0x00000000,0x00030047,0x0000001a, + 0x00000000,0x00030047,0x0000001b,0x00000000,0x00030047,0x0000001c,0x00000000,0x00030047, + 0x0000001d,0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x0000001f,0x00000000, + 0x00030047,0x00000020,0x00000000,0x00030047,0x00000021,0x00000000,0x00030047,0x00000022, + 0x00000000,0x00030047,0x00000023,0x00000000,0x00030047,0x00000026,0x00000000,0x00030047, + 0x00000027,0x00000000,0x00030047,0x00000028,0x00000000,0x00030047,0x00000029,0x00000000, + 0x00030047,0x0000002a,0x00000000,0x00030047,0x0000002b,0x00000000,0x00030047,0x0000002c, + 0x00000000,0x00030047,0x0000002d,0x00000000,0x00030047,0x0000002f,0x00000000,0x00030047, + 0x00000030,0x00000000,0x00030047,0x00000031,0x00000000,0x00030047,0x00000032,0x00000000, + 0x00030047,0x00000033,0x00000000,0x00030047,0x00000036,0x00000000,0x00030047,0x00000037, + 0x00000000,0x00030047,0x00000038,0x00000000,0x00030047,0x00000039,0x00000000,0x00030047, + 0x0000003a,0x00000000,0x00030047,0x0000003b,0x00000000,0x00030047,0x0000003c,0x00000000, + 0x00030047,0x0000003d,0x00000000,0x00030047,0x0000003e,0x00000000,0x00030047,0x0000003f, + 0x00000000,0x00030047,0x00000040,0x00000000,0x00030047,0x00000046,0x00000002,0x00050048, + 0x00000046,0x00000000,0x00000023,0x00000000,0x00050048,0x00000046,0x00000001,0x00000023, + 0x00000010,0x00040048,0x00000046,0x00000002,0x00000000,0x00050048,0x00000046,0x00000002, + 0x00000023,0x00000020,0x00040047,0x00000051,0x0000001e,0x00000000,0x00030047,0x00000053, + 0x00000000,0x00030047,0x00000057,0x00000000,0x00040047,0x00000057,0x00000021,0x00000000, + 0x00040047,0x00000057,0x00000022,0x00000000,0x00030047,0x00000058,0x00000000,0x00030047, + 0x0000005a,0x00000000,0x00030047,0x0000005c,0x00000000,0x00030047,0x00000078,0x00000000, + 0x00030047,0x0000007d,0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x00000080, + 0x00000000,0x00030047,0x00000081,0x00000000,0x00030047,0x00000083,0x00000000,0x00030047, + 0x00000085,0x00000000,0x00030047,0x00000086,0x00000000,0x00030047,0x00000087,0x00000000, + 0x00030047,0x00000089,0x00000000,0x00030047,0x0000008b,0x00000000,0x00030047,0x0000008c, + 0x00000000,0x00030047,0x0000008d,0x00000000,0x00030047,0x0000008e,0x00000000,0x00030047, + 0x00000090,0x00000000,0x00030047,0x00000092,0x00000000,0x00030047,0x00000093,0x00000000, + 0x00030047,0x00000094,0x00000000,0x00030047,0x00000095,0x00000000,0x00030047,0x00000096, + 0x00000000,0x00030047,0x00000097,0x00000000,0x00030047,0x000000a2,0x00000000,0x00030047, + 0x000000a3,0x00000000,0x00030047,0x000000a9,0x00000000,0x00030047,0x000000aa,0x00000000, + 0x00030047,0x000000ab,0x00000000,0x00030047,0x000000b2,0x00000000,0x00030047,0x000000b3, + 0x00000000,0x00030047,0x000000b8,0x00000000,0x00030047,0x000000be,0x00000000,0x00030047, + 0x000000bf,0x00000000,0x00030047,0x000000c5,0x00000000,0x00030047,0x000000c7,0x00000000, + 0x00030047,0x000000c9,0x00000000,0x00030047,0x000000ca,0x00000000,0x00030047,0x000000cc, + 0x00000000,0x00030047,0x000000cd,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047, + 0x000000d0,0x00000000,0x00030047,0x000000d2,0x00000000,0x00030047,0x000000d3,0x00000000, + 0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5,0x00000000,0x00030047,0x000000d6, + 0x00000000,0x00030047,0x000000d7,0x00000000,0x00030047,0x000000d8,0x00000000,0x00030047, + 0x000000d9,0x00000000,0x00030047,0x000000da,0x00000000,0x00030047,0x000000db,0x00000000, + 0x00030047,0x000000dc,0x00000000,0x00030047,0x000000dd,0x00000000,0x00030047,0x000000de, + 0x00000000,0x00030047,0x000000e0,0x00000000,0x00030047,0x000000e1,0x00000000,0x00030047, + 0x000000e2,0x00000000,0x00030047,0x000000e4,0x00000000,0x00030047,0x000000e6,0x00000000, + 0x00030047,0x000000e7,0x00000000,0x00030047,0x000000e9,0x00000000,0x00030047,0x000000ea, + 0x00000000,0x00030047,0x000000eb,0x00000000,0x00030047,0x000000ed,0x00000000,0x00030047, + 0x000000ee,0x00000000,0x00030047,0x000000ef,0x00000000,0x00030047,0x000000f1,0x00000000, + 0x00030047,0x000000f2,0x00000000,0x00030047,0x000000f3,0x00000000,0x00030047,0x000000f5, + 0x00000000,0x00030047,0x000000f6,0x00000000,0x00030047,0x000000f8,0x00000000,0x00030047, + 0x000000f9,0x00000000,0x00030047,0x000000fa,0x00000000,0x00030047,0x000000fc,0x00000000, + 0x00030047,0x000000fd,0x00000000,0x00030047,0x000000fe,0x00000000,0x00030047,0x00000100, + 0x00000000,0x00030047,0x00000101,0x00000000,0x00030047,0x00000102,0x00000000,0x00030047, + 0x00000103,0x00000000,0x00030047,0x00000105,0x00000000,0x00030047,0x00000106,0x00000000, + 0x00030047,0x00000108,0x00000000,0x00030047,0x00000109,0x00000000,0x00030047,0x0000010a, + 0x00000000,0x00030047,0x0000010c,0x00000000,0x00030047,0x0000010d,0x00000000,0x00030047, + 0x0000010e,0x00000000,0x00030047,0x00000110,0x00000000,0x00030047,0x00000111,0x00000000, + 0x00030047,0x00000112,0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114, + 0x00000000,0x00030047,0x00000116,0x00000000,0x00030047,0x00000117,0x00000000,0x00030047, + 0x00000118,0x00000000,0x00030047,0x0000011a,0x00000000,0x00030047,0x0000011b,0x00000000, + 0x00030047,0x0000011c,0x00000000,0x00030047,0x0000011e,0x00000000,0x00030047,0x0000011f, + 0x00000000,0x00030047,0x00000120,0x00000000,0x00030047,0x00000122,0x00000000,0x00030047, + 0x00000123,0x00000000,0x00030047,0x00000124,0x00000000,0x00030047,0x00000125,0x00000000, + 0x00030047,0x00000127,0x00000000,0x00030047,0x00000128,0x00000000,0x00030047,0x0000012a, + 0x00000000,0x00030047,0x0000012b,0x00000000,0x00030047,0x0000012c,0x00000000,0x00030047, + 0x0000012d,0x00000000,0x00030047,0x0000012e,0x00000000,0x00030047,0x00000130,0x00000000, + 0x00030047,0x00000131,0x00000000,0x00030047,0x00000132,0x00000000,0x00030047,0x00000133, + 0x00000000,0x00030047,0x00000134,0x00000000,0x00030047,0x00000135,0x00000000,0x00030047, + 0x00000137,0x00000000,0x00030047,0x00000138,0x00000000,0x00030047,0x0000013a,0x00000000, + 0x00030047,0x0000013c,0x00000000,0x00030047,0x0000013d,0x00000000,0x00030047,0x0000013e, + 0x00000000,0x00030047,0x0000013f,0x00000000,0x00030047,0x00000141,0x00000000,0x00030047, + 0x00000142,0x00000000,0x00030047,0x00000143,0x00000000,0x00030047,0x00000144,0x00000000, + 0x00030047,0x00000145,0x00000000,0x00030047,0x00000146,0x00000000,0x00030047,0x00000148, + 0x00000000,0x00030047,0x00000149,0x00000000,0x00030047,0x0000014a,0x00000000,0x00030047, + 0x0000014c,0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014e,0x00000000, + 0x00030047,0x00000150,0x00000000,0x00030047,0x00000151,0x00000000,0x00030047,0x00000152, + 0x00000000,0x00030047,0x00000153,0x00000000,0x00030047,0x00000154,0x00000000,0x00030047, + 0x00000155,0x00000000,0x00030047,0x00000157,0x00000000,0x00030047,0x00000158,0x00000000, + 0x00030047,0x0000015a,0x00000000,0x00030047,0x0000015b,0x00000000,0x00030047,0x0000015c, + 0x00000000,0x00030047,0x0000015d,0x00000000,0x00030047,0x0000015e,0x00000000,0x00030047, + 0x00000160,0x00000000,0x00030047,0x00000161,0x00000000,0x00030047,0x00000162,0x00000000, + 0x00030047,0x00000163,0x00000000,0x00030047,0x00000164,0x00000000,0x00030047,0x00000165, + 0x00000000,0x00030047,0x00000167,0x00000000,0x00030047,0x00000168,0x00000000,0x00030047, + 0x00000169,0x00000000,0x00030047,0x0000016b,0x00000000,0x00030047,0x0000016c,0x00000000, + 0x00030047,0x0000016d,0x00000000,0x00030047,0x0000016f,0x00000000,0x00030047,0x00000170, + 0x00000000,0x00030047,0x00000171,0x00000000,0x00030047,0x00000172,0x00000000,0x00030047, + 0x00000173,0x00000000,0x00030047,0x00000174,0x00000000,0x00030047,0x00000175,0x00000000, + 0x00030047,0x00000177,0x00000000,0x00030047,0x00000178,0x00000000,0x00030047,0x0000017a, + 0x00000000,0x00030047,0x0000017b,0x00000000,0x00030047,0x0000017d,0x00000000,0x00030047, + 0x0000017e,0x00000000,0x00030047,0x0000017f,0x00000000,0x00030047,0x00000180,0x00000000, + 0x00030047,0x00000181,0x00000000,0x00030047,0x00000182,0x00000000,0x00030047,0x00000184, + 0x00000000,0x00030047,0x00000185,0x00000000,0x00030047,0x00000186,0x00000000,0x00030047, + 0x00000187,0x00000000,0x00030047,0x00000189,0x00000000,0x00030047,0x0000018a,0x00000000, + 0x00030047,0x0000018c,0x00000000,0x00030047,0x0000018d,0x00000000,0x00030047,0x0000018e, + 0x00000000,0x00030047,0x0000018f,0x00000000,0x00030047,0x00000190,0x00000000,0x00030047, + 0x00000191,0x00000000,0x00030047,0x00000193,0x00000000,0x00030047,0x00000194,0x00000000, + 0x00030047,0x00000196,0x00000000,0x00030047,0x00000197,0x00000000,0x00030047,0x00000198, + 0x00000000,0x00030047,0x00000199,0x00000000,0x00030047,0x0000019a,0x00000000,0x00030047, + 0x0000019c,0x00000000,0x00030047,0x0000019d,0x00000000,0x00030047,0x0000019e,0x00000000, + 0x00030047,0x0000019f,0x00000000,0x00030047,0x000001a0,0x00000000,0x00030047,0x000001a1, + 0x00000000,0x00030047,0x000001a3,0x00000000,0x00030047,0x000001a4,0x00000000,0x00030047, + 0x000001a6,0x00000000,0x00030047,0x000001a7,0x00000000,0x00030047,0x000001a8,0x00000000, + 0x00030047,0x000001a9,0x00000000,0x00030047,0x000001aa,0x00000000,0x00030047,0x000001ac, + 0x00000000,0x00030047,0x000001ad,0x00000000,0x00030047,0x000001ae,0x00000000,0x00030047, + 0x000001af,0x00000000,0x00030047,0x000001b0,0x00000000,0x00030047,0x000001b1,0x00000000, + 0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4,0x00000000,0x00030047,0x000001b5, + 0x00000000,0x00030047,0x000001b6,0x00000000,0x00030047,0x000001b8,0x00000000,0x00030047, + 0x000001b9,0x00000000,0x00030047,0x000001bb,0x00000000,0x00030047,0x000001bc,0x00000000, + 0x00030047,0x000001bd,0x00000000,0x00030047,0x000001be,0x00000000,0x00030047,0x000001bf, + 0x00000000,0x00030047,0x000001c0,0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047, + 0x000001c3,0x00000000,0x00030047,0x000001c4,0x00000000,0x00030047,0x000001c5,0x00000000, + 0x00030047,0x000001c7,0x00000000,0x00030047,0x000001c8,0x00000000,0x00030047,0x000001ca, + 0x00000000,0x00030047,0x000001cb,0x00000000,0x00030047,0x000001cc,0x00000000,0x00030047, + 0x000001cd,0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047,0x000001cf,0x00000000, + 0x00030047,0x000001d0,0x00000000,0x00030047,0x000001d2,0x00000000,0x00030047,0x000001d4, + 0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d6,0x00000000,0x00030047, + 0x000001d8,0x00000000,0x00030047,0x000001da,0x00000000,0x00030047,0x000001db,0x00000000, + 0x00030047,0x000001dd,0x00000000,0x00030047,0x000001df,0x00000000,0x00030047,0x000001e0, + 0x00000000,0x00030047,0x000001e1,0x00000000,0x00030047,0x000001e2,0x00000000,0x00030047, + 0x000001e4,0x00000000,0x00030047,0x000001e6,0x00000000,0x00030047,0x000001e7,0x00000000, + 0x00030047,0x000001e9,0x00000000,0x00030047,0x000001eb,0x00000000,0x00030047,0x000001ec, + 0x00000000,0x00030047,0x000001ed,0x00000000,0x00030047,0x000001f1,0x00000000,0x00030047, + 0x000001f2,0x00000000,0x00030047,0x000001f3,0x00000000,0x00030047,0x000001f4,0x00000000, + 0x00030047,0x000001f5,0x00000000,0x00030047,0x000001f6,0x00000000,0x00030047,0x000001f7, + 0x00000000,0x00030047,0x000001f8,0x00000000,0x00030047,0x000001fa,0x00000000,0x00030047, + 0x000001fb,0x00000000,0x00030047,0x000001fc,0x00000000,0x00030047,0x000001ff,0x00000000, + 0x00030047,0x00000201,0x00000000,0x00030047,0x00000202,0x00000000,0x00030047,0x00000203, + 0x00000000,0x00030047,0x00000204,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047, + 0x00000208,0x00000000,0x00030047,0x00000209,0x00000000,0x00030047,0x0000020a,0x00000000, + 0x00030047,0x0000020d,0x00000000,0x00030047,0x0000020e,0x00000000,0x00030047,0x0000020f, + 0x00000000,0x00030047,0x00000210,0x00000000,0x00030047,0x00000214,0x00000000,0x00040047, + 0x00000214,0x0000001e,0x00000000,0x00030047,0x00000215,0x00000000,0x00020013,0x00000002, + 0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,0x00000007, + 0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,0x00040017,0x0000000c, + 0x00000006,0x00000002,0x00070021,0x0000000d,0x0000000c,0x00000007,0x00000007,0x00000007, + 0x00000007,0x0004002b,0x00000006,0x00000016,0x40800000,0x0004002b,0x00000006,0x0000002e, + 0x3f0ccccd,0x0004002b,0x00000006,0x00000034,0x00000000,0x0004002b,0x00000006,0x00000035, + 0x3f800000,0x00040017,0x00000043,0x00000006,0x00000004,0x00040020,0x00000044,0x00000007, + 0x00000043,0x0005001e,0x00000046,0x00000043,0x00000043,0x00000006,0x00040020,0x00000047, + 0x00000009,0x00000046,0x0004003b,0x00000047,0x00000048,0x00000009,0x00040015,0x00000049, + 0x00000020,0x00000001,0x0004002b,0x00000049,0x0000004a,0x00000001,0x00040020,0x0000004b, + 0x00000009,0x00000043,0x00040020,0x0000004e,0x00000007,0x0000000c,0x00040020,0x00000050, + 0x00000001,0x0000000c,0x0004003b,0x00000050,0x00000051,0x00000001,0x00090019,0x00000054, + 0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b, + 0x00000055,0x00000054,0x00040020,0x00000056,0x00000000,0x00000055,0x0004003b,0x00000056, + 0x00000057,0x00000000,0x00040017,0x0000005b,0x00000006,0x00000003,0x00040015,0x0000005d, + 0x00000020,0x00000000,0x0004002b,0x0000005d,0x0000005e,0x00000000,0x0004002b,0x0000005d, + 0x00000061,0x00000001,0x0004002b,0x0000005d,0x00000064,0x00000002,0x0004002b,0x00000006, + 0x0000006c,0xbf000000,0x0004002b,0x00000006,0x0000006d,0x3f000000,0x0005002c,0x0000000c, + 0x0000006e,0x0000006c,0x0000006d,0x0004002b,0x00000006,0x00000097,0x3d008081,0x00020014, + 0x00000098,0x0004002b,0x0000005d,0x000000c2,0x00000003,0x0004002b,0x00000006,0x000000d1, + 0x3e800000,0x0004002b,0x00000006,0x00000115,0x400ba2e8,0x0004002b,0x00000006,0x0000013b, + 0x40000000,0x0004002b,0x00000049,0x000001ee,0x00000002,0x00040020,0x000001ef,0x00000009, + 0x00000006,0x0004002b,0x00000006,0x000001fd,0xbdb8b8b9,0x0004002b,0x00000006,0x000001fe, + 0x3db8b8b9,0x00040020,0x00000213,0x00000003,0x00000043,0x0004003b,0x00000213,0x00000214, + 0x00000003,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,0x000200f8,0x00000005, + 0x0004003b,0x00000044,0x00000045,0x00000007,0x0004003b,0x0000004e,0x0000004f,0x00000007, + 0x0004003b,0x00000044,0x00000053,0x00000007,0x0004003b,0x0000004e,0x00000067,0x00000007, + 0x0004003b,0x0000004e,0x00000070,0x00000007,0x0004003b,0x0000004e,0x00000073,0x00000007, + 0x0004003b,0x0000004e,0x00000078,0x00000007,0x0004003b,0x00000044,0x0000007d,0x00000007, + 0x0004003b,0x00000007,0x00000081,0x00000007,0x0004003b,0x00000044,0x000000a2,0x00000007, + 0x0004003b,0x00000044,0x000000aa,0x00000007,0x0004003b,0x00000007,0x000000c5,0x00000007, + 0x0004003b,0x00000007,0x000000e4,0x00000007,0x0004003b,0x00000007,0x00000114,0x00000007, + 0x0004003b,0x0000004e,0x00000118,0x00000007,0x0004003b,0x00000007,0x0000011c,0x00000007, + 0x0004003b,0x00000007,0x0000011f,0x00000007,0x0004003b,0x00000007,0x00000120,0x00000007, + 0x0004003b,0x00000007,0x00000123,0x00000007,0x0004003b,0x00000007,0x0000012c,0x00000007, + 0x0004003b,0x00000007,0x0000012d,0x00000007,0x0004003b,0x00000007,0x0000012e,0x00000007, + 0x0004003b,0x00000007,0x00000131,0x00000007,0x0004003b,0x00000007,0x0000013d,0x00000007, + 0x0004003b,0x00000007,0x0000013e,0x00000007,0x0004003b,0x00000007,0x0000013f,0x00000007, + 0x0004003b,0x00000007,0x00000142,0x00000007,0x0004003b,0x00000007,0x0000014a,0x00000007, + 0x0004003b,0x00000007,0x0000014d,0x00000007,0x0004003b,0x00000007,0x0000014e,0x00000007, + 0x0004003b,0x00000007,0x00000151,0x00000007,0x0004003b,0x00000007,0x0000015c,0x00000007, + 0x0004003b,0x00000007,0x0000015d,0x00000007,0x0004003b,0x00000007,0x0000015e,0x00000007, + 0x0004003b,0x00000007,0x00000161,0x00000007,0x0004003b,0x00000007,0x00000169,0x00000007, + 0x0004003b,0x00000007,0x0000016c,0x00000007,0x0004003b,0x00000007,0x0000016d,0x00000007, + 0x0004003b,0x00000007,0x00000170,0x00000007,0x0004003b,0x00000007,0x00000175,0x00000007, + 0x0004003b,0x00000007,0x00000178,0x00000007,0x0004003b,0x00000007,0x0000017b,0x00000007, + 0x0004003b,0x00000007,0x0000017e,0x00000007,0x0004003b,0x00000007,0x00000186,0x00000007, + 0x0004003b,0x00000007,0x00000187,0x00000007,0x0004003b,0x00000007,0x0000018a,0x00000007, + 0x0004003b,0x00000007,0x0000018d,0x00000007,0x0004003b,0x00000007,0x00000198,0x00000007, + 0x0004003b,0x00000007,0x00000199,0x00000007,0x0004003b,0x00000007,0x0000019a,0x00000007, + 0x0004003b,0x00000007,0x0000019d,0x00000007,0x0004003b,0x00000007,0x000001a8,0x00000007, + 0x0004003b,0x00000007,0x000001a9,0x00000007,0x0004003b,0x00000007,0x000001aa,0x00000007, + 0x0004003b,0x00000007,0x000001ad,0x00000007,0x0004003b,0x00000007,0x000001b5,0x00000007, + 0x0004003b,0x00000007,0x000001b6,0x00000007,0x0004003b,0x00000007,0x000001b9,0x00000007, + 0x0004003b,0x00000007,0x000001bc,0x00000007,0x0004003b,0x00000007,0x000001c4,0x00000007, + 0x0004003b,0x00000007,0x000001c5,0x00000007,0x0004003b,0x00000007,0x000001c8,0x00000007, + 0x0004003b,0x00000007,0x000001cb,0x00000007,0x0004003b,0x00000007,0x000001d0,0x00000007, + 0x0004003b,0x00000007,0x000001d6,0x00000007,0x0004003b,0x00000007,0x000001e2,0x00000007, + 0x0004003b,0x00000007,0x000001f7,0x00000007,0x00050041,0x0000004b,0x0000004c,0x00000048, + 0x0000004a,0x0004003d,0x00000043,0x0000004d,0x0000004c,0x0003003e,0x00000045,0x0000004d, + 0x0004003d,0x0000000c,0x00000052,0x00000051,0x0003003e,0x0000004f,0x00000052,0x0004003d, + 0x00000055,0x00000058,0x00000057,0x0004003d,0x0000000c,0x00000059,0x0000004f,0x00070058, + 0x00000043,0x0000005a,0x00000058,0x00000059,0x00000002,0x00000034,0x0008004f,0x0000005b, + 0x0000005c,0x0000005a,0x0000005a,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007, + 0x0000005f,0x00000053,0x0000005e,0x00050051,0x00000006,0x00000060,0x0000005c,0x00000000, + 0x0003003e,0x0000005f,0x00000060,0x00050041,0x00000007,0x00000062,0x00000053,0x00000061, + 0x00050051,0x00000006,0x00000063,0x0000005c,0x00000001,0x0003003e,0x00000062,0x00000063, + 0x00050041,0x00000007,0x00000065,0x00000053,0x00000064,0x00050051,0x00000006,0x00000066, + 0x0000005c,0x00000002,0x0003003e,0x00000065,0x00000066,0x0004003d,0x0000000c,0x00000068, + 0x0000004f,0x0004003d,0x00000043,0x00000069,0x00000045,0x0007004f,0x0000000c,0x0000006a, + 0x00000069,0x00000069,0x00000002,0x00000003,0x00050085,0x0000000c,0x0000006b,0x00000068, + 0x0000006a,0x00050081,0x0000000c,0x0000006f,0x0000006b,0x0000006e,0x0003003e,0x00000067, + 0x0000006f,0x0004003d,0x0000000c,0x00000071,0x00000067,0x0006000c,0x0000000c,0x00000072, + 0x00000001,0x00000008,0x00000071,0x0003003e,0x00000070,0x00000072,0x0004003d,0x0000000c, + 0x00000074,0x00000070,0x0004003d,0x00000043,0x00000075,0x00000045,0x0007004f,0x0000000c, + 0x00000076,0x00000075,0x00000075,0x00000000,0x00000001,0x00050085,0x0000000c,0x00000077, + 0x00000074,0x00000076,0x0003003e,0x00000073,0x00000077,0x0004003d,0x0000000c,0x00000079, + 0x00000067,0x0004003d,0x0000000c,0x0000007a,0x00000070,0x0004007f,0x0000000c,0x0000007b, + 0x0000007a,0x00050081,0x0000000c,0x0000007c,0x00000079,0x0000007b,0x0003003e,0x00000078, + 0x0000007c,0x0004003d,0x00000055,0x0000007e,0x00000057,0x0004003d,0x0000000c,0x0000007f, + 0x00000073,0x00060060,0x00000043,0x00000080,0x0000007e,0x0000007f,0x0000004a,0x0003003e, + 0x0000007d,0x00000080,0x00050041,0x00000007,0x00000082,0x0000007d,0x00000064,0x0004003d, + 0x00000006,0x00000083,0x00000082,0x00050041,0x00000007,0x00000084,0x0000007d,0x00000061, + 0x0004003d,0x00000006,0x00000085,0x00000084,0x00050083,0x00000006,0x00000086,0x00000083, + 0x00000085,0x0006000c,0x00000006,0x00000087,0x00000001,0x00000004,0x00000086,0x00050041, + 0x00000007,0x00000088,0x00000053,0x00000061,0x0004003d,0x00000006,0x00000089,0x00000088, + 0x00050041,0x00000007,0x0000008a,0x0000007d,0x00000061,0x0004003d,0x00000006,0x0000008b, + 0x0000008a,0x00050083,0x00000006,0x0000008c,0x00000089,0x0000008b,0x0006000c,0x00000006, + 0x0000008d,0x00000001,0x00000004,0x0000008c,0x00050081,0x00000006,0x0000008e,0x00000087, + 0x0000008d,0x00050041,0x00000007,0x0000008f,0x00000053,0x00000061,0x0004003d,0x00000006, + 0x00000090,0x0000008f,0x00050041,0x00000007,0x00000091,0x0000007d,0x00000064,0x0004003d, + 0x00000006,0x00000092,0x00000091,0x00050083,0x00000006,0x00000093,0x00000090,0x00000092, + 0x0006000c,0x00000006,0x00000094,0x00000001,0x00000004,0x00000093,0x00050081,0x00000006, + 0x00000095,0x0000008e,0x00000094,0x0003003e,0x00000081,0x00000095,0x0004003d,0x00000006, + 0x00000096,0x00000081,0x000500ba,0x00000098,0x00000099,0x00000096,0x00000097,0x000300f7, + 0x0000009b,0x00000000,0x000400fa,0x00000099,0x0000009a,0x0000009b,0x000200f8,0x0000009a, + 0x00050041,0x00000007,0x0000009c,0x00000045,0x0000005e,0x0004003d,0x00000006,0x0000009d, + 0x0000009c,0x00050041,0x00000007,0x0000009e,0x00000073,0x0000005e,0x0004003d,0x00000006, + 0x0000009f,0x0000009e,0x00050081,0x00000006,0x000000a0,0x0000009f,0x0000009d,0x00050041, + 0x00000007,0x000000a1,0x00000073,0x0000005e,0x0003003e,0x000000a1,0x000000a0,0x0004003d, + 0x00000055,0x000000a3,0x00000057,0x0004003d,0x0000000c,0x000000a4,0x00000073,0x00050041, + 0x00000007,0x000000a5,0x00000045,0x0000005e,0x0004003d,0x00000006,0x000000a6,0x000000a5, + 0x00050050,0x0000000c,0x000000a7,0x000000a6,0x00000034,0x00050081,0x0000000c,0x000000a8, + 0x000000a4,0x000000a7,0x00060060,0x00000043,0x000000a9,0x000000a3,0x000000a8,0x0000004a, + 0x0003003e,0x000000a2,0x000000a9,0x0004003d,0x00000055,0x000000ab,0x00000057,0x0004003d, + 0x0000000c,0x000000ac,0x00000073,0x00050041,0x00000007,0x000000ad,0x00000045,0x00000061, + 0x0004003d,0x00000006,0x000000ae,0x000000ad,0x0004007f,0x00000006,0x000000af,0x000000ae, + 0x00050050,0x0000000c,0x000000b0,0x00000034,0x000000af,0x00050081,0x0000000c,0x000000b1, + 0x000000ac,0x000000b0,0x00060060,0x00000043,0x000000b2,0x000000ab,0x000000b1,0x0000004a, + 0x0007004f,0x0000000c,0x000000b3,0x000000b2,0x000000b2,0x00000003,0x00000002,0x00050041, + 0x00000007,0x000000b4,0x000000aa,0x0000005e,0x00050051,0x00000006,0x000000b5,0x000000b3, + 0x00000000,0x0003003e,0x000000b4,0x000000b5,0x00050041,0x00000007,0x000000b6,0x000000aa, + 0x00000061,0x00050051,0x00000006,0x000000b7,0x000000b3,0x00000001,0x0003003e,0x000000b6, + 0x000000b7,0x0004003d,0x00000055,0x000000b8,0x00000057,0x0004003d,0x0000000c,0x000000b9, + 0x00000073,0x00050041,0x00000007,0x000000ba,0x00000045,0x00000061,0x0004003d,0x00000006, + 0x000000bb,0x000000ba,0x00050050,0x0000000c,0x000000bc,0x00000034,0x000000bb,0x00050081, + 0x0000000c,0x000000bd,0x000000b9,0x000000bc,0x00060060,0x00000043,0x000000be,0x000000b8, + 0x000000bd,0x0000004a,0x0007004f,0x0000000c,0x000000bf,0x000000be,0x000000be,0x00000001, + 0x00000000,0x00050041,0x00000007,0x000000c0,0x000000aa,0x00000064,0x00050051,0x00000006, + 0x000000c1,0x000000bf,0x00000000,0x0003003e,0x000000c0,0x000000c1,0x00050041,0x00000007, + 0x000000c3,0x000000aa,0x000000c2,0x00050051,0x00000006,0x000000c4,0x000000bf,0x00000001, + 0x0003003e,0x000000c3,0x000000c4,0x00050041,0x00000007,0x000000c6,0x0000007d,0x00000061, + 0x0004003d,0x00000006,0x000000c7,0x000000c6,0x00050041,0x00000007,0x000000c8,0x0000007d, + 0x00000064,0x0004003d,0x00000006,0x000000c9,0x000000c8,0x00050081,0x00000006,0x000000ca, + 0x000000c7,0x000000c9,0x00050041,0x00000007,0x000000cb,0x000000a2,0x0000005e,0x0004003d, + 0x00000006,0x000000cc,0x000000cb,0x00050081,0x00000006,0x000000cd,0x000000ca,0x000000cc, + 0x00050041,0x00000007,0x000000ce,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000000cf, + 0x000000ce,0x00050081,0x00000006,0x000000d0,0x000000cd,0x000000cf,0x00050085,0x00000006, + 0x000000d2,0x000000d0,0x000000d1,0x0003003e,0x000000c5,0x000000d2,0x0004003d,0x00000043, + 0x000000d3,0x0000007d,0x0004003d,0x00000006,0x000000d4,0x000000c5,0x00070050,0x00000043, + 0x000000d5,0x000000d4,0x000000d4,0x000000d4,0x000000d4,0x00050083,0x00000043,0x000000d6, + 0x000000d3,0x000000d5,0x0003003e,0x0000007d,0x000000d6,0x0004003d,0x00000043,0x000000d7, + 0x000000a2,0x0004003d,0x00000006,0x000000d8,0x000000c5,0x00070050,0x00000043,0x000000d9, + 0x000000d8,0x000000d8,0x000000d8,0x000000d8,0x00050083,0x00000043,0x000000da,0x000000d7, + 0x000000d9,0x0003003e,0x000000a2,0x000000da,0x0004003d,0x00000043,0x000000db,0x000000aa, + 0x0004003d,0x00000006,0x000000dc,0x000000c5,0x00070050,0x00000043,0x000000dd,0x000000dc, + 0x000000dc,0x000000dc,0x000000dc,0x00050083,0x00000043,0x000000de,0x000000db,0x000000dd, + 0x0003003e,0x000000aa,0x000000de,0x00050041,0x00000007,0x000000df,0x00000053,0x00000061, + 0x0004003d,0x00000006,0x000000e0,0x000000df,0x0004003d,0x00000006,0x000000e1,0x000000c5, + 0x00050083,0x00000006,0x000000e2,0x000000e0,0x000000e1,0x00050041,0x00000007,0x000000e3, + 0x00000053,0x000000c2,0x0003003e,0x000000e3,0x000000e2,0x00050041,0x00000007,0x000000e5, + 0x0000007d,0x0000005e,0x0004003d,0x00000006,0x000000e6,0x000000e5,0x0006000c,0x00000006, + 0x000000e7,0x00000001,0x00000004,0x000000e6,0x00050041,0x00000007,0x000000e8,0x0000007d, + 0x00000061,0x0004003d,0x00000006,0x000000e9,0x000000e8,0x0006000c,0x00000006,0x000000ea, + 0x00000001,0x00000004,0x000000e9,0x00050081,0x00000006,0x000000eb,0x000000e7,0x000000ea, + 0x00050041,0x00000007,0x000000ec,0x0000007d,0x00000064,0x0004003d,0x00000006,0x000000ed, + 0x000000ec,0x0006000c,0x00000006,0x000000ee,0x00000001,0x00000004,0x000000ed,0x00050081, + 0x00000006,0x000000ef,0x000000eb,0x000000ee,0x00050041,0x00000007,0x000000f0,0x0000007d, + 0x000000c2,0x0004003d,0x00000006,0x000000f1,0x000000f0,0x0006000c,0x00000006,0x000000f2, + 0x00000001,0x00000004,0x000000f1,0x00050081,0x00000006,0x000000f3,0x000000ef,0x000000f2, + 0x00050041,0x00000007,0x000000f4,0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000000f5, + 0x000000f4,0x0006000c,0x00000006,0x000000f6,0x00000001,0x00000004,0x000000f5,0x00050041, + 0x00000007,0x000000f7,0x000000a2,0x00000061,0x0004003d,0x00000006,0x000000f8,0x000000f7, + 0x0006000c,0x00000006,0x000000f9,0x00000001,0x00000004,0x000000f8,0x00050081,0x00000006, + 0x000000fa,0x000000f6,0x000000f9,0x00050041,0x00000007,0x000000fb,0x000000a2,0x00000064, + 0x0004003d,0x00000006,0x000000fc,0x000000fb,0x0006000c,0x00000006,0x000000fd,0x00000001, + 0x00000004,0x000000fc,0x00050081,0x00000006,0x000000fe,0x000000fa,0x000000fd,0x00050041, + 0x00000007,0x000000ff,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x00000100,0x000000ff, + 0x0006000c,0x00000006,0x00000101,0x00000001,0x00000004,0x00000100,0x00050081,0x00000006, + 0x00000102,0x000000fe,0x00000101,0x00050081,0x00000006,0x00000103,0x000000f3,0x00000102, + 0x00050041,0x00000007,0x00000104,0x000000aa,0x0000005e,0x0004003d,0x00000006,0x00000105, + 0x00000104,0x0006000c,0x00000006,0x00000106,0x00000001,0x00000004,0x00000105,0x00050041, + 0x00000007,0x00000107,0x000000aa,0x00000061,0x0004003d,0x00000006,0x00000108,0x00000107, + 0x0006000c,0x00000006,0x00000109,0x00000001,0x00000004,0x00000108,0x00050081,0x00000006, + 0x0000010a,0x00000106,0x00000109,0x00050041,0x00000007,0x0000010b,0x000000aa,0x00000064, + 0x0004003d,0x00000006,0x0000010c,0x0000010b,0x0006000c,0x00000006,0x0000010d,0x00000001, + 0x00000004,0x0000010c,0x00050081,0x00000006,0x0000010e,0x0000010a,0x0000010d,0x00050041, + 0x00000007,0x0000010f,0x000000aa,0x000000c2,0x0004003d,0x00000006,0x00000110,0x0000010f, + 0x0006000c,0x00000006,0x00000111,0x00000001,0x00000004,0x00000110,0x00050081,0x00000006, + 0x00000112,0x0000010e,0x00000111,0x00050081,0x00000006,0x00000113,0x00000103,0x00000112, + 0x0003003e,0x000000e4,0x00000113,0x0004003d,0x00000006,0x00000116,0x000000e4,0x00050088, + 0x00000006,0x00000117,0x00000115,0x00000116,0x0003003e,0x00000114,0x00000117,0x00050041, + 0x00000007,0x00000119,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000011a,0x00000119, + 0x00050081,0x00000006,0x0000011b,0x0000011a,0x00000035,0x00050041,0x00000007,0x0000011d, + 0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000011e,0x0000011d,0x0003003e,0x0000011c, + 0x0000011e,0x0003003e,0x0000011f,0x0000011b,0x00050041,0x00000007,0x00000121,0x000000aa, + 0x0000005e,0x0004003d,0x00000006,0x00000122,0x00000121,0x0003003e,0x00000120,0x00000122, + 0x0004003d,0x00000006,0x00000124,0x00000114,0x0003003e,0x00000123,0x00000124,0x00080039, + 0x0000000c,0x00000125,0x00000012,0x0000011c,0x0000011f,0x00000120,0x00000123,0x0003003e, + 0x00000118,0x00000125,0x00050041,0x00000007,0x00000126,0x00000078,0x0000005e,0x0004003d, + 0x00000006,0x00000127,0x00000126,0x00050083,0x00000006,0x00000128,0x00000127,0x00000035, + 0x00050041,0x00000007,0x00000129,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000012a, + 0x00000129,0x00050081,0x00000006,0x0000012b,0x0000012a,0x00000035,0x0003003e,0x0000012c, + 0x00000128,0x0003003e,0x0000012d,0x0000012b,0x00050041,0x00000007,0x0000012f,0x000000aa, + 0x00000061,0x0004003d,0x00000006,0x00000130,0x0000012f,0x0003003e,0x0000012e,0x00000130, + 0x0004003d,0x00000006,0x00000132,0x00000114,0x0003003e,0x00000131,0x00000132,0x00080039, + 0x0000000c,0x00000133,0x00000012,0x0000012c,0x0000012d,0x0000012e,0x00000131,0x0004003d, + 0x0000000c,0x00000134,0x00000118,0x00050081,0x0000000c,0x00000135,0x00000134,0x00000133, + 0x0003003e,0x00000118,0x00000135,0x00050041,0x00000007,0x00000136,0x00000078,0x0000005e, + 0x0004003d,0x00000006,0x00000137,0x00000136,0x00050083,0x00000006,0x00000138,0x00000137, + 0x00000035,0x00050041,0x00000007,0x00000139,0x00000078,0x00000061,0x0004003d,0x00000006, + 0x0000013a,0x00000139,0x00050083,0x00000006,0x0000013c,0x0000013a,0x0000013b,0x0003003e, + 0x0000013d,0x00000138,0x0003003e,0x0000013e,0x0000013c,0x00050041,0x00000007,0x00000140, + 0x000000aa,0x00000064,0x0004003d,0x00000006,0x00000141,0x00000140,0x0003003e,0x0000013f, + 0x00000141,0x0004003d,0x00000006,0x00000143,0x00000114,0x0003003e,0x00000142,0x00000143, + 0x00080039,0x0000000c,0x00000144,0x00000012,0x0000013d,0x0000013e,0x0000013f,0x00000142, + 0x0004003d,0x0000000c,0x00000145,0x00000118,0x00050081,0x0000000c,0x00000146,0x00000145, + 0x00000144,0x0003003e,0x00000118,0x00000146,0x00050041,0x00000007,0x00000147,0x00000078, + 0x00000061,0x0004003d,0x00000006,0x00000148,0x00000147,0x00050083,0x00000006,0x00000149, + 0x00000148,0x0000013b,0x00050041,0x00000007,0x0000014b,0x00000078,0x0000005e,0x0004003d, + 0x00000006,0x0000014c,0x0000014b,0x0003003e,0x0000014a,0x0000014c,0x0003003e,0x0000014d, + 0x00000149,0x00050041,0x00000007,0x0000014f,0x000000aa,0x000000c2,0x0004003d,0x00000006, + 0x00000150,0x0000014f,0x0003003e,0x0000014e,0x00000150,0x0004003d,0x00000006,0x00000152, + 0x00000114,0x0003003e,0x00000151,0x00000152,0x00080039,0x0000000c,0x00000153,0x00000012, + 0x0000014a,0x0000014d,0x0000014e,0x00000151,0x0004003d,0x0000000c,0x00000154,0x00000118, + 0x00050081,0x0000000c,0x00000155,0x00000154,0x00000153,0x0003003e,0x00000118,0x00000155, + 0x00050041,0x00000007,0x00000156,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000157, + 0x00000156,0x00050081,0x00000006,0x00000158,0x00000157,0x00000035,0x00050041,0x00000007, + 0x00000159,0x00000078,0x00000061,0x0004003d,0x00000006,0x0000015a,0x00000159,0x00050083, + 0x00000006,0x0000015b,0x0000015a,0x00000035,0x0003003e,0x0000015c,0x00000158,0x0003003e, + 0x0000015d,0x0000015b,0x00050041,0x00000007,0x0000015f,0x0000007d,0x0000005e,0x0004003d, + 0x00000006,0x00000160,0x0000015f,0x0003003e,0x0000015e,0x00000160,0x0004003d,0x00000006, + 0x00000162,0x00000114,0x0003003e,0x00000161,0x00000162,0x00080039,0x0000000c,0x00000163, + 0x00000012,0x0000015c,0x0000015d,0x0000015e,0x00000161,0x0004003d,0x0000000c,0x00000164, + 0x00000118,0x00050081,0x0000000c,0x00000165,0x00000164,0x00000163,0x0003003e,0x00000118, + 0x00000165,0x00050041,0x00000007,0x00000166,0x00000078,0x00000061,0x0004003d,0x00000006, + 0x00000167,0x00000166,0x00050083,0x00000006,0x00000168,0x00000167,0x00000035,0x00050041, + 0x00000007,0x0000016a,0x00000078,0x0000005e,0x0004003d,0x00000006,0x0000016b,0x0000016a, + 0x0003003e,0x00000169,0x0000016b,0x0003003e,0x0000016c,0x00000168,0x00050041,0x00000007, + 0x0000016e,0x0000007d,0x00000061,0x0004003d,0x00000006,0x0000016f,0x0000016e,0x0003003e, + 0x0000016d,0x0000016f,0x0004003d,0x00000006,0x00000171,0x00000114,0x0003003e,0x00000170, + 0x00000171,0x00080039,0x0000000c,0x00000172,0x00000012,0x00000169,0x0000016c,0x0000016d, + 0x00000170,0x0004003d,0x0000000c,0x00000173,0x00000118,0x00050081,0x0000000c,0x00000174, + 0x00000173,0x00000172,0x0003003e,0x00000118,0x00000174,0x00050041,0x00000007,0x00000176, + 0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000177,0x00000176,0x0003003e,0x00000175, + 0x00000177,0x00050041,0x00000007,0x00000179,0x00000078,0x00000061,0x0004003d,0x00000006, + 0x0000017a,0x00000179,0x0003003e,0x00000178,0x0000017a,0x00050041,0x00000007,0x0000017c, + 0x0000007d,0x00000064,0x0004003d,0x00000006,0x0000017d,0x0000017c,0x0003003e,0x0000017b, + 0x0000017d,0x0004003d,0x00000006,0x0000017f,0x00000114,0x0003003e,0x0000017e,0x0000017f, + 0x00080039,0x0000000c,0x00000180,0x00000012,0x00000175,0x00000178,0x0000017b,0x0000017e, + 0x0004003d,0x0000000c,0x00000181,0x00000118,0x00050081,0x0000000c,0x00000182,0x00000181, + 0x00000180,0x0003003e,0x00000118,0x00000182,0x00050041,0x00000007,0x00000183,0x00000078, + 0x0000005e,0x0004003d,0x00000006,0x00000184,0x00000183,0x00050081,0x00000006,0x00000185, + 0x00000184,0x00000035,0x0003003e,0x00000186,0x00000185,0x00050041,0x00000007,0x00000188, + 0x00000078,0x00000061,0x0004003d,0x00000006,0x00000189,0x00000188,0x0003003e,0x00000187, + 0x00000189,0x00050041,0x00000007,0x0000018b,0x0000007d,0x000000c2,0x0004003d,0x00000006, + 0x0000018c,0x0000018b,0x0003003e,0x0000018a,0x0000018c,0x0004003d,0x00000006,0x0000018e, + 0x00000114,0x0003003e,0x0000018d,0x0000018e,0x00080039,0x0000000c,0x0000018f,0x00000012, + 0x00000186,0x00000187,0x0000018a,0x0000018d,0x0004003d,0x0000000c,0x00000190,0x00000118, + 0x00050081,0x0000000c,0x00000191,0x00000190,0x0000018f,0x0003003e,0x00000118,0x00000191, + 0x00050041,0x00000007,0x00000192,0x00000078,0x0000005e,0x0004003d,0x00000006,0x00000193, + 0x00000192,0x00050083,0x00000006,0x00000194,0x00000193,0x00000035,0x00050041,0x00000007, + 0x00000195,0x00000078,0x00000061,0x0004003d,0x00000006,0x00000196,0x00000195,0x00050083, + 0x00000006,0x00000197,0x00000196,0x00000035,0x0003003e,0x00000198,0x00000194,0x0003003e, + 0x00000199,0x00000197,0x00050041,0x00000007,0x0000019b,0x000000a2,0x0000005e,0x0004003d, + 0x00000006,0x0000019c,0x0000019b,0x0003003e,0x0000019a,0x0000019c,0x0004003d,0x00000006, + 0x0000019e,0x00000114,0x0003003e,0x0000019d,0x0000019e,0x00080039,0x0000000c,0x0000019f, + 0x00000012,0x00000198,0x00000199,0x0000019a,0x0000019d,0x0004003d,0x0000000c,0x000001a0, + 0x00000118,0x00050081,0x0000000c,0x000001a1,0x000001a0,0x0000019f,0x0003003e,0x00000118, + 0x000001a1,0x00050041,0x00000007,0x000001a2,0x00000078,0x0000005e,0x0004003d,0x00000006, + 0x000001a3,0x000001a2,0x00050083,0x00000006,0x000001a4,0x000001a3,0x0000013b,0x00050041, + 0x00000007,0x000001a5,0x00000078,0x00000061,0x0004003d,0x00000006,0x000001a6,0x000001a5, + 0x00050083,0x00000006,0x000001a7,0x000001a6,0x00000035,0x0003003e,0x000001a8,0x000001a4, + 0x0003003e,0x000001a9,0x000001a7,0x00050041,0x00000007,0x000001ab,0x000000a2,0x00000061, + 0x0004003d,0x00000006,0x000001ac,0x000001ab,0x0003003e,0x000001aa,0x000001ac,0x0004003d, + 0x00000006,0x000001ae,0x00000114,0x0003003e,0x000001ad,0x000001ae,0x00080039,0x0000000c, + 0x000001af,0x00000012,0x000001a8,0x000001a9,0x000001aa,0x000001ad,0x0004003d,0x0000000c, + 0x000001b0,0x00000118,0x00050081,0x0000000c,0x000001b1,0x000001b0,0x000001af,0x0003003e, + 0x00000118,0x000001b1,0x00050041,0x00000007,0x000001b2,0x00000078,0x0000005e,0x0004003d, + 0x00000006,0x000001b3,0x000001b2,0x00050083,0x00000006,0x000001b4,0x000001b3,0x0000013b, + 0x0003003e,0x000001b5,0x000001b4,0x00050041,0x00000007,0x000001b7,0x00000078,0x00000061, + 0x0004003d,0x00000006,0x000001b8,0x000001b7,0x0003003e,0x000001b6,0x000001b8,0x00050041, + 0x00000007,0x000001ba,0x000000a2,0x00000064,0x0004003d,0x00000006,0x000001bb,0x000001ba, + 0x0003003e,0x000001b9,0x000001bb,0x0004003d,0x00000006,0x000001bd,0x00000114,0x0003003e, + 0x000001bc,0x000001bd,0x00080039,0x0000000c,0x000001be,0x00000012,0x000001b5,0x000001b6, + 0x000001b9,0x000001bc,0x0004003d,0x0000000c,0x000001bf,0x00000118,0x00050081,0x0000000c, + 0x000001c0,0x000001bf,0x000001be,0x0003003e,0x00000118,0x000001c0,0x00050041,0x00000007, + 0x000001c1,0x00000078,0x0000005e,0x0004003d,0x00000006,0x000001c2,0x000001c1,0x00050083, + 0x00000006,0x000001c3,0x000001c2,0x00000035,0x0003003e,0x000001c4,0x000001c3,0x00050041, + 0x00000007,0x000001c6,0x00000078,0x00000061,0x0004003d,0x00000006,0x000001c7,0x000001c6, + 0x0003003e,0x000001c5,0x000001c7,0x00050041,0x00000007,0x000001c9,0x000000a2,0x000000c2, + 0x0004003d,0x00000006,0x000001ca,0x000001c9,0x0003003e,0x000001c8,0x000001ca,0x0004003d, + 0x00000006,0x000001cc,0x00000114,0x0003003e,0x000001cb,0x000001cc,0x00080039,0x0000000c, + 0x000001cd,0x00000012,0x000001c4,0x000001c5,0x000001c8,0x000001cb,0x0004003d,0x0000000c, + 0x000001ce,0x00000118,0x00050081,0x0000000c,0x000001cf,0x000001ce,0x000001cd,0x0003003e, + 0x00000118,0x000001cf,0x00050041,0x00000007,0x000001d1,0x00000118,0x00000061,0x0004003d, + 0x00000006,0x000001d2,0x000001d1,0x00050041,0x00000007,0x000001d3,0x00000118,0x0000005e, + 0x0004003d,0x00000006,0x000001d4,0x000001d3,0x00050088,0x00000006,0x000001d5,0x000001d2, + 0x000001d4,0x0003003e,0x000001d0,0x000001d5,0x00050041,0x00000007,0x000001d7,0x0000007d, + 0x00000061,0x0004003d,0x00000006,0x000001d8,0x000001d7,0x00050041,0x00000007,0x000001d9, + 0x0000007d,0x00000064,0x0004003d,0x00000006,0x000001da,0x000001d9,0x0007000c,0x00000006, + 0x000001db,0x00000001,0x00000028,0x000001d8,0x000001da,0x00050041,0x00000007,0x000001dc, + 0x000000a2,0x0000005e,0x0004003d,0x00000006,0x000001dd,0x000001dc,0x00050041,0x00000007, + 0x000001de,0x000000a2,0x000000c2,0x0004003d,0x00000006,0x000001df,0x000001de,0x0007000c, + 0x00000006,0x000001e0,0x00000001,0x00000028,0x000001dd,0x000001df,0x0007000c,0x00000006, + 0x000001e1,0x00000001,0x00000028,0x000001db,0x000001e0,0x0003003e,0x000001d6,0x000001e1, + 0x00050041,0x00000007,0x000001e3,0x0000007d,0x00000061,0x0004003d,0x00000006,0x000001e4, + 0x000001e3,0x00050041,0x00000007,0x000001e5,0x0000007d,0x00000064,0x0004003d,0x00000006, + 0x000001e6,0x000001e5,0x0007000c,0x00000006,0x000001e7,0x00000001,0x00000025,0x000001e4, + 0x000001e6,0x00050041,0x00000007,0x000001e8,0x000000a2,0x0000005e,0x0004003d,0x00000006, + 0x000001e9,0x000001e8,0x00050041,0x00000007,0x000001ea,0x000000a2,0x000000c2,0x0004003d, + 0x00000006,0x000001eb,0x000001ea,0x0007000c,0x00000006,0x000001ec,0x00000001,0x00000025, + 0x000001e9,0x000001eb,0x0007000c,0x00000006,0x000001ed,0x00000001,0x00000025,0x000001e7, + 0x000001ec,0x0003003e,0x000001e2,0x000001ed,0x00050041,0x000001ef,0x000001f0,0x00000048, + 0x000001ee,0x0004003d,0x00000006,0x000001f1,0x000001f0,0x0004003d,0x00000006,0x000001f2, + 0x000001d0,0x00050085,0x00000006,0x000001f3,0x000001f1,0x000001f2,0x0004003d,0x00000006, + 0x000001f4,0x000001e2,0x0004003d,0x00000006,0x000001f5,0x000001d6,0x0008000c,0x00000006, + 0x000001f6,0x00000001,0x0000002b,0x000001f3,0x000001f4,0x000001f5,0x0003003e,0x000001d0, + 0x000001f6,0x0004003d,0x00000006,0x000001f8,0x000001d0,0x00050041,0x00000007,0x000001f9, + 0x00000053,0x000000c2,0x0004003d,0x00000006,0x000001fa,0x000001f9,0x00050083,0x00000006, + 0x000001fb,0x000001f8,0x000001fa,0x0003003e,0x000001f7,0x000001fb,0x0004003d,0x00000006, + 0x000001fc,0x000001f7,0x0008000c,0x00000006,0x000001ff,0x00000001,0x0000002b,0x000001fc, + 0x000001fd,0x000001fe,0x0003003e,0x000001f7,0x000001ff,0x00050041,0x00000007,0x00000200, + 0x00000053,0x0000005e,0x0004003d,0x00000006,0x00000201,0x00000200,0x0004003d,0x00000006, + 0x00000202,0x000001f7,0x00050081,0x00000006,0x00000203,0x00000201,0x00000202,0x0008000c, + 0x00000006,0x00000204,0x00000001,0x0000002b,0x00000203,0x00000034,0x00000035,0x00050041, + 0x00000007,0x00000205,0x00000053,0x0000005e,0x0003003e,0x00000205,0x00000204,0x00050041, + 0x00000007,0x00000206,0x00000053,0x00000061,0x0004003d,0x00000006,0x00000207,0x00000206, + 0x0004003d,0x00000006,0x00000208,0x000001f7,0x00050081,0x00000006,0x00000209,0x00000207, + 0x00000208,0x0008000c,0x00000006,0x0000020a,0x00000001,0x0000002b,0x00000209,0x00000034, + 0x00000035,0x00050041,0x00000007,0x0000020b,0x00000053,0x00000061,0x0003003e,0x0000020b, + 0x0000020a,0x00050041,0x00000007,0x0000020c,0x00000053,0x00000064,0x0004003d,0x00000006, + 0x0000020d,0x0000020c,0x0004003d,0x00000006,0x0000020e,0x000001f7,0x00050081,0x00000006, + 0x0000020f,0x0000020d,0x0000020e,0x0008000c,0x00000006,0x00000210,0x00000001,0x0000002b, + 0x0000020f,0x00000034,0x00000035,0x00050041,0x00000007,0x00000211,0x00000053,0x00000064, + 0x0003003e,0x00000211,0x00000210,0x000200f9,0x0000009b,0x000200f8,0x0000009b,0x00050041, + 0x00000007,0x00000212,0x00000053,0x000000c2,0x0003003e,0x00000212,0x00000035,0x0004003d, + 0x00000043,0x00000215,0x00000053,0x0003003e,0x00000214,0x00000215,0x000100fd,0x00010038, + 0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009, + 0x000200f8,0x0000000b,0x0004003b,0x00000007,0x00000014,0x00000007,0x0004003b,0x00000007, + 0x00000018,0x00000007,0x0004003d,0x00000006,0x00000015,0x00000009,0x00050083,0x00000006, + 0x00000017,0x00000015,0x00000016,0x0003003e,0x00000014,0x00000017,0x0004003d,0x00000006, + 0x00000019,0x00000009,0x0004003d,0x00000006,0x0000001a,0x00000014,0x00050085,0x00000006, + 0x0000001b,0x00000019,0x0000001a,0x0004003d,0x00000006,0x0000001c,0x00000014,0x00050083, + 0x00000006,0x0000001d,0x0000001b,0x0000001c,0x0003003e,0x00000018,0x0000001d,0x0004003d, + 0x00000006,0x0000001e,0x00000014,0x0004003d,0x00000006,0x0000001f,0x00000014,0x00050085, + 0x00000006,0x00000020,0x0000001f,0x0000001e,0x0003003e,0x00000014,0x00000020,0x0004003d, + 0x00000006,0x00000021,0x00000018,0x0004003d,0x00000006,0x00000022,0x00000014,0x00050085, + 0x00000006,0x00000023,0x00000021,0x00000022,0x000200fe,0x00000023,0x00010038,0x00050036, + 0x0000000c,0x00000012,0x00000000,0x0000000d,0x00030037,0x00000007,0x0000000e,0x00030037, + 0x00000007,0x0000000f,0x00030037,0x00000007,0x00000010,0x00030037,0x00000007,0x00000011, + 0x000200f8,0x00000013,0x0004003b,0x00000007,0x00000026,0x00000007,0x0004003b,0x00000007, + 0x00000038,0x00000007,0x0004003b,0x00000007,0x00000039,0x00000007,0x0004003d,0x00000006, + 0x00000027,0x0000000e,0x0004003d,0x00000006,0x00000028,0x0000000e,0x00050085,0x00000006, + 0x00000029,0x00000027,0x00000028,0x0004003d,0x00000006,0x0000002a,0x0000000f,0x0004003d, + 0x00000006,0x0000002b,0x0000000f,0x00050085,0x00000006,0x0000002c,0x0000002a,0x0000002b, + 0x00050081,0x00000006,0x0000002d,0x00000029,0x0000002c,0x00050085,0x00000006,0x0000002f, + 0x0000002d,0x0000002e,0x0004003d,0x00000006,0x00000030,0x00000010,0x0006000c,0x00000006, + 0x00000031,0x00000001,0x00000004,0x00000030,0x0004003d,0x00000006,0x00000032,0x00000011, + 0x00050085,0x00000006,0x00000033,0x00000031,0x00000032,0x0008000c,0x00000006,0x00000036, + 0x00000001,0x0000002b,0x00000033,0x00000034,0x00000035,0x00050081,0x00000006,0x00000037, + 0x0000002f,0x00000036,0x0003003e,0x00000026,0x00000037,0x0004003d,0x00000006,0x0000003a, + 0x00000026,0x0003003e,0x00000039,0x0000003a,0x00050039,0x00000006,0x0000003b,0x0000000a, + 0x00000039,0x0003003e,0x00000038,0x0000003b,0x0004003d,0x00000006,0x0000003c,0x00000038, + 0x0004003d,0x00000006,0x0000003d,0x00000038,0x0004003d,0x00000006,0x0000003e,0x00000010, + 0x00050085,0x00000006,0x0000003f,0x0000003d,0x0000003e,0x00050050,0x0000000c,0x00000040, + 0x0000003c,0x0000003f,0x000200fe,0x00000040,0x00010038 +}; diff --git a/app/src/main/cpp/shaders/sgsr_quality.frag b/app/src/main/cpp/shaders/sgsr_quality.frag index 14e1522557..2cab792e5f 100644 --- a/app/src/main/cpp/shaders/sgsr_quality.frag +++ b/app/src/main/cpp/shaders/sgsr_quality.frag @@ -23,15 +23,25 @@ // - reuses window.vert (full-screen quad over the destination rect) // ============================================================================= -layout(binding = 0) uniform sampler2D ps0; +// DD_HALF is set for the *_half_frag.h build (gen_shaders.sh): colour and +// weight maths in mediump (RelaxedPrecision, 16-bit on Adreno) as in Qualcomm's +// reference; positions and texture coordinates stay highp. +#ifdef DD_HALF +precision mediump float; +#define BL_MP mediump +#else +#define BL_MP +#endif + +layout(binding = 0) uniform BL_MP sampler2D ps0; layout(push_constant) uniform PC { - vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) - vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels + highp vec4 ndc; // quad NDC rect, consumed by window.vert (offset 0) + highp vec4 ViewportInfo; // xy = 1/inputSize (texel size), zw = inputSize in pixels float EdgeSharpness; // driven by the "Sharpness" slider } pc; -layout(location = 0) in vec2 fragTexCoord; +layout(location = 0) in highp vec2 fragTexCoord; layout(location = 0) out vec4 out_Target0; const float EdgeThreshold = 8.0 / 255.0; @@ -60,20 +70,27 @@ vec2 edgeDirection(vec4 left, vec4 right) { vec2 delta; delta.x = RxLz + RwLy; delta.y = RxLz - RwLy; +#ifdef DD_HALF + // 3.07574e-05 is below the smallest normal 16-bit float (6.1e-05) and is + // flushed to 0 where denormals are not kept: 0 * inf on a flat row. Highp here. + highp vec2 dh = delta; + float lengthInv = inversesqrt((dh.x * dh.x + 3.075740e-05) + (dh.y * dh.y)); +#else float lengthInv = inversesqrt((delta.x * delta.x + 3.075740e-05) + (delta.y * delta.y)); +#endif return delta * lengthInv; } void main() { - vec4 ViewportInfo = pc.ViewportInfo; - vec2 uv = fragTexCoord; + highp vec4 ViewportInfo = pc.ViewportInfo; + highp vec2 uv = fragTexCoord; vec4 color; color.xyz = textureLod(ps0, uv, 0.0).xyz; - vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5)); - vec2 imgCoordPixel = floor(imgCoord); - vec2 coord = (imgCoordPixel * ViewportInfo.xy); + highp vec2 imgCoord = ((uv * ViewportInfo.zw) + vec2(-0.5, 0.5)); + highp vec2 imgCoordPixel = floor(imgCoord); + highp vec2 coord = (imgCoordPixel * ViewportInfo.xy); vec2 pl = (imgCoord + (-imgCoordPixel)); vec4 left = textureGather(ps0, coord, 1); @@ -96,7 +113,14 @@ void main() { + (((abs(right.x) + abs(right.y)) + abs(right.z)) + abs(right.w))) + (((abs(upDown.x) + abs(upDown.y)) + abs(upDown.z)) + abs(upDown.w))); float sumMean = 1.014185e+01 / sum; +#ifdef DD_HALF + // (10.14 / sum)^2 passes 65504 (16-bit max) once sum < ~0.04, and c * c * inf + // is NaN for c == 0. Capped: c * c * cap still saturates the clamp below for + // any c >= 1/255. + float std = min(sumMean * sumMean, 65504.0); +#else float std = sumMean * sumMean; +#endif vec3 data = vec3(std, edgeDirection(left, right)); diff --git a/app/src/main/cpp/shaders/sgsr_quality_half_frag.h b/app/src/main/cpp/shaders/sgsr_quality_half_frag.h new file mode 100644 index 0000000000..d715a73972 --- /dev/null +++ b/app/src/main/cpp/shaders/sgsr_quality_half_frag.h @@ -0,0 +1,612 @@ + // 1116.2.0 + #pragma once +const uint32_t sgsr_quality_half_code[] = { + 0x07230203,0x00010000,0x0008000b,0x0000026d,0x00000000,0x00020011,0x00000001,0x0006000b, + 0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001, + 0x0007000f,0x00000004,0x00000004,0x6e69616d,0x00000000,0x0000009e,0x0000026b,0x00030010, + 0x00000004,0x00000007,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d, + 0x00000000,0x00070005,0x0000000a,0x74736166,0x636e614c,0x32736f7a,0x3b316628,0x00000000, + 0x00030005,0x00000009,0x00000078,0x00080005,0x00000014,0x67696577,0x28597468,0x663b3166, + 0x31663b31,0x3366763b,0x0000003b,0x00030005,0x00000010,0x00007864,0x00030005,0x00000011, + 0x00007964,0x00030005,0x00000012,0x00000063,0x00040005,0x00000013,0x61746164,0x00000000, + 0x00080005,0x0000001b,0x65676465,0x65726944,0x6f697463,0x6676286e,0x66763b34,0x00003b34, + 0x00040005,0x00000019,0x7466656c,0x00000000,0x00040005,0x0000001a,0x68676972,0x00000074, + 0x00030005,0x0000001d,0x00004177,0x00030005,0x00000021,0x00004277,0x00030005,0x0000002f, + 0x00647473,0x00030005,0x00000035,0x00726964,0x00040005,0x00000038,0x65676465,0x00736944, + 0x00030005,0x00000043,0x00000078,0x00030005,0x0000005b,0x00000077,0x00040005,0x0000005c, + 0x61726170,0x0000006d,0x00040005,0x00000066,0x7a4c7852,0x00000000,0x00040005,0x0000006d, + 0x794c7752,0x00000000,0x00040005,0x00000074,0x746c6564,0x00000061,0x00030005,0x0000007d, + 0x00006864,0x00050005,0x0000007f,0x676e656c,0x6e496874,0x00000076,0x00060005,0x00000093, + 0x77656956,0x74726f70,0x6f666e49,0x00000000,0x00030005,0x00000094,0x00004350,0x00040006, + 0x00000094,0x00000000,0x0063646e,0x00070006,0x00000094,0x00000001,0x77656956,0x74726f70, + 0x6f666e49,0x00000000,0x00070006,0x00000094,0x00000002,0x65676445,0x72616853,0x73656e70, + 0x00000073,0x00030005,0x00000096,0x00006370,0x00030005,0x0000009c,0x00007675,0x00060005, + 0x0000009e,0x67617266,0x43786554,0x64726f6f,0x00000000,0x00040005,0x000000a0,0x6f6c6f63, + 0x00000072,0x00030005,0x000000a4,0x00307370,0x00050005,0x000000af,0x43676d69,0x64726f6f, + 0x00000000,0x00060005,0x000000b8,0x43676d69,0x64726f6f,0x65786950,0x0000006c,0x00040005, + 0x000000bb,0x726f6f63,0x00000064,0x00030005,0x000000c0,0x00006c70,0x00040005,0x000000c5, + 0x7466656c,0x00000000,0x00050005,0x000000c9,0x65676465,0x65746f56,0x00000000,0x00040005, + 0x000000ea,0x68676972,0x00000074,0x00040005,0x000000f2,0x6f447075,0x00006e77,0x00040005, + 0x0000010c,0x6e61656d,0x00000000,0x00030005,0x0000012b,0x006d7573,0x00040005,0x0000015b, + 0x4d6d7573,0x006e6165,0x00030005,0x0000015f,0x00647473,0x00040005,0x00000165,0x61746164, + 0x00000000,0x00040005,0x00000167,0x61726170,0x0000006d,0x00040005,0x00000169,0x61726170, + 0x0000006d,0x00030005,0x0000016f,0x00595761,0x00040005,0x00000173,0x61726170,0x0000006d, + 0x00040005,0x00000176,0x61726170,0x0000006d,0x00040005,0x00000177,0x61726170,0x0000006d, + 0x00040005,0x0000017a,0x61726170,0x0000006d,0x00040005,0x00000183,0x61726170,0x0000006d, + 0x00040005,0x00000184,0x61726170,0x0000006d,0x00040005,0x00000185,0x61726170,0x0000006d, + 0x00040005,0x00000188,0x61726170,0x0000006d,0x00040005,0x00000194,0x61726170,0x0000006d, + 0x00040005,0x00000195,0x61726170,0x0000006d,0x00040005,0x00000196,0x61726170,0x0000006d, + 0x00040005,0x00000199,0x61726170,0x0000006d,0x00040005,0x000001a1,0x61726170,0x0000006d, + 0x00040005,0x000001a4,0x61726170,0x0000006d,0x00040005,0x000001a5,0x61726170,0x0000006d, + 0x00040005,0x000001a8,0x61726170,0x0000006d,0x00040005,0x000001b3,0x61726170,0x0000006d, + 0x00040005,0x000001b4,0x61726170,0x0000006d,0x00040005,0x000001b5,0x61726170,0x0000006d, + 0x00040005,0x000001b8,0x61726170,0x0000006d,0x00040005,0x000001c0,0x61726170,0x0000006d, + 0x00040005,0x000001c3,0x61726170,0x0000006d,0x00040005,0x000001c4,0x61726170,0x0000006d, + 0x00040005,0x000001c7,0x61726170,0x0000006d,0x00040005,0x000001cc,0x61726170,0x0000006d, + 0x00040005,0x000001cf,0x61726170,0x0000006d,0x00040005,0x000001d2,0x61726170,0x0000006d, + 0x00040005,0x000001d5,0x61726170,0x0000006d,0x00040005,0x000001dd,0x61726170,0x0000006d, + 0x00040005,0x000001de,0x61726170,0x0000006d,0x00040005,0x000001e1,0x61726170,0x0000006d, + 0x00040005,0x000001e4,0x61726170,0x0000006d,0x00040005,0x000001ef,0x61726170,0x0000006d, + 0x00040005,0x000001f0,0x61726170,0x0000006d,0x00040005,0x000001f1,0x61726170,0x0000006d, + 0x00040005,0x000001f4,0x61726170,0x0000006d,0x00040005,0x000001ff,0x61726170,0x0000006d, + 0x00040005,0x00000200,0x61726170,0x0000006d,0x00040005,0x00000201,0x61726170,0x0000006d, + 0x00040005,0x00000204,0x61726170,0x0000006d,0x00040005,0x0000020c,0x61726170,0x0000006d, + 0x00040005,0x0000020d,0x61726170,0x0000006d,0x00040005,0x00000210,0x61726170,0x0000006d, + 0x00040005,0x00000213,0x61726170,0x0000006d,0x00040005,0x0000021b,0x61726170,0x0000006d, + 0x00040005,0x0000021c,0x61726170,0x0000006d,0x00040005,0x0000021f,0x61726170,0x0000006d, + 0x00040005,0x00000222,0x61726170,0x0000006d,0x00040005,0x00000227,0x616e6966,0x0000596c, + 0x00040005,0x0000022d,0x5978616d,0x00000000,0x00040005,0x00000239,0x596e696d,0x00000000, + 0x00040005,0x0000024e,0x746c6564,0x00005961,0x00050005,0x0000026b,0x5f74756f,0x67726154, + 0x00307465,0x00030047,0x00000009,0x00000000,0x00030047,0x0000000a,0x00000000,0x00030047, + 0x00000010,0x00000000,0x00030047,0x00000011,0x00000000,0x00030047,0x00000012,0x00000000, + 0x00030047,0x00000013,0x00000000,0x00030047,0x00000014,0x00000000,0x00030047,0x00000019, + 0x00000000,0x00030047,0x0000001a,0x00000000,0x00030047,0x0000001b,0x00000000,0x00030047, + 0x0000001d,0x00000000,0x00030047,0x0000001e,0x00000000,0x00030047,0x00000020,0x00000000, + 0x00030047,0x00000021,0x00000000,0x00030047,0x00000022,0x00000000,0x00030047,0x00000023, + 0x00000000,0x00030047,0x00000024,0x00000000,0x00030047,0x00000025,0x00000000,0x00030047, + 0x00000026,0x00000000,0x00030047,0x00000027,0x00000000,0x00030047,0x00000028,0x00000000, + 0x00030047,0x00000029,0x00000000,0x00030047,0x0000002a,0x00000000,0x00030047,0x0000002b, + 0x00000000,0x00030047,0x0000002c,0x00000000,0x00030047,0x0000002f,0x00000000,0x00030047, + 0x00000033,0x00000000,0x00030047,0x00000035,0x00000000,0x00030047,0x00000036,0x00000000, + 0x00030047,0x00000037,0x00000000,0x00030047,0x00000038,0x00000000,0x00030047,0x00000039, + 0x00000000,0x00030047,0x0000003c,0x00000000,0x00030047,0x0000003d,0x00000000,0x00030047, + 0x0000003e,0x00000000,0x00030047,0x00000040,0x00000000,0x00030047,0x00000041,0x00000000, + 0x00030047,0x00000042,0x00000000,0x00030047,0x00000043,0x00000000,0x00030047,0x00000044, + 0x00000000,0x00030047,0x00000045,0x00000000,0x00030047,0x00000046,0x00000000,0x00030047, + 0x00000047,0x00000000,0x00030047,0x00000048,0x00000000,0x00030047,0x00000049,0x00000000, + 0x00030047,0x0000004a,0x00000000,0x00030047,0x0000004b,0x00000000,0x00030047,0x0000004c, + 0x00000000,0x00030047,0x0000004d,0x00000000,0x00030047,0x0000004e,0x00000000,0x00030047, + 0x0000004f,0x00000000,0x00030047,0x00000050,0x00000000,0x00030047,0x00000051,0x00000000, + 0x00030047,0x00000052,0x00000000,0x00030047,0x00000055,0x00000000,0x00030047,0x00000057, + 0x00000000,0x00030047,0x00000058,0x00000000,0x00030047,0x00000059,0x00000000,0x00030047, + 0x0000005a,0x00000000,0x00030047,0x0000005b,0x00000000,0x00030047,0x0000005c,0x00000000, + 0x00030047,0x0000005d,0x00000000,0x00030047,0x0000005e,0x00000000,0x00030047,0x0000005f, + 0x00000000,0x00030047,0x00000060,0x00000000,0x00030047,0x00000061,0x00000000,0x00030047, + 0x00000062,0x00000000,0x00030047,0x00000063,0x00000000,0x00030047,0x00000066,0x00000000, + 0x00030047,0x00000068,0x00000000,0x00030047,0x0000006b,0x00000000,0x00030047,0x0000006c, + 0x00000000,0x00030047,0x0000006d,0x00000000,0x00030047,0x00000070,0x00000000,0x00030047, + 0x00000072,0x00000000,0x00030047,0x00000073,0x00000000,0x00030047,0x00000074,0x00000000, + 0x00030047,0x00000075,0x00000000,0x00030047,0x00000076,0x00000000,0x00030047,0x00000077, + 0x00000000,0x00030047,0x00000079,0x00000000,0x00030047,0x0000007a,0x00000000,0x00030047, + 0x0000007b,0x00000000,0x00030047,0x0000007e,0x00000000,0x00030047,0x0000007f,0x00000000, + 0x00030047,0x0000008e,0x00000000,0x00030047,0x0000008f,0x00000000,0x00030047,0x00000090, + 0x00000000,0x00030047,0x00000094,0x00000002,0x00050048,0x00000094,0x00000000,0x00000023, + 0x00000000,0x00050048,0x00000094,0x00000001,0x00000023,0x00000010,0x00040048,0x00000094, + 0x00000002,0x00000000,0x00050048,0x00000094,0x00000002,0x00000023,0x00000020,0x00040047, + 0x0000009e,0x0000001e,0x00000000,0x00030047,0x000000a0,0x00000000,0x00030047,0x000000a4, + 0x00000000,0x00040047,0x000000a4,0x00000021,0x00000000,0x00040047,0x000000a4,0x00000022, + 0x00000000,0x00030047,0x000000a5,0x00000000,0x00030047,0x000000a7,0x00000000,0x00030047, + 0x000000a8,0x00000000,0x00030047,0x000000c0,0x00000000,0x00030047,0x000000c5,0x00000000, + 0x00030047,0x000000c6,0x00000000,0x00030047,0x000000c8,0x00000000,0x00030047,0x000000c9, + 0x00000000,0x00030047,0x000000cb,0x00000000,0x00030047,0x000000cd,0x00000000,0x00030047, + 0x000000ce,0x00000000,0x00030047,0x000000cf,0x00000000,0x00030047,0x000000d1,0x00000000, + 0x00030047,0x000000d3,0x00000000,0x00030047,0x000000d4,0x00000000,0x00030047,0x000000d5, + 0x00000000,0x00030047,0x000000d6,0x00000000,0x00030047,0x000000d8,0x00000000,0x00030047, + 0x000000da,0x00000000,0x00030047,0x000000db,0x00000000,0x00030047,0x000000dc,0x00000000, + 0x00030047,0x000000dd,0x00000000,0x00030047,0x000000de,0x00000000,0x00030047,0x000000df, + 0x00000000,0x00030047,0x000000ea,0x00000000,0x00030047,0x000000eb,0x00000000,0x00030047, + 0x000000f1,0x00000000,0x00030047,0x000000f2,0x00000000,0x00030047,0x000000f3,0x00000000, + 0x00030047,0x000000fa,0x00000000,0x00030047,0x000000fb,0x00000000,0x00030047,0x00000100, + 0x00000000,0x00030047,0x00000106,0x00000000,0x00030047,0x00000107,0x00000000,0x00030047, + 0x0000010c,0x00000000,0x00030047,0x0000010e,0x00000000,0x00030047,0x00000110,0x00000000, + 0x00030047,0x00000111,0x00000000,0x00030047,0x00000113,0x00000000,0x00030047,0x00000114, + 0x00000000,0x00030047,0x00000116,0x00000000,0x00030047,0x00000117,0x00000000,0x00030047, + 0x00000119,0x00000000,0x00030047,0x0000011a,0x00000000,0x00030047,0x0000011b,0x00000000, + 0x00030047,0x0000011c,0x00000000,0x00030047,0x0000011d,0x00000000,0x00030047,0x0000011e, + 0x00000000,0x00030047,0x0000011f,0x00000000,0x00030047,0x00000120,0x00000000,0x00030047, + 0x00000121,0x00000000,0x00030047,0x00000122,0x00000000,0x00030047,0x00000123,0x00000000, + 0x00030047,0x00000124,0x00000000,0x00030047,0x00000125,0x00000000,0x00030047,0x00000127, + 0x00000000,0x00030047,0x00000128,0x00000000,0x00030047,0x00000129,0x00000000,0x00030047, + 0x0000012b,0x00000000,0x00030047,0x0000012d,0x00000000,0x00030047,0x0000012e,0x00000000, + 0x00030047,0x00000130,0x00000000,0x00030047,0x00000131,0x00000000,0x00030047,0x00000132, + 0x00000000,0x00030047,0x00000134,0x00000000,0x00030047,0x00000135,0x00000000,0x00030047, + 0x00000136,0x00000000,0x00030047,0x00000138,0x00000000,0x00030047,0x00000139,0x00000000, + 0x00030047,0x0000013a,0x00000000,0x00030047,0x0000013c,0x00000000,0x00030047,0x0000013d, + 0x00000000,0x00030047,0x0000013f,0x00000000,0x00030047,0x00000140,0x00000000,0x00030047, + 0x00000141,0x00000000,0x00030047,0x00000143,0x00000000,0x00030047,0x00000144,0x00000000, + 0x00030047,0x00000145,0x00000000,0x00030047,0x00000147,0x00000000,0x00030047,0x00000148, + 0x00000000,0x00030047,0x00000149,0x00000000,0x00030047,0x0000014a,0x00000000,0x00030047, + 0x0000014c,0x00000000,0x00030047,0x0000014d,0x00000000,0x00030047,0x0000014f,0x00000000, + 0x00030047,0x00000150,0x00000000,0x00030047,0x00000151,0x00000000,0x00030047,0x00000153, + 0x00000000,0x00030047,0x00000154,0x00000000,0x00030047,0x00000155,0x00000000,0x00030047, + 0x00000157,0x00000000,0x00030047,0x00000158,0x00000000,0x00030047,0x00000159,0x00000000, + 0x00030047,0x0000015a,0x00000000,0x00030047,0x0000015b,0x00000000,0x00030047,0x0000015d, + 0x00000000,0x00030047,0x0000015e,0x00000000,0x00030047,0x0000015f,0x00000000,0x00030047, + 0x00000160,0x00000000,0x00030047,0x00000161,0x00000000,0x00030047,0x00000162,0x00000000, + 0x00030047,0x00000164,0x00000000,0x00030047,0x00000165,0x00000000,0x00030047,0x00000166, + 0x00000000,0x00030047,0x00000167,0x00000000,0x00030047,0x00000168,0x00000000,0x00030047, + 0x00000169,0x00000000,0x00030047,0x0000016a,0x00000000,0x00030047,0x0000016b,0x00000000, + 0x00030047,0x0000016c,0x00000000,0x00030047,0x0000016d,0x00000000,0x00030047,0x0000016e, + 0x00000000,0x00030047,0x0000016f,0x00000000,0x00030047,0x00000171,0x00000000,0x00030047, + 0x00000172,0x00000000,0x00030047,0x00000173,0x00000000,0x00030047,0x00000175,0x00000000, + 0x00030047,0x00000176,0x00000000,0x00030047,0x00000177,0x00000000,0x00030047,0x00000179, + 0x00000000,0x00030047,0x0000017a,0x00000000,0x00030047,0x0000017b,0x00000000,0x00030047, + 0x0000017c,0x00000000,0x00030047,0x0000017e,0x00000000,0x00030047,0x0000017f,0x00000000, + 0x00030047,0x00000181,0x00000000,0x00030047,0x00000182,0x00000000,0x00030047,0x00000183, + 0x00000000,0x00030047,0x00000184,0x00000000,0x00030047,0x00000185,0x00000000,0x00030047, + 0x00000187,0x00000000,0x00030047,0x00000188,0x00000000,0x00030047,0x00000189,0x00000000, + 0x00030047,0x0000018a,0x00000000,0x00030047,0x0000018b,0x00000000,0x00030047,0x0000018c, + 0x00000000,0x00030047,0x0000018e,0x00000000,0x00030047,0x0000018f,0x00000000,0x00030047, + 0x00000191,0x00000000,0x00030047,0x00000193,0x00000000,0x00030047,0x00000194,0x00000000, + 0x00030047,0x00000195,0x00000000,0x00030047,0x00000196,0x00000000,0x00030047,0x00000198, + 0x00000000,0x00030047,0x00000199,0x00000000,0x00030047,0x0000019a,0x00000000,0x00030047, + 0x0000019b,0x00000000,0x00030047,0x0000019c,0x00000000,0x00030047,0x0000019d,0x00000000, + 0x00030047,0x0000019f,0x00000000,0x00030047,0x000001a0,0x00000000,0x00030047,0x000001a1, + 0x00000000,0x00030047,0x000001a3,0x00000000,0x00030047,0x000001a4,0x00000000,0x00030047, + 0x000001a5,0x00000000,0x00030047,0x000001a7,0x00000000,0x00030047,0x000001a8,0x00000000, + 0x00030047,0x000001a9,0x00000000,0x00030047,0x000001aa,0x00000000,0x00030047,0x000001ab, + 0x00000000,0x00030047,0x000001ac,0x00000000,0x00030047,0x000001ae,0x00000000,0x00030047, + 0x000001af,0x00000000,0x00030047,0x000001b1,0x00000000,0x00030047,0x000001b2,0x00000000, + 0x00030047,0x000001b3,0x00000000,0x00030047,0x000001b4,0x00000000,0x00030047,0x000001b5, + 0x00000000,0x00030047,0x000001b7,0x00000000,0x00030047,0x000001b8,0x00000000,0x00030047, + 0x000001b9,0x00000000,0x00030047,0x000001ba,0x00000000,0x00030047,0x000001bb,0x00000000, + 0x00030047,0x000001bc,0x00000000,0x00030047,0x000001be,0x00000000,0x00030047,0x000001bf, + 0x00000000,0x00030047,0x000001c0,0x00000000,0x00030047,0x000001c2,0x00000000,0x00030047, + 0x000001c3,0x00000000,0x00030047,0x000001c4,0x00000000,0x00030047,0x000001c6,0x00000000, + 0x00030047,0x000001c7,0x00000000,0x00030047,0x000001c8,0x00000000,0x00030047,0x000001c9, + 0x00000000,0x00030047,0x000001ca,0x00000000,0x00030047,0x000001cb,0x00000000,0x00030047, + 0x000001cc,0x00000000,0x00030047,0x000001ce,0x00000000,0x00030047,0x000001cf,0x00000000, + 0x00030047,0x000001d1,0x00000000,0x00030047,0x000001d2,0x00000000,0x00030047,0x000001d4, + 0x00000000,0x00030047,0x000001d5,0x00000000,0x00030047,0x000001d6,0x00000000,0x00030047, + 0x000001d7,0x00000000,0x00030047,0x000001d8,0x00000000,0x00030047,0x000001d9,0x00000000, + 0x00030047,0x000001db,0x00000000,0x00030047,0x000001dc,0x00000000,0x00030047,0x000001dd, + 0x00000000,0x00030047,0x000001de,0x00000000,0x00030047,0x000001e0,0x00000000,0x00030047, + 0x000001e1,0x00000000,0x00030047,0x000001e3,0x00000000,0x00030047,0x000001e4,0x00000000, + 0x00030047,0x000001e5,0x00000000,0x00030047,0x000001e6,0x00000000,0x00030047,0x000001e7, + 0x00000000,0x00030047,0x000001e8,0x00000000,0x00030047,0x000001ea,0x00000000,0x00030047, + 0x000001eb,0x00000000,0x00030047,0x000001ed,0x00000000,0x00030047,0x000001ee,0x00000000, + 0x00030047,0x000001ef,0x00000000,0x00030047,0x000001f0,0x00000000,0x00030047,0x000001f1, + 0x00000000,0x00030047,0x000001f3,0x00000000,0x00030047,0x000001f4,0x00000000,0x00030047, + 0x000001f5,0x00000000,0x00030047,0x000001f6,0x00000000,0x00030047,0x000001f7,0x00000000, + 0x00030047,0x000001f8,0x00000000,0x00030047,0x000001fa,0x00000000,0x00030047,0x000001fb, + 0x00000000,0x00030047,0x000001fd,0x00000000,0x00030047,0x000001fe,0x00000000,0x00030047, + 0x000001ff,0x00000000,0x00030047,0x00000200,0x00000000,0x00030047,0x00000201,0x00000000, + 0x00030047,0x00000203,0x00000000,0x00030047,0x00000204,0x00000000,0x00030047,0x00000205, + 0x00000000,0x00030047,0x00000206,0x00000000,0x00030047,0x00000207,0x00000000,0x00030047, + 0x00000208,0x00000000,0x00030047,0x0000020a,0x00000000,0x00030047,0x0000020b,0x00000000, + 0x00030047,0x0000020c,0x00000000,0x00030047,0x0000020d,0x00000000,0x00030047,0x0000020f, + 0x00000000,0x00030047,0x00000210,0x00000000,0x00030047,0x00000212,0x00000000,0x00030047, + 0x00000213,0x00000000,0x00030047,0x00000214,0x00000000,0x00030047,0x00000215,0x00000000, + 0x00030047,0x00000216,0x00000000,0x00030047,0x00000217,0x00000000,0x00030047,0x00000219, + 0x00000000,0x00030047,0x0000021a,0x00000000,0x00030047,0x0000021b,0x00000000,0x00030047, + 0x0000021c,0x00000000,0x00030047,0x0000021e,0x00000000,0x00030047,0x0000021f,0x00000000, + 0x00030047,0x00000221,0x00000000,0x00030047,0x00000222,0x00000000,0x00030047,0x00000223, + 0x00000000,0x00030047,0x00000224,0x00000000,0x00030047,0x00000225,0x00000000,0x00030047, + 0x00000226,0x00000000,0x00030047,0x00000227,0x00000000,0x00030047,0x00000229,0x00000000, + 0x00030047,0x0000022b,0x00000000,0x00030047,0x0000022c,0x00000000,0x00030047,0x0000022d, + 0x00000000,0x00030047,0x0000022f,0x00000000,0x00030047,0x00000231,0x00000000,0x00030047, + 0x00000232,0x00000000,0x00030047,0x00000234,0x00000000,0x00030047,0x00000236,0x00000000, + 0x00030047,0x00000237,0x00000000,0x00030047,0x00000238,0x00000000,0x00030047,0x00000239, + 0x00000000,0x00030047,0x0000023b,0x00000000,0x00030047,0x0000023d,0x00000000,0x00030047, + 0x0000023e,0x00000000,0x00030047,0x00000240,0x00000000,0x00030047,0x00000242,0x00000000, + 0x00030047,0x00000243,0x00000000,0x00030047,0x00000244,0x00000000,0x00030047,0x00000248, + 0x00000000,0x00030047,0x00000249,0x00000000,0x00030047,0x0000024a,0x00000000,0x00030047, + 0x0000024b,0x00000000,0x00030047,0x0000024c,0x00000000,0x00030047,0x0000024d,0x00000000, + 0x00030047,0x0000024e,0x00000000,0x00030047,0x0000024f,0x00000000,0x00030047,0x00000251, + 0x00000000,0x00030047,0x00000252,0x00000000,0x00030047,0x00000253,0x00000000,0x00030047, + 0x00000256,0x00000000,0x00030047,0x00000258,0x00000000,0x00030047,0x00000259,0x00000000, + 0x00030047,0x0000025a,0x00000000,0x00030047,0x0000025b,0x00000000,0x00030047,0x0000025e, + 0x00000000,0x00030047,0x0000025f,0x00000000,0x00030047,0x00000260,0x00000000,0x00030047, + 0x00000261,0x00000000,0x00030047,0x00000264,0x00000000,0x00030047,0x00000265,0x00000000, + 0x00030047,0x00000266,0x00000000,0x00030047,0x00000267,0x00000000,0x00030047,0x0000026b, + 0x00000000,0x00040047,0x0000026b,0x0000001e,0x00000000,0x00030047,0x0000026c,0x00000000, + 0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020, + 0x00040020,0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007, + 0x00040017,0x0000000c,0x00000006,0x00000003,0x00040020,0x0000000d,0x00000007,0x0000000c, + 0x00040017,0x0000000e,0x00000006,0x00000002,0x00070021,0x0000000f,0x0000000e,0x00000007, + 0x00000007,0x00000007,0x0000000d,0x00040017,0x00000016,0x00000006,0x00000004,0x00040020, + 0x00000017,0x00000007,0x00000016,0x00050021,0x00000018,0x0000000e,0x00000017,0x00000017, + 0x0004002b,0x00000006,0x0000001f,0x40800000,0x00040015,0x00000030,0x00000020,0x00000000, + 0x0004002b,0x00000030,0x00000031,0x00000000,0x00040020,0x00000034,0x00000007,0x0000000e, + 0x0004002b,0x00000030,0x0000003a,0x00000001,0x0004002b,0x00000006,0x00000053,0x00000000, + 0x0004002b,0x00000006,0x00000054,0x3f800000,0x0004002b,0x00000006,0x00000056,0x3f333333, + 0x0004002b,0x00000030,0x00000069,0x00000002,0x0004002b,0x00000030,0x0000006e,0x00000003, + 0x0004002b,0x00000006,0x00000085,0x38010182,0x0005001e,0x00000094,0x00000016,0x00000016, + 0x00000006,0x00040020,0x00000095,0x00000009,0x00000094,0x0004003b,0x00000095,0x00000096, + 0x00000009,0x00040015,0x00000097,0x00000020,0x00000001,0x0004002b,0x00000097,0x00000098, + 0x00000001,0x00040020,0x00000099,0x00000009,0x00000016,0x00040020,0x0000009d,0x00000001, + 0x0000000e,0x0004003b,0x0000009d,0x0000009e,0x00000001,0x00090019,0x000000a1,0x00000006, + 0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x000000a2, + 0x000000a1,0x00040020,0x000000a3,0x00000000,0x000000a2,0x0004003b,0x000000a3,0x000000a4, + 0x00000000,0x0004002b,0x00000006,0x000000b4,0xbf000000,0x0004002b,0x00000006,0x000000b5, + 0x3f000000,0x0005002c,0x0000000e,0x000000b6,0x000000b4,0x000000b5,0x0004002b,0x00000006, + 0x000000df,0x3d008081,0x00020014,0x000000e0,0x0004002b,0x00000006,0x00000118,0x3e800000, + 0x0004002b,0x00000006,0x0000015c,0x41224505,0x0004002b,0x00000006,0x00000163,0x477fe000, + 0x0004002b,0x00000006,0x00000192,0x40000000,0x0004002b,0x00000097,0x00000245,0x00000002, + 0x00040020,0x00000246,0x00000009,0x00000006,0x0004002b,0x00000006,0x00000254,0xbdb8b8b9, + 0x0004002b,0x00000006,0x00000255,0x3db8b8b9,0x00040020,0x0000026a,0x00000003,0x00000016, + 0x0004003b,0x0000026a,0x0000026b,0x00000003,0x00050036,0x00000002,0x00000004,0x00000000, + 0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000017,0x00000093,0x00000007,0x0004003b, + 0x00000034,0x0000009c,0x00000007,0x0004003b,0x00000017,0x000000a0,0x00000007,0x0004003b, + 0x00000034,0x000000af,0x00000007,0x0004003b,0x00000034,0x000000b8,0x00000007,0x0004003b, + 0x00000034,0x000000bb,0x00000007,0x0004003b,0x00000034,0x000000c0,0x00000007,0x0004003b, + 0x00000017,0x000000c5,0x00000007,0x0004003b,0x00000007,0x000000c9,0x00000007,0x0004003b, + 0x00000017,0x000000ea,0x00000007,0x0004003b,0x00000017,0x000000f2,0x00000007,0x0004003b, + 0x00000007,0x0000010c,0x00000007,0x0004003b,0x00000007,0x0000012b,0x00000007,0x0004003b, + 0x00000007,0x0000015b,0x00000007,0x0004003b,0x00000007,0x0000015f,0x00000007,0x0004003b, + 0x0000000d,0x00000165,0x00000007,0x0004003b,0x00000017,0x00000167,0x00000007,0x0004003b, + 0x00000017,0x00000169,0x00000007,0x0004003b,0x00000034,0x0000016f,0x00000007,0x0004003b, + 0x00000007,0x00000173,0x00000007,0x0004003b,0x00000007,0x00000176,0x00000007,0x0004003b, + 0x00000007,0x00000177,0x00000007,0x0004003b,0x0000000d,0x0000017a,0x00000007,0x0004003b, + 0x00000007,0x00000183,0x00000007,0x0004003b,0x00000007,0x00000184,0x00000007,0x0004003b, + 0x00000007,0x00000185,0x00000007,0x0004003b,0x0000000d,0x00000188,0x00000007,0x0004003b, + 0x00000007,0x00000194,0x00000007,0x0004003b,0x00000007,0x00000195,0x00000007,0x0004003b, + 0x00000007,0x00000196,0x00000007,0x0004003b,0x0000000d,0x00000199,0x00000007,0x0004003b, + 0x00000007,0x000001a1,0x00000007,0x0004003b,0x00000007,0x000001a4,0x00000007,0x0004003b, + 0x00000007,0x000001a5,0x00000007,0x0004003b,0x0000000d,0x000001a8,0x00000007,0x0004003b, + 0x00000007,0x000001b3,0x00000007,0x0004003b,0x00000007,0x000001b4,0x00000007,0x0004003b, + 0x00000007,0x000001b5,0x00000007,0x0004003b,0x0000000d,0x000001b8,0x00000007,0x0004003b, + 0x00000007,0x000001c0,0x00000007,0x0004003b,0x00000007,0x000001c3,0x00000007,0x0004003b, + 0x00000007,0x000001c4,0x00000007,0x0004003b,0x0000000d,0x000001c7,0x00000007,0x0004003b, + 0x00000007,0x000001cc,0x00000007,0x0004003b,0x00000007,0x000001cf,0x00000007,0x0004003b, + 0x00000007,0x000001d2,0x00000007,0x0004003b,0x0000000d,0x000001d5,0x00000007,0x0004003b, + 0x00000007,0x000001dd,0x00000007,0x0004003b,0x00000007,0x000001de,0x00000007,0x0004003b, + 0x00000007,0x000001e1,0x00000007,0x0004003b,0x0000000d,0x000001e4,0x00000007,0x0004003b, + 0x00000007,0x000001ef,0x00000007,0x0004003b,0x00000007,0x000001f0,0x00000007,0x0004003b, + 0x00000007,0x000001f1,0x00000007,0x0004003b,0x0000000d,0x000001f4,0x00000007,0x0004003b, + 0x00000007,0x000001ff,0x00000007,0x0004003b,0x00000007,0x00000200,0x00000007,0x0004003b, + 0x00000007,0x00000201,0x00000007,0x0004003b,0x0000000d,0x00000204,0x00000007,0x0004003b, + 0x00000007,0x0000020c,0x00000007,0x0004003b,0x00000007,0x0000020d,0x00000007,0x0004003b, + 0x00000007,0x00000210,0x00000007,0x0004003b,0x0000000d,0x00000213,0x00000007,0x0004003b, + 0x00000007,0x0000021b,0x00000007,0x0004003b,0x00000007,0x0000021c,0x00000007,0x0004003b, + 0x00000007,0x0000021f,0x00000007,0x0004003b,0x0000000d,0x00000222,0x00000007,0x0004003b, + 0x00000007,0x00000227,0x00000007,0x0004003b,0x00000007,0x0000022d,0x00000007,0x0004003b, + 0x00000007,0x00000239,0x00000007,0x0004003b,0x00000007,0x0000024e,0x00000007,0x00050041, + 0x00000099,0x0000009a,0x00000096,0x00000098,0x0004003d,0x00000016,0x0000009b,0x0000009a, + 0x0003003e,0x00000093,0x0000009b,0x0004003d,0x0000000e,0x0000009f,0x0000009e,0x0003003e, + 0x0000009c,0x0000009f,0x0004003d,0x000000a2,0x000000a5,0x000000a4,0x0004003d,0x0000000e, + 0x000000a6,0x0000009c,0x00070058,0x00000016,0x000000a7,0x000000a5,0x000000a6,0x00000002, + 0x00000053,0x0008004f,0x0000000c,0x000000a8,0x000000a7,0x000000a7,0x00000000,0x00000001, + 0x00000002,0x00050041,0x00000007,0x000000a9,0x000000a0,0x00000031,0x00050051,0x00000006, + 0x000000aa,0x000000a8,0x00000000,0x0003003e,0x000000a9,0x000000aa,0x00050041,0x00000007, + 0x000000ab,0x000000a0,0x0000003a,0x00050051,0x00000006,0x000000ac,0x000000a8,0x00000001, + 0x0003003e,0x000000ab,0x000000ac,0x00050041,0x00000007,0x000000ad,0x000000a0,0x00000069, + 0x00050051,0x00000006,0x000000ae,0x000000a8,0x00000002,0x0003003e,0x000000ad,0x000000ae, + 0x0004003d,0x0000000e,0x000000b0,0x0000009c,0x0004003d,0x00000016,0x000000b1,0x00000093, + 0x0007004f,0x0000000e,0x000000b2,0x000000b1,0x000000b1,0x00000002,0x00000003,0x00050085, + 0x0000000e,0x000000b3,0x000000b0,0x000000b2,0x00050081,0x0000000e,0x000000b7,0x000000b3, + 0x000000b6,0x0003003e,0x000000af,0x000000b7,0x0004003d,0x0000000e,0x000000b9,0x000000af, + 0x0006000c,0x0000000e,0x000000ba,0x00000001,0x00000008,0x000000b9,0x0003003e,0x000000b8, + 0x000000ba,0x0004003d,0x0000000e,0x000000bc,0x000000b8,0x0004003d,0x00000016,0x000000bd, + 0x00000093,0x0007004f,0x0000000e,0x000000be,0x000000bd,0x000000bd,0x00000000,0x00000001, + 0x00050085,0x0000000e,0x000000bf,0x000000bc,0x000000be,0x0003003e,0x000000bb,0x000000bf, + 0x0004003d,0x0000000e,0x000000c1,0x000000af,0x0004003d,0x0000000e,0x000000c2,0x000000b8, + 0x0004007f,0x0000000e,0x000000c3,0x000000c2,0x00050081,0x0000000e,0x000000c4,0x000000c1, + 0x000000c3,0x0003003e,0x000000c0,0x000000c4,0x0004003d,0x000000a2,0x000000c6,0x000000a4, + 0x0004003d,0x0000000e,0x000000c7,0x000000bb,0x00060060,0x00000016,0x000000c8,0x000000c6, + 0x000000c7,0x00000098,0x0003003e,0x000000c5,0x000000c8,0x00050041,0x00000007,0x000000ca, + 0x000000c5,0x00000069,0x0004003d,0x00000006,0x000000cb,0x000000ca,0x00050041,0x00000007, + 0x000000cc,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x000000cd,0x000000cc,0x00050083, + 0x00000006,0x000000ce,0x000000cb,0x000000cd,0x0006000c,0x00000006,0x000000cf,0x00000001, + 0x00000004,0x000000ce,0x00050041,0x00000007,0x000000d0,0x000000a0,0x0000003a,0x0004003d, + 0x00000006,0x000000d1,0x000000d0,0x00050041,0x00000007,0x000000d2,0x000000c5,0x0000003a, + 0x0004003d,0x00000006,0x000000d3,0x000000d2,0x00050083,0x00000006,0x000000d4,0x000000d1, + 0x000000d3,0x0006000c,0x00000006,0x000000d5,0x00000001,0x00000004,0x000000d4,0x00050081, + 0x00000006,0x000000d6,0x000000cf,0x000000d5,0x00050041,0x00000007,0x000000d7,0x000000a0, + 0x0000003a,0x0004003d,0x00000006,0x000000d8,0x000000d7,0x00050041,0x00000007,0x000000d9, + 0x000000c5,0x00000069,0x0004003d,0x00000006,0x000000da,0x000000d9,0x00050083,0x00000006, + 0x000000db,0x000000d8,0x000000da,0x0006000c,0x00000006,0x000000dc,0x00000001,0x00000004, + 0x000000db,0x00050081,0x00000006,0x000000dd,0x000000d6,0x000000dc,0x0003003e,0x000000c9, + 0x000000dd,0x0004003d,0x00000006,0x000000de,0x000000c9,0x000500ba,0x000000e0,0x000000e1, + 0x000000de,0x000000df,0x000300f7,0x000000e3,0x00000000,0x000400fa,0x000000e1,0x000000e2, + 0x000000e3,0x000200f8,0x000000e2,0x00050041,0x00000007,0x000000e4,0x00000093,0x00000031, + 0x0004003d,0x00000006,0x000000e5,0x000000e4,0x00050041,0x00000007,0x000000e6,0x000000bb, + 0x00000031,0x0004003d,0x00000006,0x000000e7,0x000000e6,0x00050081,0x00000006,0x000000e8, + 0x000000e7,0x000000e5,0x00050041,0x00000007,0x000000e9,0x000000bb,0x00000031,0x0003003e, + 0x000000e9,0x000000e8,0x0004003d,0x000000a2,0x000000eb,0x000000a4,0x0004003d,0x0000000e, + 0x000000ec,0x000000bb,0x00050041,0x00000007,0x000000ed,0x00000093,0x00000031,0x0004003d, + 0x00000006,0x000000ee,0x000000ed,0x00050050,0x0000000e,0x000000ef,0x000000ee,0x00000053, + 0x00050081,0x0000000e,0x000000f0,0x000000ec,0x000000ef,0x00060060,0x00000016,0x000000f1, + 0x000000eb,0x000000f0,0x00000098,0x0003003e,0x000000ea,0x000000f1,0x0004003d,0x000000a2, + 0x000000f3,0x000000a4,0x0004003d,0x0000000e,0x000000f4,0x000000bb,0x00050041,0x00000007, + 0x000000f5,0x00000093,0x0000003a,0x0004003d,0x00000006,0x000000f6,0x000000f5,0x0004007f, + 0x00000006,0x000000f7,0x000000f6,0x00050050,0x0000000e,0x000000f8,0x00000053,0x000000f7, + 0x00050081,0x0000000e,0x000000f9,0x000000f4,0x000000f8,0x00060060,0x00000016,0x000000fa, + 0x000000f3,0x000000f9,0x00000098,0x0007004f,0x0000000e,0x000000fb,0x000000fa,0x000000fa, + 0x00000003,0x00000002,0x00050041,0x00000007,0x000000fc,0x000000f2,0x00000031,0x00050051, + 0x00000006,0x000000fd,0x000000fb,0x00000000,0x0003003e,0x000000fc,0x000000fd,0x00050041, + 0x00000007,0x000000fe,0x000000f2,0x0000003a,0x00050051,0x00000006,0x000000ff,0x000000fb, + 0x00000001,0x0003003e,0x000000fe,0x000000ff,0x0004003d,0x000000a2,0x00000100,0x000000a4, + 0x0004003d,0x0000000e,0x00000101,0x000000bb,0x00050041,0x00000007,0x00000102,0x00000093, + 0x0000003a,0x0004003d,0x00000006,0x00000103,0x00000102,0x00050050,0x0000000e,0x00000104, + 0x00000053,0x00000103,0x00050081,0x0000000e,0x00000105,0x00000101,0x00000104,0x00060060, + 0x00000016,0x00000106,0x00000100,0x00000105,0x00000098,0x0007004f,0x0000000e,0x00000107, + 0x00000106,0x00000106,0x00000001,0x00000000,0x00050041,0x00000007,0x00000108,0x000000f2, + 0x00000069,0x00050051,0x00000006,0x00000109,0x00000107,0x00000000,0x0003003e,0x00000108, + 0x00000109,0x00050041,0x00000007,0x0000010a,0x000000f2,0x0000006e,0x00050051,0x00000006, + 0x0000010b,0x00000107,0x00000001,0x0003003e,0x0000010a,0x0000010b,0x00050041,0x00000007, + 0x0000010d,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x0000010e,0x0000010d,0x00050041, + 0x00000007,0x0000010f,0x000000c5,0x00000069,0x0004003d,0x00000006,0x00000110,0x0000010f, + 0x00050081,0x00000006,0x00000111,0x0000010e,0x00000110,0x00050041,0x00000007,0x00000112, + 0x000000ea,0x00000031,0x0004003d,0x00000006,0x00000113,0x00000112,0x00050081,0x00000006, + 0x00000114,0x00000111,0x00000113,0x00050041,0x00000007,0x00000115,0x000000ea,0x0000006e, + 0x0004003d,0x00000006,0x00000116,0x00000115,0x00050081,0x00000006,0x00000117,0x00000114, + 0x00000116,0x00050085,0x00000006,0x00000119,0x00000117,0x00000118,0x0003003e,0x0000010c, + 0x00000119,0x0004003d,0x00000016,0x0000011a,0x000000c5,0x0004003d,0x00000006,0x0000011b, + 0x0000010c,0x00070050,0x00000016,0x0000011c,0x0000011b,0x0000011b,0x0000011b,0x0000011b, + 0x00050083,0x00000016,0x0000011d,0x0000011a,0x0000011c,0x0003003e,0x000000c5,0x0000011d, + 0x0004003d,0x00000016,0x0000011e,0x000000ea,0x0004003d,0x00000006,0x0000011f,0x0000010c, + 0x00070050,0x00000016,0x00000120,0x0000011f,0x0000011f,0x0000011f,0x0000011f,0x00050083, + 0x00000016,0x00000121,0x0000011e,0x00000120,0x0003003e,0x000000ea,0x00000121,0x0004003d, + 0x00000016,0x00000122,0x000000f2,0x0004003d,0x00000006,0x00000123,0x0000010c,0x00070050, + 0x00000016,0x00000124,0x00000123,0x00000123,0x00000123,0x00000123,0x00050083,0x00000016, + 0x00000125,0x00000122,0x00000124,0x0003003e,0x000000f2,0x00000125,0x00050041,0x00000007, + 0x00000126,0x000000a0,0x0000003a,0x0004003d,0x00000006,0x00000127,0x00000126,0x0004003d, + 0x00000006,0x00000128,0x0000010c,0x00050083,0x00000006,0x00000129,0x00000127,0x00000128, + 0x00050041,0x00000007,0x0000012a,0x000000a0,0x0000006e,0x0003003e,0x0000012a,0x00000129, + 0x00050041,0x00000007,0x0000012c,0x000000c5,0x00000031,0x0004003d,0x00000006,0x0000012d, + 0x0000012c,0x0006000c,0x00000006,0x0000012e,0x00000001,0x00000004,0x0000012d,0x00050041, + 0x00000007,0x0000012f,0x000000c5,0x0000003a,0x0004003d,0x00000006,0x00000130,0x0000012f, + 0x0006000c,0x00000006,0x00000131,0x00000001,0x00000004,0x00000130,0x00050081,0x00000006, + 0x00000132,0x0000012e,0x00000131,0x00050041,0x00000007,0x00000133,0x000000c5,0x00000069, + 0x0004003d,0x00000006,0x00000134,0x00000133,0x0006000c,0x00000006,0x00000135,0x00000001, + 0x00000004,0x00000134,0x00050081,0x00000006,0x00000136,0x00000132,0x00000135,0x00050041, + 0x00000007,0x00000137,0x000000c5,0x0000006e,0x0004003d,0x00000006,0x00000138,0x00000137, + 0x0006000c,0x00000006,0x00000139,0x00000001,0x00000004,0x00000138,0x00050081,0x00000006, + 0x0000013a,0x00000136,0x00000139,0x00050041,0x00000007,0x0000013b,0x000000ea,0x00000031, + 0x0004003d,0x00000006,0x0000013c,0x0000013b,0x0006000c,0x00000006,0x0000013d,0x00000001, + 0x00000004,0x0000013c,0x00050041,0x00000007,0x0000013e,0x000000ea,0x0000003a,0x0004003d, + 0x00000006,0x0000013f,0x0000013e,0x0006000c,0x00000006,0x00000140,0x00000001,0x00000004, + 0x0000013f,0x00050081,0x00000006,0x00000141,0x0000013d,0x00000140,0x00050041,0x00000007, + 0x00000142,0x000000ea,0x00000069,0x0004003d,0x00000006,0x00000143,0x00000142,0x0006000c, + 0x00000006,0x00000144,0x00000001,0x00000004,0x00000143,0x00050081,0x00000006,0x00000145, + 0x00000141,0x00000144,0x00050041,0x00000007,0x00000146,0x000000ea,0x0000006e,0x0004003d, + 0x00000006,0x00000147,0x00000146,0x0006000c,0x00000006,0x00000148,0x00000001,0x00000004, + 0x00000147,0x00050081,0x00000006,0x00000149,0x00000145,0x00000148,0x00050081,0x00000006, + 0x0000014a,0x0000013a,0x00000149,0x00050041,0x00000007,0x0000014b,0x000000f2,0x00000031, + 0x0004003d,0x00000006,0x0000014c,0x0000014b,0x0006000c,0x00000006,0x0000014d,0x00000001, + 0x00000004,0x0000014c,0x00050041,0x00000007,0x0000014e,0x000000f2,0x0000003a,0x0004003d, + 0x00000006,0x0000014f,0x0000014e,0x0006000c,0x00000006,0x00000150,0x00000001,0x00000004, + 0x0000014f,0x00050081,0x00000006,0x00000151,0x0000014d,0x00000150,0x00050041,0x00000007, + 0x00000152,0x000000f2,0x00000069,0x0004003d,0x00000006,0x00000153,0x00000152,0x0006000c, + 0x00000006,0x00000154,0x00000001,0x00000004,0x00000153,0x00050081,0x00000006,0x00000155, + 0x00000151,0x00000154,0x00050041,0x00000007,0x00000156,0x000000f2,0x0000006e,0x0004003d, + 0x00000006,0x00000157,0x00000156,0x0006000c,0x00000006,0x00000158,0x00000001,0x00000004, + 0x00000157,0x00050081,0x00000006,0x00000159,0x00000155,0x00000158,0x00050081,0x00000006, + 0x0000015a,0x0000014a,0x00000159,0x0003003e,0x0000012b,0x0000015a,0x0004003d,0x00000006, + 0x0000015d,0x0000012b,0x00050088,0x00000006,0x0000015e,0x0000015c,0x0000015d,0x0003003e, + 0x0000015b,0x0000015e,0x0004003d,0x00000006,0x00000160,0x0000015b,0x0004003d,0x00000006, + 0x00000161,0x0000015b,0x00050085,0x00000006,0x00000162,0x00000160,0x00000161,0x0007000c, + 0x00000006,0x00000164,0x00000001,0x00000025,0x00000162,0x00000163,0x0003003e,0x0000015f, + 0x00000164,0x0004003d,0x00000006,0x00000166,0x0000015f,0x0004003d,0x00000016,0x00000168, + 0x000000c5,0x0003003e,0x00000167,0x00000168,0x0004003d,0x00000016,0x0000016a,0x000000ea, + 0x0003003e,0x00000169,0x0000016a,0x00060039,0x0000000e,0x0000016b,0x0000001b,0x00000167, + 0x00000169,0x00050051,0x00000006,0x0000016c,0x0000016b,0x00000000,0x00050051,0x00000006, + 0x0000016d,0x0000016b,0x00000001,0x00060050,0x0000000c,0x0000016e,0x00000166,0x0000016c, + 0x0000016d,0x0003003e,0x00000165,0x0000016e,0x00050041,0x00000007,0x00000170,0x000000c0, + 0x0000003a,0x0004003d,0x00000006,0x00000171,0x00000170,0x00050081,0x00000006,0x00000172, + 0x00000171,0x00000054,0x00050041,0x00000007,0x00000174,0x000000c0,0x00000031,0x0004003d, + 0x00000006,0x00000175,0x00000174,0x0003003e,0x00000173,0x00000175,0x0003003e,0x00000176, + 0x00000172,0x00050041,0x00000007,0x00000178,0x000000f2,0x00000031,0x0004003d,0x00000006, + 0x00000179,0x00000178,0x0003003e,0x00000177,0x00000179,0x0004003d,0x0000000c,0x0000017b, + 0x00000165,0x0003003e,0x0000017a,0x0000017b,0x00080039,0x0000000e,0x0000017c,0x00000014, + 0x00000173,0x00000176,0x00000177,0x0000017a,0x0003003e,0x0000016f,0x0000017c,0x00050041, + 0x00000007,0x0000017d,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000017e,0x0000017d, + 0x00050083,0x00000006,0x0000017f,0x0000017e,0x00000054,0x00050041,0x00000007,0x00000180, + 0x000000c0,0x0000003a,0x0004003d,0x00000006,0x00000181,0x00000180,0x00050081,0x00000006, + 0x00000182,0x00000181,0x00000054,0x0003003e,0x00000183,0x0000017f,0x0003003e,0x00000184, + 0x00000182,0x00050041,0x00000007,0x00000186,0x000000f2,0x0000003a,0x0004003d,0x00000006, + 0x00000187,0x00000186,0x0003003e,0x00000185,0x00000187,0x0004003d,0x0000000c,0x00000189, + 0x00000165,0x0003003e,0x00000188,0x00000189,0x00080039,0x0000000e,0x0000018a,0x00000014, + 0x00000183,0x00000184,0x00000185,0x00000188,0x0004003d,0x0000000e,0x0000018b,0x0000016f, + 0x00050081,0x0000000e,0x0000018c,0x0000018b,0x0000018a,0x0003003e,0x0000016f,0x0000018c, + 0x00050041,0x00000007,0x0000018d,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000018e, + 0x0000018d,0x00050083,0x00000006,0x0000018f,0x0000018e,0x00000054,0x00050041,0x00000007, + 0x00000190,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x00000191,0x00000190,0x00050083, + 0x00000006,0x00000193,0x00000191,0x00000192,0x0003003e,0x00000194,0x0000018f,0x0003003e, + 0x00000195,0x00000193,0x00050041,0x00000007,0x00000197,0x000000f2,0x00000069,0x0004003d, + 0x00000006,0x00000198,0x00000197,0x0003003e,0x00000196,0x00000198,0x0004003d,0x0000000c, + 0x0000019a,0x00000165,0x0003003e,0x00000199,0x0000019a,0x00080039,0x0000000e,0x0000019b, + 0x00000014,0x00000194,0x00000195,0x00000196,0x00000199,0x0004003d,0x0000000e,0x0000019c, + 0x0000016f,0x00050081,0x0000000e,0x0000019d,0x0000019c,0x0000019b,0x0003003e,0x0000016f, + 0x0000019d,0x00050041,0x00000007,0x0000019e,0x000000c0,0x0000003a,0x0004003d,0x00000006, + 0x0000019f,0x0000019e,0x00050083,0x00000006,0x000001a0,0x0000019f,0x00000192,0x00050041, + 0x00000007,0x000001a2,0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001a3,0x000001a2, + 0x0003003e,0x000001a1,0x000001a3,0x0003003e,0x000001a4,0x000001a0,0x00050041,0x00000007, + 0x000001a6,0x000000f2,0x0000006e,0x0004003d,0x00000006,0x000001a7,0x000001a6,0x0003003e, + 0x000001a5,0x000001a7,0x0004003d,0x0000000c,0x000001a9,0x00000165,0x0003003e,0x000001a8, + 0x000001a9,0x00080039,0x0000000e,0x000001aa,0x00000014,0x000001a1,0x000001a4,0x000001a5, + 0x000001a8,0x0004003d,0x0000000e,0x000001ab,0x0000016f,0x00050081,0x0000000e,0x000001ac, + 0x000001ab,0x000001aa,0x0003003e,0x0000016f,0x000001ac,0x00050041,0x00000007,0x000001ad, + 0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001ae,0x000001ad,0x00050081,0x00000006, + 0x000001af,0x000001ae,0x00000054,0x00050041,0x00000007,0x000001b0,0x000000c0,0x0000003a, + 0x0004003d,0x00000006,0x000001b1,0x000001b0,0x00050083,0x00000006,0x000001b2,0x000001b1, + 0x00000054,0x0003003e,0x000001b3,0x000001af,0x0003003e,0x000001b4,0x000001b2,0x00050041, + 0x00000007,0x000001b6,0x000000c5,0x00000031,0x0004003d,0x00000006,0x000001b7,0x000001b6, + 0x0003003e,0x000001b5,0x000001b7,0x0004003d,0x0000000c,0x000001b9,0x00000165,0x0003003e, + 0x000001b8,0x000001b9,0x00080039,0x0000000e,0x000001ba,0x00000014,0x000001b3,0x000001b4, + 0x000001b5,0x000001b8,0x0004003d,0x0000000e,0x000001bb,0x0000016f,0x00050081,0x0000000e, + 0x000001bc,0x000001bb,0x000001ba,0x0003003e,0x0000016f,0x000001bc,0x00050041,0x00000007, + 0x000001bd,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x000001be,0x000001bd,0x00050083, + 0x00000006,0x000001bf,0x000001be,0x00000054,0x00050041,0x00000007,0x000001c1,0x000000c0, + 0x00000031,0x0004003d,0x00000006,0x000001c2,0x000001c1,0x0003003e,0x000001c0,0x000001c2, + 0x0003003e,0x000001c3,0x000001bf,0x00050041,0x00000007,0x000001c5,0x000000c5,0x0000003a, + 0x0004003d,0x00000006,0x000001c6,0x000001c5,0x0003003e,0x000001c4,0x000001c6,0x0004003d, + 0x0000000c,0x000001c8,0x00000165,0x0003003e,0x000001c7,0x000001c8,0x00080039,0x0000000e, + 0x000001c9,0x00000014,0x000001c0,0x000001c3,0x000001c4,0x000001c7,0x0004003d,0x0000000e, + 0x000001ca,0x0000016f,0x00050081,0x0000000e,0x000001cb,0x000001ca,0x000001c9,0x0003003e, + 0x0000016f,0x000001cb,0x00050041,0x00000007,0x000001cd,0x000000c0,0x00000031,0x0004003d, + 0x00000006,0x000001ce,0x000001cd,0x0003003e,0x000001cc,0x000001ce,0x00050041,0x00000007, + 0x000001d0,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x000001d1,0x000001d0,0x0003003e, + 0x000001cf,0x000001d1,0x00050041,0x00000007,0x000001d3,0x000000c5,0x00000069,0x0004003d, + 0x00000006,0x000001d4,0x000001d3,0x0003003e,0x000001d2,0x000001d4,0x0004003d,0x0000000c, + 0x000001d6,0x00000165,0x0003003e,0x000001d5,0x000001d6,0x00080039,0x0000000e,0x000001d7, + 0x00000014,0x000001cc,0x000001cf,0x000001d2,0x000001d5,0x0004003d,0x0000000e,0x000001d8, + 0x0000016f,0x00050081,0x0000000e,0x000001d9,0x000001d8,0x000001d7,0x0003003e,0x0000016f, + 0x000001d9,0x00050041,0x00000007,0x000001da,0x000000c0,0x00000031,0x0004003d,0x00000006, + 0x000001db,0x000001da,0x00050081,0x00000006,0x000001dc,0x000001db,0x00000054,0x0003003e, + 0x000001dd,0x000001dc,0x00050041,0x00000007,0x000001df,0x000000c0,0x0000003a,0x0004003d, + 0x00000006,0x000001e0,0x000001df,0x0003003e,0x000001de,0x000001e0,0x00050041,0x00000007, + 0x000001e2,0x000000c5,0x0000006e,0x0004003d,0x00000006,0x000001e3,0x000001e2,0x0003003e, + 0x000001e1,0x000001e3,0x0004003d,0x0000000c,0x000001e5,0x00000165,0x0003003e,0x000001e4, + 0x000001e5,0x00080039,0x0000000e,0x000001e6,0x00000014,0x000001dd,0x000001de,0x000001e1, + 0x000001e4,0x0004003d,0x0000000e,0x000001e7,0x0000016f,0x00050081,0x0000000e,0x000001e8, + 0x000001e7,0x000001e6,0x0003003e,0x0000016f,0x000001e8,0x00050041,0x00000007,0x000001e9, + 0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001ea,0x000001e9,0x00050083,0x00000006, + 0x000001eb,0x000001ea,0x00000054,0x00050041,0x00000007,0x000001ec,0x000000c0,0x0000003a, + 0x0004003d,0x00000006,0x000001ed,0x000001ec,0x00050083,0x00000006,0x000001ee,0x000001ed, + 0x00000054,0x0003003e,0x000001ef,0x000001eb,0x0003003e,0x000001f0,0x000001ee,0x00050041, + 0x00000007,0x000001f2,0x000000ea,0x00000031,0x0004003d,0x00000006,0x000001f3,0x000001f2, + 0x0003003e,0x000001f1,0x000001f3,0x0004003d,0x0000000c,0x000001f5,0x00000165,0x0003003e, + 0x000001f4,0x000001f5,0x00080039,0x0000000e,0x000001f6,0x00000014,0x000001ef,0x000001f0, + 0x000001f1,0x000001f4,0x0004003d,0x0000000e,0x000001f7,0x0000016f,0x00050081,0x0000000e, + 0x000001f8,0x000001f7,0x000001f6,0x0003003e,0x0000016f,0x000001f8,0x00050041,0x00000007, + 0x000001f9,0x000000c0,0x00000031,0x0004003d,0x00000006,0x000001fa,0x000001f9,0x00050083, + 0x00000006,0x000001fb,0x000001fa,0x00000192,0x00050041,0x00000007,0x000001fc,0x000000c0, + 0x0000003a,0x0004003d,0x00000006,0x000001fd,0x000001fc,0x00050083,0x00000006,0x000001fe, + 0x000001fd,0x00000054,0x0003003e,0x000001ff,0x000001fb,0x0003003e,0x00000200,0x000001fe, + 0x00050041,0x00000007,0x00000202,0x000000ea,0x0000003a,0x0004003d,0x00000006,0x00000203, + 0x00000202,0x0003003e,0x00000201,0x00000203,0x0004003d,0x0000000c,0x00000205,0x00000165, + 0x0003003e,0x00000204,0x00000205,0x00080039,0x0000000e,0x00000206,0x00000014,0x000001ff, + 0x00000200,0x00000201,0x00000204,0x0004003d,0x0000000e,0x00000207,0x0000016f,0x00050081, + 0x0000000e,0x00000208,0x00000207,0x00000206,0x0003003e,0x0000016f,0x00000208,0x00050041, + 0x00000007,0x00000209,0x000000c0,0x00000031,0x0004003d,0x00000006,0x0000020a,0x00000209, + 0x00050083,0x00000006,0x0000020b,0x0000020a,0x00000192,0x0003003e,0x0000020c,0x0000020b, + 0x00050041,0x00000007,0x0000020e,0x000000c0,0x0000003a,0x0004003d,0x00000006,0x0000020f, + 0x0000020e,0x0003003e,0x0000020d,0x0000020f,0x00050041,0x00000007,0x00000211,0x000000ea, + 0x00000069,0x0004003d,0x00000006,0x00000212,0x00000211,0x0003003e,0x00000210,0x00000212, + 0x0004003d,0x0000000c,0x00000214,0x00000165,0x0003003e,0x00000213,0x00000214,0x00080039, + 0x0000000e,0x00000215,0x00000014,0x0000020c,0x0000020d,0x00000210,0x00000213,0x0004003d, + 0x0000000e,0x00000216,0x0000016f,0x00050081,0x0000000e,0x00000217,0x00000216,0x00000215, + 0x0003003e,0x0000016f,0x00000217,0x00050041,0x00000007,0x00000218,0x000000c0,0x00000031, + 0x0004003d,0x00000006,0x00000219,0x00000218,0x00050083,0x00000006,0x0000021a,0x00000219, + 0x00000054,0x0003003e,0x0000021b,0x0000021a,0x00050041,0x00000007,0x0000021d,0x000000c0, + 0x0000003a,0x0004003d,0x00000006,0x0000021e,0x0000021d,0x0003003e,0x0000021c,0x0000021e, + 0x00050041,0x00000007,0x00000220,0x000000ea,0x0000006e,0x0004003d,0x00000006,0x00000221, + 0x00000220,0x0003003e,0x0000021f,0x00000221,0x0004003d,0x0000000c,0x00000223,0x00000165, + 0x0003003e,0x00000222,0x00000223,0x00080039,0x0000000e,0x00000224,0x00000014,0x0000021b, + 0x0000021c,0x0000021f,0x00000222,0x0004003d,0x0000000e,0x00000225,0x0000016f,0x00050081, + 0x0000000e,0x00000226,0x00000225,0x00000224,0x0003003e,0x0000016f,0x00000226,0x00050041, + 0x00000007,0x00000228,0x0000016f,0x0000003a,0x0004003d,0x00000006,0x00000229,0x00000228, + 0x00050041,0x00000007,0x0000022a,0x0000016f,0x00000031,0x0004003d,0x00000006,0x0000022b, + 0x0000022a,0x00050088,0x00000006,0x0000022c,0x00000229,0x0000022b,0x0003003e,0x00000227, + 0x0000022c,0x00050041,0x00000007,0x0000022e,0x000000c5,0x0000003a,0x0004003d,0x00000006, + 0x0000022f,0x0000022e,0x00050041,0x00000007,0x00000230,0x000000c5,0x00000069,0x0004003d, + 0x00000006,0x00000231,0x00000230,0x0007000c,0x00000006,0x00000232,0x00000001,0x00000028, + 0x0000022f,0x00000231,0x00050041,0x00000007,0x00000233,0x000000ea,0x00000031,0x0004003d, + 0x00000006,0x00000234,0x00000233,0x00050041,0x00000007,0x00000235,0x000000ea,0x0000006e, + 0x0004003d,0x00000006,0x00000236,0x00000235,0x0007000c,0x00000006,0x00000237,0x00000001, + 0x00000028,0x00000234,0x00000236,0x0007000c,0x00000006,0x00000238,0x00000001,0x00000028, + 0x00000232,0x00000237,0x0003003e,0x0000022d,0x00000238,0x00050041,0x00000007,0x0000023a, + 0x000000c5,0x0000003a,0x0004003d,0x00000006,0x0000023b,0x0000023a,0x00050041,0x00000007, + 0x0000023c,0x000000c5,0x00000069,0x0004003d,0x00000006,0x0000023d,0x0000023c,0x0007000c, + 0x00000006,0x0000023e,0x00000001,0x00000025,0x0000023b,0x0000023d,0x00050041,0x00000007, + 0x0000023f,0x000000ea,0x00000031,0x0004003d,0x00000006,0x00000240,0x0000023f,0x00050041, + 0x00000007,0x00000241,0x000000ea,0x0000006e,0x0004003d,0x00000006,0x00000242,0x00000241, + 0x0007000c,0x00000006,0x00000243,0x00000001,0x00000025,0x00000240,0x00000242,0x0007000c, + 0x00000006,0x00000244,0x00000001,0x00000025,0x0000023e,0x00000243,0x0003003e,0x00000239, + 0x00000244,0x00050041,0x00000246,0x00000247,0x00000096,0x00000245,0x0004003d,0x00000006, + 0x00000248,0x00000247,0x0004003d,0x00000006,0x00000249,0x00000227,0x00050085,0x00000006, + 0x0000024a,0x00000248,0x00000249,0x0004003d,0x00000006,0x0000024b,0x00000239,0x0004003d, + 0x00000006,0x0000024c,0x0000022d,0x0008000c,0x00000006,0x0000024d,0x00000001,0x0000002b, + 0x0000024a,0x0000024b,0x0000024c,0x0003003e,0x00000227,0x0000024d,0x0004003d,0x00000006, + 0x0000024f,0x00000227,0x00050041,0x00000007,0x00000250,0x000000a0,0x0000006e,0x0004003d, + 0x00000006,0x00000251,0x00000250,0x00050083,0x00000006,0x00000252,0x0000024f,0x00000251, + 0x0003003e,0x0000024e,0x00000252,0x0004003d,0x00000006,0x00000253,0x0000024e,0x0008000c, + 0x00000006,0x00000256,0x00000001,0x0000002b,0x00000253,0x00000254,0x00000255,0x0003003e, + 0x0000024e,0x00000256,0x00050041,0x00000007,0x00000257,0x000000a0,0x00000031,0x0004003d, + 0x00000006,0x00000258,0x00000257,0x0004003d,0x00000006,0x00000259,0x0000024e,0x00050081, + 0x00000006,0x0000025a,0x00000258,0x00000259,0x0008000c,0x00000006,0x0000025b,0x00000001, + 0x0000002b,0x0000025a,0x00000053,0x00000054,0x00050041,0x00000007,0x0000025c,0x000000a0, + 0x00000031,0x0003003e,0x0000025c,0x0000025b,0x00050041,0x00000007,0x0000025d,0x000000a0, + 0x0000003a,0x0004003d,0x00000006,0x0000025e,0x0000025d,0x0004003d,0x00000006,0x0000025f, + 0x0000024e,0x00050081,0x00000006,0x00000260,0x0000025e,0x0000025f,0x0008000c,0x00000006, + 0x00000261,0x00000001,0x0000002b,0x00000260,0x00000053,0x00000054,0x00050041,0x00000007, + 0x00000262,0x000000a0,0x0000003a,0x0003003e,0x00000262,0x00000261,0x00050041,0x00000007, + 0x00000263,0x000000a0,0x00000069,0x0004003d,0x00000006,0x00000264,0x00000263,0x0004003d, + 0x00000006,0x00000265,0x0000024e,0x00050081,0x00000006,0x00000266,0x00000264,0x00000265, + 0x0008000c,0x00000006,0x00000267,0x00000001,0x0000002b,0x00000266,0x00000053,0x00000054, + 0x00050041,0x00000007,0x00000268,0x000000a0,0x00000069,0x0003003e,0x00000268,0x00000267, + 0x000200f9,0x000000e3,0x000200f8,0x000000e3,0x00050041,0x00000007,0x00000269,0x000000a0, + 0x0000006e,0x0003003e,0x00000269,0x00000054,0x0004003d,0x00000016,0x0000026c,0x000000a0, + 0x0003003e,0x0000026b,0x0000026c,0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000a, + 0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,0x000200f8,0x0000000b,0x0004003b, + 0x00000007,0x0000001d,0x00000007,0x0004003b,0x00000007,0x00000021,0x00000007,0x0004003d, + 0x00000006,0x0000001e,0x00000009,0x00050083,0x00000006,0x00000020,0x0000001e,0x0000001f, + 0x0003003e,0x0000001d,0x00000020,0x0004003d,0x00000006,0x00000022,0x00000009,0x0004003d, + 0x00000006,0x00000023,0x0000001d,0x00050085,0x00000006,0x00000024,0x00000022,0x00000023, + 0x0004003d,0x00000006,0x00000025,0x0000001d,0x00050083,0x00000006,0x00000026,0x00000024, + 0x00000025,0x0003003e,0x00000021,0x00000026,0x0004003d,0x00000006,0x00000027,0x0000001d, + 0x0004003d,0x00000006,0x00000028,0x0000001d,0x00050085,0x00000006,0x00000029,0x00000028, + 0x00000027,0x0003003e,0x0000001d,0x00000029,0x0004003d,0x00000006,0x0000002a,0x00000021, + 0x0004003d,0x00000006,0x0000002b,0x0000001d,0x00050085,0x00000006,0x0000002c,0x0000002a, + 0x0000002b,0x000200fe,0x0000002c,0x00010038,0x00050036,0x0000000e,0x00000014,0x00000000, + 0x0000000f,0x00030037,0x00000007,0x00000010,0x00030037,0x00000007,0x00000011,0x00030037, + 0x00000007,0x00000012,0x00030037,0x0000000d,0x00000013,0x000200f8,0x00000015,0x0004003b, + 0x00000007,0x0000002f,0x00000007,0x0004003b,0x00000034,0x00000035,0x00000007,0x0004003b, + 0x00000007,0x00000038,0x00000007,0x0004003b,0x00000007,0x00000043,0x00000007,0x0004003b, + 0x00000007,0x0000005b,0x00000007,0x0004003b,0x00000007,0x0000005c,0x00000007,0x00050041, + 0x00000007,0x00000032,0x00000013,0x00000031,0x0004003d,0x00000006,0x00000033,0x00000032, + 0x0003003e,0x0000002f,0x00000033,0x0004003d,0x0000000c,0x00000036,0x00000013,0x0007004f, + 0x0000000e,0x00000037,0x00000036,0x00000036,0x00000001,0x00000002,0x0003003e,0x00000035, + 0x00000037,0x0004003d,0x00000006,0x00000039,0x00000010,0x00050041,0x00000007,0x0000003b, + 0x00000035,0x0000003a,0x0004003d,0x00000006,0x0000003c,0x0000003b,0x00050085,0x00000006, + 0x0000003d,0x00000039,0x0000003c,0x0004003d,0x00000006,0x0000003e,0x00000011,0x00050041, + 0x00000007,0x0000003f,0x00000035,0x00000031,0x0004003d,0x00000006,0x00000040,0x0000003f, + 0x00050085,0x00000006,0x00000041,0x0000003e,0x00000040,0x00050081,0x00000006,0x00000042, + 0x0000003d,0x00000041,0x0003003e,0x00000038,0x00000042,0x0004003d,0x00000006,0x00000044, + 0x00000010,0x0004003d,0x00000006,0x00000045,0x00000010,0x00050085,0x00000006,0x00000046, + 0x00000044,0x00000045,0x0004003d,0x00000006,0x00000047,0x00000011,0x0004003d,0x00000006, + 0x00000048,0x00000011,0x00050085,0x00000006,0x00000049,0x00000047,0x00000048,0x00050081, + 0x00000006,0x0000004a,0x00000046,0x00000049,0x0004003d,0x00000006,0x0000004b,0x00000038, + 0x0004003d,0x00000006,0x0000004c,0x00000038,0x00050085,0x00000006,0x0000004d,0x0000004b, + 0x0000004c,0x0004003d,0x00000006,0x0000004e,0x00000012,0x0004003d,0x00000006,0x0000004f, + 0x00000012,0x00050085,0x00000006,0x00000050,0x0000004e,0x0000004f,0x0004003d,0x00000006, + 0x00000051,0x0000002f,0x00050085,0x00000006,0x00000052,0x00000050,0x00000051,0x0008000c, + 0x00000006,0x00000055,0x00000001,0x0000002b,0x00000052,0x00000053,0x00000054,0x00050085, + 0x00000006,0x00000057,0x00000055,0x00000056,0x00050083,0x00000006,0x00000058,0x00000057, + 0x00000054,0x00050085,0x00000006,0x00000059,0x0000004d,0x00000058,0x00050081,0x00000006, + 0x0000005a,0x0000004a,0x00000059,0x0003003e,0x00000043,0x0000005a,0x0004003d,0x00000006, + 0x0000005d,0x00000043,0x0003003e,0x0000005c,0x0000005d,0x00050039,0x00000006,0x0000005e, + 0x0000000a,0x0000005c,0x0003003e,0x0000005b,0x0000005e,0x0004003d,0x00000006,0x0000005f, + 0x0000005b,0x0004003d,0x00000006,0x00000060,0x0000005b,0x0004003d,0x00000006,0x00000061, + 0x00000012,0x00050085,0x00000006,0x00000062,0x00000060,0x00000061,0x00050050,0x0000000e, + 0x00000063,0x0000005f,0x00000062,0x000200fe,0x00000063,0x00010038,0x00050036,0x0000000e, + 0x0000001b,0x00000000,0x00000018,0x00030037,0x00000017,0x00000019,0x00030037,0x00000017, + 0x0000001a,0x000200f8,0x0000001c,0x0004003b,0x00000007,0x00000066,0x00000007,0x0004003b, + 0x00000007,0x0000006d,0x00000007,0x0004003b,0x00000034,0x00000074,0x00000007,0x0004003b, + 0x00000034,0x0000007d,0x00000007,0x0004003b,0x00000007,0x0000007f,0x00000007,0x00050041, + 0x00000007,0x00000067,0x0000001a,0x00000031,0x0004003d,0x00000006,0x00000068,0x00000067, + 0x00050041,0x00000007,0x0000006a,0x00000019,0x00000069,0x0004003d,0x00000006,0x0000006b, + 0x0000006a,0x00050083,0x00000006,0x0000006c,0x00000068,0x0000006b,0x0003003e,0x00000066, + 0x0000006c,0x00050041,0x00000007,0x0000006f,0x0000001a,0x0000006e,0x0004003d,0x00000006, + 0x00000070,0x0000006f,0x00050041,0x00000007,0x00000071,0x00000019,0x0000003a,0x0004003d, + 0x00000006,0x00000072,0x00000071,0x00050083,0x00000006,0x00000073,0x00000070,0x00000072, + 0x0003003e,0x0000006d,0x00000073,0x0004003d,0x00000006,0x00000075,0x00000066,0x0004003d, + 0x00000006,0x00000076,0x0000006d,0x00050081,0x00000006,0x00000077,0x00000075,0x00000076, + 0x00050041,0x00000007,0x00000078,0x00000074,0x00000031,0x0003003e,0x00000078,0x00000077, + 0x0004003d,0x00000006,0x00000079,0x00000066,0x0004003d,0x00000006,0x0000007a,0x0000006d, + 0x00050083,0x00000006,0x0000007b,0x00000079,0x0000007a,0x00050041,0x00000007,0x0000007c, + 0x00000074,0x0000003a,0x0003003e,0x0000007c,0x0000007b,0x0004003d,0x0000000e,0x0000007e, + 0x00000074,0x0003003e,0x0000007d,0x0000007e,0x00050041,0x00000007,0x00000080,0x0000007d, + 0x00000031,0x0004003d,0x00000006,0x00000081,0x00000080,0x00050041,0x00000007,0x00000082, + 0x0000007d,0x00000031,0x0004003d,0x00000006,0x00000083,0x00000082,0x00050085,0x00000006, + 0x00000084,0x00000081,0x00000083,0x00050081,0x00000006,0x00000086,0x00000084,0x00000085, + 0x00050041,0x00000007,0x00000087,0x0000007d,0x0000003a,0x0004003d,0x00000006,0x00000088, + 0x00000087,0x00050041,0x00000007,0x00000089,0x0000007d,0x0000003a,0x0004003d,0x00000006, + 0x0000008a,0x00000089,0x00050085,0x00000006,0x0000008b,0x00000088,0x0000008a,0x00050081, + 0x00000006,0x0000008c,0x00000086,0x0000008b,0x0006000c,0x00000006,0x0000008d,0x00000001, + 0x00000020,0x0000008c,0x0003003e,0x0000007f,0x0000008d,0x0004003d,0x0000000e,0x0000008e, + 0x00000074,0x0004003d,0x00000006,0x0000008f,0x0000007f,0x0005008e,0x0000000e,0x00000090, + 0x0000008e,0x0000008f,0x000200fe,0x00000090,0x00010038 +}; diff --git a/app/src/main/cpp/waylandcomp/src/effects_chain.c b/app/src/main/cpp/waylandcomp/src/effects_chain.c index 40db5a53ae..d711e565f3 100644 --- a/app/src/main/cpp/waylandcomp/src/effects_chain.c +++ b/app/src/main/cpp/waylandcomp/src/effects_chain.c @@ -27,6 +27,18 @@ #include "ntsc_frag.h" #include "crt_frag.h" #include "deband_frag.h" +/* Half-precision upscaler/CAS set (shaders/gen_shaders.sh -DDD_HALF=1), ported from Bannerlator. */ +#include "sgsr_half_frag.h" +#include "sgsr_quality_half_frag.h" +#include "nis_luma_half_frag.h" +#include "nis3_half_frag.h" +#include "nis_coef.h" +#include "fsr_easu_half_frag.h" +#include "fsr_rcas_half_frag.h" +#include "cas_ffx_half_frag.h" +#ifdef __ANDROID__ +#include +#endif #define FX_FORMAT VK_FORMAT_R8G8B8A8_UNORM @@ -221,9 +233,21 @@ static VkDescriptorSetLayout g_dsl; static VkPipelineLayout g_pl; static VkDescriptorPool g_dpool; static VkSampler g_sampler; -enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_FXAA_TOON, P_SMAA_EDGE, P_SMAA_WEIGHTS, P_SMAA_BLEND, P_TOON, P_TOON_COLOR, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_COUNT }; +enum { P_SGSR, P_SGSR_HQ, P_NIS, P_EASU, P_RCAS, P_CAS, P_COLOR, P_FXAA, P_FXAA_TOON, P_SMAA_EDGE, P_SMAA_WEIGHTS, P_SMAA_BLEND, P_TOON, P_TOON_COLOR, P_HDR, P_NTSC, P_CRT, P_DEBAND, P_NIS_LUMA, P_COUNT }; static VkPipeline g_pipe[P_COUNT]; static struct fx_target g_t[2], g_mid, g_smaa_edges, g_smaa_weights; +/* Half set: NIS = nis_luma prepass (scene rgb + luma in alpha, scene size) into g_nissrc, then + * nis3 gathers its luma from that alpha, its coefficient banks (nis_coef.h) in a uniform buffer + * at descriptor set 1 (g_pl_nis = {g_dsl, g_coef_dsl}, same push-constant range as g_pl). + * Old set (or no buffer): nis.frag on the scene, P_NIS_LUMA unused. */ +static struct fx_target g_nissrc; +static int g_nis_fast; +static VkDescriptorSetLayout g_coef_dsl; +static VkPipelineLayout g_pl_nis; +static VkDescriptorPool g_coef_pool; +static VkDescriptorSet g_coef_ds; +static VkBuffer g_coef_buf; +static VkDeviceMemory g_coef_mem; static struct { VkImage img; VkImageView view; VkDescriptorSet ds; int w, h; } g_scene; @@ -344,7 +368,7 @@ static VkShaderModule shader(const uint32_t *code, size_t size) { static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert, const uint32_t *frag_code, size_t frag_size, VkRenderPass render_pass, - const char *name) { + const char *name, VkPipelineLayout layout) { VkShaderModule frag = shader(frag_code, frag_size); if (!frag) { droiddeck_log("error", "effects: %s: vkCreateShaderModule failed", name); return VK_NULL_HANDLE; } VkPipelineShaderStageCreateInfo st[2] = { @@ -369,7 +393,7 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert, VkGraphicsPipelineCreateInfo pi = {.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO, .stageCount = 2, .pStages = st, .pVertexInputState = &vi, .pInputAssemblyState = &ia, .pViewportState = &vp, .pRasterizationState = &rs, .pMultisampleState = &ms, - .pColorBlendState = &cb, .pDynamicState = &ds, .layout = g_pl, + .pColorBlendState = &cb, .pDynamicState = &ds, .layout = layout, .renderPass = render_pass, .subpass = 0}; VkPipeline p = VK_NULL_HANDLE; VkResult r = g_vk.CreateGraphicsPipelines(g_dev, VK_NULL_HANDLE, 1, &pi, NULL, &p); @@ -378,19 +402,84 @@ static VkPipeline post_pipeline_for_renderpass(VkShaderModule vert, return p; } -static VkPipeline post_pipeline(VkShaderModule vert, const uint32_t *frag_code, - size_t frag_size, const char *name) { - return post_pipeline_for_renderpass(vert, frag_code, frag_size, g_rp, name); +static void coef_destroy(void) { + if (g_coef_pool) g_vk.DestroyDescriptorPool(g_dev, g_coef_pool, NULL); /* frees g_coef_ds */ + if (g_coef_buf) g_vk.DestroyBuffer(g_dev, g_coef_buf, NULL); + if (g_coef_mem) g_vk.FreeMemory(g_dev, g_coef_mem, NULL); + if (g_pl_nis) g_vk.DestroyPipelineLayout(g_dev, g_pl_nis, NULL); + if (g_coef_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_coef_dsl, NULL); + g_coef_pool = VK_NULL_HANDLE; g_coef_ds = VK_NULL_HANDLE; g_coef_buf = VK_NULL_HANDLE; + g_coef_mem = VK_NULL_HANDLE; g_pl_nis = VK_NULL_HANDLE; g_coef_dsl = VK_NULL_HANDLE; +} + +/* nis3's coefficient banks: a 4 KB host-visible uniform buffer (scale then usm), filled once. 0 = ok. */ +static int coef_create(void) { + VkDescriptorSetLayoutBinding b = {.binding = 0, .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, + .descriptorCount = 1, .stageFlags = VK_SHADER_STAGE_FRAGMENT_BIT}; + VkDescriptorSetLayoutCreateInfo dli = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO, .bindingCount = 1, .pBindings = &b}; + if (g_vk.CreateDescriptorSetLayout(g_dev, &dli, NULL, &g_coef_dsl) != VK_SUCCESS) goto fail; + VkDescriptorSetLayout sets[2] = {g_dsl, g_coef_dsl}; + VkPushConstantRange pcr = {.stageFlags = VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, .offset = 0, .size = PC_MAX_SIZE}; + VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = sets, + .pushConstantRangeCount = 1, .pPushConstantRanges = &pcr}; + if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl_nis) != VK_SUCCESS) goto fail; + VkBufferCreateInfo bci = {.sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, .size = 4096, + .usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT, .sharingMode = VK_SHARING_MODE_EXCLUSIVE}; + if (g_vk.CreateBuffer(g_dev, &bci, NULL, &g_coef_buf) != VK_SUCCESS) goto fail; + VkMemoryRequirements req; + g_vk.GetBufferMemoryRequirements(g_dev, g_coef_buf, &req); + int idx = memtype(req.memoryTypeBits, VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | VK_MEMORY_PROPERTY_HOST_COHERENT_BIT); + if (idx < 0) goto fail; + VkMemoryAllocateInfo mai = {.sType = VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO, .allocationSize = req.size, .memoryTypeIndex = (uint32_t)idx}; + if (g_vk.AllocateMemory(g_dev, &mai, NULL, &g_coef_mem) != VK_SUCCESS) goto fail; + if (g_vk.BindBufferMemory(g_dev, g_coef_buf, g_coef_mem, 0) != VK_SUCCESS) goto fail; + void *p = NULL; + if (g_vk.MapMemory(g_dev, g_coef_mem, 0, 4096, 0, &p) != VK_SUCCESS || !p) goto fail; + memcpy(p, kNisCoefScale, sizeof(kNisCoefScale)); + memcpy((char *)p + sizeof(kNisCoefScale), kNisCoefUsm, sizeof(kNisCoefUsm)); + g_vk.UnmapMemory(g_dev, g_coef_mem); + VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1}; + VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, .maxSets = 1, .poolSizeCount = 1, .pPoolSizes = &ps}; + if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_coef_pool) != VK_SUCCESS) goto fail; + VkDescriptorSetAllocateInfo ai = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO, .descriptorPool = g_coef_pool, + .descriptorSetCount = 1, .pSetLayouts = &g_coef_dsl}; + if (g_vk.AllocateDescriptorSets(g_dev, &ai, &g_coef_ds) != VK_SUCCESS) goto fail; + VkDescriptorBufferInfo bi = {.buffer = g_coef_buf, .offset = 0, .range = 4096}; + VkWriteDescriptorSet wr = {.sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET, .dstSet = g_coef_ds, .dstBinding = 0, + .descriptorCount = 1, .descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, .pBufferInfo = &bi}; + g_vk.UpdateDescriptorSets(g_dev, 1, &wr, 0, NULL); + return 0; +fail: + coef_destroy(); + return -1; +} + +/* nis_luma keeps luma in the target's alpha: only formats with at least 8 alpha bits (not the + * 2-bit alpha of the 10-bit HDR composition format) can hold it. */ +static int fx_alpha_holds_luma(VkFormat f) { + return f == VK_FORMAT_R8G8B8A8_UNORM || f == VK_FORMAT_B8G8R8A8_UNORM || + f == VK_FORMAT_R16G16B16A16_SFLOAT || f == VK_FORMAT_R16G16B16A16_UNORM; +} + +/* The half-precision upscaler set unless debug.droiddeck.upscale.shaders is "old" (the fp32 + * shaders, for A/B comparisons). */ +static int upscale_half_set(void) { +#ifdef __ANDROID__ + char v[PROP_VALUE_MAX] = {0}; + if (__system_property_get("debug.droiddeck.upscale.shaders", v) > 0 && strcmp(v, "old") == 0) return 0; +#endif + return 1; } static void objects_destroy(void) { if (!g_dev) return; scene_release(); target_destroy(&g_t[0]); target_destroy(&g_t[1]); target_destroy(&g_mid); - target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights); + target_destroy(&g_smaa_edges); target_destroy(&g_smaa_weights); target_destroy(&g_nissrc); for (int i = 0; i < P_COUNT; i++) { if (g_pipe[i]) g_vk.DestroyPipeline(g_dev, g_pipe[i], NULL); g_pipe[i] = VK_NULL_HANDLE; } if (g_dpool) g_vk.DestroyDescriptorPool(g_dev, g_dpool, NULL); if (g_pl) g_vk.DestroyPipelineLayout(g_dev, g_pl, NULL); + coef_destroy(); if (g_dsl) g_vk.DestroyDescriptorSetLayout(g_dev, g_dsl, NULL); if (g_sampler) g_vk.DestroySampler(g_dev, g_sampler, NULL); if (g_smaa_rp) g_vk.DestroyRenderPass(g_dev, g_smaa_rp, NULL); @@ -467,29 +556,61 @@ static int objects_ensure(void) { VkPipelineLayoutCreateInfo pli = {.sType = VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO, .setLayoutCount = 2, .pSetLayouts = set_layouts, .pushConstantRangeCount = 1, .pPushConstantRanges = &pcr}; if (g_vk.CreatePipelineLayout(g_dev, &pli, NULL, &g_pl) != VK_SUCCESS) goto fail; - VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 8}; + VkDescriptorPoolSize ps = {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, 10}; VkDescriptorPoolCreateInfo dpi = {.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO, - .flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = 8, + .flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, .maxSets = 10, .poolSizeCount = 1, .pPoolSizes = &ps}; if (g_vk.CreateDescriptorPool(g_dev, &dpi, NULL, &g_dpool) != VK_SUCCESS) goto fail; VkShaderModule vert = shader(upscale_vert_code, sizeof(upscale_vert_code)); if (!vert) goto fail; -#define MK(slot, code, name) do { g_pipe[slot] = post_pipeline(vert, code, sizeof(code), name); if (!g_pipe[slot]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } } while (0) - MK(P_SGSR, sgsr_code, "sgsr"); - MK(P_SGSR_HQ, sgsr_quality_code, "sgsr_quality"); - MK(P_NIS, nis_code, "nis"); - MK(P_EASU, fsr_easu_code, "fsr_easu"); - MK(P_RCAS, fsr_rcas_code, "fsr_rcas"); - MK(P_CAS, cas_code, "cas"); +#define MKL(slot, code, name, layout) do { g_pipe[slot] = post_pipeline_for_renderpass(vert, code, sizeof(code), g_rp, name, layout); if (!g_pipe[slot]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } } while (0) +#define MK(slot, code, name) MKL(slot, code, name, g_pl) + const int half = upscale_half_set(); + g_nis_fast = 0; + if (half && !fx_alpha_holds_luma(g_fx_fmt)) + droiddeck_log("effects", "NIS uses nis.frag: the chain format has no 8-bit alpha for the luma prepass"); + else if (half && coef_create() != 0) + droiddeck_log("effects", "NIS coefficient buffer unavailable; NIS uses nis.frag"); + else if (half) + g_nis_fast = 1; + if (half) { + MK(P_SGSR, sgsr_half_code, "sgsr_half"); + MK(P_SGSR_HQ, sgsr_quality_half_code, "sgsr_quality_half"); + if (g_nis_fast) { + /* optional: a driver that rejects either fast NIS pipeline gets nis.frag, not a dead chain */ + g_pipe[P_NIS] = post_pipeline_for_renderpass(vert, nis3_half_code, sizeof(nis3_half_code), g_rp, "nis3_half", g_pl_nis); + g_pipe[P_NIS_LUMA] = g_pipe[P_NIS] + ? post_pipeline_for_renderpass(vert, nis_luma_half_code, sizeof(nis_luma_half_code), g_rp, "nis_luma_half", g_pl) + : VK_NULL_HANDLE; + if (!g_pipe[P_NIS] || !g_pipe[P_NIS_LUMA]) { + if (g_pipe[P_NIS]) g_vk.DestroyPipeline(g_dev, g_pipe[P_NIS], NULL); + g_pipe[P_NIS] = VK_NULL_HANDLE; + coef_destroy(); + g_nis_fast = 0; + droiddeck_log("effects", "fast NIS pipelines failed to build; NIS uses nis.frag"); + } + } + if (!g_nis_fast) MK(P_NIS, nis_code, "nis"); + MK(P_EASU, fsr_easu_half_code, "fsr_easu_half"); + MK(P_RCAS, fsr_rcas_half_code, "fsr_rcas_half"); + MK(P_CAS, cas_ffx_half_code, "cas_ffx_half"); + } else { + MK(P_SGSR, sgsr_code, "sgsr"); + MK(P_SGSR_HQ, sgsr_quality_code, "sgsr_quality"); + MK(P_NIS, nis_code, "nis"); + MK(P_EASU, fsr_easu_code, "fsr_easu"); + MK(P_RCAS, fsr_rcas_code, "fsr_rcas"); + MK(P_CAS, cas_code, "cas"); + } MK(P_COLOR, color_code, "color"); MK(P_FXAA, fxaa_code, "fxaa"); MK(P_FXAA_TOON, fxaa_toon_code, "fxaa_toon"); g_pipe[P_SMAA_EDGE] = post_pipeline_for_renderpass( - vert, smaa_edge_code, sizeof(smaa_edge_code), g_smaa_rp, "smaa_edge"); + vert, smaa_edge_code, sizeof(smaa_edge_code), g_smaa_rp, "smaa_edge", g_pl); if (!g_pipe[P_SMAA_EDGE]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } g_pipe[P_SMAA_WEIGHTS] = post_pipeline_for_renderpass( - vert, smaa_weights_code, sizeof(smaa_weights_code), g_smaa_rp, "smaa_weights"); + vert, smaa_weights_code, sizeof(smaa_weights_code), g_smaa_rp, "smaa_weights", g_pl); if (!g_pipe[P_SMAA_WEIGHTS]) { g_vk.DestroyShaderModule(g_dev, vert, NULL); goto fail; } MK(P_SMAA_BLEND, smaa_blend_code, "smaa_blend"); MK(P_TOON, toon_code, "toon"); @@ -499,9 +620,11 @@ static int objects_ensure(void) { MK(P_CRT, crt_code, "crt"); MK(P_DEBAND, deband_code, "deband"); #undef MK +#undef MKL g_vk.DestroyShaderModule(g_dev, vert, NULL); g_ready = 1; - droiddeck_log("effects", "chain ready: 16 pipelines (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, SMAA edge/weights/blend, Toon, HDR, NTSC, CRT, deband) on %s", vkp_gpu_name()); + droiddeck_log("effects", "chain ready: 16 pipelines (SGSR, SGSR HQ, NIS, FSR EASU+RCAS, CAS, colour, FXAA, SMAA edge/weights/blend, Toon, HDR, NTSC, CRT, deband), %s upscalers%s, on %s", + half ? "half-precision" : "old fp32", g_nis_fast ? " + NIS luma prepass" : "", vkp_gpu_name()); return 0; fail: objects_destroy(); @@ -529,6 +652,8 @@ static void pass_renderpass(VkCommandBuffer cmd, VkRenderPass render_pass, g_vk.CmdBeginRenderPass(cmd, &rpi, VK_SUBPASS_CONTENTS_INLINE); g_vk.CmdBindPipeline(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, p); g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl, 0, 1, &src, 0, NULL); + if (g_nis_fast && p == g_pipe[P_NIS] && g_coef_ds) /* nis3: coefficient banks at set 1 */ + g_vk.CmdBindDescriptorSets(cmd, VK_PIPELINE_BIND_POINT_GRAPHICS, g_pl_nis, 1, 1, &g_coef_ds, 0, NULL); g_vk.CmdPushConstants(cmd, g_pl, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pcsz, pc); g_vk.CmdDraw(cmd, 4, 1, 0, 0); g_vk.CmdEndRenderPass(cmd); @@ -633,7 +758,31 @@ VkImage vkp_effects_run(VkCommandBuffer cmd, VkImage scene, int scene_w, int sce pc.vp[0] = 1.0f / (float)scene_w; pc.vp[1] = 1.0f / (float)scene_h; pc.vp[2] = (float)scene_w; pc.vp[3] = (float)scene_h; pc.edge = spatial == 7 ? sharp01 : 0.5f + sharp01 * 4.0f; - pass(cmd, g_pipe[spatial == 3 ? P_SGSR : spatial == 8 ? P_SGSR_HQ : P_NIS], dst, g_scene.ds, &pc, sizeof(pc)); + VkDescriptorSet src = g_scene.ds; + int nis_pipe = P_NIS; + if (spatial == 7 && g_nis_fast && + target_ensure(&g_nissrc, scene_w, scene_h, FX_SCRATCH_USAGE, "NIS luma") != 0) { + /* nis3 needs the prepass image; without it this frame takes SGSR from the scene + * instead of dropping every effect */ + static int warned; + if (!__atomic_exchange_n(&warned, 1, __ATOMIC_RELAXED)) + droiddeck_log("error", "effects: NIS luma target allocation failed; SGSR instead"); + nis_pipe = P_SGSR; + pc.edge = 0.5f + sharp01 * 4.0f; + } else if (spatial == 7 && g_nis_fast) { + /* NIS prepass: scene -> g_nissrc 1:1 (rgb + luma in alpha); only ndc is read. */ + struct pc_res pl = {0}; + SET_NDC(pl); + VkViewport scene_vp = {0, 0, (float)scene_w, (float)scene_h, 0, 1}; + VkRect2D scene_sc = {{0, 0}, {(uint32_t)scene_w, (uint32_t)scene_h}}; + g_vk.CmdSetViewport(cmd, 0, 1, &scene_vp); + g_vk.CmdSetScissor(cmd, 0, 1, &scene_sc); + pass(cmd, g_pipe[P_NIS_LUMA], &g_nissrc, g_scene.ds, &pl, sizeof(pl.ndc)); + g_vk.CmdSetViewport(cmd, 0, 1, &chain_vp); + g_vk.CmdSetScissor(cmd, 0, 1, &chain_sc); + src = g_nissrc.ds; + } + pass(cmd, g_pipe[spatial == 3 ? P_SGSR : spatial == 8 ? P_SGSR_HQ : nis_pipe], dst, src, &pc, sizeof(pc)); } else if (spatial == 6) { struct pc_rcas pc = {0}; SET_NDC(pc);