blob: 6350d0cf956c2e3461279f63364490cb7b795c9c [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;
26}
27
Courtney Goeltzenleuchtere06ad182017-03-22 13:09:12 -060028std::string decodeStandard(android_dataspace dataspace);
29std::string decodeTransfer(android_dataspace dataspace);
30std::string decodeRange(android_dataspace dataspace);
31std::string dataspaceDetails(android_dataspace dataspace);
Peiyong Linfd997e02018-03-28 15:29:00 -070032std::string decodeColorMode(android::ui::ColorMode colormode);
Courtney Goeltzenleuchter4f8f3712017-04-14 09:18:26 -060033std::string decodePixelFormat(android::PixelFormat format);
Kalle Raitaa099a242017-01-11 11:17:29 -080034std::string to_string(const android::Rect& rect);