-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰[4.0.0-beta.15] AHardwareBuffer has unknown format (35) - cannot convert to SkImage! #2752
Comments
Unfortunately, then resize plugin (https://github.com/mrousavy/vision-camera-resize-plugin) doesn't work: |
Yea you need As for the resize-plugin; hm, this situation sucks a bit. I guess I can add rgb support to the resize plugin |
Hi, I'm not sure, why this was closed as completed as the bug is still present. I've just created PR in resize plugin repo solving it: mrousavy/vision-camera-resize-plugin#64 |
That's a different bug - the issue is in Skia because Skia cannot work with YUV on Android yet. It needs to be RGB. On iOS, it can be both. |
Btw. I think the bug is fixed now. I checked code fro mthe description one more time and it works on Android now 馃槃 |
Has this been fixed? Can we use YUV? |
What's happening?
I get
AHardwareBuffer has unknown format (35) - cannot convert to SkImage!
error when trying to run basic example with skia frame processor. I found out it's related to pixel format:https://developer.android.com/ndk/reference/group/a-hardware-buffer
RN Skia library expects type 1, and vision camera provides type 35.
The problem disappears when changeing
pixelFormat
torgb
inCamera
props. Previouslyrgb
was not working but maybe that changed in this version.Android 12
RN Vision Camera 4.0.0-beta.15
"@shopify/react-native-skia": "^1.2.1"
Reproduceable Code
Relevant log output
Camera Device
Device
Redmi Note Pro 9
VisionCamera Version
4.0.0-beta.15
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (鈿狅笍 your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: