Add YUV display support for android Nougat

84 views
Skip to first unread message

SR

unread,
Dec 19, 2018, 4:23:10 AM12/19/18
to Android-x86
Hi,

I want to display YUV data directly on display. Currently my set-up(android-x86 nougat) displaying RGB data through HDMI. 

Is there support for YUV (420sp) in surfaceflinger , opengl, drm_gralloc  and mesa ?

Can we display yuv data without opengl shaders ?

Which modules do  I need to modify to add support for YUV display or playback ?


Thanks in advance

Chih-Wei Huang

unread,
Dec 20, 2018, 2:40:13 AM12/20/18
to Android-x86
SR <sr4sh...@gmail.com> 於 2018年12月19日 週三 下午5:23寫道:
>
> I want to display YUV data directly on display. Currently my set-up(android-x86 nougat) displaying RGB data through HDMI.
>
> Is there support for YUV (420sp) in surfaceflinger , opengl, drm_gralloc and mesa ?

The simple answer is NO.
You are welcome to contribute it.

> Can we display yuv data without opengl shaders ?
>
> Which modules do I need to modify to add support for YUV display or playback ?



--
Chih-Wei
Android-x86 project
http://www.android-x86.org

sr4shantan

unread,
Jan 3, 2019, 8:04:19 AM1/3/19
to andro...@googlegroups.com
Hi chih,

Thanks for the reply.

I have seen NV12 (420sp) code in Mesa platform_android.c under DRI image FourCC. If the pixel format is HAL_PIXEL_FORMAT_YCbCr_420_888 and chroma step is 2 then the format is __DRI_IMAGE_FOURCC_NV12.
If we use drm_gralloc it is using droid_create_image_from_name but the fourcc code gets used in droid_create_image_from_prime_fd.
In drm_gralloc #define GRALLOC_DRM_HANDLE_NUM_FDS 0, if it is zero it is going into droid_create_image_from_name, in which there is no support for YUV.

1). How to invoke FOURCC path droid_create_image_from_prime_fd ?
2). when do we use gbm_gralloc ? which one better compared to drm_gralloc ?
3). Does AMD Ryzen5 GPU uses/supports hw composition ?

Thanks,

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at https://groups.google.com/group/android-x86.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages