From 6a8f43db21133816f994528967d3a1ca082b6d05 Mon Sep 17 00:00:00 2001 From: zhjs Date: Sat, 22 Feb 2025 10:02:38 +0800 Subject: [PATCH] adaptive fov Signed-off-by: zhjs --- display/graphic/common/v2_1/BUILD.gn | 5 ++- .../common/v2_1/BufferHandleMetaKeyType.idl | 33 +++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 display/graphic/common/v2_1/BufferHandleMetaKeyType.idl diff --git a/display/graphic/common/v2_1/BUILD.gn b/display/graphic/common/v2_1/BUILD.gn index 3dc0b995..8a6bb051 100644 --- a/display/graphic/common/v2_1/BUILD.gn +++ b/display/graphic/common/v2_1/BUILD.gn @@ -21,7 +21,10 @@ hdi("display_commontype") { "//drivers/interface/display/graphic/common/v2_0:libdisplay_commontype_stub_2.0", ] - sources = [ "CMColorSpace.idl" ] + sources = [ + "BufferHandleMetaKeyType.idl", + "CMColorSpace.idl", + ] language = "cpp" subsystem_name = "hdf" diff --git a/display/graphic/common/v2_1/BufferHandleMetaKeyType.idl b/display/graphic/common/v2_1/BufferHandleMetaKeyType.idl new file mode 100644 index 00000000..0d810c02 --- /dev/null +++ b/display/graphic/common/v2_1/BufferHandleMetaKeyType.idl @@ -0,0 +1,33 @@ +/* + * 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 5.1 + * @version 2.1 + */ + +package ohos.hdi.display.graphic.common.v2_1; +import ohos.hdi.display.graphic.common.v2_0.BufferHandleMetaKeyType; + +/** + * @ brief Enumerates buffer handle attribution keys. + * + */ +enum BufferHandleAttrKey : ohos.hdi.display.graphic.common.v2_0.BufferHandleAttrKey { + ATTRKEY_VIDEO_TV_PQ = 2049, // value: TvPQMetadata + ATTRKEY_ADAPTIVE_FOV_METADATA = 2050, // value: byte stream of look up table +}; \ No newline at end of file -- Gitee