MCPcopy Index your code
hub / github.com/CapSoftware/Cap / schedulePendingNv12Frame

Function schedulePendingNv12Frame

apps/desktop/src/utils/socket.ts:496–504  ·  view source on GitHub ↗
(buffer: ArrayBuffer, receivedAt: number)

Source from the content-addressed store, hash-verified

494 }
495
496 function schedulePendingNv12Frame(buffer: ArrayBuffer, receivedAt: number) {
497 pendingNv12Frame = { buffer, receivedAt };
498 if (pendingNv12RafId !== null) return;
499
500 pendingNv12RafId = requestAnimationFrame(() => {
501 pendingNv12RafId = null;
502 renderPendingNv12Frame();
503 });
504 }
505
506 function renderPendingRgbaFrame() {
507 if (!pendingRgbaFrame || !mainThreadWebGPU || !directCanvas) return;

Callers 1

createImageDataWSFunction · 0.85

Calls 1

renderPendingNv12FrameFunction · 0.85

Tested by

no test coverage detected