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

Method decrementQueue

src/video_decoder.ts:264–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 }
263
264 private decrementQueue() {
265 this._decodeQueueSize = Math.max(this._decodeQueueSize - 1, 0);
266
267 // Spec 4.6: Schedule Dequeue Event
268 queueMicrotask(() => {
269 const event = new Event('dequeue');
270 this.ondequeue?.bind(this)(event);
271 this.dispatchEvent(event);
272 });
273 }
274
275 private async decodeInternal(chunk: EncodedVideoChunk) {
276 const currentConfigId = this.currentConfigId;

Callers 3

decodeInternalMethod · 0.95
closeMethod · 0.95
resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected