Frame data from android camera is YUV420sp format, but now FastCV can only convert it to XBGR8888 format
(MSB unused, R in LSB).
However the most frequently used RGB format in Android is ARGB8888(A in MSB, B in LSB), such as Bitmap
https://developer.android.com/reference/android/graphics/Bitmap.Config.html
Request:
Add YUV420sp to ARGB8888 conversion tool to FastCV.
Additionally, also add a parameter to the function input to specify a global alpha value.
Additionally, add XRGB8888 version to all functions that already support XBGR8888.
Thank you.
Dehuan
Hi,
Thank you for the feedback and request. We will take it into consideration. There are too many color formats and the permutation is overwhelming. In the meantime please consider if two-step approach works for you. There is this API to swap the RGB channels.
https://developer.qualcomm.com/docs/fastcv/api/group__color__conversion....
Cheers,
-Jeff