-
Notifications
You must be signed in to change notification settings - Fork 16
vid: remove pixel formats RGB555 and RGB565 #29
Conversation
I was using VID_FMT_RGB565 in my Android app. With what format should I replace it? |
I tried with VID_FMT_RGB32 and VID_FMT_YUV444P. With VID_FMT_RGB32 there was colorful garbage on the screen and with VID_FMT_YUV444P screen stayed black. Please bring the removed format back unless a working alternative is found. The code where I use the format goes like this:
|
Tried all formats bpp >= 16 and all of them failed to work. Either colorful garbage or black screen. |
With
And with |
Looks like these are the only supported formats on android: https://developer.android.com/reference/android/graphics/Bitmap.Config If I interpret the documention correctly the prefered one is: https://developer.android.com/reference/android/graphics/Bitmap.Config#ARGB_8888 https://developer.android.com/reference/android/graphics/Bitmap.Config#RGB_565 |
Can you try |
With
Am I missing some module that does the conversion? |
I see, we have no conversion function: https://github.com/baresip/rem/blob/main/src/vidconv/vconv.c#L644-L661 |
So best would be to add support for |
There has been reports on the net that ARGB_8888 performance can be very bad. So better to stick to VID_FMT_RGB565. |
proposal to remove pixel formats with low bit depth