• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2024 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
17syntax = "proto2";
18
19package android.coregraphics;
20
21option java_package = "com.android.os.coregraphics";
22option java_multiple_files = true;
23
24// ColorSpace transfer
25// The ColorSpace transfer corresponds to skcms types, so these are not exact
26// transfers. E.g., SRGB is really a transfer curve that "looks" like an sRGB
27// transfer, but may use different constants
28enum ColorSpaceTransfer {
29    COLOR_SPACE_TRANSFER_UNKNOWN = 0;
30    COLOR_SPACE_TRANSFER_SRGBISH = 1;
31    COLOR_SPACE_TRANSFER_PQISH = 2;
32    COLOR_SPACE_TRANSFER_HLGISH = 3;
33}
34
35// Bitmap formats
36// Deprecated formats like ARGB4444 map to UNKNOWN
37enum BitmapFormat {
38    BITMAP_FORMAT_UNKNOWN = 0;
39    BITMAP_FORMAT_A_8 = 1;
40    BITMAP_FORMAT_RGB_565 = 2;
41    BITMAP_FORMAT_ARGB_8888 = 3;
42    BITMAP_FORMAT_RGBA_F16 = 4;
43    BITMAP_FORMAT_RGBA_1010102 = 5;
44}
45