gralloc: Add Timed Rendering metadata

Add support to pass new Timed Rendering metadata
in gralloc buffer.

Change-Id: I078ee218a02935ad4fcc77dad3f2a83fd4574400
This commit is contained in:
Ray Zhang
2022-03-09 16:04:38 +08:00
committed by Gerrit - the friendly Code Review server
parent 821831d3ac
commit 1fec9e8def
3 changed files with 7 additions and 1 deletions

View File

@@ -130,6 +130,8 @@ static const MetadataType MetadataType_YuvPlaneInfo = {VENDOR_QTI, QTI_YUV_PLANE
static const MetadataType MetadataType_BufferPermission = {VENDOR_QTI, QTI_BUFFER_PERMISSION};
static const MetadataType MetadataType_MemHandle = {VENDOR_QTI, QTI_MEM_HANDLE};
static const MetadataType MetadataType_TimedRendering = {VENDOR_QTI, QTI_TIMED_RENDERING};
// 0 is also used as invalid value in standard metadata
static const MetadataType MetadataType_Invalid = {VENDOR_QTI, 0};

View File

@@ -69,7 +69,7 @@
// Indicates buffer access permission of its client
#define QTI_BUFFER_PERMISSION 10026
#define QTI_MEM_HANDLE 10027
#define QTI_TIMED_RENDERING 10028
// Used to indicate to framework that internal definitions are used instead
#define COMPRESSION_QTI_UBWC 20001

View File

@@ -142,6 +142,10 @@ struct MetaData_t {
VideoTimestampInfo videoTsInfo;
BufferPermission bufferPerm[BUFFER_CLIENT_MAX];
int64_t memHandle;
/* Set by clients to indicate that timed rendering will be enabled
* or disabled for this buffer. */
uint32_t timedRendering;
};
namespace qtigralloc {