• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16package ohos.hdi.display.graphic.common.v1_0;
17
18struct BufferHandleMetaRegion {
19    unsigned int left;
20    unsigned int top;
21    unsigned int width;
22    unsigned int height;
23};
24
25enum BufferHandleAttrKey {
26    /* 0-2047 OS standard meta type */
27    ATTRKEY_COLORSPACE_INFO = 1,            // value: CM_ColorSpaceInfo
28    ATTRKEY_COLORSPACE_TYPE,                // value: CM_ColorSpaceType
29    ATTRKEY_HDR_METADATA_TYPE,              // value: CM_HDRMetaDataType
30
31    ATTRKEY_HDR_STATIC_METADATA,            // value: HdrStaticMetadata
32    ATTRKEY_HDR_DYNAMIC_METADATA,           // byte stream of SEI in video stream
33
34    ATTRKEY_HDR_PROCESSED,                  // value: int
35    ATTRKEY_CROP_REGION,                    // value: Meta_Rect_Region
36    ATTRKEY_EXPECT_FPS,                     // value: int
37    ATTRKEY_DATA_ACCESS,                    // value: int
38
39    /* vendor internal extended meta type */
40    ATTRKEY_VENDOR_EXT_START = 2048,
41
42    /* temporarily extended meta type, between system and vendor */
43    ATTRKEY_OEM_EXT_START = 4096,
44    ATTRKEY_END = 8192
45};