Add frame-based RVB animation snapshots
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user