Xbox Cloud Gaming app for PS5 Homebrew
C
Block smoothing (deband) before the FSR upscale
Rafael Abud Ferreirab560da2fbacc
diff --git a/src/app/cli_main.cpp b/src/app/cli_main.cppindex 7c8aeec..9dcd1c3 100644--- a/src/app/cli_main.cpp+++ b/src/app/cli_main.cpp@@ -632,7 +632,7 @@ int main(int argc, char** argv) {save("menu", menu.renderMenu(info), ui::StreamMenu::kMenuX, ui::StreamMenu::kMenuY, 235);ui::NavInput n;n.down = true;- for (int i = 0; i < 3; ++i) menu.handle(n);+ for (int i = 0; i < 4; ++i) menu.handle(n);n = {};n.right = true;menu.handle(n); // 1080p -> 1440pdiff --git a/src/app/ps5_main.cpp b/src/app/ps5_main.cppindex 6ff3315..4b9ec00 100644--- a/src/app/ps5_main.cpp+++ b/src/app/ps5_main.cpp@@ -147,8 +147,8 @@ void updateTextInput(app::StreamPlayer* player) {// for 3 s), vibetest (each motor and trigger alone, announced, no game), detailtest (opens a game to// buy far down the list instead of playing, saves detail.ppm), imetest (opens// the system keyboard on the home screen), menutest (in the game: the menu,-// 720p, back to 1080p), res=720p|1080p|1080p-hq|1440p and sharp=0..3 (instead-// of the settings).+// 720p, back to 1080p), res=720p|1080p|1080p-hq|1440p, sharp=0..3 and+// deband=0..2 (instead of the settings).// The title "BENCH" decodes <dataDir>/sample.h264 instead.std::string g_autoplayTitle;@@ -164,6 +164,7 @@ bool g_autoplayVibeTest = false; // each motor alone, with a notificationbool g_autoplayImeTest = false; // open the system keyboard on the home screenbool g_autoplayMenuTest = false; // in the game: open the menu, switch to 720pint g_decodeThreads = 1;+int g_autoplayDeband = -1; // deband=0..2: instead of the settingint g_autoplaySharpness = -1; // sharp=0..3: instead of the settingstd::string g_autoplayResolution; // res=720p|1080p|1440p: instead of the settingstd::atomic<bool> g_syntheticA{false};@@ -196,6 +197,7 @@ void loadAutoplay() {if (opt == "menutest") g_autoplayMenuTest = true;if (opt.rfind("res=", 0) == 0) g_autoplayResolution = opt.substr(4);if (opt.rfind("sharp=", 0) == 0) g_autoplaySharpness = std::atoi(opt.c_str() + 6);+ if (opt.rfind("deband=", 0) == 0) g_autoplayDeband = std::atoi(opt.c_str() + 7);if (opt.rfind("threads=", 0) == 0) g_decodeThreads = std::atoi(opt.c_str() + 8);}g_autoplayTitle = title;@@ -788,6 +790,7 @@ int main(int argc, char** argv) {int streamResolution = 0; // as SettingsChoice::resolutionbool showStats = false, overlayShown = false;int sharpness = 0; // 0..3, as Settings::sharpness+ int deband = 1; // 0..2, as Settings::deband// How much CAS each sharpness level mixes in (display::setSharpness).static constexpr int kSharpAmount[] = {0, 96, 176, 256};bool padReleased = true;@@ -839,19 +842,19 @@ int main(int argc, char** argv) {bool menuCombo = pad.btnOptions && pad.btnTouchpad && !(prev.btnOptions && prev.btnTouchpad);prev = pad;if (g_autoplayMenuTest && g_ui->screen() == ui::Screen::Streaming) {- // Menu, down three times to the resolution, left to 720p, accept; at+ // Menu, down four times to the resolution, left to 720p, accept; at// 35 s right (back to 1080p) and accept.static uint64_t since = 0;static int step = 0;if (!since) since = now;- const uint64_t at[] = {12000, 13000, 13300, 13600, 14000, 14500, 35000, 35500};- if (step < 8 && now - since >= at[step]) {+ const uint64_t at[] = {12000, 13000, 13300, 13600, 13800, 14000, 14500, 35000, 35500};+ if (step < 9 && now - since >= at[step]) {nav = ui::NavInput{};if (step == 0) menuCombo = true;- if (step >= 1 && step <= 3) nav.down = true;- if (step == 4) nav.left = true;- if (step == 5 || step == 7) nav.accept = true;- if (step == 6) nav.right = true;+ if (step >= 1 && step <= 4) nav.down = true;+ if (step == 5) nav.left = true;+ if (step == 6 || step == 8) nav.accept = true;+ if (step == 7) nav.right = true;XC_LOGI("autoplay: menu step %d", step);++step;}@@ -868,6 +871,8 @@ int main(int argc, char** argv) {showStats = g_settings.streamStats;sharpness = g_autoplaySharpness >= 0 ? g_autoplaySharpness : g_settings.sharpness;display::setSharpness(kSharpAmount[std::clamp(sharpness, 0, 3)]);+ deband = g_autoplayDeband >= 0 ? g_autoplayDeband : g_settings.deband;+ display::setDeband(deband);overlaySeq = 0;}if (g_player) {@@ -876,7 +881,7 @@ int main(int argc, char** argv) {bool wasOpen = menu.isOpen();if (!wasOpen && menuCombo && g_keyboardFor.empty()) {menu.setCircleConfirms(g_settings.circleConfirms);- menu.open(streamResolution, showStats, sharpness);+ menu.open(streamResolution, showStats, sharpness, deband);overlaySeq = 0;} else if (wasOpen) {switch (menu.handle(nav)) {@@ -896,6 +901,14 @@ int main(int argc, char** argv) {g_settings.save(settingsPath());break;}+ case ui::MenuAction::Deband: {+ deband = menu.deband();+ display::setDeband(deband);+ std::lock_guard<std::mutex> settingsLock(g_settingsMutex);+ g_settings.deband = deband;+ g_settings.save(settingsPath());+ break;+ }case ui::MenuAction::Stats: {showStats = menu.statsOn();std::lock_guard<std::mutex> settingsLock(g_settingsMutex);diff --git a/src/app/settings.cpp b/src/app/settings.cppindex ed1a11a..bae46a6 100644--- a/src/app/settings.cpp+++ b/src/app/settings.cpp@@ -24,6 +24,7 @@ bool Settings::load(const std::string& path) {librarySort = (*j)["librarySort"].str(librarySort);streamStats = (*j)["streamStats"].asBool(streamStats);sharpness = static_cast<int>(std::clamp<int64_t>((*j)["sharpness"].asInt(sharpness), 0, 3));+ deband = static_cast<int>(std::clamp<int64_t>((*j)["deband"].asInt(deband), 0, 2));deadzone = static_cast<int>(std::clamp<int64_t>((*j)["deadzone"].asInt(deadzone), 0, 50));triggerRumble = (*j)["triggerRumble"].asBool(triggerRumble);circleConfirms = (*j)["circleConfirms"].asBool(circleConfirms);@@ -47,6 +48,7 @@ bool Settings::save(const std::string& path) const {v.set("librarySort", librarySort);v.set("streamStats", streamStats);v.set("sharpness", sharpness);+ v.set("deband", deband);v.set("deadzone", deadzone);v.set("triggerRumble", triggerRumble);v.set("circleConfirms", circleConfirms);diff --git a/src/app/settings.h b/src/app/settings.hindex da89448..7dcd7c7 100644--- a/src/app/settings.h+++ b/src/app/settings.h@@ -23,6 +23,8 @@ struct Settings {bool streamStats = false;// Sharpening of the game picture: 0 off, 1..3 low, medium, high.int sharpness = 0;+ // Smoothing of compression blocks (GPU display): 0 off, 1 low, 2 high.+ int deband = 1;// Controller: stick dead zone (percent), vibration in the triggers,// Circle as the confirm button (Xbox A).int deadzone = 15;diff --git a/src/display/display.cpp b/src/display/display.cppindex d27e54a..d5780b5 100644--- a/src/display/display.cpp+++ b/src/display/display.cpp@@ -499,6 +499,8 @@ void setSharpness(int amount) {gpu::setSharpness(amount);}+void setDeband(int level) { gpu::setDeband(level); }+void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opacity) {if (gpu::ready()) return gpu::setOverlay(pixels, x, y, w, h, opacity);std::shared_ptr<const Overlay> next;@@ -526,6 +528,7 @@ bool drawYuv420(const uint8_t*, const uint8_t*, const uint8_t*, int, int, int, ivoid drawRgba(const uint32_t*) {}void setOverlay(const uint32_t*, int, int, int, int, uint8_t) {}void setSharpness(int) {}+void setDeband(int) {}bool readBackRgb(std::vector<uint8_t>&, int&, int&) { return false; }} // namespace xc::displaydiff --git a/src/display/display.h b/src/display/display.hindex e3cd7c5..9d5d668 100644--- a/src/display/display.h+++ b/src/display/display.h@@ -38,6 +38,8 @@ void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opac// Sharpening of the video (drawYuv420), 0 = off .. 256 = full CAS.void setSharpness(int amount);+// Smoothing of compression blocks in flat areas (GPU only): 0 off, 1 low, 2 high.+void setDeband(int level);// The back buffer last drawn, untiled, as 8-bit RGB rows (diagnostics:// what the TV shows), and its size. False without a display.diff --git a/src/display/gpu.cpp b/src/display/gpu.cppindex 3a1f5db..c2e7b98 100644--- a/src/display/gpu.cpp+++ b/src/display/gpu.cpp@@ -118,6 +118,8 @@ std::mutex g_overlayMutex;std::vector<uint32_t> g_overlayPixels(kUiW* kUiH, 0);bool g_overlayDirty = false, g_overlayShown = false;std::atomic<int> g_sharpness{0};+std::atomic<int> g_deband{1};+uint32_t g_frame = 0;bool fail(const char* step, VkResult r) {XC_LOGE("gpu: %s failed (%d)", step, static_cast<int>(r));@@ -432,7 +434,7 @@ bool createPipelines() {binding(3, storage)};const VkDescriptorSetLayoutBinding easu[] = {binding(0, sampled), binding(1, storage)};const VkDescriptorSetLayoutBinding rcas[] = {binding(0, storage), binding(1, sampled), binding(2, storage)};- if (!createPipeline(g.yuv, kShader_yuv2rgb, sizeof kShader_yuv2rgb, yuv, 4, 0) ||+ if (!createPipeline(g.yuv, kShader_yuv2rgb, sizeof kShader_yuv2rgb, yuv, 4, 20) ||!createPipeline(g.easu, kShader_easu, sizeof kShader_easu, easu, 2, 64) ||!createPipeline(g.rcas, kShader_rcas, sizeof kShader_rcas, rcas, 3, 24)) {XC_LOGE("gpu: the FSR pipelines");@@ -490,7 +492,7 @@ bool videoImages(uint32_t w, uint32_t h) {XC_LOGE("gpu: video images %ux%u", w, h);return false;}- writeSampled(g.yuvSet, 0, g.luma.view, g.nearest);+ writeSampled(g.yuvSet, 0, g.luma.view, g.linear); // deband samples between pixelswriteSampled(g.yuvSet, 1, g.chromaU.view, g.linear);writeSampled(g.yuvSet, 2, g.chromaV.view, g.linear);writeStorage(g.yuvSet, 3, g.rgb.view);@@ -646,6 +648,16 @@ bool drawYuv420(const uint8_t* y, const uint8_t* u, const uint8_t* v, int stridememoryBarrier(); // the planes copiedvkCmdBindPipeline(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.yuv.pipeline);vkCmdBindDescriptorSets(g.cmd, VK_PIPELINE_BIND_POINT_COMPUTE, g.yuv.layout, 0, 1, &g.yuvSet, 0, nullptr);+ // Deband: low smooths steps up to ~2 code values in one pass, high up+ // to ~4 in two (libplacebo's defaults are close to low).+ int deband = g_deband;+ struct {+ uint32_t iterations;+ float threshold, radius, grain;+ uint32_t frame;+ } yuvPc{deband >= 2 ? 2u : deband == 1 ? 1u : 0u, deband >= 2 ? 0.016f : 0.008f, 16.0f,+ deband >= 2 ? 0.005f : 0.003f, ++g_frame};+ vkCmdPushConstants(g.cmd, g.yuv.layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, sizeof yuvPc, &yuvPc);vkCmdDispatch(g.cmd, (g.rgb.w + 7) / 8, (g.rgb.h + 7) / 8, 1);memoryBarrier();recordUpscale(g.easuVideoSet, g.rgb.w, g.rgb.h, g_sharpness, overlay);@@ -715,6 +727,8 @@ void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opacvoid setSharpness(int amount) { g_sharpness = std::clamp(amount, 0, 256); }+void setDeband(int level) { g_deband = std::clamp(level, 0, 2); }+bool readBack(std::vector<uint8_t>& rgb, int& width, int& height) {if (!g.ready || g.lastPresented == UINT32_MAX) return false;if (g.fencePending) {diff --git a/src/display/gpu.h b/src/display/gpu.hindex 9835665..835aced 100644--- a/src/display/gpu.h+++ b/src/display/gpu.h@@ -34,6 +34,8 @@ void present();// As display::setOverlay / setSharpness.void setOverlay(const uint32_t* pixels, int x, int y, int w, int h, uint8_t opacity);void setSharpness(int amount);+// Smoothing of compression blocks in flat areas: 0 off, 1 low, 2 high.+void setDeband(int level);// The image last presented, 8-bit RGB rows; false when there is none.bool readBack(std::vector<uint8_t>& rgb, int& width, int& height);diff --git a/src/display/shaders/yuv2rgb.comp b/src/display/shaders/yuv2rgb.compindex d9073ef..1a064f4 100644--- a/src/display/shaders/yuv2rgb.comp+++ b/src/display/shaders/yuv2rgb.comp@@ -2,25 +2,67 @@// SPDX-License-Identifier: GPL-3.0-or-later// Copyright (C) 2026 RafaelNGP// A decoded H.264 picture (BT.709, limited range, 4:2:0 with the default-// chroma siting: on the even luma columns, between two luma rows) to RGB.+// chroma siting: on the even luma columns, between two luma rows) to RGB,+// debanded first.+//+// Deband (libplacebo's algorithm): at low bitrates the encoder sends flat+// dark areas as one value per block, which shows as a grid of steps. Each+// pixel is compared with the average of four neighbours at a random angle+// and distance; when they differ by less than a step, it takes the average+// (a real edge differs by more and stays). A little grain hides what is left.layout(local_size_x = 8, local_size_y = 8) in;-layout(binding = 0) uniform sampler2D lumaTex; // nearest+layout(binding = 0) uniform sampler2D lumaTex; // linearlayout(binding = 1) uniform sampler2D chromaUTex; // linearlayout(binding = 2) uniform sampler2D chromaVTex; // linearlayout(binding = 3, rgba8) uniform writeonly image2D rgbOut;+layout(push_constant) uniform Constants {+ uint iterations; // 0: no deband+ float threshold; // largest step smoothed, in 0..1 units (divided by the iteration)+ float radius; // in luma pixels (times the iteration)+ float grain; // luma noise amplitude+ uint frame; // moves the random pattern each frame+} pc;++vec2 lumaSize, chromaSize;++// Y, U, V at a luma position (pixel units, centres at .0).+vec3 yuvAt(vec2 q) {+ float y = texture(lumaTex, (q + 0.5) / lumaSize).r;+ // Chroma sample i sits on luma column 2i and halfway between luma rows+ // 2j and 2j + 1: in chroma texels, luma (x, y) is at (x / 2, y / 2 - 0.25).+ vec2 c = (vec2(q.x * 0.5, q.y * 0.5 - 0.25) + 0.5) / chromaSize;+ return vec3(y, texture(chromaUTex, c).r, texture(chromaVTex, c).r);+}++float hash(vec2 p) {+ vec3 p3 = fract(vec3(p.xyx) * 0.1031);+ p3 += dot(p3, p3.yzx + 33.33);+ return fract((p3.x + p3.y) * p3.z);+}void main() {ivec2 p = ivec2(gl_GlobalInvocationID.xy);ivec2 size = imageSize(rgbOut);if (p.x >= size.x || p.y >= size.y) return;- float y = texelFetch(lumaTex, p, 0).r;- // Chroma sample i sits on luma column 2i and halfway between luma rows- // 2j and 2j + 1: in chroma texels, luma (x, y) is at (x / 2, y / 2 - 0.25).- vec2 csize = vec2(textureSize(chromaUTex, 0));- vec2 c = (vec2(float(p.x) * 0.5, float(p.y) * 0.5 - 0.25) + 0.5) / csize;- float u = texture(chromaUTex, c).r - 128.0 / 255.0;- float v = texture(chromaVTex, c).r - 128.0 / 255.0;- float l = (y - 16.0 / 255.0) * (255.0 / 219.0);+ lumaSize = vec2(textureSize(lumaTex, 0));+ chromaSize = vec2(textureSize(chromaUTex, 0));+ vec2 q = vec2(p);+ vec3 yuv = yuvAt(q);+ if (pc.iterations > 0u) {+ vec2 seed = q + float(pc.frame % 64u) * vec2(17.0, 31.0);+ for (uint i = 1u; i <= pc.iterations; ++i) {+ float fi = float(i);+ float dist = pc.radius * fi * hash(seed + fi * 13.7);+ float angle = 6.2831853 * hash(seed.yx + fi * 41.3);+ vec2 d = vec2(cos(angle), sin(angle)) * dist;+ vec3 avg = 0.25 * (yuvAt(q + d) + yuvAt(q - d) + yuvAt(q + vec2(-d.y, d.x)) + yuvAt(q + vec2(d.y, -d.x)));+ vec3 diff = abs(yuv - avg);+ yuv = mix(avg, yuv, greaterThan(diff, vec3(pc.threshold / fi)));+ }+ yuv.x += (hash(seed * 1.37 + 7.0) - 0.5) * pc.grain;+ }+ float l = (yuv.x - 16.0 / 255.0) * (255.0 / 219.0);+ float u = yuv.y - 128.0 / 255.0, v = yuv.z - 128.0 / 255.0;float s = 255.0 / 224.0;vec3 rgb = vec3(l + 1.5748 * s * v, l - 0.1873 * s * u - 0.4681 * s * v, l + 1.8556 * s * u);imageStore(rgbOut, p, vec4(clamp(rgb, 0.0, 1.0), 1.0));diff --git a/src/display/shaders/yuv2rgb.spv.h b/src/display/shaders/yuv2rgb.spv.hindex e41833a..1f97e1b 100644--- a/src/display/shaders/yuv2rgb.spv.h+++ b/src/display/shaders/yuv2rgb.spv.h@@ -1,110 +1,253 @@// 1116.2.0#pragma onceconst uint32_t kShader_yuv2rgb[] = {- 0x07230203,0x00010600,0x0008000b,0x00000097,0x00000000,0x00020011,0x00000001,0x00020011,+ 0x07230203,0x00010600,0x0008000b,0x00000161,0x00000000,0x00020011,0x00000001,0x00020011,0x00000032,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,- 0x00000000,0x00000001,0x000a000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x0000000d,- 0x00000016,0x00000033,0x0000003e,0x0000005d,0x00060010,0x00000004,0x00000011,0x00000008,- 0x00000008,0x00000001,0x00030003,0x00000002,0x000001c2,0x00040005,0x00000004,0x6e69616d,- 0x00000000,0x00030005,0x00000009,0x00000070,0x00080005,0x0000000d,0x475f6c67,0x61626f6c,- 0x766e496c,0x7461636f,0x496e6f69,0x00000044,0x00040005,0x00000012,0x657a6973,0x00000000,- 0x00040005,0x00000016,0x4f626772,0x00007475,0x00030005,0x0000002f,0x00000079,0x00040005,- 0x00000033,0x616d756c,0x00786554,0x00040005,0x0000003d,0x7a697363,0x00000065,0x00050005,- 0x0000003e,0x6f726863,0x5455616d,0x00007865,0x00030005,0x00000043,0x00000063,0x00030005,- 0x00000054,0x00000075,0x00030005,0x0000005c,0x00000076,0x00050005,0x0000005d,0x6f726863,- 0x5456616d,0x00007865,0x00030005,0x00000063,0x0000006c,0x00030005,0x00000069,0x00000073,- 0x00030005,0x0000006d,0x00626772,0x00040047,0x0000000d,0x0000000b,0x0000001c,0x00030047,- 0x00000016,0x00000019,0x00040047,0x00000016,0x00000021,0x00000003,0x00040047,0x00000016,- 0x00000022,0x00000000,0x00040047,0x00000033,0x00000021,0x00000000,0x00040047,0x00000033,- 0x00000022,0x00000000,0x00040047,0x0000003e,0x00000021,0x00000001,0x00040047,0x0000003e,- 0x00000022,0x00000000,0x00040047,0x0000005d,0x00000021,0x00000002,0x00040047,0x0000005d,- 0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00040015,- 0x00000006,0x00000020,0x00000001,0x00040017,0x00000007,0x00000006,0x00000002,0x00040020,- 0x00000008,0x00000007,0x00000007,0x00040015,0x0000000a,0x00000020,0x00000000,0x00040017,- 0x0000000b,0x0000000a,0x00000003,0x00040020,0x0000000c,0x00000001,0x0000000b,0x0004003b,- 0x0000000c,0x0000000d,0x00000001,0x00040017,0x0000000e,0x0000000a,0x00000002,0x00030016,- 0x00000013,0x00000020,0x00090019,0x00000014,0x00000013,0x00000001,0x00000000,0x00000000,- 0x00000000,0x00000002,0x00000004,0x00040020,0x00000015,0x00000000,0x00000014,0x0004003b,- 0x00000015,0x00000016,0x00000000,0x00020014,0x00000019,0x0004002b,0x0000000a,0x0000001a,- 0x00000000,0x00040020,0x0000001b,0x00000007,0x00000006,0x0004002b,0x0000000a,0x00000024,- 0x00000001,0x00040020,0x0000002e,0x00000007,0x00000013,0x00090019,0x00000030,0x00000013,- 0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,0x0003001b,0x00000031,- 0x00000030,0x00040020,0x00000032,0x00000000,0x00000031,0x0004003b,0x00000032,0x00000033,- 0x00000000,0x0004002b,0x00000006,0x00000036,0x00000000,0x00040017,0x00000038,0x00000013,- 0x00000004,0x00040017,0x0000003b,0x00000013,0x00000002,0x00040020,0x0000003c,0x00000007,- 0x0000003b,0x0004003b,0x00000032,0x0000003e,0x00000000,0x0004002b,0x00000013,0x00000047,- 0x3f000000,0x0004002b,0x00000013,0x0000004d,0x3e800000,0x0004002b,0x00000013,0x00000057,- 0x00000000,0x0004002b,0x00000013,0x0000005a,0x3f008081,0x0004003b,0x00000032,0x0000005d,- 0x00000000,0x0004002b,0x00000013,0x00000065,0x3d808081,0x0004002b,0x00000013,0x00000067,- 0x3f950a85,0x0004002b,0x00000013,0x0000006a,0x3f91b6db,0x00040017,0x0000006b,0x00000013,- 0x00000003,0x00040020,0x0000006c,0x00000007,0x0000006b,0x0004002b,0x00000013,0x0000006f,- 0x3fc9930c,0x0004002b,0x00000013,0x00000076,0x3e3fcb92,0x0004002b,0x00000013,0x0000007c,- 0x3eefaace,0x0004002b,0x00000013,0x00000083,0x3fed844d,0x0004002b,0x00000013,0x0000008d,- 0x3f800000,0x0004002b,0x0000000a,0x00000095,0x00000008,0x0006002c,0x0000000b,0x00000096,- 0x00000095,0x00000095,0x00000024,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,- 0x000200f8,0x00000005,0x0004003b,0x00000008,0x00000009,0x00000007,0x0004003b,0x00000008,- 0x00000012,0x00000007,0x0004003b,0x0000002e,0x0000002f,0x00000007,0x0004003b,0x0000003c,- 0x0000003d,0x00000007,0x0004003b,0x0000003c,0x00000043,0x00000007,0x0004003b,0x0000002e,- 0x00000054,0x00000007,0x0004003b,0x0000002e,0x0000005c,0x00000007,0x0004003b,0x0000002e,- 0x00000063,0x00000007,0x0004003b,0x0000002e,0x00000069,0x00000007,0x0004003b,0x0000006c,- 0x0000006d,0x00000007,0x0004003d,0x0000000b,0x0000000f,0x0000000d,0x0007004f,0x0000000e,- 0x00000010,0x0000000f,0x0000000f,0x00000000,0x00000001,0x0004007c,0x00000007,0x00000011,- 0x00000010,0x0003003e,0x00000009,0x00000011,0x0004003d,0x00000014,0x00000017,0x00000016,- 0x00040068,0x00000007,0x00000018,0x00000017,0x0003003e,0x00000012,0x00000018,0x00050041,- 0x0000001b,0x0000001c,0x00000009,0x0000001a,0x0004003d,0x00000006,0x0000001d,0x0000001c,- 0x00050041,0x0000001b,0x0000001e,0x00000012,0x0000001a,0x0004003d,0x00000006,0x0000001f,- 0x0000001e,0x000500af,0x00000019,0x00000020,0x0000001d,0x0000001f,0x000400a8,0x00000019,- 0x00000021,0x00000020,0x000300f7,0x00000023,0x00000000,0x000400fa,0x00000021,0x00000022,- 0x00000023,0x000200f8,0x00000022,0x00050041,0x0000001b,0x00000025,0x00000009,0x00000024,- 0x0004003d,0x00000006,0x00000026,0x00000025,0x00050041,0x0000001b,0x00000027,0x00000012,- 0x00000024,0x0004003d,0x00000006,0x00000028,0x00000027,0x000500af,0x00000019,0x00000029,- 0x00000026,0x00000028,0x000200f9,0x00000023,0x000200f8,0x00000023,0x000700f5,0x00000019,- 0x0000002a,0x00000020,0x00000005,0x00000029,0x00000022,0x000300f7,0x0000002c,0x00000000,- 0x000400fa,0x0000002a,0x0000002b,0x0000002c,0x000200f8,0x0000002b,0x000100fd,0x000200f8,- 0x0000002c,0x0004003d,0x00000031,0x00000034,0x00000033,0x0004003d,0x00000007,0x00000035,- 0x00000009,0x00040064,0x00000030,0x00000037,0x00000034,0x0007005f,0x00000038,0x00000039,- 0x00000037,0x00000035,0x00000002,0x00000036,0x00050051,0x00000013,0x0000003a,0x00000039,- 0x00000000,0x0003003e,0x0000002f,0x0000003a,0x0004003d,0x00000031,0x0000003f,0x0000003e,- 0x00040064,0x00000030,0x00000040,0x0000003f,0x00050067,0x00000007,0x00000041,0x00000040,- 0x00000036,0x0004006f,0x0000003b,0x00000042,0x00000041,0x0003003e,0x0000003d,0x00000042,- 0x00050041,0x0000001b,0x00000044,0x00000009,0x0000001a,0x0004003d,0x00000006,0x00000045,- 0x00000044,0x0004006f,0x00000013,0x00000046,0x00000045,0x00050085,0x00000013,0x00000048,- 0x00000046,0x00000047,0x00050041,0x0000001b,0x00000049,0x00000009,0x00000024,0x0004003d,- 0x00000006,0x0000004a,0x00000049,0x0004006f,0x00000013,0x0000004b,0x0000004a,0x00050085,- 0x00000013,0x0000004c,0x0000004b,0x00000047,0x00050083,0x00000013,0x0000004e,0x0000004c,- 0x0000004d,0x00050050,0x0000003b,0x0000004f,0x00000048,0x0000004e,0x00050050,0x0000003b,- 0x00000050,0x00000047,0x00000047,0x00050081,0x0000003b,0x00000051,0x0000004f,0x00000050,- 0x0004003d,0x0000003b,0x00000052,0x0000003d,0x00050088,0x0000003b,0x00000053,0x00000051,- 0x00000052,0x0003003e,0x00000043,0x00000053,0x0004003d,0x00000031,0x00000055,0x0000003e,- 0x0004003d,0x0000003b,0x00000056,0x00000043,0x00070058,0x00000038,0x00000058,0x00000055,- 0x00000056,0x00000002,0x00000057,0x00050051,0x00000013,0x00000059,0x00000058,0x00000000,- 0x00050083,0x00000013,0x0000005b,0x00000059,0x0000005a,0x0003003e,0x00000054,0x0000005b,- 0x0004003d,0x00000031,0x0000005e,0x0000005d,0x0004003d,0x0000003b,0x0000005f,0x00000043,- 0x00070058,0x00000038,0x00000060,0x0000005e,0x0000005f,0x00000002,0x00000057,0x00050051,- 0x00000013,0x00000061,0x00000060,0x00000000,0x00050083,0x00000013,0x00000062,0x00000061,- 0x0000005a,0x0003003e,0x0000005c,0x00000062,0x0004003d,0x00000013,0x00000064,0x0000002f,- 0x00050083,0x00000013,0x00000066,0x00000064,0x00000065,0x00050085,0x00000013,0x00000068,- 0x00000066,0x00000067,0x0003003e,0x00000063,0x00000068,0x0003003e,0x00000069,0x0000006a,- 0x0004003d,0x00000013,0x0000006e,0x00000063,0x0004003d,0x00000013,0x00000070,0x00000069,- 0x00050085,0x00000013,0x00000071,0x0000006f,0x00000070,0x0004003d,0x00000013,0x00000072,- 0x0000005c,0x00050085,0x00000013,0x00000073,0x00000071,0x00000072,0x00050081,0x00000013,- 0x00000074,0x0000006e,0x00000073,0x0004003d,0x00000013,0x00000075,0x00000063,0x0004003d,- 0x00000013,0x00000077,0x00000069,0x00050085,0x00000013,0x00000078,0x00000076,0x00000077,- 0x0004003d,0x00000013,0x00000079,0x00000054,0x00050085,0x00000013,0x0000007a,0x00000078,- 0x00000079,0x00050083,0x00000013,0x0000007b,0x00000075,0x0000007a,0x0004003d,0x00000013,- 0x0000007d,0x00000069,0x00050085,0x00000013,0x0000007e,0x0000007c,0x0000007d,0x0004003d,- 0x00000013,0x0000007f,0x0000005c,0x00050085,0x00000013,0x00000080,0x0000007e,0x0000007f,- 0x00050083,0x00000013,0x00000081,0x0000007b,0x00000080,0x0004003d,0x00000013,0x00000082,- 0x00000063,0x0004003d,0x00000013,0x00000084,0x00000069,0x00050085,0x00000013,0x00000085,- 0x00000083,0x00000084,0x0004003d,0x00000013,0x00000086,0x00000054,0x00050085,0x00000013,- 0x00000087,0x00000085,0x00000086,0x00050081,0x00000013,0x00000088,0x00000082,0x00000087,- 0x00060050,0x0000006b,0x00000089,0x00000074,0x00000081,0x00000088,0x0003003e,0x0000006d,- 0x00000089,0x0004003d,0x00000014,0x0000008a,0x00000016,0x0004003d,0x00000007,0x0000008b,- 0x00000009,0x0004003d,0x0000006b,0x0000008c,0x0000006d,0x00060050,0x0000006b,0x0000008e,- 0x00000057,0x00000057,0x00000057,0x00060050,0x0000006b,0x0000008f,0x0000008d,0x0000008d,- 0x0000008d,0x0008000c,0x0000006b,0x00000090,0x00000001,0x0000002b,0x0000008c,0x0000008e,- 0x0000008f,0x00050051,0x00000013,0x00000091,0x00000090,0x00000000,0x00050051,0x00000013,- 0x00000092,0x00000090,0x00000001,0x00050051,0x00000013,0x00000093,0x00000090,0x00000002,- 0x00070050,0x00000038,0x00000094,0x00000091,0x00000092,0x00000093,0x0000008d,0x00040063,- 0x0000008a,0x0000008b,0x00000094,0x000100fd,0x00010038+ 0x00000000,0x00000001,0x000d000f,0x00000005,0x00000004,0x6e69616d,0x00000000,0x00000017,+ 0x0000001e,0x00000034,0x00000038,0x0000003d,0x00000068,0x00000070,0x00000098,0x00060010,+ 0x00000004,0x00000011,0x00000008,0x00000008,0x00000001,0x00030003,0x00000002,0x000001c2,+ 0x00040005,0x00000004,0x6e69616d,0x00000000,0x00050005,0x0000000c,0x41767579,0x66762874,+ 0x00003b32,0x00030005,0x0000000b,0x00000071,0x00050005,0x00000010,0x68736168,0x32667628,+ 0x0000003b,0x00030005,0x0000000f,0x00000070,0x00030005,0x00000013,0x00000079,0x00040005,+ 0x00000017,0x616d756c,0x00786554,0x00050005,0x0000001e,0x616d756c,0x657a6953,0x00000000,+ 0x00030005,0x00000027,0x00000063,0x00050005,0x00000034,0x6f726863,0x6953616d,0x0000657a,+ 0x00050005,0x00000038,0x6f726863,0x5455616d,0x00007865,0x00050005,0x0000003d,0x6f726863,+ 0x5456616d,0x00007865,0x00030005,0x00000046,0x00003370,0x00030005,0x00000065,0x00000070,+ 0x00080005,0x00000068,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,0x00000044,+ 0x00040005,0x0000006d,0x657a6973,0x00000000,0x00040005,0x00000070,0x4f626772,0x00007475,+ 0x00030005,0x0000008f,0x00000071,0x00030005,0x00000092,0x00767579,0x00040005,0x00000093,+ 0x61726170,0x0000006d,0x00050005,0x00000096,0x736e6f43,0x746e6174,0x00000073,0x00060006,+ 0x00000096,0x00000000,0x72657469,0x6f697461,0x0000736e,0x00060006,0x00000096,0x00000001,+ 0x65726874,0x6c6f6873,0x00000064,0x00050006,0x00000096,0x00000002,0x69646172,0x00007375,+ 0x00050006,0x00000096,0x00000003,0x69617267,0x0000006e,0x00050006,0x00000096,0x00000004,+ 0x6d617266,0x00000065,0x00030005,0x00000098,0x00006370,0x00040005,0x0000009f,0x64656573,+ 0x00000000,0x00030005,0x000000ad,0x00000069,0x00030005,0x000000b7,0x00006966,0x00040005,+ 0x000000ba,0x74736964,0x00000000,0x00040005,0x000000c7,0x61726170,0x0000006d,0x00040005,+ 0x000000ca,0x6c676e61,0x00000065,0x00040005,0x000000d3,0x61726170,0x0000006d,0x00030005,+ 0x000000d6,0x00000064,0x00030005,0x000000de,0x00677661,0x00040005,0x000000e2,0x61726170,+ 0x0000006d,0x00040005,0x000000e7,0x61726170,0x0000006d,0x00040005,0x000000f2,0x61726170,+ 0x0000006d,0x00040005,0x000000fd,0x61726170,0x0000006d,0x00040005,0x00000101,0x66666964,+ 0x00000000,0x00040005,0x0000011a,0x61726170,0x0000006d,0x00030005,0x00000125,0x0000006c,+ 0x00030005,0x0000012c,0x00000075,0x00030005,0x00000131,0x00000076,0x00030005,0x00000135,+ 0x00000073,0x00030005,0x00000137,0x00626772,0x00040047,0x00000017,0x00000021,0x00000000,+ 0x00040047,0x00000017,0x00000022,0x00000000,0x00040047,0x00000038,0x00000021,0x00000001,+ 0x00040047,0x00000038,0x00000022,0x00000000,0x00040047,0x0000003d,0x00000021,0x00000002,+ 0x00040047,0x0000003d,0x00000022,0x00000000,0x00040047,0x00000068,0x0000000b,0x0000001c,+ 0x00030047,0x00000070,0x00000019,0x00040047,0x00000070,0x00000021,0x00000003,0x00040047,+ 0x00000070,0x00000022,0x00000000,0x00030047,0x00000096,0x00000002,0x00050048,0x00000096,+ 0x00000000,0x00000023,0x00000000,0x00050048,0x00000096,0x00000001,0x00000023,0x00000004,+ 0x00050048,0x00000096,0x00000002,0x00000023,0x00000008,0x00050048,0x00000096,0x00000003,+ 0x00000023,0x0000000c,0x00050048,0x00000096,0x00000004,0x00000023,0x00000010,0x00020013,+ 0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040017,+ 0x00000007,0x00000006,0x00000002,0x00040020,0x00000008,0x00000007,0x00000007,0x00040017,+ 0x00000009,0x00000006,0x00000003,0x00040021,0x0000000a,0x00000009,0x00000008,0x00040021,+ 0x0000000e,0x00000006,0x00000008,0x00040020,0x00000012,0x00000007,0x00000006,0x00090019,+ 0x00000014,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000001,0x00000000,+ 0x0003001b,0x00000015,0x00000014,0x00040020,0x00000016,0x00000000,0x00000015,0x0004003b,+ 0x00000016,0x00000017,0x00000000,0x0004002b,0x00000006,0x0000001a,0x3f000000,0x00040020,+ 0x0000001d,0x00000006,0x00000007,0x0004003b,0x0000001d,0x0000001e,0x00000006,0x00040017,+ 0x00000021,0x00000006,0x00000004,0x0004002b,0x00000006,0x00000022,0x00000000,0x00040015,+ 0x00000024,0x00000020,0x00000000,0x0004002b,0x00000024,0x00000025,0x00000000,0x0004002b,+ 0x00000024,0x0000002b,0x00000001,0x0004002b,0x00000006,0x0000002f,0x3e800000,0x0004003b,+ 0x0000001d,0x00000034,0x00000006,0x0004003b,0x00000016,0x00000038,0x00000000,0x0004003b,+ 0x00000016,0x0000003d,0x00000000,0x00040020,0x00000045,0x00000007,0x00000009,0x0004002b,+ 0x00000006,0x00000049,0x3dd32618,0x0004002b,0x00000006,0x0000004f,0x420551ec,0x0004002b,+ 0x00000024,0x0000005b,0x00000002,0x00040015,0x00000062,0x00000020,0x00000001,0x00040017,+ 0x00000063,0x00000062,0x00000002,0x00040020,0x00000064,0x00000007,0x00000063,0x00040017,+ 0x00000066,0x00000024,0x00000003,0x00040020,0x00000067,0x00000001,0x00000066,0x0004003b,+ 0x00000067,0x00000068,0x00000001,0x00040017,0x00000069,0x00000024,0x00000002,0x00090019,+ 0x0000006e,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,0x00000002,0x00000004,+ 0x00040020,0x0000006f,0x00000000,0x0000006e,0x0004003b,0x0000006f,0x00000070,0x00000000,+ 0x00020014,0x00000073,0x00040020,0x00000074,0x00000007,0x00000062,0x0004002b,0x00000062,+ 0x00000087,0x00000000,0x0007001e,0x00000096,0x00000024,0x00000006,0x00000006,0x00000006,+ 0x00000024,0x00040020,0x00000097,0x00000009,0x00000096,0x0004003b,0x00000097,0x00000098,+ 0x00000009,0x00040020,0x00000099,0x00000009,0x00000024,0x0004002b,0x00000062,0x000000a1,+ 0x00000004,0x0004002b,0x00000024,0x000000a4,0x00000040,0x0004002b,0x00000006,0x000000a7,+ 0x41880000,0x0004002b,0x00000006,0x000000a8,0x41f80000,0x0005002c,0x00000007,0x000000a9,+ 0x000000a7,0x000000a8,0x00040020,0x000000ac,0x00000007,0x00000024,0x0004002b,0x00000062,+ 0x000000bb,0x00000002,0x00040020,0x000000bc,0x00000009,0x00000006,0x0004002b,0x00000006,+ 0x000000c3,0x415b3333,0x0004002b,0x00000006,0x000000cb,0x40c90fdb,0x0004002b,0x00000006,+ 0x000000cf,0x42253333,0x0004002b,0x00000062,0x00000109,0x00000001,0x00040017,0x0000010f,+ 0x00000073,0x00000003,0x0004002b,0x00000006,0x00000115,0x3faf5c29,0x0004002b,0x00000006,+ 0x00000117,0x40e00000,0x0004002b,0x00000062,0x0000011d,0x00000003,0x0004002b,0x00000006,+ 0x00000128,0x3d808081,0x0004002b,0x00000006,0x0000012a,0x3f950a85,0x0004002b,0x00000006,+ 0x0000012f,0x3f008081,0x0004002b,0x00000006,0x00000136,0x3f91b6db,0x0004002b,0x00000006,+ 0x00000139,0x3fc9930c,0x0004002b,0x00000006,0x00000140,0x3e3fcb92,0x0004002b,0x00000006,+ 0x00000146,0x3eefaace,0x0004002b,0x00000006,0x0000014d,0x3fed844d,0x0004002b,0x00000006,+ 0x00000157,0x3f800000,0x0004002b,0x00000024,0x0000015f,0x00000008,0x0006002c,0x00000066,+ 0x00000160,0x0000015f,0x0000015f,0x0000002b,0x00050036,0x00000002,0x00000004,0x00000000,+ 0x00000003,0x000200f8,0x00000005,0x0004003b,0x00000064,0x00000065,0x00000007,0x0004003b,+ 0x00000064,0x0000006d,0x00000007,0x0004003b,0x00000008,0x0000008f,0x00000007,0x0004003b,+ 0x00000045,0x00000092,0x00000007,0x0004003b,0x00000008,0x00000093,0x00000007,0x0004003b,+ 0x00000008,0x0000009f,0x00000007,0x0004003b,0x000000ac,0x000000ad,0x00000007,0x0004003b,+ 0x00000012,0x000000b7,0x00000007,0x0004003b,0x00000012,0x000000ba,0x00000007,0x0004003b,+ 0x00000008,0x000000c7,0x00000007,0x0004003b,0x00000012,0x000000ca,0x00000007,0x0004003b,+ 0x00000008,0x000000d3,0x00000007,0x0004003b,0x00000008,0x000000d6,0x00000007,0x0004003b,+ 0x00000045,0x000000de,0x00000007,0x0004003b,0x00000008,0x000000e2,0x00000007,0x0004003b,+ 0x00000008,0x000000e7,0x00000007,0x0004003b,0x00000008,0x000000f2,0x00000007,0x0004003b,+ 0x00000008,0x000000fd,0x00000007,0x0004003b,0x00000045,0x00000101,0x00000007,0x0004003b,+ 0x00000008,0x0000011a,0x00000007,0x0004003b,0x00000012,0x00000125,0x00000007,0x0004003b,+ 0x00000012,0x0000012c,0x00000007,0x0004003b,0x00000012,0x00000131,0x00000007,0x0004003b,+ 0x00000012,0x00000135,0x00000007,0x0004003b,0x00000045,0x00000137,0x00000007,0x0004003d,+ 0x00000066,0x0000006a,0x00000068,0x0007004f,0x00000069,0x0000006b,0x0000006a,0x0000006a,+ 0x00000000,0x00000001,0x0004007c,0x00000063,0x0000006c,0x0000006b,0x0003003e,0x00000065,+ 0x0000006c,0x0004003d,0x0000006e,0x00000071,0x00000070,0x00040068,0x00000063,0x00000072,+ 0x00000071,0x0003003e,0x0000006d,0x00000072,0x00050041,0x00000074,0x00000075,0x00000065,+ 0x00000025,0x0004003d,0x00000062,0x00000076,0x00000075,0x00050041,0x00000074,0x00000077,+ 0x0000006d,0x00000025,0x0004003d,0x00000062,0x00000078,0x00000077,0x000500af,0x00000073,+ 0x00000079,0x00000076,0x00000078,0x000400a8,0x00000073,0x0000007a,0x00000079,0x000300f7,+ 0x0000007c,0x00000000,0x000400fa,0x0000007a,0x0000007b,0x0000007c,0x000200f8,0x0000007b,+ 0x00050041,0x00000074,0x0000007d,0x00000065,0x0000002b,0x0004003d,0x00000062,0x0000007e,+ 0x0000007d,0x00050041,0x00000074,0x0000007f,0x0000006d,0x0000002b,0x0004003d,0x00000062,+ 0x00000080,0x0000007f,0x000500af,0x00000073,0x00000081,0x0000007e,0x00000080,0x000200f9,+ 0x0000007c,0x000200f8,0x0000007c,0x000700f5,0x00000073,0x00000082,0x00000079,0x00000005,+ 0x00000081,0x0000007b,0x000300f7,0x00000084,0x00000000,0x000400fa,0x00000082,0x00000083,+ 0x00000084,0x000200f8,0x00000083,0x000100fd,0x000200f8,0x00000084,0x0004003d,0x00000015,+ 0x00000086,0x00000017,0x00040064,0x00000014,0x00000088,0x00000086,0x00050067,0x00000063,+ 0x00000089,0x00000088,0x00000087,0x0004006f,0x00000007,0x0000008a,0x00000089,0x0003003e,+ 0x0000001e,0x0000008a,0x0004003d,0x00000015,0x0000008b,0x00000038,0x00040064,0x00000014,+ 0x0000008c,0x0000008b,0x00050067,0x00000063,0x0000008d,0x0000008c,0x00000087,0x0004006f,+ 0x00000007,0x0000008e,0x0000008d,0x0003003e,0x00000034,0x0000008e,0x0004003d,0x00000063,+ 0x00000090,0x00000065,0x0004006f,0x00000007,0x00000091,0x00000090,0x0003003e,0x0000008f,+ 0x00000091,0x0004003d,0x00000007,0x00000094,0x0000008f,0x0003003e,0x00000093,0x00000094,+ 0x00050039,0x00000009,0x00000095,0x0000000c,0x00000093,0x0003003e,0x00000092,0x00000095,+ 0x00050041,0x00000099,0x0000009a,0x00000098,0x00000087,0x0004003d,0x00000024,0x0000009b,+ 0x0000009a,0x000500ac,0x00000073,0x0000009c,0x0000009b,0x00000025,0x000300f7,0x0000009e,+ 0x00000000,0x000400fa,0x0000009c,0x0000009d,0x0000009e,0x000200f8,0x0000009d,0x0004003d,+ 0x00000007,0x000000a0,0x0000008f,0x00050041,0x00000099,0x000000a2,0x00000098,0x000000a1,+ 0x0004003d,0x00000024,0x000000a3,0x000000a2,0x00050089,0x00000024,0x000000a5,0x000000a3,+ 0x000000a4,0x00040070,0x00000006,0x000000a6,0x000000a5,0x0005008e,0x00000007,0x000000aa,+ 0x000000a9,0x000000a6,0x00050081,0x00000007,0x000000ab,0x000000a0,0x000000aa,0x0003003e,+ 0x0000009f,0x000000ab,0x0003003e,0x000000ad,0x0000002b,0x000200f9,0x000000ae,0x000200f8,+ 0x000000ae,0x000400f6,0x000000b0,0x000000b1,0x00000000,0x000200f9,0x000000b2,0x000200f8,+ 0x000000b2,0x0004003d,0x00000024,0x000000b3,0x000000ad,0x00050041,0x00000099,0x000000b4,+ 0x00000098,0x00000087,0x0004003d,0x00000024,0x000000b5,0x000000b4,0x000500b2,0x00000073,+ 0x000000b6,0x000000b3,0x000000b5,0x000400fa,0x000000b6,0x000000af,0x000000b0,0x000200f8,+ 0x000000af,0x0004003d,0x00000024,0x000000b8,0x000000ad,0x00040070,0x00000006,0x000000b9,+ 0x000000b8,0x0003003e,0x000000b7,0x000000b9,0x00050041,0x000000bc,0x000000bd,0x00000098,+ 0x000000bb,0x0004003d,0x00000006,0x000000be,0x000000bd,0x0004003d,0x00000006,0x000000bf,+ 0x000000b7,0x00050085,0x00000006,0x000000c0,0x000000be,0x000000bf,0x0004003d,0x00000007,+ 0x000000c1,0x0000009f,0x0004003d,0x00000006,0x000000c2,0x000000b7,0x00050085,0x00000006,+ 0x000000c4,0x000000c2,0x000000c3,0x00050050,0x00000007,0x000000c5,0x000000c4,0x000000c4,+ 0x00050081,0x00000007,0x000000c6,0x000000c1,0x000000c5,0x0003003e,0x000000c7,0x000000c6,+ 0x00050039,0x00000006,0x000000c8,0x00000010,0x000000c7,0x00050085,0x00000006,0x000000c9,+ 0x000000c0,0x000000c8,0x0003003e,0x000000ba,0x000000c9,0x0004003d,0x00000007,0x000000cc,+ 0x0000009f,0x0007004f,0x00000007,0x000000cd,0x000000cc,0x000000cc,0x00000001,0x00000000,+ 0x0004003d,0x00000006,0x000000ce,0x000000b7,0x00050085,0x00000006,0x000000d0,0x000000ce,+ 0x000000cf,0x00050050,0x00000007,0x000000d1,0x000000d0,0x000000d0,0x00050081,0x00000007,+ 0x000000d2,0x000000cd,0x000000d1,0x0003003e,0x000000d3,0x000000d2,0x00050039,0x00000006,+ 0x000000d4,0x00000010,0x000000d3,0x00050085,0x00000006,0x000000d5,0x000000cb,0x000000d4,+ 0x0003003e,0x000000ca,0x000000d5,0x0004003d,0x00000006,0x000000d7,0x000000ca,0x0006000c,+ 0x00000006,0x000000d8,0x00000001,0x0000000e,0x000000d7,0x0004003d,0x00000006,0x000000d9,+ 0x000000ca,0x0006000c,0x00000006,0x000000da,0x00000001,0x0000000d,0x000000d9,0x00050050,+ 0x00000007,0x000000db,0x000000d8,0x000000da,0x0004003d,0x00000006,0x000000dc,0x000000ba,+ 0x0005008e,0x00000007,0x000000dd,0x000000db,0x000000dc,0x0003003e,0x000000d6,0x000000dd,+ 0x0004003d,0x00000007,0x000000df,0x0000008f,0x0004003d,0x00000007,0x000000e0,0x000000d6,+ 0x00050081,0x00000007,0x000000e1,0x000000df,0x000000e0,0x0003003e,0x000000e2,0x000000e1,+ 0x00050039,0x00000009,0x000000e3,0x0000000c,0x000000e2,0x0004003d,0x00000007,0x000000e4,+ 0x0000008f,0x0004003d,0x00000007,0x000000e5,0x000000d6,0x00050083,0x00000007,0x000000e6,+ 0x000000e4,0x000000e5,0x0003003e,0x000000e7,0x000000e6,0x00050039,0x00000009,0x000000e8,+ 0x0000000c,0x000000e7,0x00050081,0x00000009,0x000000e9,0x000000e3,0x000000e8,0x0004003d,+ 0x00000007,0x000000ea,0x0000008f,0x00050041,0x00000012,0x000000eb,0x000000d6,0x0000002b,+ 0x0004003d,0x00000006,0x000000ec,0x000000eb,0x0004007f,0x00000006,0x000000ed,0x000000ec,+ 0x00050041,0x00000012,0x000000ee,0x000000d6,0x00000025,0x0004003d,0x00000006,0x000000ef,+ 0x000000ee,0x00050050,0x00000007,0x000000f0,0x000000ed,0x000000ef,0x00050081,0x00000007,+ 0x000000f1,0x000000ea,0x000000f0,0x0003003e,0x000000f2,0x000000f1,0x00050039,0x00000009,+ 0x000000f3,0x0000000c,0x000000f2,0x00050081,0x00000009,0x000000f4,0x000000e9,0x000000f3,+ 0x0004003d,0x00000007,0x000000f5,0x0000008f,0x00050041,0x00000012,0x000000f6,0x000000d6,+ 0x0000002b,0x0004003d,0x00000006,0x000000f7,0x000000f6,0x00050041,0x00000012,0x000000f8,+ 0x000000d6,0x00000025,0x0004003d,0x00000006,0x000000f9,0x000000f8,0x0004007f,0x00000006,+ 0x000000fa,0x000000f9,0x00050050,0x00000007,0x000000fb,0x000000f7,0x000000fa,0x00050081,+ 0x00000007,0x000000fc,0x000000f5,0x000000fb,0x0003003e,0x000000fd,0x000000fc,0x00050039,+ 0x00000009,0x000000fe,0x0000000c,0x000000fd,0x00050081,0x00000009,0x000000ff,0x000000f4,+ 0x000000fe,0x0005008e,0x00000009,0x00000100,0x000000ff,0x0000002f,0x0003003e,0x000000de,+ 0x00000100,0x0004003d,0x00000009,0x00000102,0x00000092,0x0004003d,0x00000009,0x00000103,+ 0x000000de,0x00050083,0x00000009,0x00000104,0x00000102,0x00000103,0x0006000c,0x00000009,+ 0x00000105,0x00000001,0x00000004,0x00000104,0x0003003e,0x00000101,0x00000105,0x0004003d,+ 0x00000009,0x00000106,0x000000de,0x0004003d,0x00000009,0x00000107,0x00000092,0x0004003d,+ 0x00000009,0x00000108,0x00000101,0x00050041,0x000000bc,0x0000010a,0x00000098,0x00000109,+ 0x0004003d,0x00000006,0x0000010b,0x0000010a,0x0004003d,0x00000006,0x0000010c,0x000000b7,+ 0x00050088,0x00000006,0x0000010d,0x0000010b,0x0000010c,0x00060050,0x00000009,0x0000010e,+ 0x0000010d,0x0000010d,0x0000010d,0x000500ba,0x0000010f,0x00000110,0x00000108,0x0000010e,+ 0x000600a9,0x00000009,0x00000111,0x00000110,0x00000107,0x00000106,0x0003003e,0x00000092,+ 0x00000111,0x000200f9,0x000000b1,0x000200f8,0x000000b1,0x0004003d,0x00000024,0x00000112,+ 0x000000ad,0x00050080,0x00000024,0x00000113,0x00000112,0x00000109,0x0003003e,0x000000ad,+ 0x00000113,0x000200f9,0x000000ae,0x000200f8,0x000000b0,0x0004003d,0x00000007,0x00000114,+ 0x0000009f,0x0005008e,0x00000007,0x00000116,0x00000114,0x00000115,0x00050050,0x00000007,+ 0x00000118,0x00000117,0x00000117,0x00050081,0x00000007,0x00000119,0x00000116,0x00000118,+ 0x0003003e,0x0000011a,0x00000119,0x00050039,0x00000006,0x0000011b,0x00000010,0x0000011a,+ 0x00050083,0x00000006,0x0000011c,0x0000011b,0x0000001a,0x00050041,0x000000bc,0x0000011e,+ 0x00000098,0x0000011d,0x0004003d,0x00000006,0x0000011f,0x0000011e,0x00050085,0x00000006,+ 0x00000120,0x0000011c,0x0000011f,0x00050041,0x00000012,0x00000121,0x00000092,0x00000025,+ 0x0004003d,0x00000006,0x00000122,0x00000121,0x00050081,0x00000006,0x00000123,0x00000122,+ 0x00000120,0x00050041,0x00000012,0x00000124,0x00000092,0x00000025,0x0003003e,0x00000124,+ 0x00000123,0x000200f9,0x0000009e,0x000200f8,0x0000009e,0x00050041,0x00000012,0x00000126,+ 0x00000092,0x00000025,0x0004003d,0x00000006,0x00000127,0x00000126,0x00050083,0x00000006,+ 0x00000129,0x00000127,0x00000128,0x00050085,0x00000006,0x0000012b,0x00000129,0x0000012a,+ 0x0003003e,0x00000125,0x0000012b,0x00050041,0x00000012,0x0000012d,0x00000092,0x0000002b,+ 0x0004003d,0x00000006,0x0000012e,0x0000012d,0x00050083,0x00000006,0x00000130,0x0000012e,+ 0x0000012f,0x0003003e,0x0000012c,0x00000130,0x00050041,0x00000012,0x00000132,0x00000092,+ 0x0000005b,0x0004003d,0x00000006,0x00000133,0x00000132,0x00050083,0x00000006,0x00000134,+ 0x00000133,0x0000012f,0x0003003e,0x00000131,0x00000134,0x0003003e,0x00000135,0x00000136,+ 0x0004003d,0x00000006,0x00000138,0x00000125,0x0004003d,0x00000006,0x0000013a,0x00000135,+ 0x00050085,0x00000006,0x0000013b,0x00000139,0x0000013a,0x0004003d,0x00000006,0x0000013c,+ 0x00000131,0x00050085,0x00000006,0x0000013d,0x0000013b,0x0000013c,0x00050081,0x00000006,+ 0x0000013e,0x00000138,0x0000013d,0x0004003d,0x00000006,0x0000013f,0x00000125,0x0004003d,+ 0x00000006,0x00000141,0x00000135,0x00050085,0x00000006,0x00000142,0x00000140,0x00000141,+ 0x0004003d,0x00000006,0x00000143,0x0000012c,0x00050085,0x00000006,0x00000144,0x00000142,+ 0x00000143,0x00050083,0x00000006,0x00000145,0x0000013f,0x00000144,0x0004003d,0x00000006,+ 0x00000147,0x00000135,0x00050085,0x00000006,0x00000148,0x00000146,0x00000147,0x0004003d,+ 0x00000006,0x00000149,0x00000131,0x00050085,0x00000006,0x0000014a,0x00000148,0x00000149,+ 0x00050083,0x00000006,0x0000014b,0x00000145,0x0000014a,0x0004003d,0x00000006,0x0000014c,+ 0x00000125,0x0004003d,0x00000006,0x0000014e,0x00000135,0x00050085,0x00000006,0x0000014f,+ 0x0000014d,0x0000014e,0x0004003d,0x00000006,0x00000150,0x0000012c,0x00050085,0x00000006,+ 0x00000151,0x0000014f,0x00000150,0x00050081,0x00000006,0x00000152,0x0000014c,0x00000151,+ 0x00060050,0x00000009,0x00000153,0x0000013e,0x0000014b,0x00000152,0x0003003e,0x00000137,+ 0x00000153,0x0004003d,0x0000006e,0x00000154,0x00000070,0x0004003d,0x00000063,0x00000155,+ 0x00000065,0x0004003d,0x00000009,0x00000156,0x00000137,0x00060050,0x00000009,0x00000158,+ 0x00000022,0x00000022,0x00000022,0x00060050,0x00000009,0x00000159,0x00000157,0x00000157,+ 0x00000157,0x0008000c,0x00000009,0x0000015a,0x00000001,0x0000002b,0x00000156,0x00000158,+ 0x00000159,0x00050051,0x00000006,0x0000015b,0x0000015a,0x00000000,0x00050051,0x00000006,+ 0x0000015c,0x0000015a,0x00000001,0x00050051,0x00000006,0x0000015d,0x0000015a,0x00000002,+ 0x00070050,0x00000021,0x0000015e,0x0000015b,0x0000015c,0x0000015d,0x00000157,0x00040063,+ 0x00000154,0x00000155,0x0000015e,0x000100fd,0x00010038,0x00050036,0x00000009,0x0000000c,+ 0x00000000,0x0000000a,0x00030037,0x00000008,0x0000000b,0x000200f8,0x0000000d,0x0004003b,+ 0x00000012,0x00000013,0x00000007,0x0004003b,0x00000008,0x00000027,0x00000007,0x0004003d,+ 0x00000015,0x00000018,0x00000017,0x0004003d,0x00000007,0x00000019,0x0000000b,0x00050050,+ 0x00000007,0x0000001b,0x0000001a,0x0000001a,0x00050081,0x00000007,0x0000001c,0x00000019,+ 0x0000001b,0x0004003d,0x00000007,0x0000001f,0x0000001e,0x00050088,0x00000007,0x00000020,+ 0x0000001c,0x0000001f,0x00070058,0x00000021,0x00000023,0x00000018,0x00000020,0x00000002,+ 0x00000022,0x00050051,0x00000006,0x00000026,0x00000023,0x00000000,0x0003003e,0x00000013,+ 0x00000026,0x00050041,0x00000012,0x00000028,0x0000000b,0x00000025,0x0004003d,0x00000006,+ 0x00000029,0x00000028,0x00050085,0x00000006,0x0000002a,0x00000029,0x0000001a,0x00050041,+ 0x00000012,0x0000002c,0x0000000b,0x0000002b,0x0004003d,0x00000006,0x0000002d,0x0000002c,+ 0x00050085,0x00000006,0x0000002e,0x0000002d,0x0000001a,0x00050083,0x00000006,0x00000030,+ 0x0000002e,0x0000002f,0x00050050,0x00000007,0x00000031,0x0000002a,0x00000030,0x00050050,+ 0x00000007,0x00000032,0x0000001a,0x0000001a,0x00050081,0x00000007,0x00000033,0x00000031,+ 0x00000032,0x0004003d,0x00000007,0x00000035,0x00000034,0x00050088,0x00000007,0x00000036,+ 0x00000033,0x00000035,0x0003003e,0x00000027,0x00000036,0x0004003d,0x00000006,0x00000037,+ 0x00000013,0x0004003d,0x00000015,0x00000039,0x00000038,0x0004003d,0x00000007,0x0000003a,+ 0x00000027,0x00070058,0x00000021,0x0000003b,0x00000039,0x0000003a,0x00000002,0x00000022,+ 0x00050051,0x00000006,0x0000003c,0x0000003b,0x00000000,0x0004003d,0x00000015,0x0000003e,+ 0x0000003d,0x0004003d,0x00000007,0x0000003f,0x00000027,0x00070058,0x00000021,0x00000040,+ 0x0000003e,0x0000003f,0x00000002,0x00000022,0x00050051,0x00000006,0x00000041,0x00000040,+ 0x00000000,0x00060050,0x00000009,0x00000042,0x00000037,0x0000003c,0x00000041,0x000200fe,+ 0x00000042,0x00010038,0x00050036,0x00000006,0x00000010,0x00000000,0x0000000e,0x00030037,+ 0x00000008,0x0000000f,0x000200f8,0x00000011,0x0004003b,0x00000045,0x00000046,0x00000007,+ 0x0004003d,0x00000007,0x00000047,0x0000000f,0x0008004f,0x00000009,0x00000048,0x00000047,+ 0x00000047,0x00000000,0x00000001,0x00000000,0x0005008e,0x00000009,0x0000004a,0x00000048,+ 0x00000049,0x0006000c,0x00000009,0x0000004b,0x00000001,0x0000000a,0x0000004a,0x0003003e,+ 0x00000046,0x0000004b,0x0004003d,0x00000009,0x0000004c,0x00000046,0x0004003d,0x00000009,+ 0x0000004d,0x00000046,0x0008004f,0x00000009,0x0000004e,0x0000004d,0x0000004d,0x00000001,+ 0x00000002,0x00000000,0x00060050,0x00000009,0x00000050,0x0000004f,0x0000004f,0x0000004f,+ 0x00050081,0x00000009,0x00000051,0x0000004e,0x00000050,0x00050094,0x00000006,0x00000052,+ 0x0000004c,0x00000051,0x0004003d,0x00000009,0x00000053,0x00000046,0x00060050,0x00000009,+ 0x00000054,0x00000052,0x00000052,0x00000052,0x00050081,0x00000009,0x00000055,0x00000053,+ 0x00000054,0x0003003e,0x00000046,0x00000055,0x00050041,0x00000012,0x00000056,0x00000046,+ 0x00000025,0x0004003d,0x00000006,0x00000057,0x00000056,0x00050041,0x00000012,0x00000058,+ 0x00000046,0x0000002b,0x0004003d,0x00000006,0x00000059,0x00000058,0x00050081,0x00000006,+ 0x0000005a,0x00000057,0x00000059,0x00050041,0x00000012,0x0000005c,0x00000046,0x0000005b,+ 0x0004003d,0x00000006,0x0000005d,0x0000005c,0x00050085,0x00000006,0x0000005e,0x0000005a,+ 0x0000005d,0x0006000c,0x00000006,0x0000005f,0x00000001,0x0000000a,0x0000005e,0x000200fe,+ 0x0000005f,0x00010038};diff --git a/src/ui/stream_menu.cpp b/src/ui/stream_menu.cppindex 9032f93..1b3e8e9 100644--- a/src/ui/stream_menu.cpp+++ b/src/ui/stream_menu.cpp@@ -29,10 +29,11 @@ std::string fmt(const char* f, double v) {} // namespace-void StreamMenu::open(int resolution, bool stats, int sharpness) {+void StreamMenu::open(int resolution, bool stats, int sharpness, int deband) {open_ = true;stats_ = stats;sharpness_ = sharpness;+ deband_ = deband;selected_ = Resume;resolution_ = applied_ = resolution;resolutionAsked_ = false;@@ -57,6 +58,10 @@ MenuAction StreamMenu::handle(const NavInput& in) {sharpness_ = in.left ? (sharpness_ + 3) % 4 : (sharpness_ + 1) % 4;return MenuAction::Sharpness;}+ if (selected_ == Deband && (in.left || in.right || in.accept)) {+ deband_ = in.left ? (deband_ + 2) % 3 : (deband_ + 1) % 3;+ return MenuAction::Deband;+ }if (selected_ == Stats && (in.left || in.right)) {stats_ = !stats_;return MenuAction::Stats;@@ -93,6 +98,7 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {const char* label = i == Resume ? tr(Str::MenuResume): i == Stats ? tr(Str::MenuStats): i == Sharpness ? tr(Str::MenuSharpness)+ : i == Deband ? tr(Str::MenuDeband): i == Resolution ? tr(Str::MenuResolution): i == Refresh ? tr(Str::MenuRefresh): tr(Str::MenuLeave);@@ -104,6 +110,11 @@ Canvas StreamMenu::renderMenu(const StreamInfo& info) const {value = tr(kLevels[sharpness_]);if (sel) value = "< " + value + " >";}+ if (i == Deband) {+ static constexpr Str kLevels[] = {Str::SharpOff, Str::SharpLow, Str::SharpHigh};+ value = tr(kLevels[deband_]);+ if (sel) value = "< " + value + " >";+ }if (i == Resolution) {value = resolutionName(resolution_);if (sel) value = "< " + value + " >";diff --git a/src/ui/stream_menu.h b/src/ui/stream_menu.hindex b1b12ae..f75b66e 100644--- a/src/ui/stream_menu.h+++ b/src/ui/stream_menu.h@@ -22,25 +22,27 @@ struct StreamInfo {int width = 0, height = 0; // of the decoded picture};-enum class MenuAction { None, Close, Leave, Refresh, Resolution, Stats, Sharpness };+enum class MenuAction { None, Close, Leave, Refresh, Resolution, Stats, Sharpness, Deband };class StreamMenu {public:- static constexpr int kMenuW = 620, kMenuH = 950;+ static constexpr int kMenuW = 620, kMenuH = 1010;static constexpr int kMenuX = 80, kMenuY = (1080 - kMenuH) / 2;static constexpr int kStatsX = 32, kStatsY = 28;explicit StreamMenu(const Fonts& fonts) : fonts_(fonts) {}// `resolution` as SettingsChoice::resolution (0 = 1080p, 1 = 720p, 2 = 1440p).- // `sharpness` 0 = off, 1..3 = low, medium, high.- void open(int resolution, bool stats, int sharpness = 0);+ // `sharpness` 0 = off, 1..3 = low, medium, high; `deband` 0..2 = off,+ // low, high.+ void open(int resolution, bool stats, int sharpness = 0, int deband = 1);void close() { open_ = false; }bool isOpen() const { return open_; }MenuAction handle(const NavInput& in);int resolution() const { return resolution_; }bool statsOn() const { return stats_; }int sharpness() const { return sharpness_; }+ int deband() const { return deband_; }// Circle confirms: the hints swap their buttons.void setCircleConfirms(bool on) { circleConfirms_ = on; }// The controllers in use, under the connection.@@ -50,13 +52,13 @@ public:Canvas renderStats(const StreamInfo& info) const;private:- enum Item { Resume, Stats, Sharpness, Resolution, Refresh, Leave, ItemCount };+ enum Item { Resume, Stats, Sharpness, Deband, Resolution, Refresh, Leave, ItemCount };const Fonts& fonts_;bool open_ = false, stats_ = false;int selected_ = Resume;int resolution_ = 0, applied_ = 0;- int sharpness_ = 0;+ int sharpness_ = 0, deband_ = 1;bool resolutionAsked_ = false;bool circleConfirms_ = false;PadSlots pads_{};diff --git a/src/ui/strings.cpp b/src/ui/strings.cppindex b1ef742..df41d8e 100644--- a/src/ui/strings.cpp+++ b/src/ui/strings.cpp@@ -145,6 +145,7 @@ constexpr Column kEnglish = {"Controllers", // Controllers"Controller %s connected", // PadConnected"Controller %s disconnected", // PadDisconnected+ "Block smoothing", // MenuDeband};constexpr Column kPortugueseBR = {@@ -260,6 +261,7 @@ constexpr Column kPortugueseBR = {"Controles","Controle %s conectado","Controle %s desconectado",+ "Suavização de blocos",};constexpr Column kSpanish = {@@ -375,6 +377,7 @@ constexpr Column kSpanish = {"Mandos","Mando %s conectado","Mando %s desconectado",+ "Suavizado de bloques",};constexpr Column kFrench = {@@ -490,6 +493,7 @@ constexpr Column kFrench = {"Manettes","Manette %s connectée","Manette %s déconnectée",+ "Lissage des blocs",};constexpr Column kGerman = {@@ -605,6 +609,7 @@ constexpr Column kGerman = {"Controller","Controller %s verbunden","Controller %s getrennt",+ "Blockglättung",};constexpr Column kItalian = {@@ -720,6 +725,7 @@ constexpr Column kItalian = {"Controller","Controller %s connesso","Controller %s disconnesso",+ "Attenuazione blocchi",};constexpr std::array<const Column*, kLangs> kTable = {&kEnglish, &kPortugueseBR, &kSpanish,diff --git a/src/ui/strings.h b/src/ui/strings.hindex 56ecb0b..202d7ce 100644--- a/src/ui/strings.h+++ b/src/ui/strings.h@@ -122,6 +122,7 @@ enum class Str {Controllers, // in-game menu: the pads in usePadConnected, // "%s" = "2 (user name)"PadDisconnected, // "%s" = "2 (user name)"+ MenuDeband, // smoothing of compression blocks (deband)Count};diff --git a/tests/test_main.cpp b/tests/test_main.cppindex 580f370..617d5dd 100644--- a/tests/test_main.cpp+++ b/tests/test_main.cpp@@ -212,12 +212,15 @@ static void testStreamMenu() {CHECK(press([](xc::ui::NavInput& n) { n.left = true; }) == MenuAction::Sharpness); // off -> highCHECK(menu.sharpness() == 3);press([](xc::ui::NavInput& n) { n.down = true; });+ CHECK(press([](xc::ui::NavInput& n) { n.right = true; }) == MenuAction::Deband); // low -> high+ CHECK(menu.deband() == 2);+ press([](xc::ui::NavInput& n) { n.down = true; });press([](xc::ui::NavInput& n) { n.left = true; }); // 1080p -> 720pCHECK(menu.resolution() == 1);press([](xc::ui::NavInput& n) { n.left = true; }); // wraps to 1440pCHECK(menu.resolution() == 2);CHECK(press([](xc::ui::NavInput& n) { n.accept = true; }) == MenuAction::Resolution);- for (int i = 0; i < 4; ++i) press([](xc::ui::NavInput& n) { n.up = true; }); // wraps to "Leave game"+ for (int i = 0; i < 5; ++i) press([](xc::ui::NavInput& n) { n.up = true; }); // wraps to "Leave game"CHECK(press([](xc::ui::NavInput& n) { n.accept = true; }) == MenuAction::Leave);CHECK(!menu.isOpen());menu.open(1, true);