2 * Copyright 2019 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file hdr_metadata.h
21 #ifndef ANDROID_HDR_METADATA_H
22 #define ANDROID_HDR_METADATA_H
26 #include <sys/cdefs.h>
31 * These structures are used to define the display's capabilities for HDR content.
32 * They can be used to better tone map content to user's display.
36 * HDR metadata standards that are supported by Android.
38 enum AHdrMetadataType
: uint32_t {
45 * Color is defined in CIE XYZ coordinates.
53 * SMPTE ST 2086 "Mastering Display Color Volume" static metadata
55 struct AHdrMetadata_smpte2086
{
56 struct AColor_xy displayPrimaryRed
;
57 struct AColor_xy displayPrimaryGreen
;
58 struct AColor_xy displayPrimaryBlue
;
59 struct AColor_xy whitePoint
;
65 * CTA 861.3 "HDR Static Metadata Extension" static metadata
67 struct AHdrMetadata_cta861_3
{
68 float maxContentLightLevel
;
69 float maxFrameAverageLightLevel
;
74 #endif // ANDROID_HDR_METADATA_H