Add frame-based RVB animation snapshots

This commit is contained in:
2026-08-15 16:25:07 +02:00
parent c9575e1a9b
commit 777331d034
3 changed files with 58 additions and 6 deletions
+4
View File
@@ -42,11 +42,15 @@ bool probe(const std::string& path, bool tree, const std::string& symbol,
std::cerr << path << ": snapshot failed: " << error << '\n';
return false;
}
const uint32_t animationFrames = symbol.empty()
? gc::MeasureRvbSnapshotAnimationFrames(bytes, scene, state, &error)
: 1;
std::cout << path << "\n movie=" << scene.sourceWidth << 'x' << scene.sourceHeight
<< " @ " << static_cast<unsigned>(scene.framesPerSecond) << " fps"
<< " bindings=" << scene.bindings.size()
<< " images=" << scene.images.size()
<< " animationFrames=" << animationFrames
<< " initialDraws=" << snapshot.size() << "\n chunks:";
for (const gc::RvbChunk& chunk : scene.chunks) {
std::cout << ' ' << chunk.tag << "@0x" << std::hex << chunk.offset