gralloc: Add Timed Rendering metadata
Add support to pass new Timed Rendering metadata in gralloc buffer. Change-Id: I078ee218a02935ad4fcc77dad3f2a83fd4574400
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
821831d3ac
commit
1fec9e8def
@@ -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_BufferPermission = {VENDOR_QTI, QTI_BUFFER_PERMISSION};
|
||||||
static const MetadataType MetadataType_MemHandle = {VENDOR_QTI, QTI_MEM_HANDLE};
|
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
|
// 0 is also used as invalid value in standard metadata
|
||||||
static const MetadataType MetadataType_Invalid = {VENDOR_QTI, 0};
|
static const MetadataType MetadataType_Invalid = {VENDOR_QTI, 0};
|
||||||
|
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
// Indicates buffer access permission of its client
|
// Indicates buffer access permission of its client
|
||||||
#define QTI_BUFFER_PERMISSION 10026
|
#define QTI_BUFFER_PERMISSION 10026
|
||||||
#define QTI_MEM_HANDLE 10027
|
#define QTI_MEM_HANDLE 10027
|
||||||
|
#define QTI_TIMED_RENDERING 10028
|
||||||
|
|
||||||
// Used to indicate to framework that internal definitions are used instead
|
// Used to indicate to framework that internal definitions are used instead
|
||||||
#define COMPRESSION_QTI_UBWC 20001
|
#define COMPRESSION_QTI_UBWC 20001
|
||||||
|
|||||||
@@ -142,6 +142,10 @@ struct MetaData_t {
|
|||||||
VideoTimestampInfo videoTsInfo;
|
VideoTimestampInfo videoTsInfo;
|
||||||
BufferPermission bufferPerm[BUFFER_CLIENT_MAX];
|
BufferPermission bufferPerm[BUFFER_CLIENT_MAX];
|
||||||
int64_t memHandle;
|
int64_t memHandle;
|
||||||
|
|
||||||
|
/* Set by clients to indicate that timed rendering will be enabled
|
||||||
|
* or disabled for this buffer. */
|
||||||
|
uint32_t timedRendering;
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace qtigralloc {
|
namespace qtigralloc {
|
||||||
|
|||||||
Reference in New Issue
Block a user