Fix the wifi display fail problem.

BZ:154696

Solve  the gfx color format unsupported problem which could
make the wifi display use case work.

Change-Id: I1fde2496967985ad90a25c16993259020a05e23d
Signed-off-by: gji2 <guoliang.ji@intel.com>
diff --git a/videoencoder/VideoEncoderUtils.cpp b/videoencoder/VideoEncoderUtils.cpp
index 917e8da..210881e 100644
--- a/videoencoder/VideoEncoderUtils.cpp
+++ b/videoencoder/VideoEncoderUtils.cpp
@@ -164,6 +164,8 @@
     /* only support OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar
                                 HAL_PIXEL_FORMAT_NV12
                                 HAL_PIXEL_FORMAT_BGRA_8888
+                                HAL_PIXEL_FORMAT_RGBA_8888
+                                HAL_PIXEL_FORMAT_RGBX_8888
                                 HAL_PIXEL_FORMAT_BGRX_8888 */
     IMG_native_handle_t* h = (IMG_native_handle_t*) handle;
 
@@ -183,7 +185,9 @@
             vinfo.lumaStride = 512;
     #endif
     } else if ((h->iFormat == HAL_PIXEL_FORMAT_BGRA_8888)||
-              ((h->iFormat == HAL_PIXEL_FORMAT_BGRX_8888))) {
+                  (h->iFormat == HAL_PIXEL_FORMAT_RGBA_8888)||
+                  (h->iFormat == HAL_PIXEL_FORMAT_RGBX_8888)||
+                  (h->iFormat == HAL_PIXEL_FORMAT_BGRX_8888)) {
         vinfo.lumaStride = (h->iWidth + 31) & ~31;
     } else if (h->iFormat == OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar) {
         //nothing to do