← Back to Pull requests

WIP: Big endian support and basic raw UDP framebuffer stream #85

Open
kleinesfilmroellchen opened this pull request with 303 lines diff across 11 files
View on GitHub
kleinesfilmroellchen kleinesfilmroellchen commented on Jun 17, 2026 09:20 UTC
Author

The ultimate goal is to make breakwater compatible with my TP-Link Archer C7 router running OpenWRT on mips-unknown-linux-musl (MIPS32, big-endian). This has three main parts:

  • Make prometheus exporter into an optional feature. This may be useful for some users who don’t need it, but most importantly, prometheus_exporter doesn’t compile on 32-bit systems since it needs 64-bit atomics. I’m looking forward to Pixelflut on Nintendo 3DS :3

  • Fix endianness issues in breakwater (mainly breakwater-parser). Already complete, all relevant tests pass. However, PXMULTI doesn’t work, since it’s fundamentally little-endian. I’ll look into always disabling this feature on big-endian targets. Also, the framebuffer byte order is reversed from little-endian, so each pixel is ordered as RGBA instead of the ABGR on little-endian. This may cause issues with outputs which assume the framebuffer endianness, but I am unable to test any of the existing outputs on that router.

  • Add a really simple output protocol which streams the raw framebuffer via UDP (for reception by e.g. ffmpeg). For a low-resolution low-framerate canvas (e.g. 720p with 10fps) this is only 200-300Mbit/s, which will hopefully be fine.

  • Add rate-limiting support
  • Diff: 303 lines (+284 / -19) across 11 files Reviewer: kleinesfilmroellchen Review duration: 244173m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.73) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 303 lines diff across 11 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.89 · 1 substantive comment(s)
    0.89
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    79%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.342
    Self Review self_review
    0.140
    Real PR Conversation Timeline
    2 items
    kleinesfilmroellchen kleinesfilmroellchen commented on code on Jun 17, 2026 09:20 UTC
    Code Review
    breakwater-parser/src/original.rs:1
    @@ -93,8 +93,9 @@ impl<FB: FrameBuffer> Parser for OriginalParser<FB> {
             }
     
             while i < loop_end {
    +            // BUG: byte order is inverted on big-endian

    oops, that was a debugging comment, this should be removed

    Assignees
    kleinesfilmroellchen kleinesfilmroellchen
    Labels
    risk: low confidence: 79.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 72.9% (HIGH) · Higher = larger blast radius
    72.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 79.6% · Lower = rushed or shallow review
    79.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.9% · Safe to merge
    14.9%