Connection
Base URL, credentials and a reachable server.
RowChisel provides a Windows project workspace for AI-assisted review of RGB24 row offsets. Ask the connected model to reason about alignment and storage direction, then check its arithmetic against small image fixtures.
def bitmap_row_offset(width, height, row, top_down=False):
if any(type(v) is not int for v in (width, height, row)) or type(top_down) is not bool:
raise ValueError("bitmap.type")
if not 1 <= width <= 4096 or not 1 <= height <= 4096 or not 0 <= row < height:
raise ValueError("bitmap.range")
stride = ((3*width+3)//4)*4
physical_row = row if top_down else height-1-row
return physical_row*stride, strideBase URL, credentials and a reachable server.
Check padded widths and both storage directions, rejecting invalid rows and non-Boolean direction flags.
Compare actual behavior with the expected result. If a check fails, investigate it before applying more changes.
def bitmap_row_offset(width, height, row, top_down=False):
if any(type(v) is not int for v in (width, height, row)) or type(top_down) is not bool:
raise ValueError("bitmap.type")
if not 1 <= width <= 4096 or not 1 <= height <= 4096 or not 0 <= row < height:
raise ValueError("bitmap.range")
stride = ((3*width+3)//4)*4
physical_row = row if top_down else height-1-row
return physical_row*stride, strideA binary-format bug may appear as a distorted image even when the pixel values themselves are correct. RowChisel is Windows AI coding software for examining the addressing code behind that symptom. Bring the relevant reader and a small fixture into a conversation so the proposed repair follows the format your application actually supports.
One useful task is reviewing row offsets for aligned RGB24 data. Show the connected model a width that requires padding and explain whether rows are stored from the top or bottom. Ask it to trace a requested row through the calculation before changing arithmetic, keeping the row’s logical position distinct from its physical storage position.
Review how the offset is used by the buffer reader. Correct row arithmetic does not establish that a supplied buffer contains enough bytes, and a changed stride can affect every subsequent access. Run small fixtures for both storage directions and inspect invalid-row handling. Compare the proposed change with the caller’s bounds checks rather than reviewing the helper in isolation.
RowChisel connects to supported OpenAI-compatible or Anthropic endpoints. You can choose an abliterated AI model offered by the configured service, with tool support and context governed by that setup. Ground the review in byte counts and expected offsets, then verify the application output with your own project tools.
Use a narrow RGB24 image whose raw row length needs alignment padding. State the expected stride and offsets explicitly. An image width that already aligns can hide the defect and make a wrong calculation appear correct.
Logical row numbering and physical order can differ. Show whether the first stored row represents the top or bottom of the image. Ask the model to preserve that contract when it proposes changes to addressing code.
No. The reader must also establish that the required bytes exist in the supplied buffer. Review that boundary separately, especially when dimensions come from external data. Keep buffer validation visible alongside the offset helper.
Inspect all callers using the stride, test the first and last rows and verify rejected row indices. Run fixtures in both storage directions. Then examine the decoded output to catch integration mistakes beyond the arithmetic itself.
RowChisel · Updated 2026-10-25