Courtney Goeltzenleuchter | e06ad18 | 2017-03-22 13:09:12 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 The Android Open Source Project |
| 3 | * |
| 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 |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 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. |
| 15 | */ |
| 16 | |
| 17 | #pragma once |
| 18 | |
Peiyong Lin | fd997e0 | 2018-03-28 15:29:00 -0700 | [diff] [blame] | 19 | #include <ui/GraphicTypes.h> |
Courtney Goeltzenleuchter | 4f8f371 | 2017-04-14 09:18:26 -0600 | [diff] [blame] | 20 | #include <ui/PixelFormat.h> |
Courtney Goeltzenleuchter | e06ad18 | 2017-03-22 13:09:12 -0600 | [diff] [blame] | 21 | |
| 22 | #include <string> |
| 23 | |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 24 | namespace android { |
| 25 | class Rect; |
Marin Shalamanov | f5de90d | 2019-10-08 10:57:25 +0200 | [diff] [blame] | 26 | struct DeviceProductInfo; |
Kalle Raita | a099a24 | 2017-01-11 11:17:29 -0800 | [diff] [blame] | 27 | } |
| 28 | |
Courtney Goeltzenleuchter | e06ad18 | 2017-03-22 13:09:12 -0600 | [diff] [blame] | 29 | std::string decodeStandard(android_dataspace dataspace); |
| 30 | std::string decodeTransfer(android_dataspace dataspace); |
| 31 | std::string decodeRange(android_dataspace dataspace); |
| 32 | std::string dataspaceDetails(android_dataspace dataspace); |
Peiyong Lin | fd997e0 | 2018-03-28 15:29:00 -0700 | [diff] [blame] | 33 | std::string decodeColorMode(android::ui::ColorMode colormode); |
Yiwei Zhang | 7c64f17 | 2018-03-07 14:52:28 -0800 | [diff] [blame] | 34 | std::string decodeColorTransform(android_color_transform colorTransform); |
Courtney Goeltzenleuchter | 4f8f371 | 2017-04-14 09:18:26 -0600 | [diff] [blame] | 35 | std::string decodePixelFormat(android::PixelFormat format); |
Peiyong Lin | 0e7a791 | 2018-04-05 14:36:36 -0700 | [diff] [blame] | 36 | std::string decodeRenderIntent(android::ui::RenderIntent renderIntent); |
Marin Shalamanov | f5de90d | 2019-10-08 10:57:25 +0200 | [diff] [blame] | 37 | std::string toString(const android::DeviceProductInfo&); |