New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL fallback #26
Comments
Yeah, WebGL is not needed. You can do the conversion in Canvas2D and use putImageData() |
Any suggestion why I fail with conversion YUV(i420) to rgb and draw? I all the time get white canvas. Here is my post in stackoverflow http://stackoverflow.com/questions/21264648/javascript-convert-yuv-to-rgb |
Here is some code that performs the conversion: https://github.com/mbebenita/Broadway/blob/master/Decoder/paint_2.js |
Thanks, last question is how to get Luma,cb,cr arrays from one array? any examples, can't find here? |
Well in the code above, the luma, cb, cr arrays are allocated somewhere on the emscripten heap, and passed in as pointer arguments. |
Hm..but how $cb and $cr can be arrays if then they have |
There's really only one large array, |
webgl auto detection and fallback solution works: |
@ssleptsov hasnt been active for month |
Hi,
Is this correct that webGL need here only to convert YUV image to rgb, right?
So is it possible to convert it to rgb without webGL, by this it will be possible to draw image in 2D canvas, right?
Thanks.
The text was updated successfully, but these errors were encountered: