Function
configToCacheKey
(codecId: AVCodecID, width: number, height: number, bitrate: number | undefined)
Source from the content-addressed store, hash-verified
| 63 | |
| 64 | const configSupportCache = new Map<string, boolean>(); |
| 65 | const configToCacheKey = (codecId: AVCodecID, width: number, height: number, bitrate: number | undefined): string => { |
| 66 | return `${codecId}:${width}:${height}:${bitrate ?? 'default'}`; |
| 67 | }; |
| 68 | |
| 69 | const canUseHwAccel = () => { |
| 70 | if (os.platform() !== 'linux') { |
Tested by
no test coverage detected