(duration, quality)
| 2226 | // a more abstract-ish API |
| 2227 | |
| 2228 | function WhammyVideo(duration, quality) { |
| 2229 | this.frames = []; |
| 2230 | if (!duration) { |
| 2231 | duration = 1; |
| 2232 | } |
| 2233 | this.duration = 1000 / duration; |
| 2234 | this.quality = quality || 0.8; |
| 2235 | } |
| 2236 | |
| 2237 | /** |
| 2238 | * Pass Canvas or Context or image/webp(string) to {@link Whammy} encoder. |
nothing calls this directly
no outgoing calls
no test coverage detected