diff --git a/display/bundle.json b/display/bundle.json index 714d2ba72f988e300acc22f32522f2bd8d9d7fa3..f2392dcb3fca2b9561cbb3daec50f9d0b42de675 100644 --- a/display/bundle.json +++ b/display/bundle.json @@ -55,7 +55,8 @@ "//drivers/interface/display/graphic/common/v1_0:display_commontype_idl_target", "//drivers/interface/display/graphic/common/v1_1:display_commontype_idl_target", "//drivers/interface/display/graphic/common/v2_0:display_commontype_idl_target", - "//drivers/interface/display/graphic/common/v2_1:display_commontype_idl_target" + "//drivers/interface/display/graphic/common/v2_1:display_commontype_idl_target", + "//drivers/interface/display/graphic/common/v2_2:display_commontype_idl_target" ], "inner_kits": [ { @@ -330,6 +331,14 @@ "header_base": "//drivers/interface/display/graphic/common" } }, + { + "name": "//drivers/interface/display/graphic/common/v2_2:libdisplay_commontype_proxy_2.2", + "header": { + "header_files": [ + ], + "header_base": "//drivers/interface/display/graphic/common" + } + }, { "name": "//drivers/interface/display/graphic/common/v2_1:display_commontype_idl_headers_2.1", "header": { @@ -338,6 +347,14 @@ "header_base": "//drivers/interface/display/graphic/common" } }, + { + "name": "//drivers/interface/display/graphic/common/v2_2:display_commontype_idl_headers_2.2", + "header": { + "header_files": [ + ], + "header_base": "//drivers/interface/display/graphic/common" + } + }, { "name": "//drivers/interface/display/v1_0:libdisplay_gralloc", "header": { diff --git a/display/graphic/common/v2_2/BUILD.gn b/display/graphic/common/v2_2/BUILD.gn new file mode 100644 index 0000000000000000000000000000000000000000..672b7e72c16974911051dfb96b8c6830314d6295 --- /dev/null +++ b/display/graphic/common/v2_2/BUILD.gn @@ -0,0 +1,31 @@ +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import("//build/config/components/hdi/hdi.gni") + +hdi("display_commontype") { + module_name = "display_commontype" + + proxy_deps = [ "../v2_1:libdisplay_commontype_proxy_2.1" ] + + stub_deps = [ "../v2_1:libdisplay_commontype_stub_2.1" ] + + sources = [ + "BufferHandleMetaKeyType.idl", + "CMColorSpace.idl", + ] + + language = "cpp" + subsystem_name = "hdf" + part_name = "drivers_interface_display" +} diff --git a/display/graphic/common/v2_2/BufferHandleMetaKeyType.idl b/display/graphic/common/v2_2/BufferHandleMetaKeyType.idl new file mode 100644 index 0000000000000000000000000000000000000000..b3d8175dca229559198906bdf8e25ff911730633 --- /dev/null +++ b/display/graphic/common/v2_2/BufferHandleMetaKeyType.idl @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup HdiDisplay + * + * @since 6.0 + * @version 2.2 + */ + +package ohos.hdi.display.graphic.common.v2_2; +import ohos.hdi.display.graphic.common.v2_1.BufferHandleMetaKeyType; + +/** + * @ brief Enumerates buffer handle attribution keys. + * + */ +enum BufferHandleAttrKey : ohos.hdi.display.graphic.common.v2_1.BufferHandleAttrKey { + ATTRKEY_VIDEO_AI_HDR_LUT = 4099, // value: grid lut for video aihdr +}; \ No newline at end of file diff --git a/display/graphic/common/v2_2/CMColorSpace.idl b/display/graphic/common/v2_2/CMColorSpace.idl new file mode 100644 index 0000000000000000000000000000000000000000..9f6fdead3913fd70f8854522b385b9d1d166b7d5 --- /dev/null +++ b/display/graphic/common/v2_2/CMColorSpace.idl @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @addtogroup HdiDisplay + * + * @brief Define the clolor space Key interface of the display module. + * + * This module provides the clolor space types used by the driver interface for the upper-level graphics service. + * + * @since 6.0 + * @version 2.2 + */ + +/** + * @file CMColorSpace.idl + * @brief Declares the clolor space types used by the interfaces related to clolor space Meta Key operations. + * + */ + +package ohos.hdi.display.graphic.common.v2_2; +import ohos.hdi.display.graphic.common.v2_1.CMColorSpace; + +/** + * @brief Enumerates the HDR metadata Attr Key types. + * + */ +enum CM_HDR_Metadata_Type : ohos.hdi.display.graphic.common.v2_1.CM_HDR_Metadata_Type { + CM_VIDEO_AI_HDR_HIGH_LIGHT = 61, // video aihdr type for high light + CM_VIDEO_AI_HDR_COLOR_ENHANCE = 62, // video aihdr type for color enhance +}; \ No newline at end of file