summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUma Mehta <quic_umamehta@quicinc.com>2022-09-28 23:39:53 +0530
committerUma Mehta <quic_umamehta@quicinc.com>2022-12-06 14:06:30 +0530
commitd58863ccdad35a5c98a7e17beee2cf5952320536 (patch)
treeac431fec0e01eedd80cd7197edf0efbd108a1db7
parent6ccdeae2a737d0c2cea06270300c3badb1e74455 (diff)
commonsys-intf-display: add support for early notify metadata
Adding support for early notify metadata line count info. Change-Id: I760bfda68d832f043c1f977280881d7428eeca12
-rw-r--r--gralloc/QtiGralloc.h7
-rw-r--r--gralloc/QtiGrallocMetadata.h6
-rw-r--r--gralloc/QtiGrallocPriv.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/gralloc/QtiGralloc.h b/gralloc/QtiGralloc.h
index c8e4ef8c..f14821c5 100644
--- a/gralloc/QtiGralloc.h
+++ b/gralloc/QtiGralloc.h
@@ -27,6 +27,10 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Changes from Qualcomm Innovation Center are provided under the following license:
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef __QTIGRALLOC_H__
@@ -101,6 +105,9 @@ static const MetadataType MetadataType_VideoTranscodeStats = {VENDOR_QTI,
static const MetadataType MetadataType_VideoTimestampInfo = {VENDOR_QTI, QTI_VIDEO_TS_INFO};
+static const MetadataType MetadataType_VideoEarlyNotifyLineCount = {VENDOR_QTI,
+ QTI_EARLYNOTIFY_LINECOUNT};
+
static const MetadataType MetadataType_FD = {VENDOR_QTI, QTI_FD};
static const MetadataType MetadataType_PrivateFlags = {VENDOR_QTI, QTI_PRIVATE_FLAGS};
diff --git a/gralloc/QtiGrallocMetadata.h b/gralloc/QtiGrallocMetadata.h
index 98a12c67..c3889b2c 100644
--- a/gralloc/QtiGrallocMetadata.h
+++ b/gralloc/QtiGrallocMetadata.h
@@ -27,6 +27,10 @@
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Changes from Qualcomm Innovation Center are provided under the following license:
+ * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause-Clear
*/
#ifndef __QTIGRALLOCMETADATA_H__
@@ -73,6 +77,8 @@
#define QTI_CUSTOM_CONTENT_METADATA 10029
// Video transcode metadata stat
#define QTI_VIDEO_TRANSCODE_STATS 10030
+// Early Notify line count
+#define QTI_EARLYNOTIFY_LINECOUNT 10031
// Used to indicate to framework that internal definitions are used instead
#define COMPRESSION_QTI_UBWC 20001
#define INTERLACED_QTI 20002
diff --git a/gralloc/QtiGrallocPriv.h b/gralloc/QtiGrallocPriv.h
index 56e2b1bc..2214291f 100644
--- a/gralloc/QtiGrallocPriv.h
+++ b/gralloc/QtiGrallocPriv.h
@@ -145,6 +145,7 @@ struct MetaData_t {
uint32_t timedRendering;
/* Video transcode stat populated by video decoder */
struct VideoTranscodeStatsMetadata video_transcode_stats;
+ int32_t videoEarlyNotifyLineCount;
};
namespace qtigralloc {