-
Notifications
You must be signed in to change notification settings - Fork 4
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
panic
when converting to YUV420 to RGB
#2
Comments
Hi, YUV420 is not supported right now. We currently only have conversion support for the packed/interleaved YUV formats, i.e. YUV420 looks like a planar format - can you confirm this is the case for your image? There's a helpful format description in the VLC wiki: https://wiki.videolan.org/YUV#UYVY. |
Thanks for the reply - that VLC article has clarified things significantly. Yes, my format is I420 - planar. I understand the functionality of this crate now and can make some progress. |
Would you be interested in adding this functionality to this crate? Planar image support is something I‘ve wanted to tackle for some time now, but never really got to it. I can draft a first implementation for you to test if you don’t want to handle it. Should not take more than a week or two - there’s some smaller fish to fry first. |
I just pushed preliminiary YUV 420p support to the
|
I have a raw buffer of bytes which is a YUV420 format frame from a camera, which I am trying to convert to RGB (well, ultimately to a JPEG).
My code, however, panics when I try to do the conversion, looking something like this:
And then I get a really long panic message:
Is YUV420 conversion supported?
The text was updated successfully, but these errors were encountered: