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 Other_Ext_h 17 #define Other_Ext_h 18 19 #include <OMX_Core.h> 20 /** 21 * colorspace 22 */ 23 typedef enum OMX_ROCKCHIP_EXT_COLORSPACE { 24 OMX_RK_EXT_ColorspaceBT709 = 1, 25 OMX_RK_EXT_ColorspaceBT2020, 26 OMX_RK_EXT_ColorspaceMax = 0x7FFFFFFF 27 } OMX_RK_EXT_COLORSPACE; 28 29 /** 30 * dynamic range 31 */ 32 typedef enum OMX_ROCKCHIP_EXT_DYNCRANGE { 33 OMX_RK_EXT_DyncrangeSDR = 0, 34 OMX_RK_EXT_DyncrangeHDR10, 35 OMX_RK_EXT_DyncrangeHDRHLG, 36 OMX_RK_EXT_DyncrangeHDRDOLBY, 37 OMX_RK_EXT_DyncrangeMax = 0x7FFFFFFF 38 } OMX_RK_EXT_DYNCRANGE; 39 40 /* Structure Rockchip extension HDR param of the component */ 41 typedef struct OMX_EXTENSION_VIDEO_PARAM_HDR { 42 OMX_U32 nSize; /**< size of the structure in bytes */ 43 OMX_VERSIONTYPE nVersion; /**< OMX specification version information */ 44 OMX_RK_EXT_COLORSPACE eColorSpace; /**< Color space */ 45 OMX_RK_EXT_DYNCRANGE eDyncRange; /**< dynamic range */ 46 } OMX_EXTENSION_VIDEO_PARAM_HDR; 47 48 #endif