gralloc: Add the support of BLOB as RAW data

We now consider BLOB as a kind of RAW data with variable lengths. The
patch sets its info of PlaneLayoutInfo and PlaneLayoutComponent the same
as RAW10.

Bug: 192625123
Test: VtsHalGraphicsMapperV4_0TargetTest
Test: Open Camera without error log from qdgralloc
Change-Id: Idd8c37877a45f22be14a4efac2755f1a9f5e02e4
diff --git a/gralloc/gr_buf_mgr.cpp b/gralloc/gr_buf_mgr.cpp
index 825d20b..1674058 100644
--- a/gralloc/gr_buf_mgr.cpp
+++ b/gralloc/gr_buf_mgr.cpp
@@ -577,6 +577,7 @@
       break;
     case static_cast<int32_t>(HAL_PIXEL_FORMAT_RAW12):
     case static_cast<int32_t>(HAL_PIXEL_FORMAT_RAW10):
+    case static_cast<int32_t>(HAL_PIXEL_FORMAT_BLOB):
       if (comp.type.value == android::gralloc4::PlaneLayoutComponentType_RAW.value) {
         comp.offsetInBits = 0;
         comp.sizeInBits = -1;
diff --git a/gralloc/gr_utils.cpp b/gralloc/gr_utils.cpp
index 668e7c1..86159a6 100644
--- a/gralloc/gr_utils.cpp
+++ b/gralloc/gr_utils.cpp
@@ -641,6 +641,7 @@
       break;
     case HAL_PIXEL_FORMAT_RAW12:
     case HAL_PIXEL_FORMAT_RAW10:
+    case HAL_PIXEL_FORMAT_BLOB:
       step = 0;
       break;
     default:
@@ -1411,6 +1412,7 @@
     case HAL_PIXEL_FORMAT_RAW8:
     case HAL_PIXEL_FORMAT_RAW16:
     case HAL_PIXEL_FORMAT_RAW12:
+    case HAL_PIXEL_FORMAT_BLOB:
       *plane_count = 1;
       GetRawPlaneInfo(format, info.width, info.height, plane_info);
       break;