1 /* 2 * Copyright (C) 2020 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 #ifndef GOLDFISH_OPENGL_SYSTEM_HALS_TYPES_H_INCLUDED 18 #define GOLDFISH_OPENGL_SYSTEM_HALS_TYPES_H_INCLUDED 19 20 /* Tell the emulator which formats need special handling. */ 21 enum class EmulatorFrameworkFormat { 22 GL_COMPATIBLE = 0, 23 YV12 = 1, 24 YUV_420_888 = 2, // (Y+)(U+)(V+) 25 }; 26 27 #ifndef GL_RGBA16F 28 #define GL_RGBA16F 0x881A 29 #endif // GL_RGBA16F 30 31 #ifndef GL_HALF_FLOAT 32 #define GL_HALF_FLOAT 0x140B 33 #endif // GL_HALF_FLOAT 34 35 #ifndef GL_RGB10_A2 36 #define GL_RGB10_A2 0x8059 37 #endif // GL_RGB10_A2 38 39 #ifndef GL_UNSIGNED_INT_2_10_10_10_REV 40 #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368 41 #endif // GL_UNSIGNED_INT_2_10_10_10_REV 42 43 #endif // GOLDFISH_OPENGL_SYSTEM_HALS_TYPES_H_INCLUDED 44