Skip to content

feat(format): drop .rgb in favor of .fled everywhere - #134

Merged
zackees merged 1 commit into
mainfrom
feat/drop-rgb-format
Jun 15, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/drop-rgb-format

Conversation

@zackees

@zackees zackees commented Jun 15, 2026

Copy link
Copy Markdown
Owner

PR 1/6 for #133. Demo loads sample .fled (one-shot conversion via scripts/convert-rgb-to-fled.mjs); ~100 lines of chunked .rgb streaming gone; downloads emit .fled via prependFledHeader. Smoke + tsc + lint + 433 unit tests all green. Refs #133.

PR 1 of 6 for the layered single-page consolidation (#133).

- Demo's three sample videos (color_line_bubbles, video, video1)
  are converted from raw .rgb to self-describing .fled
  (one-shot scripts/convert-rgb-to-fled.mjs prepends the 12-byte
  FLED header + embedded 32x32 quad serpentine screenmap).
- demo.ts loads /demo/video.fled in one fetch + parseRgbFrames
  pass instead of chunk-streaming raw .rgb. The ~100 lines of
  ReadableStream bookkeeping (videoReader, videoBuffer,
  streamVideoData, processNewFrames, stopVideoStream) all drop
  out — parseRgbFrames already handles the FLED header.
- demo's upload + download flows operate on .fled. Download
  wraps the in-memory frames with the screenmap-embedding
  FLED header via prependFledHeader.
- src/demo/template.html: file input accepts="*.fled".
- src/hub/template.html: Movie Player tile copy updated.
- CLAUDE.md: Data Formats + tools table reflect .fled.
- src/types/domain.ts + src/video-store.ts: comments updated.

No behavioral change for the Movie Player (it already required
.fled after #126). The remaining .rgb references in moviemaker.ts
shaders / pixel-format names refer to the rgb8 pixel format
*inside* the FLED container, not the deprecated container.

Verified locally: tsc, lint, build, 433 unit tests, 6/6 smoke
tests all pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@zackees
zackees merged commit d5e5778 into main Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant