(currentConfigId: number)
| 248 | } |
| 249 | |
| 250 | private outputFrame(currentConfigId: number) { |
| 251 | if (this.currentConfigId !== currentConfigId) { |
| 252 | return; |
| 253 | } |
| 254 | |
| 255 | const clone = this.frame.clone(); |
| 256 | if (!clone) { |
| 257 | throw new Error('Error obtaining frame clone.'); |
| 258 | } |
| 259 | |
| 260 | const frame = new VideoFramePolyfill(clone); |
| 261 | this.init.output(frame); |
| 262 | } |
| 263 | |
| 264 | private decrementQueue() { |
| 265 | this._decodeQueueSize = Math.max(this._decodeQueueSize - 1, 0); |
no test coverage detected