blob: 18cd487b8ffae0d74f71ece4ffc2504dddd16558 [file] [log] [blame]
Courtney Goeltzenleuchtere06ad182017-03-22 13:09:12 -06001/*
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 Linfd997e02018-03-28 15:29:00 -070019#include <ui/GraphicTypes.h>
Courtney Goeltzenleuchter4f8f3712017-04-14 09:18:26 -060020#include <ui/PixelFormat.h>
Courtney Goeltzenleuchtere06ad182017-03-22 13:09:12 -060021
22#include <string>
23
Kalle Raitaa099a242017-01-11 11:17:29 -080024namespace android {
25class Rect;
Marin Shalamanovf5de90d2019-10-08 10:57:25 +020026struct DeviceProductInfo;
Kalle Raitaa099a242017-01-11 11:17:29 -080027}
28
Courtney Goeltzenleuchtere06ad182017-03-22 13:09:12 -060029std::string decodeStandard(android_dataspace dataspace);
30std::string decodeTransfer(android_dataspace dataspace);
31std::string decodeRange(android_dataspace dataspace);
32std::string dataspaceDetails(android_dataspace dataspace);
Peiyong Linfd997e02018-03-28 15:29:00 -070033std::string decodeColorMode(android::ui::ColorMode colormode);
Yiwei Zhang7c64f172018-03-07 14:52:28 -080034std::string decodeColorTransform(android_color_transform colorTransform);
Courtney Goeltzenleuchter4f8f3712017-04-14 09:18:26 -060035std::string decodePixelFormat(android::PixelFormat format);
Peiyong Lin0e7a7912018-04-05 14:36:36 -070036std::string decodeRenderIntent(android::ui::RenderIntent renderIntent);
Marin Shalamanovf5de90d2019-10-08 10:57:25 +020037std::string toString(const android::DeviceProductInfo&);