Expand description
Animation capture module (R2).
Captures web animations as sequences of screenshots with loop detection based on pixel similarity comparison.
Supports three capture modes (concept):
screencast: CDP-based push capture (30-60 FPS, Chromium only)beginframe: Deterministic frame-perfect capture (Chromium only)screenshot: Polling-based capture (3-8 FPS, cross-browser)
Note: Full animation capture requires browser automation (browser-commander). This module provides the core logic; browser integration is stubbed until browser-commander is fully available.
Based on reference implementation from: https://github.com/link-foundation/meta-theory/blob/main/scripts/capture-animation.mjs
Structs§
- Animation
Capture Result - Result of animation capture.
- Animation
Options - Options for animation capture.
- Keyframe
- A captured keyframe.
Enums§
- Animation
Format - Output format for animation.
- Capture
Mode - Capture mode for animation.
Functions§
- capture_
animation_ frames - Capture animation frames from a web page.
- compare_
frames - Compare two frame buffers for pixel similarity.