()
| 523 | |
| 524 | let cachedHardwareContext: HardwareContext | null | undefined = undefined; |
| 525 | export const getHardwareContext = (): HardwareContext | null => { |
| 526 | if (cachedHardwareContext === undefined) { |
| 527 | cachedHardwareContext = HardwareContext.auto(); |
| 528 | } |
| 529 | return cachedHardwareContext; |
| 530 | }; |
| 531 | |
| 532 | const hardwareEncoderCodecCache = new Map<AVCodecID, Codec | null>(); |
| 533 | export const getHardwareEncoderCodec = (codecId: AVCodecID): Codec | null => { |
no outgoing calls
no test coverage detected