Xbox Cloud Gaming app for PS5 Homebrew
C
fix(stream, quality): enable RCAS denoise, offer H.264 High profile, fix queue latency trap, route cloud 1080p to P1080HQ
Rafael Abud Ferreirad33d62dc412a
diff --git a/src/app/stream_player.cpp b/src/app/stream_player.cppindex 871cea1..8af25ed 100644--- a/src/app/stream_player.cpp+++ b/src/app/stream_player.cpp@@ -295,8 +295,10 @@ struct StreamPlayer::Impl {// When a burst of packets arrives after network jitter/retransmission,// fast-forward decode without drawing to drain the stale backlog in a few// milliseconds and present the newest live frame immediately.- // Under normal playback (backlog <= 2), every frame is drawn smoothly.- if (backlog >= 3 && skippedInRow < 10) {+ // backlog is measured after popping the current frame: backlog >= 2 means+ // >= 3 frames buffered (>= 33ms stale). Fast-forwarding flushes the queue+ // without swapchain stall, keeping display latency around ~27ms.+ if (backlog >= 2 && skippedInRow < 5) {++skippedInRow;++droppedFrames;continue;diff --git a/src/app/worker.cpp b/src/app/worker.cppindex b26ad2f..fd3fa05 100644--- a/src/app/worker.cpp+++ b/src/app/worker.cpp@@ -311,15 +311,18 @@ std::string play(auth::AuthManager& am, xcloud::GssvClient& gssv, const ui::Gamexcloud::Resolution tier;if (!g_autoplay.resolution.empty())tier = res == "720p" ? xcloud::Resolution::P720- : isBest ? xcloud::Resolution::P1440+ : res == "1440p" ? xcloud::Resolution::P1440: res == "1080p-hq" ? xcloud::Resolution::P1080HQ- : xcloud::Resolution::P1080;+ : isBest ? (allow1440Locked() ? xcloud::Resolution::P1440 : xcloud::Resolution::P1080HQ)+ : xcloud::Resolution::P1080HQ;else if (res == "720p")tier = xcloud::Resolution::P720;- else if (home || isBest)+ else if (home)+ tier = xcloud::Resolution::P1440;+ else if (res == "1440p" || (isBest && allow1440Locked()))tier = xcloud::Resolution::P1440;else- tier = xcloud::Resolution::P1080;+ tier = xcloud::Resolution::P1080HQ;gssv.setResolution(tier);const xcloud::Region* region = gssv.session().defaultRegion();const std::string& wanted = regionName.empty() ? g_settings.region : regionName;diff --git a/src/display/shaders/rcas.comp b/src/display/shaders/rcas.compindex 51d193a..db85651 100644--- a/src/display/shaders/rcas.comp+++ b/src/display/shaders/rcas.comp@@ -18,6 +18,7 @@ layout(push_constant) uniform Constants {#define A_GLSL 1#include "ffx_a.h"#define FSR_RCAS_F 1+#define FSR_RCAS_DENOISE 1AF4 FsrRcasLoadF(ASU2 p) {ivec2 size = imageSize(upscaled);return imageLoad(upscaled, clamp(p, ivec2(0), size - 1));diff --git a/src/display/shaders/rcas.spv.h b/src/display/shaders/rcas.spv.hindex 08257b0..1b0199d 100644--- a/src/display/shaders/rcas.spv.h+++ b/src/display/shaders/rcas.spv.h@@ -1,10 +1,10 @@// 1116.2.0#pragma onceconst uint32_t kShader_rcas[] = {- 0x07230203,0x00010600,0x0008000b,0x00000324,0x00000000,0x00020011,0x00000001,0x00020011,+ 0x07230203,0x00010600,0x0008000b,0x00000327,0x00000000,0x00020011,0x00000001,0x00020011,0x00000032,0x00020011,0x00000038,0x0006000b,0x00000001,0x4c534c47,0x6474732e,0x3035342e,0x00000000,0x0003000e,0x00000000,0x00000001,0x000a000f,0x00000005,0x00000004,0x6e69616d,- 0x00000000,0x0000007b,0x00000290,0x00000297,0x000002dd,0x00000306,0x00060010,0x00000004,+ 0x00000000,0x0000007b,0x00000293,0x0000029a,0x000002e0,0x00000309,0x00060010,0x00000004,0x00000011,0x00000008,0x00000008,0x00000001,0x00030003,0x00000002,0x000001c2,0x000a0004,0x475f4c47,0x4c474f4f,0x70635f45,0x74735f70,0x5f656c79,0x656e696c,0x7269645f,0x69746365,0x00006576,0x00080004,0x475f4c47,0x4c474f4f,0x6e695f45,0x64756c63,0x69645f65,0x74636572,@@ -89,26 +89,26 @@ const uint32_t kShader_rcas[] = {0x65626f6c,0x00000047,0x00040005,0x00000231,0x65626f6c,0x00000042,0x00040005,0x00000236,0x65626f6c,0x00000000,0x00040005,0x00000238,0x61726170,0x0000006d,0x00040005,0x0000023a,0x61726170,0x0000006d,0x00040005,0x0000023c,0x61726170,0x0000006d,0x00040005,0x0000023e,- 0x61726170,0x0000006d,0x00040005,0x00000241,0x61726170,0x0000006d,0x00040005,0x00000249,- 0x4c706372,0x00000000,0x00040005,0x0000024a,0x61726170,0x0000006d,0x00040005,0x0000024e,- 0x61726170,0x0000006d,0x00040005,0x00000251,0x61726170,0x0000006d,0x00030005,0x0000028d,- 0x00000070,0x00080005,0x00000290,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,- 0x00000044,0x00040005,0x00000294,0x657a6973,0x00000000,0x00040005,0x00000297,0x67726174,- 0x00007465,0x00030005,0x000002ad,0x00786f62,0x00030005,0x000002b0,0x00000071,0x00050005,- 0x000002db,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x000002db,0x00000000,0x006e6f63,- 0x00050006,0x000002db,0x00000001,0x72616873,0x006e6570,0x00070006,0x000002db,0x00000002,- 0x7265766f,0x4f79616c,0x69636170,0x00007974,0x00030005,0x000002dd,0x00006370,0x00040005,- 0x000002e4,0x6f6c6f63,0x00000072,0x00040005,0x000002e7,0x61726170,0x0000006d,0x00040005,- 0x000002e8,0x61726170,0x0000006d,0x00040005,0x000002e9,0x61726170,0x0000006d,0x00040005,- 0x000002ea,0x61726170,0x0000006d,0x00040005,0x000002eb,0x61726170,0x0000006d,0x00030005,- 0x00000302,0x0000006f,0x00050005,0x00000306,0x7265766f,0x5479616c,0x00007865,0x00030047,+ 0x61726170,0x0000006d,0x00040005,0x00000241,0x61726170,0x0000006d,0x00040005,0x0000024c,+ 0x4c706372,0x00000000,0x00040005,0x0000024d,0x61726170,0x0000006d,0x00040005,0x00000251,+ 0x61726170,0x0000006d,0x00040005,0x00000254,0x61726170,0x0000006d,0x00030005,0x00000290,+ 0x00000070,0x00080005,0x00000293,0x475f6c67,0x61626f6c,0x766e496c,0x7461636f,0x496e6f69,+ 0x00000044,0x00040005,0x00000297,0x657a6973,0x00000000,0x00040005,0x0000029a,0x67726174,+ 0x00007465,0x00030005,0x000002b0,0x00786f62,0x00030005,0x000002b3,0x00000071,0x00050005,+ 0x000002de,0x736e6f43,0x746e6174,0x00000073,0x00040006,0x000002de,0x00000000,0x006e6f63,+ 0x00050006,0x000002de,0x00000001,0x72616873,0x006e6570,0x00070006,0x000002de,0x00000002,+ 0x7265766f,0x4f79616c,0x69636170,0x00007974,0x00030005,0x000002e0,0x00006370,0x00040005,+ 0x000002e7,0x6f6c6f63,0x00000072,0x00040005,0x000002ea,0x61726170,0x0000006d,0x00040005,+ 0x000002eb,0x61726170,0x0000006d,0x00040005,0x000002ec,0x61726170,0x0000006d,0x00040005,+ 0x000002ed,0x61726170,0x0000006d,0x00040005,0x000002ee,0x61726170,0x0000006d,0x00030005,+ 0x00000305,0x0000006f,0x00050005,0x00000309,0x7265766f,0x5479616c,0x00007865,0x00030047,0x0000007b,0x00000018,0x00040047,0x0000007b,0x00000021,0x00000000,0x00040047,0x0000007b,- 0x00000022,0x00000000,0x00040047,0x00000290,0x0000000b,0x0000001c,0x00030047,0x00000297,- 0x00000019,0x00040047,0x00000297,0x00000021,0x00000002,0x00040047,0x00000297,0x00000022,- 0x00000000,0x00030047,0x000002db,0x00000002,0x00050048,0x000002db,0x00000000,0x00000023,- 0x00000000,0x00050048,0x000002db,0x00000001,0x00000023,0x00000010,0x00050048,0x000002db,- 0x00000002,0x00000023,0x00000014,0x00040047,0x00000306,0x00000021,0x00000001,0x00040047,- 0x00000306,0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,+ 0x00000022,0x00000000,0x00040047,0x00000293,0x0000000b,0x0000001c,0x00030047,0x0000029a,+ 0x00000019,0x00040047,0x0000029a,0x00000021,0x00000002,0x00040047,0x0000029a,0x00000022,+ 0x00000000,0x00030047,0x000002de,0x00000002,0x00050048,0x000002de,0x00000000,0x00000023,+ 0x00000000,0x00050048,0x000002de,0x00000001,0x00000023,0x00000010,0x00050048,0x000002de,+ 0x00000002,0x00000023,0x00000014,0x00040047,0x00000309,0x00000021,0x00000001,0x00040047,+ 0x00000309,0x00000022,0x00000000,0x00020013,0x00000002,0x00030021,0x00000003,0x00000002,0x00030016,0x00000006,0x00000020,0x00040020,0x00000007,0x00000007,0x00000006,0x00040021,0x00000008,0x00000006,0x00000007,0x00040015,0x0000000c,0x00000020,0x00000000,0x00040020,0x0000000d,0x00000007,0x0000000c,0x00040021,0x0000000e,0x0000000c,0x0000000d,0x00060021,@@ -134,104 +134,104 @@ const uint32_t kShader_rcas[] = {0x3e800000,0x0004002b,0x00000006,0x00000189,0xbf000000,0x00040017,0x000001cd,0x00000006,0x00000002,0x00040020,0x000001ce,0x00000007,0x000001cd,0x0004002b,0x00000006,0x000001d0,0xc0800000,0x0005002c,0x000001cd,0x000001d1,0x00000054,0x000001d0,0x0004002b,0x00000006,- 0x000001d6,0x40800000,0x0004002b,0x00000006,0x00000237,0xbe400000,0x00040017,0x0000028e,- 0x0000000c,0x00000003,0x00040020,0x0000028f,0x00000001,0x0000028e,0x0004003b,0x0000028f,- 0x00000290,0x00000001,0x00090019,0x00000295,0x00000006,0x00000001,0x00000000,0x00000000,- 0x00000000,0x00000002,0x00000000,0x00040020,0x00000296,0x00000000,0x00000295,0x0004003b,- 0x00000296,0x00000297,0x00000000,0x00020014,0x0000029a,0x00040020,0x0000029b,0x00000007,- 0x00000026,0x0004002b,0x00000026,0x000002b5,0x00000002,0x0007002c,0x00000029,0x000002d9,- 0x0000005c,0x0000005c,0x0000005c,0x00000054,0x0005001e,0x000002db,0x00000036,0x0000000c,- 0x00000006,0x00040020,0x000002dc,0x00000009,0x000002db,0x0004003b,0x000002dc,0x000002dd,- 0x00000009,0x00040020,0x000002de,0x00000009,0x0000000c,0x00040020,0x000002ec,0x00000009,- 0x00000036,0x00040020,0x000002fb,0x00000009,0x00000006,0x00040020,0x00000301,0x00000007,- 0x00000029,0x00090019,0x00000303,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,- 0x00000001,0x00000000,0x0003001b,0x00000304,0x00000303,0x00040020,0x00000305,0x00000000,- 0x00000304,0x0004003b,0x00000305,0x00000306,0x00000000,0x0004002b,0x0000000c,0x00000313,- 0x00000003,0x0004002b,0x0000000c,0x00000322,0x00000008,0x0006002c,0x0000028e,0x00000323,- 0x00000322,0x00000322,0x000000b6,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,- 0x000200f8,0x00000005,0x0004003b,0x00000028,0x0000028d,0x00000007,0x0004003b,0x00000028,- 0x00000294,0x00000007,0x0004003b,0x00000028,0x000002ad,0x00000007,0x0004003b,0x00000028,- 0x000002b0,0x00000007,0x0004003b,0x0000008e,0x000002e4,0x00000007,0x0004003b,0x00000007,- 0x000002e7,0x00000007,0x0004003b,0x00000007,0x000002e8,0x00000007,0x0004003b,0x00000007,- 0x000002e9,0x00000007,0x0004003b,0x00000035,0x000002ea,0x00000007,0x0004003b,0x00000037,- 0x000002eb,0x00000007,0x0004003b,0x00000301,0x00000302,0x00000007,0x0004003d,0x0000028e,- 0x00000291,0x00000290,0x0007004f,0x00000034,0x00000292,0x00000291,0x00000291,0x00000000,- 0x00000001,0x0004007c,0x00000027,0x00000293,0x00000292,0x0003003e,0x0000028d,0x00000293,- 0x0004003d,0x00000295,0x00000298,0x00000297,0x00040068,0x00000027,0x00000299,0x00000298,- 0x0003003e,0x00000294,0x00000299,0x00050041,0x0000029b,0x0000029c,0x0000028d,0x000000b2,- 0x0004003d,0x00000026,0x0000029d,0x0000029c,0x00050041,0x0000029b,0x0000029e,0x00000294,- 0x000000b2,0x0004003d,0x00000026,0x0000029f,0x0000029e,0x000500af,0x0000029a,0x000002a0,- 0x0000029d,0x0000029f,0x000400a8,0x0000029a,0x000002a1,0x000002a0,0x000300f7,0x000002a3,- 0x00000000,0x000400fa,0x000002a1,0x000002a2,0x000002a3,0x000200f8,0x000002a2,0x00050041,- 0x0000029b,0x000002a4,0x0000028d,0x000000b6,0x0004003d,0x00000026,0x000002a5,0x000002a4,- 0x00050041,0x0000029b,0x000002a6,0x00000294,0x000000b6,0x0004003d,0x00000026,0x000002a7,- 0x000002a6,0x000500af,0x0000029a,0x000002a8,0x000002a5,0x000002a7,0x000200f9,0x000002a3,- 0x000200f8,0x000002a3,0x000700f5,0x0000029a,0x000002a9,0x000002a0,0x00000005,0x000002a8,- 0x000002a2,0x000300f7,0x000002ab,0x00000000,0x000400fa,0x000002a9,0x000002aa,0x000002ab,- 0x000200f8,0x000002aa,0x000100fd,0x000200f8,0x000002ab,0x0004003d,0x00000079,0x000002ae,- 0x0000007b,0x00040068,0x00000027,0x000002af,0x000002ae,0x0003003e,0x000002ad,0x000002af,- 0x0004003d,0x00000027,0x000002b1,0x0000028d,0x0004003d,0x00000027,0x000002b2,0x00000294,- 0x0004003d,0x00000027,0x000002b3,0x000002ad,0x00050082,0x00000027,0x000002b4,0x000002b2,- 0x000002b3,0x00050050,0x00000027,0x000002b6,0x000002b5,0x000002b5,0x00050087,0x00000027,- 0x000002b7,0x000002b4,0x000002b6,0x00050082,0x00000027,0x000002b8,0x000002b1,0x000002b7,- 0x0003003e,0x000002b0,0x000002b8,0x00050041,0x0000029b,0x000002b9,0x000002b0,0x000000b2,- 0x0004003d,0x00000026,0x000002ba,0x000002b9,0x000500b1,0x0000029a,0x000002bb,0x000002ba,- 0x00000080,0x000400a8,0x0000029a,0x000002bc,0x000002bb,0x000300f7,0x000002be,0x00000000,- 0x000400fa,0x000002bc,0x000002bd,0x000002be,0x000200f8,0x000002bd,0x00050041,0x0000029b,- 0x000002bf,0x000002b0,0x000000b6,0x0004003d,0x00000026,0x000002c0,0x000002bf,0x000500b1,- 0x0000029a,0x000002c1,0x000002c0,0x00000080,0x000200f9,0x000002be,0x000200f8,0x000002be,- 0x000700f5,0x0000029a,0x000002c2,0x000002bb,0x000002ab,0x000002c1,0x000002bd,0x000400a8,- 0x0000029a,0x000002c3,0x000002c2,0x000300f7,0x000002c5,0x00000000,0x000400fa,0x000002c3,- 0x000002c4,0x000002c5,0x000200f8,0x000002c4,0x00050041,0x0000029b,0x000002c6,0x000002b0,- 0x000000b2,0x0004003d,0x00000026,0x000002c7,0x000002c6,0x00050041,0x0000029b,0x000002c8,- 0x000002ad,0x000000b2,0x0004003d,0x00000026,0x000002c9,0x000002c8,0x000500af,0x0000029a,- 0x000002ca,0x000002c7,0x000002c9,0x000200f9,0x000002c5,0x000200f8,0x000002c5,0x000700f5,- 0x0000029a,0x000002cb,0x000002c2,0x000002be,0x000002ca,0x000002c4,0x000400a8,0x0000029a,- 0x000002cc,0x000002cb,0x000300f7,0x000002ce,0x00000000,0x000400fa,0x000002cc,0x000002cd,- 0x000002ce,0x000200f8,0x000002cd,0x00050041,0x0000029b,0x000002cf,0x000002b0,0x000000b6,- 0x0004003d,0x00000026,0x000002d0,0x000002cf,0x00050041,0x0000029b,0x000002d1,0x000002ad,- 0x000000b6,0x0004003d,0x00000026,0x000002d2,0x000002d1,0x000500af,0x0000029a,0x000002d3,- 0x000002d0,0x000002d2,0x000200f9,0x000002ce,0x000200f8,0x000002ce,0x000700f5,0x0000029a,- 0x000002d4,0x000002cb,0x000002c5,0x000002d3,0x000002cd,0x000300f7,0x000002d6,0x00000000,- 0x000400fa,0x000002d4,0x000002d5,0x000002d6,0x000200f8,0x000002d5,0x0004003d,0x00000295,- 0x000002d7,0x00000297,0x0004003d,0x00000027,0x000002d8,0x0000028d,0x00040063,0x000002d7,- 0x000002d8,0x000002d9,0x000100fd,0x000200f8,0x000002d6,0x00050041,0x000002de,0x000002df,- 0x000002dd,0x00000083,0x0004003d,0x0000000c,0x000002e0,0x000002df,0x000500ab,0x0000029a,- 0x000002e1,0x000002e0,0x000000b2,0x000300f7,0x000002e3,0x00000000,0x000400fa,0x000002e1,- 0x000002e2,0x000002f6,0x000200f8,0x000002e2,0x0004003d,0x00000027,0x000002e5,0x000002b0,- 0x0004007c,0x00000034,0x000002e6,0x000002e5,0x0003003e,0x000002ea,0x000002e6,0x00050041,- 0x000002ec,0x000002ed,0x000002dd,0x00000080,0x0004003d,0x00000036,0x000002ee,0x000002ed,- 0x0003003e,0x000002eb,0x000002ee,0x00090039,0x00000002,0x000002ef,0x0000003e,0x000002e7,- 0x000002e8,0x000002e9,0x000002ea,0x000002eb,0x0004003d,0x00000006,0x000002f0,0x000002e7,- 0x00050041,0x00000007,0x000002f1,0x000002e4,0x000000b2,0x0003003e,0x000002f1,0x000002f0,- 0x0004003d,0x00000006,0x000002f2,0x000002e8,0x00050041,0x00000007,0x000002f3,0x000002e4,- 0x000000b6,0x0003003e,0x000002f3,0x000002f2,0x0004003d,0x00000006,0x000002f4,0x000002e9,- 0x00050041,0x00000007,0x000002f5,0x000002e4,0x000000ba,0x0003003e,0x000002f5,0x000002f4,- 0x000200f9,0x000002e3,0x000200f8,0x000002f6,0x0004003d,0x00000079,0x000002f7,0x0000007b,- 0x0004003d,0x00000027,0x000002f8,0x000002b0,0x00050062,0x00000029,0x000002f9,0x000002f7,- 0x000002f8,0x0008004f,0x0000008d,0x000002fa,0x000002f9,0x000002f9,0x00000000,0x00000001,- 0x00000002,0x0003003e,0x000002e4,0x000002fa,0x000200f9,0x000002e3,0x000200f8,0x000002e3,- 0x00050041,0x000002fb,0x000002fc,0x000002dd,0x000002b5,0x0004003d,0x00000006,0x000002fd,- 0x000002fc,0x000500ba,0x0000029a,0x000002fe,0x000002fd,0x0000005c,0x000300f7,0x00000300,- 0x00000000,0x000400fa,0x000002fe,0x000002ff,0x00000300,0x000200f8,0x000002ff,0x0004003d,- 0x00000304,0x00000307,0x00000306,0x0004003d,0x00000027,0x00000308,0x000002b0,0x0004006f,- 0x000001cd,0x00000309,0x00000308,0x00050050,0x000001cd,0x0000030a,0x00000115,0x00000115,- 0x00050081,0x000001cd,0x0000030b,0x00000309,0x0000030a,0x0004003d,0x00000027,0x0000030c,- 0x000002ad,0x0004006f,0x000001cd,0x0000030d,0x0000030c,0x00050088,0x000001cd,0x0000030e,- 0x0000030b,0x0000030d,0x00070058,0x00000029,0x0000030f,0x00000307,0x0000030e,0x00000002,- 0x0000005c,0x0003003e,0x00000302,0x0000030f,0x0004003d,0x0000008d,0x00000310,0x000002e4,- 0x0004003d,0x00000029,0x00000311,0x00000302,0x0008004f,0x0000008d,0x00000312,0x00000311,- 0x00000311,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007,0x00000314,0x00000302,- 0x00000313,0x0004003d,0x00000006,0x00000315,0x00000314,0x00050041,0x000002fb,0x00000316,- 0x000002dd,0x000002b5,0x0004003d,0x00000006,0x00000317,0x00000316,0x00050085,0x00000006,- 0x00000318,0x00000315,0x00000317,0x00060050,0x0000008d,0x00000319,0x00000318,0x00000318,- 0x00000318,0x0008000c,0x0000008d,0x0000031a,0x00000001,0x0000002e,0x00000310,0x00000312,- 0x00000319,0x0003003e,0x000002e4,0x0000031a,0x000200f9,0x00000300,0x000200f8,0x00000300,- 0x0004003d,0x00000295,0x0000031b,0x00000297,0x0004003d,0x00000027,0x0000031c,0x0000028d,- 0x0004003d,0x0000008d,0x0000031d,0x000002e4,0x00050051,0x00000006,0x0000031e,0x0000031d,- 0x00000000,0x00050051,0x00000006,0x0000031f,0x0000031d,0x00000001,0x00050051,0x00000006,- 0x00000320,0x0000031d,0x00000002,0x00070050,0x00000029,0x00000321,0x0000031e,0x0000031f,- 0x00000320,0x00000054,0x00040063,0x0000031b,0x0000031c,0x00000321,0x000100fd,0x00010038,+ 0x000001d6,0x40800000,0x0004002b,0x00000006,0x00000237,0xbe400000,0x00040017,0x00000291,+ 0x0000000c,0x00000003,0x00040020,0x00000292,0x00000001,0x00000291,0x0004003b,0x00000292,+ 0x00000293,0x00000001,0x00090019,0x00000298,0x00000006,0x00000001,0x00000000,0x00000000,+ 0x00000000,0x00000002,0x00000000,0x00040020,0x00000299,0x00000000,0x00000298,0x0004003b,+ 0x00000299,0x0000029a,0x00000000,0x00020014,0x0000029d,0x00040020,0x0000029e,0x00000007,+ 0x00000026,0x0004002b,0x00000026,0x000002b8,0x00000002,0x0007002c,0x00000029,0x000002dc,+ 0x0000005c,0x0000005c,0x0000005c,0x00000054,0x0005001e,0x000002de,0x00000036,0x0000000c,+ 0x00000006,0x00040020,0x000002df,0x00000009,0x000002de,0x0004003b,0x000002df,0x000002e0,+ 0x00000009,0x00040020,0x000002e1,0x00000009,0x0000000c,0x00040020,0x000002ef,0x00000009,+ 0x00000036,0x00040020,0x000002fe,0x00000009,0x00000006,0x00040020,0x00000304,0x00000007,+ 0x00000029,0x00090019,0x00000306,0x00000006,0x00000001,0x00000000,0x00000000,0x00000000,+ 0x00000001,0x00000000,0x0003001b,0x00000307,0x00000306,0x00040020,0x00000308,0x00000000,+ 0x00000307,0x0004003b,0x00000308,0x00000309,0x00000000,0x0004002b,0x0000000c,0x00000316,+ 0x00000003,0x0004002b,0x0000000c,0x00000325,0x00000008,0x0006002c,0x00000291,0x00000326,+ 0x00000325,0x00000325,0x000000b6,0x00050036,0x00000002,0x00000004,0x00000000,0x00000003,+ 0x000200f8,0x00000005,0x0004003b,0x00000028,0x00000290,0x00000007,0x0004003b,0x00000028,+ 0x00000297,0x00000007,0x0004003b,0x00000028,0x000002b0,0x00000007,0x0004003b,0x00000028,+ 0x000002b3,0x00000007,0x0004003b,0x0000008e,0x000002e7,0x00000007,0x0004003b,0x00000007,+ 0x000002ea,0x00000007,0x0004003b,0x00000007,0x000002eb,0x00000007,0x0004003b,0x00000007,+ 0x000002ec,0x00000007,0x0004003b,0x00000035,0x000002ed,0x00000007,0x0004003b,0x00000037,+ 0x000002ee,0x00000007,0x0004003b,0x00000304,0x00000305,0x00000007,0x0004003d,0x00000291,+ 0x00000294,0x00000293,0x0007004f,0x00000034,0x00000295,0x00000294,0x00000294,0x00000000,+ 0x00000001,0x0004007c,0x00000027,0x00000296,0x00000295,0x0003003e,0x00000290,0x00000296,+ 0x0004003d,0x00000298,0x0000029b,0x0000029a,0x00040068,0x00000027,0x0000029c,0x0000029b,+ 0x0003003e,0x00000297,0x0000029c,0x00050041,0x0000029e,0x0000029f,0x00000290,0x000000b2,+ 0x0004003d,0x00000026,0x000002a0,0x0000029f,0x00050041,0x0000029e,0x000002a1,0x00000297,+ 0x000000b2,0x0004003d,0x00000026,0x000002a2,0x000002a1,0x000500af,0x0000029d,0x000002a3,+ 0x000002a0,0x000002a2,0x000400a8,0x0000029d,0x000002a4,0x000002a3,0x000300f7,0x000002a6,+ 0x00000000,0x000400fa,0x000002a4,0x000002a5,0x000002a6,0x000200f8,0x000002a5,0x00050041,+ 0x0000029e,0x000002a7,0x00000290,0x000000b6,0x0004003d,0x00000026,0x000002a8,0x000002a7,+ 0x00050041,0x0000029e,0x000002a9,0x00000297,0x000000b6,0x0004003d,0x00000026,0x000002aa,+ 0x000002a9,0x000500af,0x0000029d,0x000002ab,0x000002a8,0x000002aa,0x000200f9,0x000002a6,+ 0x000200f8,0x000002a6,0x000700f5,0x0000029d,0x000002ac,0x000002a3,0x00000005,0x000002ab,+ 0x000002a5,0x000300f7,0x000002ae,0x00000000,0x000400fa,0x000002ac,0x000002ad,0x000002ae,+ 0x000200f8,0x000002ad,0x000100fd,0x000200f8,0x000002ae,0x0004003d,0x00000079,0x000002b1,+ 0x0000007b,0x00040068,0x00000027,0x000002b2,0x000002b1,0x0003003e,0x000002b0,0x000002b2,+ 0x0004003d,0x00000027,0x000002b4,0x00000290,0x0004003d,0x00000027,0x000002b5,0x00000297,+ 0x0004003d,0x00000027,0x000002b6,0x000002b0,0x00050082,0x00000027,0x000002b7,0x000002b5,+ 0x000002b6,0x00050050,0x00000027,0x000002b9,0x000002b8,0x000002b8,0x00050087,0x00000027,+ 0x000002ba,0x000002b7,0x000002b9,0x00050082,0x00000027,0x000002bb,0x000002b4,0x000002ba,+ 0x0003003e,0x000002b3,0x000002bb,0x00050041,0x0000029e,0x000002bc,0x000002b3,0x000000b2,+ 0x0004003d,0x00000026,0x000002bd,0x000002bc,0x000500b1,0x0000029d,0x000002be,0x000002bd,+ 0x00000080,0x000400a8,0x0000029d,0x000002bf,0x000002be,0x000300f7,0x000002c1,0x00000000,+ 0x000400fa,0x000002bf,0x000002c0,0x000002c1,0x000200f8,0x000002c0,0x00050041,0x0000029e,+ 0x000002c2,0x000002b3,0x000000b6,0x0004003d,0x00000026,0x000002c3,0x000002c2,0x000500b1,+ 0x0000029d,0x000002c4,0x000002c3,0x00000080,0x000200f9,0x000002c1,0x000200f8,0x000002c1,+ 0x000700f5,0x0000029d,0x000002c5,0x000002be,0x000002ae,0x000002c4,0x000002c0,0x000400a8,+ 0x0000029d,0x000002c6,0x000002c5,0x000300f7,0x000002c8,0x00000000,0x000400fa,0x000002c6,+ 0x000002c7,0x000002c8,0x000200f8,0x000002c7,0x00050041,0x0000029e,0x000002c9,0x000002b3,+ 0x000000b2,0x0004003d,0x00000026,0x000002ca,0x000002c9,0x00050041,0x0000029e,0x000002cb,+ 0x000002b0,0x000000b2,0x0004003d,0x00000026,0x000002cc,0x000002cb,0x000500af,0x0000029d,+ 0x000002cd,0x000002ca,0x000002cc,0x000200f9,0x000002c8,0x000200f8,0x000002c8,0x000700f5,+ 0x0000029d,0x000002ce,0x000002c5,0x000002c1,0x000002cd,0x000002c7,0x000400a8,0x0000029d,+ 0x000002cf,0x000002ce,0x000300f7,0x000002d1,0x00000000,0x000400fa,0x000002cf,0x000002d0,+ 0x000002d1,0x000200f8,0x000002d0,0x00050041,0x0000029e,0x000002d2,0x000002b3,0x000000b6,+ 0x0004003d,0x00000026,0x000002d3,0x000002d2,0x00050041,0x0000029e,0x000002d4,0x000002b0,+ 0x000000b6,0x0004003d,0x00000026,0x000002d5,0x000002d4,0x000500af,0x0000029d,0x000002d6,+ 0x000002d3,0x000002d5,0x000200f9,0x000002d1,0x000200f8,0x000002d1,0x000700f5,0x0000029d,+ 0x000002d7,0x000002ce,0x000002c8,0x000002d6,0x000002d0,0x000300f7,0x000002d9,0x00000000,+ 0x000400fa,0x000002d7,0x000002d8,0x000002d9,0x000200f8,0x000002d8,0x0004003d,0x00000298,+ 0x000002da,0x0000029a,0x0004003d,0x00000027,0x000002db,0x00000290,0x00040063,0x000002da,+ 0x000002db,0x000002dc,0x000100fd,0x000200f8,0x000002d9,0x00050041,0x000002e1,0x000002e2,+ 0x000002e0,0x00000083,0x0004003d,0x0000000c,0x000002e3,0x000002e2,0x000500ab,0x0000029d,+ 0x000002e4,0x000002e3,0x000000b2,0x000300f7,0x000002e6,0x00000000,0x000400fa,0x000002e4,+ 0x000002e5,0x000002f9,0x000200f8,0x000002e5,0x0004003d,0x00000027,0x000002e8,0x000002b3,+ 0x0004007c,0x00000034,0x000002e9,0x000002e8,0x0003003e,0x000002ed,0x000002e9,0x00050041,+ 0x000002ef,0x000002f0,0x000002e0,0x00000080,0x0004003d,0x00000036,0x000002f1,0x000002f0,+ 0x0003003e,0x000002ee,0x000002f1,0x00090039,0x00000002,0x000002f2,0x0000003e,0x000002ea,+ 0x000002eb,0x000002ec,0x000002ed,0x000002ee,0x0004003d,0x00000006,0x000002f3,0x000002ea,+ 0x00050041,0x00000007,0x000002f4,0x000002e7,0x000000b2,0x0003003e,0x000002f4,0x000002f3,+ 0x0004003d,0x00000006,0x000002f5,0x000002eb,0x00050041,0x00000007,0x000002f6,0x000002e7,+ 0x000000b6,0x0003003e,0x000002f6,0x000002f5,0x0004003d,0x00000006,0x000002f7,0x000002ec,+ 0x00050041,0x00000007,0x000002f8,0x000002e7,0x000000ba,0x0003003e,0x000002f8,0x000002f7,+ 0x000200f9,0x000002e6,0x000200f8,0x000002f9,0x0004003d,0x00000079,0x000002fa,0x0000007b,+ 0x0004003d,0x00000027,0x000002fb,0x000002b3,0x00050062,0x00000029,0x000002fc,0x000002fa,+ 0x000002fb,0x0008004f,0x0000008d,0x000002fd,0x000002fc,0x000002fc,0x00000000,0x00000001,+ 0x00000002,0x0003003e,0x000002e7,0x000002fd,0x000200f9,0x000002e6,0x000200f8,0x000002e6,+ 0x00050041,0x000002fe,0x000002ff,0x000002e0,0x000002b8,0x0004003d,0x00000006,0x00000300,+ 0x000002ff,0x000500ba,0x0000029d,0x00000301,0x00000300,0x0000005c,0x000300f7,0x00000303,+ 0x00000000,0x000400fa,0x00000301,0x00000302,0x00000303,0x000200f8,0x00000302,0x0004003d,+ 0x00000307,0x0000030a,0x00000309,0x0004003d,0x00000027,0x0000030b,0x000002b3,0x0004006f,+ 0x000001cd,0x0000030c,0x0000030b,0x00050050,0x000001cd,0x0000030d,0x00000115,0x00000115,+ 0x00050081,0x000001cd,0x0000030e,0x0000030c,0x0000030d,0x0004003d,0x00000027,0x0000030f,+ 0x000002b0,0x0004006f,0x000001cd,0x00000310,0x0000030f,0x00050088,0x000001cd,0x00000311,+ 0x0000030e,0x00000310,0x00070058,0x00000029,0x00000312,0x0000030a,0x00000311,0x00000002,+ 0x0000005c,0x0003003e,0x00000305,0x00000312,0x0004003d,0x0000008d,0x00000313,0x000002e7,+ 0x0004003d,0x00000029,0x00000314,0x00000305,0x0008004f,0x0000008d,0x00000315,0x00000314,+ 0x00000314,0x00000000,0x00000001,0x00000002,0x00050041,0x00000007,0x00000317,0x00000305,+ 0x00000316,0x0004003d,0x00000006,0x00000318,0x00000317,0x00050041,0x000002fe,0x00000319,+ 0x000002e0,0x000002b8,0x0004003d,0x00000006,0x0000031a,0x00000319,0x00050085,0x00000006,+ 0x0000031b,0x00000318,0x0000031a,0x00060050,0x0000008d,0x0000031c,0x0000031b,0x0000031b,+ 0x0000031b,0x0008000c,0x0000008d,0x0000031d,0x00000001,0x0000002e,0x00000313,0x00000315,+ 0x0000031c,0x0003003e,0x000002e7,0x0000031d,0x000200f9,0x00000303,0x000200f8,0x00000303,+ 0x0004003d,0x00000298,0x0000031e,0x0000029a,0x0004003d,0x00000027,0x0000031f,0x00000290,+ 0x0004003d,0x0000008d,0x00000320,0x000002e7,0x00050051,0x00000006,0x00000321,0x00000320,+ 0x00000000,0x00050051,0x00000006,0x00000322,0x00000320,0x00000001,0x00050051,0x00000006,+ 0x00000323,0x00000320,0x00000002,0x00070050,0x00000029,0x00000324,0x00000321,0x00000322,+ 0x00000323,0x00000054,0x00040063,0x0000031e,0x0000031f,0x00000324,0x000100fd,0x00010038,0x00050036,0x00000006,0x0000000a,0x00000000,0x00000008,0x00030037,0x00000007,0x00000009,0x000200f8,0x0000000b,0x0004003d,0x00000006,0x00000040,0x00000009,0x000200fe,0x00000040,0x00010038,0x00050036,0x0000000c,0x00000010,0x00000000,0x0000000e,0x00030037,0x0000000d,@@ -347,8 +347,8 @@ const uint32_t kShader_rcas[] = {0x00000236,0x00000007,0x0004003b,0x00000007,0x00000238,0x00000007,0x0004003b,0x00000007,0x0000023a,0x00000007,0x0004003b,0x00000007,0x0000023c,0x00000007,0x0004003b,0x00000007,0x0000023e,0x00000007,0x0004003b,0x00000007,0x00000241,0x00000007,0x0004003b,0x00000007,- 0x00000249,0x00000007,0x0004003b,0x00000007,0x0000024a,0x00000007,0x0004003b,0x00000007,- 0x0000024e,0x00000007,0x0004003b,0x00000007,0x00000251,0x00000007,0x0004003d,0x00000034,+ 0x0000024c,0x00000007,0x0004003b,0x00000007,0x0000024d,0x00000007,0x0004003b,0x00000007,+ 0x00000251,0x00000007,0x0004003b,0x00000007,0x00000254,0x00000007,0x0004003d,0x00000034,0x0000008b,0x0000003c,0x0004007c,0x00000027,0x0000008c,0x0000008b,0x0003003e,0x0000008a,0x0000008c,0x0004003d,0x00000027,0x00000090,0x0000008a,0x00050080,0x00000027,0x00000093,0x00000090,0x00000092,0x0003003e,0x00000094,0x00000093,0x00050039,0x00000029,0x00000095,@@ -582,43 +582,45 @@ const uint32_t kShader_rcas[] = {0x00000006,0x00000244,0x00000001,0x00000028,0x00000239,0x00000243,0x00050041,0x0000000d,0x00000245,0x0000003d,0x000000b2,0x0004003d,0x0000000c,0x00000246,0x00000245,0x0004007c,0x00000006,0x00000247,0x00000246,0x00050085,0x00000006,0x00000248,0x00000244,0x00000247,- 0x0003003e,0x00000236,0x00000248,0x0003003e,0x0000024a,0x000001d6,0x00050039,0x00000006,- 0x0000024b,0x0000000a,0x0000024a,0x0004003d,0x00000006,0x0000024c,0x00000236,0x00050085,- 0x00000006,0x0000024d,0x0000024b,0x0000024c,0x0003003e,0x0000024e,0x00000054,0x00050039,- 0x00000006,0x0000024f,0x0000000a,0x0000024e,0x00050081,0x00000006,0x00000250,0x0000024d,- 0x0000024f,0x0003003e,0x00000251,0x00000250,0x00050039,0x00000006,0x00000252,0x00000024,- 0x00000251,0x0003003e,0x00000249,0x00000252,0x0004003d,0x00000006,0x00000253,0x00000236,- 0x0004003d,0x00000006,0x00000254,0x000000b1,0x00050085,0x00000006,0x00000255,0x00000253,- 0x00000254,0x0004003d,0x00000006,0x00000256,0x00000236,0x0004003d,0x00000006,0x00000257,- 0x000000bd,0x00050085,0x00000006,0x00000258,0x00000256,0x00000257,0x00050081,0x00000006,- 0x00000259,0x00000255,0x00000258,0x0004003d,0x00000006,0x0000025a,0x00000236,0x0004003d,- 0x00000006,0x0000025b,0x000000d8,0x00050085,0x00000006,0x0000025c,0x0000025a,0x0000025b,- 0x00050081,0x00000006,0x0000025d,0x00000259,0x0000025c,0x0004003d,0x00000006,0x0000025e,- 0x00000236,0x0004003d,0x00000006,0x0000025f,0x000000cf,0x00050085,0x00000006,0x00000260,- 0x0000025e,0x0000025f,0x00050081,0x00000006,0x00000261,0x0000025d,0x00000260,0x0004003d,- 0x00000006,0x00000262,0x000000c6,0x00050081,0x00000006,0x00000263,0x00000261,0x00000262,- 0x0004003d,0x00000006,0x00000264,0x00000249,0x00050085,0x00000006,0x00000265,0x00000263,- 0x00000264,0x0003003e,0x00000039,0x00000265,0x0004003d,0x00000006,0x00000266,0x00000236,- 0x0004003d,0x00000006,0x00000267,0x000000b5,0x00050085,0x00000006,0x00000268,0x00000266,- 0x00000267,0x0004003d,0x00000006,0x00000269,0x00000236,0x0004003d,0x00000006,0x0000026a,- 0x000000c0,0x00050085,0x00000006,0x0000026b,0x00000269,0x0000026a,0x00050081,0x00000006,- 0x0000026c,0x00000268,0x0000026b,0x0004003d,0x00000006,0x0000026d,0x00000236,0x0004003d,- 0x00000006,0x0000026e,0x000000db,0x00050085,0x00000006,0x0000026f,0x0000026d,0x0000026e,- 0x00050081,0x00000006,0x00000270,0x0000026c,0x0000026f,0x0004003d,0x00000006,0x00000271,- 0x00000236,0x0004003d,0x00000006,0x00000272,0x000000d2,0x00050085,0x00000006,0x00000273,- 0x00000271,0x00000272,0x00050081,0x00000006,0x00000274,0x00000270,0x00000273,0x0004003d,- 0x00000006,0x00000275,0x000000c9,0x00050081,0x00000006,0x00000276,0x00000274,0x00000275,- 0x0004003d,0x00000006,0x00000277,0x00000249,0x00050085,0x00000006,0x00000278,0x00000276,- 0x00000277,0x0003003e,0x0000003a,0x00000278,0x0004003d,0x00000006,0x00000279,0x00000236,- 0x0004003d,0x00000006,0x0000027a,0x000000b9,0x00050085,0x00000006,0x0000027b,0x00000279,- 0x0000027a,0x0004003d,0x00000006,0x0000027c,0x00000236,0x0004003d,0x00000006,0x0000027d,- 0x000000c3,0x00050085,0x00000006,0x0000027e,0x0000027c,0x0000027d,0x00050081,0x00000006,- 0x0000027f,0x0000027b,0x0000027e,0x0004003d,0x00000006,0x00000280,0x00000236,0x0004003d,- 0x00000006,0x00000281,0x000000de,0x00050085,0x00000006,0x00000282,0x00000280,0x00000281,- 0x00050081,0x00000006,0x00000283,0x0000027f,0x00000282,0x0004003d,0x00000006,0x00000284,- 0x00000236,0x0004003d,0x00000006,0x00000285,0x000000d5,0x00050085,0x00000006,0x00000286,- 0x00000284,0x00000285,0x00050081,0x00000006,0x00000287,0x00000283,0x00000286,0x0004003d,- 0x00000006,0x00000288,0x000000cc,0x00050081,0x00000006,0x00000289,0x00000287,0x00000288,- 0x0004003d,0x00000006,0x0000028a,0x00000249,0x00050085,0x00000006,0x0000028b,0x00000289,- 0x0000028a,0x0003003e,0x0000003b,0x0000028b,0x000100fd,0x00010038+ 0x0003003e,0x00000236,0x00000248,0x0004003d,0x00000006,0x00000249,0x00000150,0x0004003d,+ 0x00000006,0x0000024a,0x00000236,0x00050085,0x00000006,0x0000024b,0x0000024a,0x00000249,+ 0x0003003e,0x00000236,0x0000024b,0x0003003e,0x0000024d,0x000001d6,0x00050039,0x00000006,+ 0x0000024e,0x0000000a,0x0000024d,0x0004003d,0x00000006,0x0000024f,0x00000236,0x00050085,+ 0x00000006,0x00000250,0x0000024e,0x0000024f,0x0003003e,0x00000251,0x00000054,0x00050039,+ 0x00000006,0x00000252,0x0000000a,0x00000251,0x00050081,0x00000006,0x00000253,0x00000250,+ 0x00000252,0x0003003e,0x00000254,0x00000253,0x00050039,0x00000006,0x00000255,0x00000024,+ 0x00000254,0x0003003e,0x0000024c,0x00000255,0x0004003d,0x00000006,0x00000256,0x00000236,+ 0x0004003d,0x00000006,0x00000257,0x000000b1,0x00050085,0x00000006,0x00000258,0x00000256,+ 0x00000257,0x0004003d,0x00000006,0x00000259,0x00000236,0x0004003d,0x00000006,0x0000025a,+ 0x000000bd,0x00050085,0x00000006,0x0000025b,0x00000259,0x0000025a,0x00050081,0x00000006,+ 0x0000025c,0x00000258,0x0000025b,0x0004003d,0x00000006,0x0000025d,0x00000236,0x0004003d,+ 0x00000006,0x0000025e,0x000000d8,0x00050085,0x00000006,0x0000025f,0x0000025d,0x0000025e,+ 0x00050081,0x00000006,0x00000260,0x0000025c,0x0000025f,0x0004003d,0x00000006,0x00000261,+ 0x00000236,0x0004003d,0x00000006,0x00000262,0x000000cf,0x00050085,0x00000006,0x00000263,+ 0x00000261,0x00000262,0x00050081,0x00000006,0x00000264,0x00000260,0x00000263,0x0004003d,+ 0x00000006,0x00000265,0x000000c6,0x00050081,0x00000006,0x00000266,0x00000264,0x00000265,+ 0x0004003d,0x00000006,0x00000267,0x0000024c,0x00050085,0x00000006,0x00000268,0x00000266,+ 0x00000267,0x0003003e,0x00000039,0x00000268,0x0004003d,0x00000006,0x00000269,0x00000236,+ 0x0004003d,0x00000006,0x0000026a,0x000000b5,0x00050085,0x00000006,0x0000026b,0x00000269,+ 0x0000026a,0x0004003d,0x00000006,0x0000026c,0x00000236,0x0004003d,0x00000006,0x0000026d,+ 0x000000c0,0x00050085,0x00000006,0x0000026e,0x0000026c,0x0000026d,0x00050081,0x00000006,+ 0x0000026f,0x0000026b,0x0000026e,0x0004003d,0x00000006,0x00000270,0x00000236,0x0004003d,+ 0x00000006,0x00000271,0x000000db,0x00050085,0x00000006,0x00000272,0x00000270,0x00000271,+ 0x00050081,0x00000006,0x00000273,0x0000026f,0x00000272,0x0004003d,0x00000006,0x00000274,+ 0x00000236,0x0004003d,0x00000006,0x00000275,0x000000d2,0x00050085,0x00000006,0x00000276,+ 0x00000274,0x00000275,0x00050081,0x00000006,0x00000277,0x00000273,0x00000276,0x0004003d,+ 0x00000006,0x00000278,0x000000c9,0x00050081,0x00000006,0x00000279,0x00000277,0x00000278,+ 0x0004003d,0x00000006,0x0000027a,0x0000024c,0x00050085,0x00000006,0x0000027b,0x00000279,+ 0x0000027a,0x0003003e,0x0000003a,0x0000027b,0x0004003d,0x00000006,0x0000027c,0x00000236,+ 0x0004003d,0x00000006,0x0000027d,0x000000b9,0x00050085,0x00000006,0x0000027e,0x0000027c,+ 0x0000027d,0x0004003d,0x00000006,0x0000027f,0x00000236,0x0004003d,0x00000006,0x00000280,+ 0x000000c3,0x00050085,0x00000006,0x00000281,0x0000027f,0x00000280,0x00050081,0x00000006,+ 0x00000282,0x0000027e,0x00000281,0x0004003d,0x00000006,0x00000283,0x00000236,0x0004003d,+ 0x00000006,0x00000284,0x000000de,0x00050085,0x00000006,0x00000285,0x00000283,0x00000284,+ 0x00050081,0x00000006,0x00000286,0x00000282,0x00000285,0x0004003d,0x00000006,0x00000287,+ 0x00000236,0x0004003d,0x00000006,0x00000288,0x000000d5,0x00050085,0x00000006,0x00000289,+ 0x00000287,0x00000288,0x00050081,0x00000006,0x0000028a,0x00000286,0x00000289,0x0004003d,+ 0x00000006,0x0000028b,0x000000cc,0x00050081,0x00000006,0x0000028c,0x0000028a,0x0000028b,+ 0x0004003d,0x00000006,0x0000028d,0x0000024c,0x00050085,0x00000006,0x0000028e,0x0000028c,+ 0x0000028d,0x0003003e,0x0000003b,0x0000028e,0x000100fd,0x00010038};diff --git a/src/stream/stream_session.cpp b/src/stream/stream_session.cppindex 46ec80c..9e6096b 100644--- a/src/stream/stream_session.cpp+++ b/src/stream/stream_session.cpp@@ -487,10 +487,13 @@ struct StreamSession::Impl {if (cb.audio) cb.audio(reinterpret_cast<const uint8_t*>(data.data()), data.size(), info.timestamp);});- // Video: H.264 only, Main before Constrained Baseline / Baseline.+ // Video: H.264 only, High and Main before Constrained Baseline / Baseline.rtc::Description::Video v("1", rtc::Description::Direction::RecvOnly);- // Main profile at level 5.1 (0x33): the level that allows 1440p60; with- // 3.1 the service tops out at 1080p (it answers level 4.2).+ // High profile (0x64): enables 8x8 integer transform and improved quantization matrices.+ // Level 5.1 (0x33) allows 1440p60; level 4.2 (0x2a) is xCloud's standard 1080p60 ceiling.+ v.addH264Codec(100, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640033");+ v.addH264Codec(101, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=64002a");+ // Main profile at level 5.1 (0x33): fallback if server doesn't negotiate High profile.v.addH264Codec(102, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d0033");v.addH264Codec(104, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f");v.addH264Codec(106, "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f");