fix(recording): normalize rotated video bounds before touch overlays

Merged
TH
2mo ago
+224-5

Summary

Closes #2774.

Duo inner-panel recordings with a rot90 preferred transform exported outside the composition canvas, triggering an all-black export rejection and overlayWarning. Normalize the transformed frame origin using the same bounds that determine render size. Four files update the helper, native regression coverage/fixture, and ADR evidence.

Validation

Tested commit: 7173576630b7987714602738361b226b4b0ebcda.

  • pnpm check:affected --run passed.
  • Native export tests: original helper 1 failed/7 passed; fixed helper 8 passed, covering identity, negative-origin rot90, and translated rot90 with upright pixel checks.
  • Exact-head live Duo/iOS 27.1 short overlay/control: both 2852×2006, no warning, decoded luma 246.909–247.176, tap crop 5,130 blue pixels versus zero in matching raw source.
  • Same helper bytes passed the earlier ~90s five-tap/four-scroll matrix: overlay/raw 90.833/90.825s, control 91.048s, all nine event crops draw touch pixels, no warning. Native runner build passed.
  • Current landscape pose presents upright 2852×2006; the issue's older portrait dimensions are explained in the issue evidence.
  • Independent review cleared transform math. Session closed, isolated daemon cleaned, stale claims empty. PR CI pending; detailed measurements will be posted on #2774.