FAILURE MAP
← Case archive

FA-52281 / Raster memory layout / Open access

Semiplanar Padded Components: Luma addressing inherits chroma pitch or chroma row coordinate · case 01

The returned physical layout descriptor disagrees with the declared buffer mapping at luma_address.

Verified by executionVariant 1 · 6 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

Luma addressing inherits chroma pitch or chroma row coordinate The faulty expression is p["base"]+p["y"]*chroma_pitch+p["x"]*2.

VERIFIED REPAIR

Apply the stipulated layout rule at luma_address: p["base"]+p["y"]*luma_pitch+p["x"]*2.

Unsuccessful approach: The attempted repair uses p["base"]+(p["y"]//2)*luma_pitch+p["x"]*2 and still violates the layout contract.

Case contract

A stipulated semiplanar image stores two-byte luma samples and UV pairs of two-byte components. Luma rows have a four-byte guard; chroma rows have an eight-byte guard, and a six-byte separator precedes chroma. Return the named intermediate layout descriptor and final address fields; all quantities are integer byte offsets unless explicitly stated.

Why this case matters

Offline raster resource, upload, readback, and storage-layout regression model.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    p = dict(p)
    luma_pitch = p["w"]*2+4
    chroma_pairs = (p["w"]+1)//2
    chroma_rows = (p["h"]+1)//2
    chroma_pitch = chroma_pairs*4+8
    chroma_base = p["base"]+luma_pitch*p["h"]+6
    pair_offset = (p["y"]//2)*chroma_pitch+(p["x"]//2)*4
    component_offset = p["component"]*2
    sample_address = chroma_base+pair_offset+component_offset
    luma_address = p["base"]+p["y"]*chroma_pitch+p["x"]*2
    allocation_end = chroma_base+chroma_rows*chroma_pitch
    return {'luma_pitch': luma_pitch, 'chroma_pairs': chroma_pairs, 'chroma_rows': chroma_rows, 'chroma_pitch': chroma_pitch, 'chroma_base': chroma_base, 'pair_offset': pair_offset, 'component_offset': component_offset, 'sample_address': sample_address, 'luma_address': luma_address, 'allocation_end': allocation_end}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
cases = {1: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 23, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 23, 'luma_address': 11, 'allocation_end': 35}), ({'w': 6, 'h': 4, 'x': 1, 'y': 2, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 16, 'chroma_pairs': 3, 'chroma_rows': 2, 'chroma_pitch': 20, 'chroma_base': 81, 'pair_offset': 20, 'component_offset': 2, 'sample_address': 103, 'luma_address': 45, 'allocation_end': 121}), ({'w': 10, 'h': 8, 'x': 8, 'y': 6, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 209, 'pair_offset': 100, 'component_offset': 0, 'sample_address': 309, 'luma_address': 171, 'allocation_end': 321}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 305, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 455, 'luma_address': 293, 'allocation_end': 465}), ({'w': 18, 'h': 10, 'x': 16, 'y': 8, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 40, 'chroma_pairs': 9, 'chroma_rows': 5, 'chroma_pitch': 44, 'chroma_base': 417, 'pair_offset': 208, 'component_offset': 0, 'sample_address': 625, 'luma_address': 363, 'allocation_end': 637}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 251, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 401, 'luma_address': 233, 'allocation_end': 419})], 2: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 34, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 34, 'luma_address': 22, 'allocation_end': 46}), ({'w': 7, 'h': 5, 'x': 1, 'y': 2, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 118, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 144, 'luma_address': 60, 'allocation_end': 190}), ({'w': 11, 'h': 9, 'x': 8, 'y': 6, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 26, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 262, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 374, 'luma_address': 194, 'allocation_end': 422}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 316, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 466, 'luma_address': 304, 'allocation_end': 476}), ({'w': 19, 'h': 11, 'x': 16, 'y': 8, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 42, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 490, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 714, 'luma_address': 390, 'allocation_end': 778}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 262, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 412, 'luma_address': 244, 'allocation_end': 430})], 3: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 45, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 45, 'luma_address': 33, 'allocation_end': 57}), ({'w': 8, 'h': 6, 'x': 1, 'y': 2, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 20, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 159, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 185, 'luma_address': 75, 'allocation_end': 231}), ({'w': 12, 'h': 10, 'x': 8, 'y': 6, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 28, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 319, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 431, 'luma_address': 217, 'allocation_end': 479}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 327, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 477, 'luma_address': 315, 'allocation_end': 487}), ({'w': 20, 'h': 12, 'x': 16, 'y': 8, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 44, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 567, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 791, 'luma_address': 417, 'allocation_end': 855}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 273, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 423, 'luma_address': 255, 'allocation_end': 441})], 4: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 56, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 56, 'luma_address': 44, 'allocation_end': 68}), ({'w': 9, 'h': 7, 'x': 1, 'y': 2, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 22, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 204, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 234, 'luma_address': 90, 'allocation_end': 316}), ({'w': 13, 'h': 11, 'x': 8, 'y': 6, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 30, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 380, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 504, 'luma_address': 240, 'allocation_end': 596}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 338, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 488, 'luma_address': 326, 'allocation_end': 498}), ({'w': 21, 'h': 13, 'x': 16, 'y': 8, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 46, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 648, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 888, 'luma_address': 444, 'allocation_end': 1012}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 284, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 434, 'luma_address': 266, 'allocation_end': 452})], 5: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 67, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 67, 'luma_address': 55, 'allocation_end': 79}), ({'w': 10, 'h': 8, 'x': 1, 'y': 2, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 253, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 283, 'luma_address': 105, 'allocation_end': 365}), ({'w': 14, 'h': 12, 'x': 8, 'y': 6, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 32, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 445, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 569, 'luma_address': 263, 'allocation_end': 661}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 349, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 499, 'luma_address': 337, 'allocation_end': 509}), ({'w': 22, 'h': 14, 'x': 16, 'y': 8, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 48, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 733, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 973, 'luma_address': 471, 'allocation_end': 1097}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 295, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 445, 'luma_address': 277, 'allocation_end': 463})]}
for i, (p, expected) in enumerate(cases[N]):
    check("layout fixture " + str(i + 1), solve(p), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
layout fixture 1{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}Passed
layout fixture 2{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 53, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 45, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}Failed
layout fixture 3{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 195, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 171, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}Failed
layout fixture 4{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 321, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 293, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}Failed
layout fixture 5{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 395, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 363, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}Failed
layout fixture 6{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 305, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 233, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}Failed

SHA-256 / a2b5427aa325b8f85e6488a0ba57f187f9dd9c4d989753673db694eab1c2140b

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    p = dict(p)
    luma_pitch = p["w"]*2+4
    chroma_pairs = (p["w"]+1)//2
    chroma_rows = (p["h"]+1)//2
    chroma_pitch = chroma_pairs*4+8
    chroma_base = p["base"]+luma_pitch*p["h"]+6
    pair_offset = (p["y"]//2)*chroma_pitch+(p["x"]//2)*4
    component_offset = p["component"]*2
    sample_address = chroma_base+pair_offset+component_offset
    luma_address = p["base"]+(p["y"]//2)*luma_pitch+p["x"]*2
    allocation_end = chroma_base+chroma_rows*chroma_pitch
    return {'luma_pitch': luma_pitch, 'chroma_pairs': chroma_pairs, 'chroma_rows': chroma_rows, 'chroma_pitch': chroma_pitch, 'chroma_base': chroma_base, 'pair_offset': pair_offset, 'component_offset': component_offset, 'sample_address': sample_address, 'luma_address': luma_address, 'allocation_end': allocation_end}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
cases = {1: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 23, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 23, 'luma_address': 11, 'allocation_end': 35}), ({'w': 6, 'h': 4, 'x': 1, 'y': 2, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 16, 'chroma_pairs': 3, 'chroma_rows': 2, 'chroma_pitch': 20, 'chroma_base': 81, 'pair_offset': 20, 'component_offset': 2, 'sample_address': 103, 'luma_address': 45, 'allocation_end': 121}), ({'w': 10, 'h': 8, 'x': 8, 'y': 6, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 209, 'pair_offset': 100, 'component_offset': 0, 'sample_address': 309, 'luma_address': 171, 'allocation_end': 321}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 305, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 455, 'luma_address': 293, 'allocation_end': 465}), ({'w': 18, 'h': 10, 'x': 16, 'y': 8, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 40, 'chroma_pairs': 9, 'chroma_rows': 5, 'chroma_pitch': 44, 'chroma_base': 417, 'pair_offset': 208, 'component_offset': 0, 'sample_address': 625, 'luma_address': 363, 'allocation_end': 637}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 251, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 401, 'luma_address': 233, 'allocation_end': 419})], 2: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 34, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 34, 'luma_address': 22, 'allocation_end': 46}), ({'w': 7, 'h': 5, 'x': 1, 'y': 2, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 118, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 144, 'luma_address': 60, 'allocation_end': 190}), ({'w': 11, 'h': 9, 'x': 8, 'y': 6, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 26, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 262, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 374, 'luma_address': 194, 'allocation_end': 422}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 316, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 466, 'luma_address': 304, 'allocation_end': 476}), ({'w': 19, 'h': 11, 'x': 16, 'y': 8, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 42, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 490, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 714, 'luma_address': 390, 'allocation_end': 778}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 262, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 412, 'luma_address': 244, 'allocation_end': 430})], 3: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 45, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 45, 'luma_address': 33, 'allocation_end': 57}), ({'w': 8, 'h': 6, 'x': 1, 'y': 2, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 20, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 159, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 185, 'luma_address': 75, 'allocation_end': 231}), ({'w': 12, 'h': 10, 'x': 8, 'y': 6, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 28, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 319, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 431, 'luma_address': 217, 'allocation_end': 479}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 327, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 477, 'luma_address': 315, 'allocation_end': 487}), ({'w': 20, 'h': 12, 'x': 16, 'y': 8, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 44, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 567, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 791, 'luma_address': 417, 'allocation_end': 855}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 273, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 423, 'luma_address': 255, 'allocation_end': 441})], 4: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 56, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 56, 'luma_address': 44, 'allocation_end': 68}), ({'w': 9, 'h': 7, 'x': 1, 'y': 2, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 22, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 204, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 234, 'luma_address': 90, 'allocation_end': 316}), ({'w': 13, 'h': 11, 'x': 8, 'y': 6, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 30, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 380, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 504, 'luma_address': 240, 'allocation_end': 596}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 338, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 488, 'luma_address': 326, 'allocation_end': 498}), ({'w': 21, 'h': 13, 'x': 16, 'y': 8, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 46, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 648, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 888, 'luma_address': 444, 'allocation_end': 1012}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 284, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 434, 'luma_address': 266, 'allocation_end': 452})], 5: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 67, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 67, 'luma_address': 55, 'allocation_end': 79}), ({'w': 10, 'h': 8, 'x': 1, 'y': 2, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 253, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 283, 'luma_address': 105, 'allocation_end': 365}), ({'w': 14, 'h': 12, 'x': 8, 'y': 6, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 32, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 445, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 569, 'luma_address': 263, 'allocation_end': 661}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 349, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 499, 'luma_address': 337, 'allocation_end': 509}), ({'w': 22, 'h': 14, 'x': 16, 'y': 8, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 48, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 733, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 973, 'luma_address': 471, 'allocation_end': 1097}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 295, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 445, 'luma_address': 277, 'allocation_end': 463})]}
for i, (p, expected) in enumerate(cases[N]):
    check("layout fixture " + str(i + 1), solve(p), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
layout fixture 1{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}Passed
layout fixture 2{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 29, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 45, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}Failed
layout fixture 3{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 99, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 171, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}Failed
layout fixture 4{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 149, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 293, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}Failed
layout fixture 5{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 203, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 363, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}Failed
layout fixture 6{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 125, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 233, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}Failed

SHA-256 / c63bd93288aa855151b25864142162378ce4477ea330cc853a117708df498f9e

3 / The verified repair

Exit 0
"""Failure Map reference implementation. Python standard library only."""
import json

N = 1
observations = []
def solve(p):
    p = dict(p)
    luma_pitch = p["w"]*2+4
    chroma_pairs = (p["w"]+1)//2
    chroma_rows = (p["h"]+1)//2
    chroma_pitch = chroma_pairs*4+8
    chroma_base = p["base"]+luma_pitch*p["h"]+6
    pair_offset = (p["y"]//2)*chroma_pitch+(p["x"]//2)*4
    component_offset = p["component"]*2
    sample_address = chroma_base+pair_offset+component_offset
    luma_address = p["base"]+p["y"]*luma_pitch+p["x"]*2
    allocation_end = chroma_base+chroma_rows*chroma_pitch
    return {'luma_pitch': luma_pitch, 'chroma_pairs': chroma_pairs, 'chroma_rows': chroma_rows, 'chroma_pitch': chroma_pitch, 'chroma_base': chroma_base, 'pair_offset': pair_offset, 'component_offset': component_offset, 'sample_address': sample_address, 'luma_address': luma_address, 'allocation_end': allocation_end}
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
cases = {1: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 23, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 23, 'luma_address': 11, 'allocation_end': 35}), ({'w': 6, 'h': 4, 'x': 1, 'y': 2, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 16, 'chroma_pairs': 3, 'chroma_rows': 2, 'chroma_pitch': 20, 'chroma_base': 81, 'pair_offset': 20, 'component_offset': 2, 'sample_address': 103, 'luma_address': 45, 'allocation_end': 121}), ({'w': 10, 'h': 8, 'x': 8, 'y': 6, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 209, 'pair_offset': 100, 'component_offset': 0, 'sample_address': 309, 'luma_address': 171, 'allocation_end': 321}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 305, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 455, 'luma_address': 293, 'allocation_end': 465}), ({'w': 18, 'h': 10, 'x': 16, 'y': 8, 'b': 2, 'base': 11, 'component': 0}, {'luma_pitch': 40, 'chroma_pairs': 9, 'chroma_rows': 5, 'chroma_pitch': 44, 'chroma_base': 417, 'pair_offset': 208, 'component_offset': 0, 'sample_address': 625, 'luma_address': 363, 'allocation_end': 637}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 2, 'base': 11, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 251, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 401, 'luma_address': 233, 'allocation_end': 419})], 2: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 34, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 34, 'luma_address': 22, 'allocation_end': 46}), ({'w': 7, 'h': 5, 'x': 1, 'y': 2, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 118, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 144, 'luma_address': 60, 'allocation_end': 190}), ({'w': 11, 'h': 9, 'x': 8, 'y': 6, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 26, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 262, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 374, 'luma_address': 194, 'allocation_end': 422}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 316, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 466, 'luma_address': 304, 'allocation_end': 476}), ({'w': 19, 'h': 11, 'x': 16, 'y': 8, 'b': 3, 'base': 22, 'component': 0}, {'luma_pitch': 42, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 490, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 714, 'luma_address': 390, 'allocation_end': 778}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 3, 'base': 22, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 262, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 412, 'luma_address': 244, 'allocation_end': 430})], 3: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 45, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 45, 'luma_address': 33, 'allocation_end': 57}), ({'w': 8, 'h': 6, 'x': 1, 'y': 2, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 20, 'chroma_pairs': 4, 'chroma_rows': 3, 'chroma_pitch': 24, 'chroma_base': 159, 'pair_offset': 24, 'component_offset': 2, 'sample_address': 185, 'luma_address': 75, 'allocation_end': 231}), ({'w': 12, 'h': 10, 'x': 8, 'y': 6, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 28, 'chroma_pairs': 6, 'chroma_rows': 5, 'chroma_pitch': 32, 'chroma_base': 319, 'pair_offset': 112, 'component_offset': 0, 'sample_address': 431, 'luma_address': 217, 'allocation_end': 479}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 327, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 477, 'luma_address': 315, 'allocation_end': 487}), ({'w': 20, 'h': 12, 'x': 16, 'y': 8, 'b': 4, 'base': 33, 'component': 0}, {'luma_pitch': 44, 'chroma_pairs': 10, 'chroma_rows': 6, 'chroma_pitch': 48, 'chroma_base': 567, 'pair_offset': 224, 'component_offset': 0, 'sample_address': 791, 'luma_address': 417, 'allocation_end': 855}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 4, 'base': 33, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 273, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 423, 'luma_address': 255, 'allocation_end': 441})], 4: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 56, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 56, 'luma_address': 44, 'allocation_end': 68}), ({'w': 9, 'h': 7, 'x': 1, 'y': 2, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 22, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 204, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 234, 'luma_address': 90, 'allocation_end': 316}), ({'w': 13, 'h': 11, 'x': 8, 'y': 6, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 30, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 380, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 504, 'luma_address': 240, 'allocation_end': 596}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 338, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 488, 'luma_address': 326, 'allocation_end': 498}), ({'w': 21, 'h': 13, 'x': 16, 'y': 8, 'b': 5, 'base': 44, 'component': 0}, {'luma_pitch': 46, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 648, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 888, 'luma_address': 444, 'allocation_end': 1012}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 5, 'base': 44, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 284, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 434, 'luma_address': 266, 'allocation_end': 452})], 5: [({'w': 1, 'h': 1, 'x': 0, 'y': 0, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 6, 'chroma_pairs': 1, 'chroma_rows': 1, 'chroma_pitch': 12, 'chroma_base': 67, 'pair_offset': 0, 'component_offset': 0, 'sample_address': 67, 'luma_address': 55, 'allocation_end': 79}), ({'w': 10, 'h': 8, 'x': 1, 'y': 2, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 24, 'chroma_pairs': 5, 'chroma_rows': 4, 'chroma_pitch': 28, 'chroma_base': 253, 'pair_offset': 28, 'component_offset': 2, 'sample_address': 283, 'luma_address': 105, 'allocation_end': 365}), ({'w': 14, 'h': 12, 'x': 8, 'y': 6, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 32, 'chroma_pairs': 7, 'chroma_rows': 6, 'chroma_pitch': 36, 'chroma_base': 445, 'pair_offset': 124, 'component_offset': 0, 'sample_address': 569, 'luma_address': 263, 'allocation_end': 661}), ({'w': 16, 'h': 8, 'x': 15, 'y': 7, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 36, 'chroma_pairs': 8, 'chroma_rows': 4, 'chroma_pitch': 40, 'chroma_base': 349, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 499, 'luma_address': 337, 'allocation_end': 509}), ({'w': 22, 'h': 14, 'x': 16, 'y': 8, 'b': 6, 'base': 55, 'component': 0}, {'luma_pitch': 48, 'chroma_pairs': 11, 'chroma_rows': 7, 'chroma_pitch': 52, 'chroma_base': 733, 'pair_offset': 240, 'component_offset': 0, 'sample_address': 973, 'luma_address': 471, 'allocation_end': 1097}), ({'w': 7, 'h': 13, 'x': 3, 'y': 12, 'b': 6, 'base': 55, 'component': 1}, {'luma_pitch': 18, 'chroma_pairs': 4, 'chroma_rows': 7, 'chroma_pitch': 24, 'chroma_base': 295, 'pair_offset': 148, 'component_offset': 2, 'sample_address': 445, 'luma_address': 277, 'allocation_end': 463})]}
for i, (p, expected) in enumerate(cases[N]):
    check("layout fixture " + str(i + 1), solve(p), expected)
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
layout fixture 1{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}{'allocation_end': 35, 'chroma_base': 23, 'chroma_pairs': 1, 'chroma_pitch': 12, 'chroma_rows': 1, 'component_offset': 0, 'luma_address': 11, 'luma_pitch': 6, 'pair_offset': 0, 'sample_address': 23}Passed
layout fixture 2{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 45, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}{'allocation_end': 121, 'chroma_base': 81, 'chroma_pairs': 3, 'chroma_pitch': 20, 'chroma_rows': 2, 'component_offset': 2, 'luma_address': 45, 'luma_pitch': 16, 'pair_offset': 20, 'sample_address': 103}Passed
layout fixture 3{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 171, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}{'allocation_end': 321, 'chroma_base': 209, 'chroma_pairs': 5, 'chroma_pitch': 28, 'chroma_rows': 4, 'component_offset': 0, 'luma_address': 171, 'luma_pitch': 24, 'pair_offset': 100, 'sample_address': 309}Passed
layout fixture 4{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 293, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}{'allocation_end': 465, 'chroma_base': 305, 'chroma_pairs': 8, 'chroma_pitch': 40, 'chroma_rows': 4, 'component_offset': 2, 'luma_address': 293, 'luma_pitch': 36, 'pair_offset': 148, 'sample_address': 455}Passed
layout fixture 5{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 363, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}{'allocation_end': 637, 'chroma_base': 417, 'chroma_pairs': 9, 'chroma_pitch': 44, 'chroma_rows': 5, 'component_offset': 0, 'luma_address': 363, 'luma_pitch': 40, 'pair_offset': 208, 'sample_address': 625}Passed
layout fixture 6{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 233, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}{'allocation_end': 419, 'chroma_base': 251, 'chroma_pairs': 4, 'chroma_pitch': 24, 'chroma_rows': 7, 'component_offset': 2, 'luma_address': 233, 'luma_pitch': 18, 'pair_offset': 148, 'sample_address': 401}Passed

SHA-256 / 82803e046e7a12a5d858805abc7e9a92aa08548770c188c9c60be1f62f072f46

Verification & scope

Stipulated deterministic toy buffer layout; not a graphics API, codec, GPU vendor tiling specification, or hardware-conformance claim. Inputs satisfy the dimensions and bounds stated by the model. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:45:27.331840+00:00.

Case digest / 12b3c91e1e78c1d163c4a40db45e5467ee0e968f510becd765ba1bd8cabd755c