Video decode: add a flag for OMX IL to pass tiling information

BZ: 151378

add a flag for OMX IL to pass tiling information

Change-Id: Ie876b6cf74c83ba0105729b95ce293edb484a381
Signed-off-by: Li Zeng <li.zeng@intel.com>
Signed-off-by: pingshix <pingx.shi@intel.com>
diff --git a/videodecoder/VideoDecoderBase.cpp b/videodecoder/VideoDecoderBase.cpp
index e231e11..172604d 100644
--- a/videodecoder/VideoDecoderBase.cpp
+++ b/videodecoder/VideoDecoderBase.cpp
@@ -850,6 +850,8 @@
         mVASurfaceAttrib->offsets[3] = 0;
         mVASurfaceAttrib->private_data = (void *)mConfigBuffer.nativeWindow;
         mVASurfaceAttrib->flags = VA_SURFACE_ATTRIB_MEM_TYPE_ANDROID_GRALLOC;
+        if (mConfigBuffer.flag & USE_TILING_MEMORY)
+            mVASurfaceAttrib->flags |= VA_SURFACE_EXTBUF_DESC_ENABLE_TILING;
 
         for (int i = 0; i < mNumSurfaces; i++) {
             mVASurfaceAttrib->buffers[i] = (unsigned int )mConfigBuffer.graphicBufferHandler[i];
diff --git a/videodecoder/VideoDecoderDefs.h b/videodecoder/VideoDecoderDefs.h
index d62ad15..84d90e2 100644
--- a/videodecoder/VideoDecoderDefs.h
+++ b/videodecoder/VideoDecoderDefs.h
@@ -104,6 +104,9 @@
 
     // indicate it's the last output frame of the sequence
     IS_EOS = 0x10000,
+
+    // indicate should allocate tiling surfaces
+    USE_TILING_MEMORY = 0x20000,
 } VIDEO_BUFFER_FLAG;
 
 typedef enum