(imageData, offset, poco)
| 35 | } |
| 36 | |
| 37 | function render(imageData, offset, poco) { |
| 38 | const decoder = new JPEG(imageData); |
| 39 | let block; |
| 40 | while ((block = decoder.read())) { |
| 41 | poco.begin(block.x + offset, block.y+offset, block.width, block.height); |
| 42 | poco.drawBitmap(block, block.x+offset, block.y+offset); |
| 43 | poco.end(); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | async function main() { |
| 48 | const poco = new Poco(screen); |
no test coverage detected