From c0facabab657c98a6a13c4dbb68b83acac2e1ddb Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 5 Oct 2026 11:34:32 +0000 Subject: [PATCH] decomp(TMC_JPEG): match nine RGBA8 converters (rx13 astra max) (worker bb3d578e) --- .../src/texturecvtr/Texture_MCUtoRGBA8.c | 437 +++++----- tools/decomp-assist/rx13b.attempts.md | 795 ++++++++++++++++++ 2 files changed, 1020 insertions(+), 212 deletions(-) create mode 100644 tools/decomp-assist/rx13b.attempts.md diff --git a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c index bd9af3ea..a96ff3e1 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c @@ -285,29 +285,31 @@ static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 } static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; + s32 red; + s32 chromaSkip; u16* output; s32 tileRow; - s32 lumaSkip; + s32 columnInTile; u8* texture; - TMCCJPEGDecState* state; u8* luminance; u8* cb; - s32 width; - s32 height; u8* cr; s32 column; s32 xEnd; s32 yEnd; s32 tileWidth; s32 redOffset; - s32 cbValue; - s8 crValue; s32 greenOffset; s32 blueOffset; - s32 chromaSkip; - s32 blue; - s32 red; s32 green; + s32 blue; + s32 value; + s32 width; + s32 height; + TMCCJPEGDecState* state; + s32 cbValue; + s8 crValue; luminance = work->convBuf + 4; cb = &work->convBuf[260]; @@ -331,32 +333,28 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, chromaSkip = lumaSkip >> 2; ASSERTLINE((x & 3) == 0, __LINE__); for (; y < yEnd; y++) { - tileRow = (y >> 2) * tileWidth; output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; for (column = x; column < xEnd; column += 1) { - if ((column & 3) == 0) { + columnInTile = column & 3; + if (columnInTile == 0) { cbValue = (s8)*cb++; crValue = (s8)*cr++; redOffset = (crValue * 359) >> 8; greenOffset = -(cbValue * 88 + crValue * 183) >> 8; blueOffset = (cbValue * 454) >> 8; } - blue = *luminance++; - red = blue + redOffset; - green = blue + greenOffset; - blue = blue + blueOffset; - if ((green | red | blue) >> 8) { + value = *luminance++; + red = value + redOffset; + green = value + greenOffset; + blue = value + blueOffset; + if ((red | green | blue) >> 8) { blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - { - red = (u8)red + 0x10000 - 0x100; - green = (green & 255) << 8; - blue = blue & 255; - output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] = red; - output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] = green + blue; - } + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } luminance += lumaSkip; cb += chromaSkip; @@ -365,18 +363,16 @@ static void TMCJPEGDEC_converterYUV411toRGBA8edge(TMCCJPEGDecWork* work, s32 x, } static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; s32 chromaSkip; u16* output; - s32 cbValue; s32 tileRow; - TMCCJPEGDecState* state; - s32 lumaSkip; + s32 red; + s32 secondBlue; + s32 columnInTile; u8* texture; - s32 width; - s32 height; u8* luminance; u8* cb; - s32 red; u8* cr; s32 column; s32 xEnd; @@ -385,10 +381,17 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 s32 redOffset; s32 greenOffset; s32 blueOffset; - s32 value; s32 green; s32 blue; - s32 crValue; + s32 secondGreen; + s32 secondRed; + s32 secondColumnInTile; + s32 value; + TMCCJPEGDecState* state; + s32 width; + s32 height; + s8 crValue; + s32 cbValue; luminance = work->convBuf + 4; cb = &work->convBuf[132]; @@ -420,19 +423,21 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; - output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] = ((green & 255) << 8) + (blue & 255); + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); value = *luminance++; - green = value + greenOffset; - red = value + redOffset; - blue = value + blueOffset; - if ((red | green | blue) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; + secondGreen = value + greenOffset; + secondRed = value + redOffset; + secondBlue = value + blueOffset; + if ((secondRed | secondGreen | secondBlue) >> 8) { + secondBlue = secondBlue > 255 ? 255 : secondBlue < 0 ? 0 : secondBlue; + secondGreen = secondGreen > 255 ? 255 : secondGreen < 0 ? 0 : secondGreen; + secondRed = secondRed > 255 ? 255 : secondRed < 0 ? 0 : secondRed; } - output[((column + 1) & 3) + (((((column + 1) >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; - output[((column + 1) & 3) + (((((column + 1) >> 2) << 1) + tileRow + 1) << 4)] = ((green & 255) << 8) + (blue & 255); + secondColumnInTile = (column + 1) & 3; + output[secondColumnInTile + (((((column + 1) >> 2) << 1) + tileRow) << 4)] = (u8)secondRed + 0x10000 - 0x100; + output[secondColumnInTile + (((((column + 1) >> 2) << 1) + (tileRow + 1)) << 4)] = ((secondGreen & 255) << 8) + (secondBlue & 255); } luminance += lumaSkip; cb += chromaSkip; @@ -441,10 +446,11 @@ static void TMCJPEGDEC_converterYUV422toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 } static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; s32 chromaSkip; u16* output; s32 tileRow; - s32 lumaSkip; + s32 columnInTile; TMCCJPEGDecState* state; u8* texture; u8* luminance; @@ -457,7 +463,7 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 yEnd; s32 tileWidth; s32 cbValue; - s32 crValue; + s8 crValue; s32 redOffset; s32 greenOffset; s32 blueOffset; @@ -507,8 +513,9 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; - output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] = ((green & 255) << 8) + (blue & 255); + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } luminance += lumaSkip; cb += chromaSkip; @@ -517,29 +524,35 @@ static void TMCJPEGDEC_converterYUV422toRGBA8edge(TMCCJPEGDecWork* work, s32 x, } static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) { - s32 chromaSkip; - s8 crValue; s32 lumaSkip; + s32 red; + s32 secondBlue; + s32 chromaSkip; + s32 chromaWidth; u16* output; - TMCCJPEGDecState* state; s32 tileRow; - s32 width; - s32 height; - s32 green; - s32 blue; + s32 columnInTile; + u8* texture; u8* luminance; u8* cb; u8* cr; - s32 value; s32 column; s32 xEnd; s32 yEnd; s32 tileWidth; s32 redOffset; s32 greenOffset; - u8* texture; s32 blueOffset; - s32 red; + s32 green; + s32 blue; + s32 secondGreen; + s32 secondRed; + s32 secondColumnInTile; + s32 value; + TMCCJPEGDecState* state; + s32 width; + s32 height; + s8 crValue; s32 cbValue; luminance = work->convBuf + 4; @@ -548,84 +561,92 @@ static void TMCJPEGDEC_converterYUV420toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 state = work->pState; tileWidth = (state->convWidth >> 2) << 1; texture = state->pTexBuffer; - width = 16 / state->scaleFactor; height = 16 / state->scaleFactor; - { - yEnd = y + height; - xEnd = x + width; - lumaSkip = 16 - width; - chromaSkip = lumaSkip >> 1; - for (; y < yEnd; y++) { - output = (u16*)(texture + ((y & 3) << 3)); - tileRow = (y >> 2) * tileWidth; - - for (column = x; column < xEnd; column += 2) { - - { - cbValue = (s8)*cb++; - crValue = (s8)*cr++; - - } - { - value = *luminance++; - redOffset = (crValue * 359) >> 8; - red = value + redOffset; - greenOffset = -(cbValue * 88 + crValue * 183) >> 8; - green = value + greenOffset; - blueOffset = (cbValue * 454) >> 8; - blue = value + blueOffset; - - - - if ((red | green | blue) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] = - ((green & 255) << 8) + (blue & 255); - } - { - value = *luminance++; - green = value + greenOffset; - red = value + redOffset; - blue = value + blueOffset; - if ((red | green | blue) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column + 1 & 3) + (((((column + 1) >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column + 1 & 3) + (((((column + 1) >> 2) << 1) + tileRow + 1) << 4)] = - ((green & 255) << 8) + (blue & 255); - } - + xEnd = x + width; + yEnd = y + height; + lumaSkip = 16 - width; + chromaSkip = lumaSkip >> 1; + chromaWidth = (width + 1) >> 1; + for (; y < yEnd; y++) { + output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; + for (column = x; column < xEnd; column += 2) { + cbValue = (s8)*cb++; + crValue = (s8)*cr++; + redOffset = (crValue * 359) >> 8; + greenOffset = -(cbValue * 88 + crValue * 183) >> 8; + blueOffset = (cbValue * 454) >> 8; + value = *luminance++; + green = value + greenOffset; + red = value + redOffset; + blue = value + blueOffset; + if ((red | green | blue) >> 8) { + blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; + green = green > 255 ? 255 : green < 0 ? 0 : green; + red = red > 255 ? 255 : red < 0 ? 0 : red; } - luminance += lumaSkip; - if (y & 1) { - cb += chromaSkip; - cr += chromaSkip; - } else { - cb -= (width + 1) >> 1; - cr -= (width + 1) >> 1; + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); + value = *luminance++; + secondGreen = value + greenOffset; + secondRed = value + redOffset; + secondBlue = value + blueOffset; + if ((secondRed | secondGreen | secondBlue) >> 8) { + secondBlue = secondBlue > 255 ? 255 : secondBlue < 0 ? 0 : secondBlue; + secondGreen = secondGreen > 255 ? 255 : secondGreen < 0 ? 0 : secondGreen; + secondRed = secondRed > 255 ? 255 : secondRed < 0 ? 0 : secondRed; } + secondColumnInTile = (column + 1) & 3; + output[secondColumnInTile + (((((column + 1) >> 2) << 1) + tileRow) << 4)] = (u8)secondRed + 0x10000 - 0x100; + output[secondColumnInTile + (((((column + 1) >> 2) << 1) + (tileRow + 1)) << 4)] = ((secondGreen & 255) << 8) + (secondBlue & 255); + } + luminance += lumaSkip; + if (y & 1) { + cb += chromaSkip; + cr += chromaSkip; + } else { + cb -= chromaWidth; + cr -= chromaWidth; } } } static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) { - u8* luminance = work->convBuf + 4; - u8* cb = work->convBuf + 260; + s32 lumaSkip; + s32 red; + s32 chromaSkip; + s32 chromaWidth; + u16* output; + s32 tileRow; + s32 columnInTile; + TMCCJPEGDecState* state; + u8* texture; + u8* luminance; s32 width; - TMCCJPEGDecState* state = work->pState; - s32 tileWidth = (state->convWidth >> 2) << 1; - u8* texture = state->pTexBuffer; - u8* cr = work->convBuf + 324; s32 height; + u8* cb; + u8* cr; + s32 column; + s32 xEnd; + s32 yEnd; + s32 tileWidth; + s32 cbValue; + s8 crValue; + s32 redOffset; + s32 greenOffset; + s32 blueOffset; + s32 value; + s32 green; + s32 blue; + + luminance = work->convBuf + 4; + cb = &work->convBuf[260]; + cr = &work->convBuf[324]; + state = work->pState; + tileWidth = (state->convWidth >> 2) << 1; + texture = state->pTexBuffer; if (state->dataSizeX == (u32)x) { width = state->stepXExt; } else { @@ -636,80 +657,72 @@ static void TMCJPEGDEC_converterYUV420toRGBA8edge(TMCCJPEGDecWork* work, s32 x, } else { height = 16 / state->scaleFactor; } - { - s32 yEnd = y + height; - s32 xEnd = x + width; - s32 lumaSkip = 16 - width; - s32 chromaSkip = lumaSkip >> 1; - s32 redOffset; - s32 blueOffset; - s32 greenOffset; - ASSERTLINE((x & 1) == 0, __LINE__); + xEnd = x + width; + yEnd = y + height; + lumaSkip = 16 - width; + chromaSkip = lumaSkip >> 1; + chromaWidth = (width + 1) >> 1; + ASSERTLINE((x & 1) == 0, __LINE__); for (; y < yEnd; y++) { - u16* output = (u16*)(texture + ((y & 3) << 3)); - s32 tileRow = (y >> 2) * tileWidth; - s32 column; - for (column = x; column < xEnd; column += 1) { - if ((column & 1) == 0) { - s32 cbValue = (s8)*cb++; - s32 crValue = (s8)*cr++; - redOffset = (crValue * 359) >> 8; - greenOffset = -(cbValue * 88 + crValue * 183) >> 8; - blueOffset = (cbValue * 454) >> 8; - } - { - s32 red = *luminance++; - s32 green = red + greenOffset; - s32 blue = red + blueOffset; - red = red + redOffset; - if ((green | red | blue) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] = - ((green & 255) << 8) + (blue & 255); - } - + output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; + for (column = x; column < xEnd; column += 1) { + if ((column & 1) == 0) { + cbValue = (s8)*cb++; + crValue = (s8)*cr++; + redOffset = (crValue * 359) >> 8; + greenOffset = -(cbValue * 88 + crValue * 183) >> 8; + blueOffset = (cbValue * 454) >> 8; } - luminance += lumaSkip; - if (y & 1) { - cb += chromaSkip; - cr += chromaSkip; - } else { - cb -= (width + 1) >> 1; - cr -= (width + 1) >> 1; + value = *luminance++; + red = value + redOffset; + blue = value + blueOffset; + green = value + greenOffset; + if ((red | green | blue) >> 8) { + blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; + green = green > 255 ? 255 : green < 0 ? 0 : green; + red = red > 255 ? 255 : red < 0 ? 0 : red; } + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); + } + luminance += lumaSkip; + if (y & 1) { + cb += chromaSkip; + cr += chromaSkip; + } else { + cb -= chromaWidth; + cr -= chromaWidth; } } } static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; u16* output; s32 tileRow; - s32 redOffset; - TMCCJPEGDecState* state; - s32 lumaSkip; + s32 columnInTile; u8* texture; u8* luminance; u8* cb; u8* cr; - s32 height; s32 column; - s32 chromaSkip; s32 width; s32 xEnd; s32 yEnd; - s32 cbValue; s32 tileWidth; - s32 blueOffset; s32 red; - s32 crValue; - s32 value; s32 green; s32 blue; + s32 redOffset; + TMCCJPEGDecState* state; + s32 height; + s32 chromaSkip; + s32 cbValue; + s32 blueOffset; + s8 crValue; + s32 value; s32 greenOffset; luminance = work->convBuf + 4; @@ -727,8 +740,8 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 lumaSkip = 8 - width; chromaSkip = lumaSkip >> 0; for (; y < yEnd; y++) { - tileRow = (y >> 2) * tileWidth; output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; for (column = x; column < xEnd; column += 1) { @@ -749,10 +762,9 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] = - ((green & 255) << 8) + (blue & 255); + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } } @@ -769,30 +781,31 @@ static void TMCJPEGDEC_converterYUV211toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 } static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; u16* output; s32 tileRow; - s32 blue; + s32 columnInTile; u8* texture; u8* luminance; u8* cb; u8* cr; s32 column; - s32 height; s32 width; s32 xEnd; + s32 yEnd; + s32 tileWidth; + s32 red; + s32 green; + s32 blue; + s32 height; TMCCJPEGDecState* state; s32 chromaSkip; s32 greenOffset; - s32 yEnd; s32 cbValue; - s32 tileWidth; s32 blueOffset; - s32 red; s8 crValue; - u8 value; - s32 green; + s32 value; s32 redOffset; - s32 lumaSkip; luminance = work->convBuf + 4; cb = work->convBuf + 132; @@ -817,8 +830,8 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, lumaSkip = 8 - width; chromaSkip = lumaSkip >> 0; for (; y < yEnd; y++) { - tileRow = (y >> 2) * tileWidth; output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; for (column = x; column < xEnd; column += 1) { { @@ -838,10 +851,9 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + (((((column) >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column & 3) + (((((column) >> 2) << 1) + tileRow + 1) << 4)] = - ((green & 255) << 8) + (blue & 255); + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } } luminance += lumaSkip; @@ -857,15 +869,16 @@ static void TMCJPEGDEC_converterYUV211toRGBA8edge(TMCCJPEGDecWork* work, s32 x, } static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 rowSkip; u16* output; s32 tileRow; - s32 rowSkip; + s32 columnInTile; u8* texture; u8* luminance; u8* cb; u8* cr; TMCCJPEGDecState* state; - s32 crValue; + s8 crValue; s32 height; s32 width; s32 column; @@ -891,9 +904,8 @@ static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 yEnd = y + height; rowSkip = 8 - width; for (row = y; row < yEnd; row++) { - tileRow = (row >> 2) * tileWidth; - output = (u16*)(texture + ((row & 3) << 3)); + tileRow = (row >> 2) * tileWidth; for (column = x; column < xEnd; column++) { cbValue = (s8)*cb++; crValue = (s8)*cr++; @@ -906,9 +918,10 @@ static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] = + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; - output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] = + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } luminance += rowSkip; @@ -919,25 +932,26 @@ static void TMCJPEGDEC_converterYUV444toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork* work, s32 x, s32 y) { s32 rowSkip; - s32 tileRow; u16* output; - s32 green; + s32 tileRow; + s32 columnInTile; + u8* texture; u8* luminance; u8* cb; u8* cr; s32 column; s32 xEnd; - s32 width; s32 yEnd; - s32 red; - s32 height; s32 tileWidth; + s32 red; + s32 green; + s32 blue; + s32 width; + s32 height; s32 cbValue; - s32 crValue; + s8 crValue; s32 value; TMCCJPEGDecState* state; - u8* texture; - s32 blue; luminance = work->convBuf + 4; cb = work->convBuf + 68; @@ -968,15 +982,14 @@ static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork* work, s32 x, green = value + (-(cbValue * 88 + crValue * 183) >> 8); red = value + ((crValue * 359) >> 8); blue = value + ((cbValue * 454) >> 8); - if ((blue | red | green) >> 8) { + if ((red | green | blue) >> 8) { blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + ((((column >> 2) << 1) + tileRow) << 4)] = - (u8)red + 0x10000 - 0x100; - output[(column & 3) + ((((column >> 2) << 1) + tileRow + 1) << 4)] = - (blue & 255) + ((green & 255) << 8); + columnInTile = column & 3; + output[columnInTile + ((((column >> 2) << 1) + tileRow) << 4)] = (u8)red + 0x10000 - 0x100; + output[columnInTile + ((((column >> 2) << 1) + (tileRow + 1)) << 4)] = ((green & 255) << 8) + (blue & 255); } luminance += rowSkip; cb += rowSkip; diff --git a/tools/decomp-assist/rx13b.attempts.md b/tools/decomp-assist/rx13b.attempts.md new file mode 100644 index 00000000..50047fc6 --- /dev/null +++ b/tools/decomp-assist/rx13b.attempts.md @@ -0,0 +1,795 @@ +# rx13b converter attempts + +Baseline c6b3c56242f29b2cde863cf711954afceca4b38d on agent/w1005/rx13b. Prior four RGB565 matches landed in #1192; current RGB565 11/13 and RGBA8 2/13. ESMisc is deferred until both converters finish. Prior allocator captures and rejected families are recorded in rx13.attempts.md; this round reuses that evidence without claiming old snapshots as current unit results. + +Acceptance: exact-name objdiff 100, ctxdiff 0, no unit regressions, readable source, and full gate. RGB565 Matching flip is authorized only after 13/13, symbol order and DOL verification. + +TRIAL {"label": "411-prior-per-pixel", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Revalidate prior best body against landed 11/13 baseline; independent channel locals match target pixel colors, synthesized tile induction still precedes chromaSkip.", "sha256": "eebfea0fe2861d9f4d12eaf45ebb2de4f617c6df5d1023ff50b3baa36c43c55d", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-row-counter-recompute", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.28571}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "49b5d91ffc1d4c7e6691b962b9da5d59efeee2a1cddcff39d964dc3cc6fd2234", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [220, 217], "diffs": null}}} + +TRIAL {"label": "411-column-counter-initializer", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.28571}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "76e3a75ae336b1d97b8e15aef47693bd8c40082ded77c1380abd323cef525cfd", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [220, 217], "diffs": null}}} + +TRIAL {"label": "411-row-counter-declared", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.912445}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "73022b1670f0fda28bb5e581dd2b003fefa2bbcbf3375858372cb9d12210b83e", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [218, 217], "diffs": null}}} + +TRIAL {"label": "411-first-pixel-coordinate", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "2423d78a3385454a2d417c6cd8809d3a77e8be1fe8968b8c450e3e3eac2c28c9", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-counter-first-condition", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.866356}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "cb38b3283e7387ed739ce015f2216b1d3d1b3424f70711d0229d077ed49f96e8", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [218, 217], "diffs": null}}} + +TRIAL {"label": "411-unsigned-chroma-stride", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "58c7b59e40bdeab0c118da40914e0fc62b546750a279bfe6c46ebc041e3e457d", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-divide-chroma-stride", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.304146}, "exact": 11, "drops": [], "why": "Test real row coordinate initialization/advancement and chroma-stride source identity to place chromaSkip before tile counter in allocation.", "sha256": "16367093fd1912d5504bebcd98e72d54f4179ffd2a4f3c1ca90fe8cc0185dcb7", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Revalidate named column and tile coordinate after lumaSkip; persistent registers match target but low-degree tile sum colors after alpha temporaries.", "sha256": "98e04aadd536511661dddca20f7c5a455bbb64d981f10ef977e53725e9242205", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-split-shift-add", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 84.62832}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test explicit AR/GB plane value lifetimes and tile address updates against target r19 tile sum and r18 alpha intermediate.", "sha256": "2a7958fe8f1506146b2c30115387ba7554a66fdb9fb4841a3828de421acf1814", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 73}}} + +TRIAL {"label": "set-rgb-first-row-base", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 82.3353}, "exact": 11, "drops": ["TMCJPEGDEC_set_converterRGB565"], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "9102ba4c67c08a8ddf64b61086f7308555ad1386752c36ebc4c053b4b1df9d15", "instructions": {"TMCJPEGDEC_set_converterRGB565": {"counts": [164, 170], "diffs": null}}} + +TRIAL {"label": "422edge-alpha-in-stages", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test explicit AR/GB plane value lifetimes and tile address updates against target r19 tile sum and r18 alpha intermediate.", "sha256": "4cd6a94ca2dda46c841748a95442d5756a662bb6e712746a594003ea8c14b063", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-signed-byte-alpha", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test explicit AR/GB plane value lifetimes and tile address updates against target r19 tile sum and r18 alpha intermediate.", "sha256": "4bd998b99f1a215ea6f4368aeabc548fb43f1f118aa203f87a6eba29643ed5b9", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "set-rgb-word-buffer-base", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 93.91765}, "exact": 11, "drops": [], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "0fc27e0cb3027ffd69389e9aec447529628362a27a10971cb4287cc4e18b7e2d", "instructions": {"TMCJPEGDEC_set_converterRGB565": {"counts": [169, 170], "diffs": null}}} + +TRIAL {"label": "422edge-tile-before-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test explicit AR/GB plane value lifetimes and tile address updates against target r19 tile sum and r18 alpha intermediate.", "sha256": "903e8bc47ce9c6f897ce59eec3601a6fc6b2c6ad65f2657d8d3e71c68bf3fade", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "set-rgb-scoped-state-lifetime", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 88.76471}, "exact": 11, "drops": ["TMCJPEGDEC_set_converterRGB565"], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "af95b736f221c89444ca546e0bc1993aed3411fe1318c390a826bba3ab5e2c31", "instructions": {"TMCJPEGDEC_set_converterRGB565": {"counts": [165, 170], "diffs": null}}} + +TRIAL {"label": "422edge-two-plane-pointer", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 86.522125}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test explicit AR/GB plane value lifetimes and tile address updates against target r19 tile sum and r18 alpha intermediate.", "sha256": "8bce53c10845efcce868a71b9a1d633a0a7119e74d79dcc84378917cb3f55250", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [109, 113], "diffs": null}}} + +TRIAL {"label": "set-rgba-first-row-base", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 82.3353}, "exact": 2, "drops": ["TMCJPEGDEC_set_converterRGBA8"], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "a0b5fcb8f9171bb95f90163d9e37f5bb3c4810de70bcfb68e8b3f58da310a2bf", "instructions": {"TMCJPEGDEC_set_converterRGBA8": {"counts": [164, 170], "diffs": null}}} + +TRIAL {"label": "set-rgba-word-buffer-base", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 93.91765}, "exact": 2, "drops": [], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "92816af7c7cbbb20d7e231ea120836303ab1c8cdf5239e520486f03906da63c6", "instructions": {"TMCJPEGDEC_set_converterRGBA8": {"counts": [169, 170], "diffs": null}}} + +TRIAL {"label": "set-rgba-scoped-state-lifetime", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 88.76471}, "exact": 2, "drops": ["TMCJPEGDEC_set_converterRGBA8"], "why": "Test row-block base type and state lifetime: baseline buffer v47 dies when all offsets fold into work, leaving state v46 to color r4 rather than target r5.", "sha256": "03eac5e98688dba5e5841249335146eaf61643cab244b0e48bd52abb2a5a46a5", "instructions": {"TMCJPEGDEC_set_converterRGBA8": {"counts": [165, 170], "diffs": null}}} + +TRIAL {"label": "411edge-separate-values", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.66071}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target places lumaSkip r0, unclamped red r3, chromaSkip r6, output/tileRow r7/r8 and columnInTile r9. Separate luminance, channels and packing removes synthetic red/green heads introduced by in-place channel packing.", "sha256": "2147af8f98bc110798849f42a8615b05413f3d6c7e4f5f33d3b92e78869bfc7d", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "411edge-packed-values", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.66071}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target places lumaSkip r0, unclamped red r3, chromaSkip r6, output/tileRow r7/r8 and columnInTile r9. Separate luminance, channels and packing removes synthetic red/green heads introduced by in-place channel packing.", "sha256": "3a3bdee5bb77df9a8fc2067fcfebf7c174c4e47e965194f079ed5d627c8ed423", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "411edge-green-blue-stages", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 92.57143}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target places lumaSkip r0, unclamped red r3, chromaSkip r6, output/tileRow r7/r8 and columnInTile r9. Separate luminance, channels and packing removes synthetic red/green heads introduced by in-place channel packing.", "sha256": "99df6d572bd97f51c88769a10e6fc3b86ed7ff55c30fc502534c2d692b8fdddb", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 56}}} + +TRIAL {"label": "411edge-red-alpha-stages", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 88.52679}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target places lumaSkip r0, unclamped red r3, chromaSkip r6, output/tileRow r7/r8 and columnInTile r9. Separate luminance, channels and packing removes synthetic red/green heads introduced by in-place channel packing.", "sha256": "bd8b6c67be539c80063bad49872810b482d7fb10de8f2095ace0f108745c0a3e", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 46}}} + +TRIAL {"label": "411edge-rgb-guard", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.92857}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target OR chain is blue|red then green. Restore target channel evaluation ordering after separate color locals.", "sha256": "2b447015db06df0fb1e10af9509aed0227422dd604e429e72de6ab542a1d0f97", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "422edge-tile-decl-last", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Move only the real tile sum declaration: its early simplify position currently lets mask/addis/final-alpha temporaries take r19 first; target tile sum requires r19 before alpha r18.", "sha256": "82f3f60e6b21b5a271a2924d7eaba32125ef3a98a71517f36fb7943c80fe9d2c", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-tile-decl-after-red", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Move only the real tile sum declaration: its early simplify position currently lets mask/addis/final-alpha temporaries take r19 first; target tile sum requires r19 before alpha r18.", "sha256": "e201ea98f83f29e65787447faab28d9b49b4626a31631fb3c7384c01f33151d4", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-tile-decl-before-state", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Move only the real tile sum declaration: its early simplify position currently lets mask/addis/final-alpha temporaries take r19 first; target tile sum requires r19 before alpha r18.", "sha256": "721169c2862ce8a77ad4fce1f3c76262abab8395784b2a633c27a233dd4de085", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-tile-shift-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 88.831856}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "3b2ed399be5f4886f03c250147c064f32e520806939c4d3570d3946674e7cd6e", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 32}}} + +TRIAL {"label": "422edge-red-before-address", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 83.58407}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "7eaf40088606e9f6018ac5bb73b125705ea5c6c49b601a6785555ce13375bb29", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 71}}} + +TRIAL {"label": "422edge-gb-before-address", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 87.65487}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "1e92f00d90ed52d47bb52cacae27a3e40c70a16ae16a1b2ea643d11b68a9678e", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 73}}} + +TRIAL {"label": "422edge-blue-before-address", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "d617c4b7b3f962a725e04047a9cbd8f8893f508bf21914f3f93704ecd9877ff3", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-local-shifted-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "5c14c0d131730f45a38d92c4bd19f6a2fa51222cbca41d83d95b752e7ccdceb9", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-halfword-alpha", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "PCode tile sum v55 simplifies at degree28 below 29-register budget and colors after v92-v94 alpha. Test normal channel packing and coordinate intermediate lifetimes to reproduce target reuse.", "sha256": "3922c15e9e10df23873f628280b6a70a1ecfa5c1a830fadfd3e658890b74be57", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates-only-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Leave tile-sum CSE anonymous while naming the higher-degree shared column-in-tile. Compiler-created expression temporaries color later than named low-degree locals.", "sha256": "edce7777df83d06801e287634b87208b2777c608c2c39800b82c56bffbcf5955", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "411edge-rgb-guard-only-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.92857}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Leave tile-sum CSE anonymous while naming the higher-degree shared column-in-tile. Compiler-created expression temporaries color later than named low-degree locals.", "sha256": "c5da593e43dce096a06a63b71715c6c0d3e97ee90772953bb95cd8d0180351a8", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "422edge-store-helper-0", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "A real RGBA plane store helper changes argument and packing value boundaries; test the target tile-sum/alpha overlap without carrier objects or artificial liveness.", "sha256": "713824b1e3b323e8871423229357d440607e5707cbfbc542e178227ab2b25194", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-store-helper-1", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "A real RGBA plane store helper changes argument and packing value boundaries; test the target tile-sum/alpha overlap without carrier objects or artificial liveness.", "sha256": "da2fa972239650527b9a16eb710274fc463b51674753c2c7dca82edc8361953b", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-store-helper-2", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "A real RGBA plane store helper changes argument and packing value boundaries; test the target tile-sum/alpha overlap without carrier objects or artificial liveness.", "sha256": "d4665ee3d3c8a05cfec691f828f202e4724da39f83564c72dc6df5e50b1eb045", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-store-helper-3", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "A real RGBA plane store helper changes argument and packing value boundaries; test the target tile-sum/alpha overlap without carrier objects or artificial liveness.", "sha256": "dd94af2cfe8989d6023d6c40aa555ad5fe79b01f2b465c1c97f0b94c940819e5", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-plane-postincrement", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.849556}, "exact": 2, "drops": [], "why": "Advance the real plane index between AR and GB stores, exposing the source identity of the shared tile index at its two uses.", "sha256": "057107f103a7af5d3c198108de3d48cdba03974d087de5892267cf493aa4dfdc", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 18}}} + +TRIAL {"label": "422edge-plane-separate-increment", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Advance the real plane index between AR and GB stores, exposing the source identity of the shared tile index at its two uses.", "sha256": "032ea3aa0f3d3df14712eba51aedaef0c02d7c3d2bc65bc2d0d9ec919d7a3940", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-both-indices", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Name the actual AR/GB store indices and evaluate the shared plane address before packed-color stores. Target tile+1 and alpha-mask lifetimes differ before allocation.", "sha256": "c4cb84473fbd72d0a32fbcba3b1e8c94b9afd9e5cb3c490136a3c7919eb39c1e", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-color-tile-separate", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Name the actual AR/GB store indices and evaluate the shared plane address before packed-color stores. Target tile+1 and alpha-mask lifetimes differ before allocation.", "sha256": "78c242302c3f43f9b4cbdee04003e6d78e2c0f3266810687d7d2b085bdab49b4", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-alpha-index-then-tile", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Name the actual AR/GB store indices and evaluate the shared plane address before packed-color stores. Target tile+1 and alpha-mask lifetimes differ before allocation.", "sha256": "e16e94da0d9ffbd9363b20080c94d2ab0c69f08caf1666a037b694656734fc70", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-coordinate-association", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.80531}, "exact": 2, "drops": [], "why": "Name the actual AR/GB store indices and evaluate the shared plane address before packed-color stores. Target tile+1 and alpha-mask lifetimes differ before allocation.", "sha256": "19b8918760634cde2bdf24b41ac0277f52cd6d9f0a7667a687ea66b8d30ccfa4", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 18}}} + +TRIAL {"label": "422edge-ar-store-after-gb-value", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Name the actual AR/GB store indices and evaluate the shared plane address before packed-color stores. Target tile+1 and alpha-mask lifetimes differ before allocation.", "sha256": "0ecc58b511b4f7f2fa763e0cde2824808d10a106445270e151bdc3344f9666e4", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422-carry-rgb-locals", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 85.560814}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "2b07f5898d87fffe1a4afe13ceb69ddaf944272018ffd999c12326f5f90f7909", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 110}}} + +TRIAL {"label": "422edge-signed-chroma", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Change semantic byte-conversion boundaries and alpha arithmetic association while retaining target masks and plane coordinates.", "sha256": "21c566475a846c84865125b8813a99c3556558fa16f4397e9ffe1444e2b18cf2", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422-carry-target-locals", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 86.47298}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "86f6e00815265e860403c25c8b53aa52e2eb0fdedb17586084dc1120327b494d", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 97}}} + +TRIAL {"label": "422edge-red-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Change semantic byte-conversion boundaries and alpha arithmetic association while retaining target masks and plane coordinates.", "sha256": "40e831bfad76acdd79508963706928f6e56fa867f55c62c3024cd746bb6a1075", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422-carry-separate-blue", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 86.574326}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "1fcdcf7f5e462e90185009ddd81ca326f12d94d89dc8edea06be6bea32ae91c7", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 96}}} + +TRIAL {"label": "422edge-negative-alpha", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Change semantic byte-conversion boundaries and alpha arithmetic association while retaining target masks and plane coordinates.", "sha256": "06b3d3ac2e28a8f85ab37944f1a3e26708f56e11df68c193d853f08f4b5bea45", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "420-carry-rgb-locals", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8": 89.53595}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV420toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "a3359b2e563e75a782771876f5490edaac9a5aee3794c2cc5ead47ff2947e326", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 89}}} + +TRIAL {"label": "420-carry-target-locals", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8": 85.24837}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV420toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "fb7356250adecc04035112c4b975b5ff98c0e2f8cd27d93278aa8f3e2a1c474d", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 122}}} + +TRIAL {"label": "420-carry-separate-blue", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8": 86.68627}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV420toRGBA8"], "why": "Carry exact RGB565 separate pixel locals into two-plane RGBA output. Target 422 skips/output/row are r0/r3/r6/r7, red r8; 420 uses red r3, skips r0/r6, rewind r7, output/row r8/r9.", "sha256": "ce7fc63b9fcca0559e6fe606f972eead294964e0651539229e0893481c979549", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 107}}} + +TRIAL {"label": "411-pixel-column-increments", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Test actual four-pixel coordinate update shape. Target strength-reduced first tile begins before row calculations; simple named counter had an unwanted invariant copy.", "sha256": "aaf094ee2083a6b5893912359aedf99939491dcff3d168d203ae582762d37c3c", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-advance-pixel-group", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 86.7788}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test actual four-pixel coordinate update shape. Target strength-reduced first tile begins before row calculations; simple named counter had an unwanted invariant copy.", "sha256": "db4dc283b62edb23f69c0d6a918e5bcdbd7aa58c11733caac819536d39ce3456", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [219, 217], "diffs": null}}} + +TRIAL {"label": "411-parameter-column-loop", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 96.70507}, "exact": 11, "drops": [], "why": "Test actual four-pixel coordinate update shape. Target strength-reduced first tile begins before row calculations; simple named counter had an unwanted invariant copy.", "sha256": "2a91d44a1b228d4008000881adc864c45be1edbff1ec9ebcc51a991f120378d2", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 49}}} + +TRIAL {"label": "422-red-after-row", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 86.47298}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8"], "why": "Correct target persistent order: row skips r0/r3, output/tileRow r6/r7, first red and expired coordinate r8. Distinct per-pixel red and green values test synthetic priority.", "sha256": "19d7d75452c5a53765ebd4e04c41ccde2462ee041766a54f330fc724e1197e4b", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 97}}} + +TRIAL {"label": "422-col-after-redbyte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 86.47298}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8"], "why": "Correct target persistent order: row skips r0/r3, output/tileRow r6/r7, first red and expired coordinate r8. Distinct per-pixel red and green values test synthetic priority.", "sha256": "7c2bf78f62f729ccc0b372920ad7ade7bd54f16daba39a3927cc1aa7a3240dae", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 97}}} + +TRIAL {"label": "211-prior-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8": 92.88461}, "exact": 2, "drops": [], "why": "Carry named shared column coordinate and target persistent declaration order into fresh baseline; target rowSkip/output/tileRow/columnInTile r0/r3/r6/r7.", "sha256": "db21ff96fc569fbfdadf37f484e7fe8134ea3829e6d3457a281e0d6135914b5a", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 25}}} + +TRIAL {"label": "211-split-tile-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8": 83.125}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV211toRGBA8"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "8a89c212ec1c37ed54461cdedf3410fda3877e4b238a1f38841d51d3b191a98f", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 82}}} + +TRIAL {"label": "211-packing-lifetime", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8": 87.88461}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV211toRGBA8"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "97382ef1ee11cc6a7fbd889f18893ed90edb5902ef0bdd61ebcf68101d98b051", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 31}}} + +TRIAL {"label": "211-alpha-byte-boundary", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8": 92.88461}, "exact": 2, "drops": [], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "7e1f3ad0d7c0684d95d6127afde9e216b0abdbf64be78397f33e80d68ce9313c", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 25}}} + +TRIAL {"label": "211edge-prior-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.82609}, "exact": 2, "drops": [], "why": "Carry named shared column coordinate and target persistent declaration order into fresh baseline; target rowSkip/output/tileRow/columnInTile r0/r3/r6/r7.", "sha256": "89cecfcf4f53f7c25eec1e91366bf4821672a9fdd30fea2f03ed8ef402291dc9", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 31}}} + +TRIAL {"label": "211edge-split-tile-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 84.565216}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV211toRGBA8edge"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "1037d99d6553b6bf8ca0577538e661975b1cadd526241a43a995e0b85931d405", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 86}}} + +TRIAL {"label": "211edge-packing-lifetime", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 88.304344}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV211toRGBA8edge"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "8142baec93dfde0a2c8d846cf6e91b4f4541445f87efaeedbc641d8b33c8e1ab", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 37}}} + +TRIAL {"label": "211edge-alpha-byte-boundary", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.82609}, "exact": 2, "drops": [], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "22f270581ca3c3e706fb33865fea21729dde21ed3b3b0b55424a30657ec1c891", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 31}}} + +TRIAL {"label": "444-prior-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Carry named shared column coordinate and target persistent declaration order into fresh baseline; target rowSkip/output/tileRow/columnInTile r0/r3/r6/r7.", "sha256": "4ad4cc7be773013a59222e82340376a69694c8079ec3fd4c2424de4f3b6a5fe0", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "444-split-tile-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 82.52577}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "452f7d6171dfd36ddfc16b6a3aff8dff19cf5b300e902205c43eb4a7436f8a2d", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "444-packing-lifetime", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 87.01031}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "1627c84b99d77063ec0e9d4eb458554754d48a3bad8df0a7a9702440915766b6", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 31}}} + +TRIAL {"label": "444-alpha-byte-boundary", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "17e5d4a50cf039d675c4b86509572a6d2fdded1691ec531619315e42d18ce6a6", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "444edge-prior-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8edge": 93.318184}, "exact": 2, "drops": [], "why": "Carry named shared column coordinate and target persistent declaration order into fresh baseline; target rowSkip/output/tileRow/columnInTile r0/r3/r6/r7.", "sha256": "05fb38b68852cf0018df81783d28c0a730e9b54fc6faddb07f790e4b24cef7a4", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 23}}} + +TRIAL {"label": "444edge-split-tile-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8edge": 84.59091}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8edge"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "01baeebcb7116590ed9faf7d869193fb795f6d92920fbeed01d65b0045742870", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 81}}} + +TRIAL {"label": "444edge-packing-lifetime", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8edge": 88.59091}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8edge"], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "fb554599a7825435e46cc6a42351d9e8ed63c72e4e4c2b757cb597ac9dcdd816", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 29}}} + +TRIAL {"label": "444edge-alpha-byte-boundary", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8edge": 93.318184}, "exact": 2, "drops": [], "why": "Carry the RGB per-value/coordinate approach across RGBA: distinguish tile-index updates and channel-packing lifetimes while preserving sample order.", "sha256": "6b494f2ed8314517ceac43463312cf136a6bfd32263bbd6af21853a78f5eb60b", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 23}}} + +TRIAL {"label": "422edge-prior-coordinates-multiply", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.849556}, "exact": 2, "drops": [], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "8a367ac2e8a6867192427aae9c789005703ac40dd6439f443eaea70d85cf3348", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates-add-shift", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "5601d18c2da728878418e542ee699d9a8179a4cecc0ac597f0c59895d45429e9", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates-one-step-shift", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 89.24779}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "261988d31eb3dc7f16250fb00b31201e25296fe791a067d7cf8dc5d5562346a7", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 23}}} + +TRIAL {"label": "422edge-prior-coordinates-two-step-add", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 84.62832}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "32ff6a2fbe308e87fb818eb558790850380beb8f91e9e934c267d6264fd76bbd", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 73}}} + +TRIAL {"label": "422edge-prior-coordinates-row-first", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.849556}, "exact": 2, "drops": [], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "f7d8418196585d3aafb4faea2165640cde2098e62e99d178b5ff29744d503c4b", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates-signed-mask", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 91.9469}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "81c75dd6cb6c597bfa1c58259f6989258854df57d838757fa014afb6cfb67882", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "411-prior-per-pixel-tile-x-init-inner", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 87.29032}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "5351dc72c511f4e2e129c893943a3acadf5524469a05f5d93de8e5b48e279e84", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [219, 217], "diffs": null}}} + +TRIAL {"label": "411-prior-per-pixel-tile-loop-block", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 87.63595}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "7bc24abafa659572ff6a8a3aa830aa9d1f6c0b3ae830061d3877b397d33a47fc", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [216, 217], "diffs": null}}} + +TRIAL {"label": "411-prior-per-pixel-stride-start-subtract", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 84.67742}, "exact": 11, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Test equivalent actual tile coordinate expressions; MW strength reduction and CSE may preserve a different named definition before register assignment.", "sha256": "7fb7d943fcbdf2c0ccf7bb7d9cb80b2b8f3d8c30173208d6db08042aa3a96369", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 206}}} + +TRIAL {"label": "411edge-types-cr-wide", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 94.0625}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "7671634cfd04d97be83e6fdb34ccbba2c0a93bd8e318a0b417ca339a65de12e8", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 41}}} + +TRIAL {"label": "411edge-types-luminance-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 94.10714}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "94902c0fd8fd9901808b48236f668f988e213896f432ab4063a3e864c3ee6508", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 40}}} + +TRIAL {"label": "411edge-types-chroma-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 94.0625}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "a95119cda03df73f726621bec021f5ce0da4751558750d3f5e887d8ca595662a", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 41}}} + +TRIAL {"label": "411edge-types-blue-red-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.61607}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "683fecb2a172769e39d5772a59b9868f31b7324bf678e173be5512ce22e90432", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "411edge-types-red-blue-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.66071}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "14159cca95a4ab9509f09c197ba97795c0c3ba914e301e14faa3becf109aef30", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "411edge-types-cb-after-cr", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.92857}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "d292f4bb444f43a4fb4be8fffadfdf6d3c2a4da203b4867f59195fb2d1f275e5", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "422edge-types-cr-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.76106}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "5af29afddcfb5929674dd89d10c61e97b343f7f21e6c22637c1cdd3c22e6cebb", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 20}}} + +TRIAL {"label": "422edge-types-luminance-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "9fbbdffcd58cea8b06f22f03dc7ed78f51245c305b516dc4ba2e26a771e788a0", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-types-chroma-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "831dd37d3cb5883b8229a64b60ed90f9e0577896bb1c59d65009c6000179717a", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-types-blue-red-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.495575}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "af8599fc17c33d4dde2958fb6d368868988274ca571dae1ce29f515023610beb", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 22}}} + +TRIAL {"label": "422edge-types-red-blue-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.62832}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "e41b5332d0ef72484c6897a62d301304326d34e118a6799543ab041055cfa020", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 21}}} + +TRIAL {"label": "422edge-types-cb-after-cr", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "f273fd0b2fb8cdd0a09d9ef815d2dcbea19fc39ac2dc9c06b55b8b8bd041aa7d", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "211edge-types-cr-wide", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.95652}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "ccb91bd29e686928d97204a3d7e7f36812285e012c5eab973231ccaf9fcbf93e", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 31}}} + +TRIAL {"label": "211edge-types-chroma-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.95652}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "34b6a161d13825efb512fa335fa301024ee83eacb504e969ee8268b76f7a14e5", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 31}}} + +TRIAL {"label": "211edge-types-blue-red-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.695656}, "exact": 2, "drops": [], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "c671da5f132b6ee5e8d7c3199e43aeab935332787f124c0b9a7eefbe017309f0", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 33}}} + +TRIAL {"label": "211edge-types-red-blue-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 91.0}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV211toRGBA8edge"], "why": "Target signed chroma and luminance temporaries differ despite matching persistent registers. Test their byte/wide source types, declaration order and equivalent guard association.", "sha256": "274ed74135185df8cf49e70b392c08b3ce964f44e8c58406971b7996ec53b659", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 33}}} + +TRIAL {"label": "411-chroma-copy-shift", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "0b3dfeb5ce12b0d10f8e961926cec6ada9ce74027d7da8b51ed1f2badad1cb78", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-chroma-own-subtraction", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "4b11db6e8a4dcf8d0930073bd5274996ea027564df2a04fdb4473d3157a21acd", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-chroma-before-luma", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "e9edededce45aa0311d04442a0fc72130d8686fdaf2878c8c4a5d0c726417997", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-width-skip-reuse", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "2f6c28ae0aa728ca6727e73a50d0cf2c5b1d2cd67f6278c08af0233f77ba3315", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "411-skip-init-declarations", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 92.41936}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "0f5cfcff7e6d8288359654fbb9d1c28a63ff2e4cf975069af3d3d97b76675c2e", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 142}}} + +TRIAL {"label": "411-tile-product-expression", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 11, "drops": [], "why": "Target chromaSkip must color r3 before strength-reduced tile r6. Test real skip computation identities and scope, retaining the four-pixel pixel-local shape.", "sha256": "b88bbc090fcd720fd7e815f441792ac2232e8e440cf5c1dc6f2b4bfe8906029d", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "422-red-second-blue-lifetimes", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 88.53378}, "exact": 2, "drops": [], "why": "Trace shows remaining synthesized second blue r62 degree32 colored before lumaSkip. Give second blue its own local paired with first red, placing skips/output/row first.", "sha256": "9cf5afe23fb97ccbb63a4f25e927c922117e28483450b883420fb49e1be6faa3", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 65}}} + +TRIAL {"label": "422edge-prior-coordinates-tile-const-inner", "unit": "rgba", "build": 2, "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion."} + +TRIAL {"label": "422edge-prior-coordinates-tile-two-ids", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion.", "sha256": "4302de641448fa6bcceb7338477e8a67eba9d4fd7d64ef1bd3415d977c9b5c51", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-prior-coordinates-tile-sum-inner", "unit": "rgba", "build": 2, "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion."} + +TRIAL {"label": "411edge-rgb-guard-tile-const-inner", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 87.05357}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion.", "sha256": "6b390b436cc7a3eeb8f068075f18067d2aad07af70e55abef1f83c5da726b77d", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 69}}} + +TRIAL {"label": "411edge-rgb-guard-tile-two-ids", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 93.92857}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion.", "sha256": "87052a3ea53bd9d67fa98bfb00cf1ef69704c3f24d48201a01e2e2343de9b940", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 44}}} + +TRIAL {"label": "411edge-rgb-guard-tile-sum-inner", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 87.05357}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Test true per-pixel tile scope, const identity, and separately updated shifted-column value; target shifted index coalesces into tile sum before alpha conversion.", "sha256": "486f58ea6d91c5719115596077cbcc804d66b4a12ebfc8b036e850f6b1a0aee0", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 69}}} + +TRIAL {"label": "420edge-carry-rgb-width", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8edge": 88.275}, "exact": 2, "drops": [], "why": "Target row skips r0/r6, chromaWidth r7 and coordinate r10 need real named width and separate pixel values; carry exact RGB565 edge structure and two-plane packing.", "sha256": "372969f038804988aa02f76624d1e6764d304f955d5207131893c43b24cfe4a9", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 82}}} + +TRIAL {"label": "420edge-target-values", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8edge": 89.23333}, "exact": 2, "drops": [], "why": "Target row skips r0/r6, chromaWidth r7 and coordinate r10 need real named width and separate pixel values; carry exact RGB565 edge structure and two-plane packing.", "sha256": "44fcd8e8998d2c0736cfa986954551e12429ef8282f52be2e5a6b46cd8be92b8", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 79}}} + +TRIAL {"label": "420edge-packed-green-blue", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV420toRGBA8edge": 87.85833}, "exact": 2, "drops": [], "why": "Target row skips r0/r6, chromaWidth r7 and coordinate r10 need real named width and separate pixel values; carry exact RGB565 edge structure and two-plane packing.", "sha256": "e0712faa75ab2f6cfa177e6483e5c2d82256a0fdaa53be72b67ece6b8a13655b", "instructions": {"TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 86}}} + +TRIAL {"label": "411-four-pixel-colors", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 77.764465}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8"], "why": "Carry four distinct red/green lifetimes from RGB411 into real four-pixel RGBA stores, then name each repeated column-in-tile and separate later blue values.", "sha256": "4d4a0035ff5304ea8e874bb1997212b52aba03d8fbb5d06c95229fe5a4335128", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 185}}} + +TRIAL {"label": "411-four-pixel-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 76.37603}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8"], "why": "Carry four distinct red/green lifetimes from RGB411 into real four-pixel RGBA stores, then name each repeated column-in-tile and separate later blue values.", "sha256": "77ad705fda30ca477cbcd545761df91c624159423e933bec85ef44085476bcec", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 180}}} + +TRIAL {"label": "411-all-pixel-colors", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 78.83471}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8"], "why": "Carry four distinct red/green lifetimes from RGB411 into real four-pixel RGBA stores, then name each repeated column-in-tile and separate later blue values.", "sha256": "55b00fd7ce4a772d84f8a2056e1795553f953ea5ca0173558948b556a4211a05", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 187}}} + +TRIAL {"label": "422edge-two-step-late", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 91.486725}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Keep shifted-column and final tile sum in one source variable declared after colors, but leave the first arithmetic shift as an independent temporary as target does.", "sha256": "1b8c0b915d4d22b7940fd32038316674a0669d519e1f8074c2e518ba265be057", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 32}}} + +TRIAL {"label": "422edge-pointer-store", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Test typed destination-address evaluation before color packing. The target requires the tile sum to precede alpha intermediates; array assignment emits RHS temporaries first.", "sha256": "982ea35d9f368b91465e240af2ff287636d218c75c977353dbbfb3a79d690562", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-named-plane-pointers", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 83.76991}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Test typed destination-address evaluation before color packing. The target requires the tile sum to precede alpha intermediates; array assignment emits RHS temporaries first.", "sha256": "d69d410dd1620fa4e7478dc8cab4d8292b1c7d1980149ee758331cc60b2897d3", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [110, 113], "diffs": null}}} + +TRIAL {"label": "422edge-plane-store-s32-0", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Inline one actual plane store with scalar value and typed destination arguments; evaluate address and packing at the helper-call boundary.", "sha256": "0f294099224cfe9ae6ded0a2718c3b71ff3ee50a53591b51c9bcc594ddc02d4d", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-plane-store-u16-0", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Inline one actual plane store with scalar value and typed destination arguments; evaluate address and packing at the helper-call boundary.", "sha256": "f1e08948486a1b26ccfa92ba35faf99db2b3d5ca9b8864adb396ca8f60d4ec8e", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-plane-store-s32-1", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Inline one actual plane store with scalar value and typed destination arguments; evaluate address and packing at the helper-call boundary.", "sha256": "8b957629ba8a93d5650be9b2d77972ccb7a936ff76978b89c3af4943c288109d", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-plane-store-u16-1", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Inline one actual plane store with scalar value and typed destination arguments; evaluate address and packing at the helper-call boundary.", "sha256": "0d635ff75f4f8b7de0a75b00fe14fab2524d1aedbaa7e9880b3f27d32cad4498", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-clamp-output-red-green-blue", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Separate raw and clamped channel values across both branches. Coalescing can retain target channel registers while changing interference of packed outputs.", "sha256": "28ad3ec90cfac5125891297e507765867839a7576282de783dd778037ecc2ddb", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-clamp-output-red", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Separate raw and clamped channel values across both branches. Coalescing can retain target channel registers while changing interference of packed outputs.", "sha256": "dfb708c7b17070c86224256e87e32f5014f4980df10507e78cd3f936235b4380", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-clamp-output-green", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Separate raw and clamped channel values across both branches. Coalescing can retain target channel registers while changing interference of packed outputs.", "sha256": "6accda9af14c9a832a712bbb24208055b990d10fc60d51f20f4cead36ba0eea1", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-clamp-output-blue", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Separate raw and clamped channel values across both branches. Coalescing can retain target channel registers while changing interference of packed outputs.", "sha256": "db6d0b299d7448a034fffb201907dcd4a656591e2f8bcd4bec53021594b7f60a", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422-later-green-before-red", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8": 89.817566}, "exact": 2, "drops": [], "why": "Target second green r19 precedes second red r20; their two distinct named lifetimes can swap without altering first pixel red/second blue r8.", "sha256": "86820a5b8e5e48ace0a21474981bad47a3e035d719de827ce9e08c2ab5e8d016", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 51}}} + +TRIAL {"label": "422edge-clamp-helper", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Use a real scalar saturation helper to expose the raw/clamped value boundary before packed stores.", "sha256": "2cf85855e7a1d5c06642b1bec967c87d125af9d51c40d7a937568a6a9f2dba04", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-color-output-helper", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 78.92921}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Real YUV color conversion helper returns three clamped scalar outputs through pointers; test whether address-taken output boundaries change coalescing after inlining.", "sha256": "cfcdd97c29b0f3d0f44a0fdcae8ecf57ee1bbfdd3357e462232c61eed34c76e5", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 79}}} + +TRIAL {"label": "422edge-color-store-helper", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 82.10619}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Inline a complete real YUV pixel operation, keeping persistent row sampling in the caller and color/packing coordinates local to the operation.", "sha256": "215522a8ada3a0a3f9ae79dda310b8d257d931c24af59d25a184729a3c2adb0b", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 79}}} + +TRIAL {"label": "422edge-store-scope-s32", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Scope the real plane-store stage with its tile coordinate declared at block entry; valid C89 replacement for rejected middle-of-block declaration trials.", "sha256": "b9deddfbabf73940b24f3b82b9962a427c10f0c95246d85aefe47034d4513fcf", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "422edge-store-scope-const-s32", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Scope the real plane-store stage with its tile coordinate declared at block entry; valid C89 replacement for rejected middle-of-block declaration trials.", "sha256": "acfb42b751fd68827b683233e97c8efa0ff31901b1419452e8ecc99a16324b30", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +## Allocator evidence and rejected source families + +Pools were checked before iteration: RGB565 and RGBA8 both report `POOL IDENTICAL up to 0 (mine=0 base=0)`. Current source started at 11/13 and 2/13 exact respectively. Snapshots preserve the landed four RGB565 bodies; every trial checks all sibling scores against the current baseline. No source change has been retained merely for a higher fuzzy score. + +RGB565 411: target maps lumaSkip/chromaSkip/tile counter to r0/r3/r6, output/tileRow to r7/r8, first red/green to r9/r10 and later red/green to r10/r9. Fresh `411-prior-per-pixel/trace` reproduces the normal object, checks 396 GPR rewrites with zero mismatches, and confirms the prior diagnosis: synthetic tile induction v71 colors first (full degree120, simplify degree4, mask0x1fc8) into r3. Named lumaSkip v63 then gets r0 and chromaSkip v62 gets r6. Distinct later-channel locals fix the pixel calculation register choices but not that counter/skip swap. Pixel-wise column increments, separate skip computation, scope changes, parameter-as-column loop and explicit tile counters leave the swap or add/remove instructions. Best remains 97.5576%, 217/217 instructions, 17 differences. This is an experimentally unresolved source/optimizer boundary, not a proof that all possible source forms fail. + +RGBA8 422edge: target maps skip/output/row/column-in-tile to r0/r3/r6/r7/r8, pointers to r9/r10/r11/r12, and RGB to r24/r23/r22. Named column-in-tile produces those persistent colors. `422edge-prior-coordinates/trace` is byte-identical to its normal object and checks 200 GPR rewrites with zero mismatches. Tile sum v55 simplifies early at degree28 with 29 available registers. Alpha mask/addis/final nodes v92/v93/v94 are colored before it, take r19, and interfere with the sum; v55 consequently gets r18. Target requires shifted tile and sum r19, alpha intermediate r18, final alpha r19 after the tile dies. Coalescing does not supply that target reuse. A real three-step index update retains one virtual register but expands its lifetime enough to change persistent allocation; late declaration reduces the damage but takes r21 and moves the loop count to r20. Separate packed values, scalar helpers, typed plane pointers, store-address helper arguments, block scope, byte types, and raw/clamped channel output boundaries do not yield the target graph. Best remains 93.89381%, 113/113, 17 differences. + +RGBA8 422: fresh `422-carry-target-locals/trace` reproduces the object and checks 274 rewrites with zero mismatches. The remaining synthetic priority head v62 is the second blue value (degree32), not the second red/green pair that blocked RGB565. It takes r0 before lumaSkip. Giving the second blue its own scalar local paired with first red places both at target r8 and restores skip/output/row colors. Placing second green before second red corrects their r19/r20 order. Shared tile/alpha packing still has the same earlier-simplify problem; best new body is 89.817566%, 148/148, 51 differences. Rejected rather than retaining a fuzzy-only change. + +Setters: target keeps the conversion-buffer base at r4 and state at r5. Baseline initial PCode defines buffer as work+6232, but before allocation every use folds to work+full-offset. The buffer node is dead and state colors first into r4. This explains the absent instruction (169/170) before considering register names. A word-typed buffer computes the same real byte addresses and still folds; moving the state load to its final use changes scheduling and shrinks the function; advancing the shared buffer to the first row changes the common-expression structure and shrinks it further. Both setters remain 93.91765%. No flag or use-site-volatile workaround was used. + +All captures and compiled candidates are under `build/rx13b/trials/