MCPcopy
hub / github.com/midrender/revideo / getNextFrame

Method getNextFrame

packages/2d/src/lib/utils/video/parser/segment.ts:270–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 }
269
270 public async getNextFrame() {
271 await this.populateBuffer();
272 const frame = this.frameBuffer.shift();
273 if (frame) {
274 this.framesProcessed++;
275 }
276 return frame;
277 }
278
279 /**
280 * Called when we are done with the extractor.

Callers 1

getFrameFunction · 0.45

Calls 1

populateBufferMethod · 0.95

Tested by

no test coverage detected