(dictionary)
| 42 | |
| 43 | export default class RLEOut extends PixelsOut { |
| 44 | constructor(dictionary) { |
| 45 | super(dictionary); |
| 46 | |
| 47 | this.depth = Bitmap.depth(this.format) |
| 48 | if ((16 != this.depth) && (8 != this.depth)) |
| 49 | throw new Error("unsupported pixel format"); |
| 50 | |
| 51 | this.key = dictionary.key; |
| 52 | } |
| 53 | begin(x, y, width, height) { |
| 54 | this.buffers = []; |
| 55 | this.output = undefined; |