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

Function configToCacheKey

src/video_encoder.ts:65–67  ·  view source on GitHub ↗
(codecId: AVCodecID, width: number, height: number, bitrate: number | undefined)

Source from the content-addressed store, hash-verified

63
64const configSupportCache = new Map<string, boolean>();
65const configToCacheKey = (codecId: AVCodecID, width: number, height: number, bitrate: number | undefined): string => {
66 return `${codecId}:${width}:${height}:${bitrate ?? 'default'}`;
67};
68
69const canUseHwAccel = () => {
70 if (os.platform() !== 'linux') {

Callers 1

isConfigSupportedMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected