Skip to content

Convert A8 and ETC2 for a Watch Pro 2 on install - #118

Merged
freethinkel merged 1 commit into
mainfrom
wp3-pro2-convert
Nov 24, 2026
Merged

freethinkel merged 1 commit into
mainfrom
wp3-pro2-convert

Conversation

@freethinkel

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #116. A Watch Pro 2 no longer turns away a face only because it carries Watch 3 Pro image formats: the install converts them on the way, the way Export for Watch Pro 2 already does by hand.

 flashFx
   fitForWatch(bin, device)
+    if device is a Watch Pro 2 and the face has cf 14 (A8) or cf 28 (ETC2)
+      and every screen stays within 1.955 MB with them as cf 5
+        re-encode them as cf 5, thumbnail included (opaque ones go on to cf 4)
   assertFlashable
   assertWatchCompat
-    any cf 14 on a Pro 2      -> refused, "use Export for Watch Pro 2"
+    cf 14 left on a Pro 2     -> refused, "converted, a screen needs X MB, over 1.955"
   uploadWatchface
+  "N images were converted to a format the Watch Pro 2 draws" (editor, store page)

The face in the catalog stays as published: a Watch 3 Pro still gets the original. The editor's note says the conversion happens on install. PRO2_FACES_STUB stays null; its comment now names the planned release, stub 11 (9 is the boot guard, 10 the widget templates).

Evidence

  • Before: of the 939 published faces, 81 are refused on a Watch Pro 2 by Support Watch 3 Pro faces in the editor and gate unsafe installs #116 (80 A8, 1 ETC2), 18 of them on the Pro 2 shelf.
    After: 6 are refused (5 too heavy once converted, 1 ETC2), 1 on the Pro 2 shelf. 75 of the 80 A8 faces install directly. Measured with the same gate on every published file, read in memory.
  • Before: the A8 originals (Citrusdash, Eleginn) stop the stock Pro 2 emulator (cmf-watch-utils, 1.0.0.73).
    After: the bytes fitForWatch sends, for those two, Duskscape, Vive Lite and the 3 most-flashed A8 faces of the Pro 2 shelf: 1 boot, 0 faults each.
  • tests/fit-pro2.test.ts: A8 and ETC2 become RGB565 with the pixels they decode to, the thumbnail too; a face too heavy once converted comes back untouched and the gate refuses it; a Watch 3 Pro and an unknown watch keep their formats. tests/flash-compat.browser.test.ts: an A8 face goes out converted and the note counts it.
  • pnpm test with the local corpora: 688 passed. check, lint, format:check and pnpm run build pass.

Not tested on a real watch.

Merge Danger

Door: two-way

Nothing stored changes, only the bytes sent to a Watch Pro 2. A revert brings back the refusal.

Blast Radius: installs

Watch Pro 2 installs of the 75 faces start working, with their A8/ETC2 images as cf 4/5. On the watch those images take up to three times the memory they did as A8, which the 1.955 MB cap bounds. The cap is the highest synthetic screen tested in the emulator, not the watch's measured limit. Watch 3 Pro installs are unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CQSU8M433m4WAvWEbAKocd

fitForWatch now does what Export for Watch Pro 2 does by hand: on the way
to a Watch Pro 2, cf 14 and cf 28 resources (the thumbnail included)
become cf 5, and an opaque one goes on to cf 4. It does so only while
every screen stays within the 1.955 MB tested there; the gate refuses a
face too heavy to convert, and says by how much. The editor and the
store tell the user how many images were converted.

On the 939 published faces, 75 of the 80 with A8 now install on a
Watch Pro 2 directly; 6 are still refused (5 too heavy, 1 ETC2).

PRO2_FACES_STUB's comment names the planned release: stub 11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CQSU8M433m4WAvWEbAKocd
@freethinkel
freethinkel merged commit e8b3b11 into main Nov 24, 2026
1 check passed
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