diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2022-05-18 12:18:43 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2022-05-18 12:18:43 -0700 |
commit | 40db17ac49bb2e0ecbdeef58f506442b8068f74d (patch) | |
tree | 47746c3ee691cb60ba88d1d05f3d6faa3ed618a7 | |
parent | 25824d4e1a6354ba386cb738b68c82f2de1a264d (diff) | |
parent | 0cb6e516e6f5b58009c0ad93815cf7115b580684 (diff) |
Merge 0cb6e516e6f5b58009c0ad93815cf7115b580684 on remote branch
Change-Id: Ie965a4199df9268a66d936e29e8fe9622e8bd241
-rw-r--r-- | gralloc/QtiGralloc.h | 2 | ||||
-rw-r--r-- | gralloc/QtiGrallocMetadata.h | 2 | ||||
-rw-r--r-- | gralloc/QtiGrallocPriv.h | 7 | ||||
-rw-r--r-- | gralloc/gralloc_priv.h | 37 | ||||
-rw-r--r-- | include/display_color_processing.h | 41 | ||||
-rw-r--r-- | include/smomo_interface.h | 4 | ||||
-rw-r--r-- | libqdmetadata/qdMetaData.h | 40 |
7 files changed, 125 insertions, 8 deletions
diff --git a/gralloc/QtiGralloc.h b/gralloc/QtiGralloc.h index 8055ab86..c95368aa 100644 --- a/gralloc/QtiGralloc.h +++ b/gralloc/QtiGralloc.h @@ -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}; diff --git a/gralloc/QtiGrallocMetadata.h b/gralloc/QtiGrallocMetadata.h index 9fa29914..506fd2e9 100644 --- a/gralloc/QtiGrallocMetadata.h +++ b/gralloc/QtiGrallocMetadata.h @@ -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 diff --git a/gralloc/QtiGrallocPriv.h b/gralloc/QtiGrallocPriv.h index 59c55d9e..13d8f8b8 100644 --- a/gralloc/QtiGrallocPriv.h +++ b/gralloc/QtiGrallocPriv.h @@ -78,9 +78,6 @@ #include "QtiGrallocMetadata.h" -#ifndef __QTI_DISPLAY_GRALLOC__ -#pragma message "QtiGrallocPriv.h should not be included" -#endif /* * @@ -142,6 +139,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 { diff --git a/gralloc/gralloc_priv.h b/gralloc/gralloc_priv.h index 2ca0146f..8750c3ca 100644 --- a/gralloc/gralloc_priv.h +++ b/gralloc/gralloc_priv.h @@ -17,6 +17,42 @@ * limitations under the License. */ +/* + * Changes from Qualcomm Innovation Center are provided under the following license: + * + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 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. + */ + #ifndef __GRALLOC_PRIV_H__ #define __GRALLOC_PRIV_H__ @@ -26,7 +62,6 @@ #include "QtiGrallocDefs.h" #include "gr_priv_handle.h" -#pragma message "Warning: gralloc_priv.h is deprecated" #define GRALLOC_PROP_PREFIX "vendor.gralloc." #define GRALLOC_PROP(prop_name) GRALLOC_PROP_PREFIX prop_name diff --git a/include/display_color_processing.h b/include/display_color_processing.h index 59b1c322..189b8341 100644 --- a/include/display_color_processing.h +++ b/include/display_color_processing.h @@ -27,6 +27,42 @@ * 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. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted (subject to the limitations in the + * disclaimer below) provided that the following conditions are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * * Neither the name of Qualcomm Innovation Center, Inc. nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE + * GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT + * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR + * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 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. + */ + #ifndef __DISP_COLOR_PROCESSING_H__ #define __DISP_COLOR_PROCESSING_H__ @@ -36,6 +72,7 @@ extern "C" { #endif +#define DISP_DE_LPF_BLEND #define LUT3D_ENTRIES_SIZE (17 * 17 * 17) #define LUT3D_GC_ENTRIES_SIZE 1024 @@ -94,6 +131,7 @@ static const uint32_t kDeTuningFlagThrLow = 0x10; static const uint32_t kDeTuningFlagThrHigh = 0x20; static const uint32_t kDeTuningFlagContentQualLevel = 0x40; static const uint32_t kDeTuningFlagDeBlend = 0x80; +static const uint32_t kDeTuningFlagDeLpfBlend = 0x100; typedef enum { kDeContentQualUnknown, @@ -124,6 +162,9 @@ struct PPDETuningCfg { PPDEContentQualLevel quality; PPDEContentType content_type; uint32_t de_blend; + uint32_t de_lpf_h; + uint32_t de_lpf_m; + uint32_t de_lpf_l; }; struct PPDETuningCfgData { diff --git a/include/smomo_interface.h b/include/smomo_interface.h index 84681da9..322b7155 100644 --- a/include/smomo_interface.h +++ b/include/smomo_interface.h @@ -70,10 +70,13 @@ #include <sys/types.h> #include <ui/Fence.h> +#include <cutils/native_handle.h> #include <vector> #include <string> +#define TIMED_RENDERING_METADATA_FEATURE 1 + namespace smomo { #define SMOMO_LIBRARY_NAME "libsmomo.qti.so" @@ -108,6 +111,7 @@ struct SmomoBufferStats { nsecs_t timestamp; // layer buffer's desired present timestamp nsecs_t dequeue_latency; // last dequeue duration int64_t key; // buffer identity + buffer_handle_t buffer_hnd; // layer buffer handle }; enum DisplayType { diff --git a/libqdmetadata/qdMetaData.h b/libqdmetadata/qdMetaData.h index 75163806..ebf0175a 100644 --- a/libqdmetadata/qdMetaData.h +++ b/libqdmetadata/qdMetaData.h @@ -27,6 +27,43 @@ * 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. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted (subject to the limitations in the +* disclaimer below) provided that the following conditions are met: +* +* * Redistributions of source code must retain the above copyright +* notice, this list of conditions and the following disclaimer. +* +* * Redistributions in binary form must reproduce the above +* copyright notice, this list of conditions and the following +* disclaimer in the documentation and/or other materials provided +* with the distribution. +* +* * Neither the name of Qualcomm Innovation Center, Inc. nor the +* names of its contributors may be used to endorse or promote +* products derived from this software without specific prior +* written permission. +* +* NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE +* GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT +* HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 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. +*/ + #ifndef _QDMETADATA_H #define _QDMETADATA_H @@ -41,9 +78,6 @@ #include <QtiGrallocPriv.h> #endif -#ifndef __QTI_DISPLAY_GRALLOC__ -#pragma message "qdMetaData.h is being deprecated" -#endif #ifdef __cplusplus extern "C" { |