MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / outputFrame

Method outputFrame

src/video_decoder.ts:250–262  ·  view source on GitHub ↗
(currentConfigId: number)

Source from the content-addressed store, hash-verified

248 }
249
250 private outputFrame(currentConfigId: number) {
251 if (this.currentConfigId !== currentConfigId) {
252 return;
253 }
254
255 const clone = this.frame.clone();
256 if (!clone) {
257 throw new Error('Error obtaining frame clone.');
258 }
259
260 const frame = new VideoFramePolyfill(clone);
261 this.init.output(frame);
262 }
263
264 private decrementQueue() {
265 this._decodeQueueSize = Math.max(this._decodeQueueSize - 1, 0);

Callers 2

decodeInternalMethod · 0.95
flushInternalMethod · 0.95

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected