yuv-render
v1.0.1
Published
Render YUV image data to HTML5 canvas.
Downloads
19
Readme
yuv-render
Render YUV image data to HTML5 canvas.
Live Demo
Example
Installation
npm install yuv-render --save
Usage
import YUVRender from 'yuv-render';
const yuv = new YUVRender(document.getElementById('canvas'));
yuv.setDimension(width, height);
// Uint8Array data
yuv.render(data);
API
- setDimension(width: number, height: number): void
- render(data: Uint8Array): void
- clear(): void
- dispose(): void