VE: resolve compile issue on baytrail

BZ: 94688

Remove dependance on IMG legacy data structure.

Change-Id: Id09e9dd4317f3da1938e7ade6605113a35c40d75
Signed-off-by: Chang Ying <ying.chang@intel.com>
Reviewed-on: http://android.intel.com:8080/97699
Reviewed-by: cactus <cactus@intel.com>
Reviewed-by: Feng, Wei <wei.feng@intel.com>
Reviewed-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Tested-by: Gummadi, Latha C <latha.c.gummadi@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
diff --git a/videoencoder/VideoEncoderBase.cpp b/videoencoder/VideoEncoderBase.cpp
index bfc4da7..04250ab 100644
--- a/videoencoder/VideoEncoderBase.cpp
+++ b/videoencoder/VideoEncoderBase.cpp
@@ -11,7 +11,6 @@
 #include "IntelMetadataBuffer.h"
 #include <va/va_tpi.h>
 #include <va/va_android.h>
-#include <hal/hal_public.h>
 
 // API declaration
 extern "C" {
@@ -1544,20 +1543,20 @@
 
     vaSurfaceAttrib.count = 1;
     // color fmrat may be OMX_INTEL_COLOR_FormatYUV420PackedSemiPlanar or HAL_PIXEL_FORMAT_NV12
-    IMG_native_handle_t* h = (IMG_native_handle_t*) map->value;
-    LOG_I("IMG_native_handle_t h->iWidth=%d, h->iHeight=%d, h->iFormat=%x\n", h->iWidth, h->iHeight, h->iFormat);
+    //IMG_native_handle_t* h = (IMG_native_handle_t*) map->value;
+    //LOG_I("IMG_native_handle_t h->iWidth=%d, h->iHeight=%d, h->iFormat=%x\n", h->iWidth, h->iHeight, h->iFormat);
 
-    vaSurfaceAttrib.luma_stride = h->iWidth;
-    vaSurfaceAttrib.pixel_format = h->iFormat;
-    vaSurfaceAttrib.width = h->iWidth;
-    vaSurfaceAttrib.height = h->iHeight;
+    vaSurfaceAttrib.luma_stride = map->vinfo.lumaStride;
+    vaSurfaceAttrib.pixel_format = map->vinfo.format;
+    vaSurfaceAttrib.width = map->vinfo.width;
+    vaSurfaceAttrib.height = map->vinfo.height;
     vaSurfaceAttrib.type = VAExternalMemoryAndroidGrallocBuffer;
     vaSurfaceAttrib.buffers[0] = (uint32_t) map->value;
 
     vaStatus = vaCreateSurfacesWithAttribute(
             mVADisplay,
-            h->iWidth,
-            h->iHeight,
+            map->vinfo.width,
+            map->vinfo.height,
             VA_RT_FORMAT_YUV420,
             1,
             &surface,