1 /* 2 * Copyright (C) 2021 HiHope Open Source Organization . 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef IVCommon_Ext_h 17 #define IVCommon_Ext_h 18 19 typedef enum OMX_COLOR_FORMATEXTTYPE { 20 OMX_COLOR_FormatAndroidOpaque = 0x7F000789, 21 }OMX_COLOR_FORMATEXTTYPE; 22 23 typedef enum { 24 HAL_PIXEL_FORMAT_sRGB_A_8888 = 0xC, 25 HAL_PIXEL_FORMAT_sRGB_X_8888 = 0xD, 26 27 HAL_PIXEL_FORMAT_YCbCr_422_I = 0x14, 28 HAL_PIXEL_FORMAT_YCrCb_NV12 = 0x15, // YUY2 29 HAL_PIXEL_FORMAT_YCrCb_NV12_VIDEO = 0x16, 30 HAL_PIXEL_FORMAT_YCrCb_NV12_10 = 0x17, // YUY2_1obit 31 HAL_PIXEL_FORMAT_YCbCr_422_SP_10 = 0x18, // 32 HAL_PIXEL_FORMAT_YCrCb_420_SP_10 = 0x19, // 33 34 HAL_PIXEL_FORMAT_YUV420_8BIT_I = 0x1A, // 420I 8bit 35 HAL_PIXEL_FORMAT_YUV420_10BIT_I = 0x1B, // 420I 10bit 36 HAL_PIXEL_FORMAT_Y210 = 0x1C, // 422I 10bit 37 38 HAL_PIXEL_FORMAT_BPP_1 = 0x30, 39 HAL_PIXEL_FORMAT_BPP_2 = 0x31, 40 HAL_PIXEL_FORMAT_BPP_4 = 0x32, 41 HAL_PIXEL_FORMAT_BPP_8 = 0x33, 42 HAL_PIXEL_FORMAT_YCbCr_420_888, 43 HAL_PIXEL_FORMAT_YV12, 44 HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED, 45 }rk_pixel_format_t; 46 47 enum { 48 HAL_PIXEL_FORMAT_RGBA_8888 = 1, 49 HAL_PIXEL_FORMAT_RGBX_8888 = 2, 50 HAL_PIXEL_FORMAT_RGB_888 = 3, 51 HAL_PIXEL_FORMAT_RGB_565 = 4, 52 HAL_PIXEL_FORMAT_BGRA_8888 = 5 53 }; 54 55 #endif