diff options
author | Ankit Goyal <layog@google.com> | 2021-09-30 16:33:21 +0800 |
---|---|---|
committer | Ankit Goyal <layog@google.com> | 2021-10-04 18:57:10 +0800 |
commit | 94d6294954a90c45be554bbea26f12b1a2d94fea (patch) | |
tree | b55f04cf08fa42513d3ff855c3e9b78d82f1f0db | |
parent | cfbe775ebb21aa9c1976101cfe52286d229bc75b (diff) | |
download | gchips-94d6294954a90c45be554bbea26f12b1a2d94fea.tar.gz |
Add plane layout for R8 and RG88 formats
Bug: 197289575
Test: Capture shot from UW camera, notice no failure logs
Change-Id: If41bf5501fe5bdb25300b78c8cda34e1dd353645
-rw-r--r-- | gralloc4/src/hidl_common/MapperMetadata.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gralloc4/src/hidl_common/MapperMetadata.cpp b/gralloc4/src/hidl_common/MapperMetadata.cpp index f722cde..ee743db 100644 --- a/gralloc4/src/hidl_common/MapperMetadata.cpp +++ b/gralloc4/src/hidl_common/MapperMetadata.cpp @@ -238,6 +238,20 @@ static std::vector<std::vector<PlaneLayoutComponent>> plane_layout_components_fr /* AFBC Only FourCC */ {.drm_fourcc = DRM_FORMAT_YUV420_8BIT, .components = { {} } }, {.drm_fourcc = DRM_FORMAT_YUV420_10BIT, .components = { {} } }, + + /* Google specific formats */ + { + .drm_fourcc = DRM_FORMAT_R8, + .components = { + { { R, 0, 8 } } + } + }, + { + .drm_fourcc = DRM_FORMAT_RG88, + .components = { + { { R, 0, 8 }, { G, 8, 8 } } + } + }, }; /* clang-format on */ |