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

Function configToCacheKey

src/video_decoder.ts:34–36  ·  view source on GitHub ↗
(codecId: AVCodecID, width: number, height: number)

Source from the content-addressed store, hash-verified

32
33const configSupportCache = new Map<string, boolean>();
34const configToCacheKey = (codecId: AVCodecID, width: number, height: number): string => {
35 return `${codecId}:${width}:${height}`;
36};
37
38/**
39 * Decodes video frames from encoded chunks.

Callers 1

isConfigSupportedMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected