Forums - Feature request: YUV420sp to ARGB8888 conversion tool.

2 posts / 0 new
Last post
Feature request: YUV420sp to ARGB8888 conversion tool.
dehuan
Join Date: 21 Sep 17
Posts: 1
Posted: Thu, 2017-09-21 14:10

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

  • Up0
  • Down0
jeff4s Moderator
Join Date: 4 Nov 12
Posts: 106
Posted: Thu, 2017-09-21 18:07

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

 

 

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.