summaryrefslogtreecommitdiffstats
path: root/libqdutils/qdMetaData.h
diff options
context:
space:
mode:
authorfeifanz <feifanz@codeaurora.org>2016-03-23 18:48:56 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-05-05 10:24:46 -0700
commit2ca46a4d74f7191d0ee0f4b64ce00de1ca3a4444 (patch)
treebf55f4dc34a54f38bc0c2be0a57c2b88b17d7e33 /libqdutils/qdMetaData.h
parentd4f544e9991929f26e4c9bd98b677e8674fd3a2a (diff)
downloadhardware_qcom_display-2ca46a4d74f7191d0ee0f4b64ce00de1ca3a4444.tar.gz
hardware_qcom_display-2ca46a4d74f7191d0ee0f4b64ce00de1ca3a4444.tar.bz2
hardware_qcom_display-2ca46a4d74f7191d0ee0f4b64ce00de1ca3a4444.zip
qdMetadata: Add MetaData operation functions
1. Change frame rate to float since uint32_t can not match frame rate to standard. 2. Add function of getMetaData() for components to fetch params from MetaData. 2. Add function of CopyMetaData() for components to clone MetaData for different buffers. Change-Id: Iba741215e524254b88f88058052fb6408e1f4a36 CRs-fixed: 1001500
Diffstat (limited to 'libqdutils/qdMetaData.h')
-rw-r--r--libqdutils/qdMetaData.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/libqdutils/qdMetaData.h b/libqdutils/qdMetaData.h
index a1d935012..fd4f4447a 100644
--- a/libqdutils/qdMetaData.h
+++ b/libqdutils/qdMetaData.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -61,7 +61,7 @@ struct MetaData_t {
int32_t operation;
int32_t interlaced;
struct BufferDim_t bufferDim;
- uint32_t refreshrate;
+ float refreshrate;
enum ColorSpace_t colorSpace;
enum IGC_t igc;
/* Gralloc sets PRIV_SECURE_BUFFER flag to inform that the buffers are from
@@ -99,10 +99,26 @@ enum DispParamType {
SET_SINGLE_BUFFER_MODE = 0x4000,
};
+enum DispFetchParamType {
+ GET_PP_PARAM_INTERLACED = 0x0004,
+ GET_BUFFER_GEOMETRY = 0x0080,
+ GET_REFRESH_RATE = 0x0100,
+ GET_COLOR_SPACE = 0x0200,
+ GET_MAP_SECURE_BUFFER = 0x400,
+ GET_S3D_FORMAT = 0x800,
+ GET_LINEAR_FORMAT = 0x1000,
+ GET_IGC = 0x2000,
+ GET_SINGLE_BUFFER_MODE = 0x4000,
+};
+
struct private_handle_t;
int setMetaData(struct private_handle_t *handle, enum DispParamType paramType,
void *param);
+int getMetaData(struct private_handle_t *handle, enum DispFetchParamType paramType,
+ void *param);
+
+int copyMetaData(struct private_handle_t *src, struct private_handle_t *dst);
#ifdef __cplusplus
}
#endif