From 3bf8204f89868a885f3485d6095a3e63d6fd5ce7 Mon Sep 17 00:00:00 2001 From: Rajavenu Kyatham Date: Wed, 10 Oct 2018 12:50:12 +0530 Subject: [PATCH] gralloc: Add support for HEIF usage flag. Add new usage flag that can be used to indicate HEIF. Change-Id: If933f0fccff18323a595a712c51258700bbeb1e4 CRs-Fixed: 2318608 --- gralloc/gralloc_priv.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gralloc/gralloc_priv.h b/gralloc/gralloc_priv.h index 45e1240f..77db21ab 100644 --- a/gralloc/gralloc_priv.h +++ b/gralloc/gralloc_priv.h @@ -71,6 +71,11 @@ inline int roundUpToPageSize(int x) { /* This flag is set for WFD usecase */ #define GRALLOC_USAGE_PRIVATE_WFD (UINT32_C(1) << 21) +/* TODO(user): move these to use sanctioned vendor bits + * once end to end 64-bit support is available */ +/* This flag is set for HEIF usecase */ +#define GRALLOC_USAGE_PRIVATE_HEIF (UINT32_C(1) << 27) + /* TODO(user): Remove when clients stop referencing this flag */ #define GRALLOC_USAGE_PRIVATE_10BIT_TP 0