1 /* 2 * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 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 __HI_COMMON_ADAPT_H__ 17 #define __HI_COMMON_ADAPT_H__ 18 19 #include "autoconf.h" 20 #include "hi_type.h" 21 #include "hi_defines.h" 22 #include "hi_common.h" 23 24 25 #ifdef __cplusplus 26 #if __cplusplus 27 extern "C" { 28 #endif 29 #endif /* end of #ifdef __cplusplus */ 30 31 typedef struct { 32 hi_char version[VERSION_NAME_MAXLEN]; 33 } hi_mpp_version; 34 35 typedef hi_s32 hi_ai_chn; 36 typedef hi_s32 hi_ao_chn; 37 typedef hi_s32 hi_aenc_chn; 38 typedef hi_s32 hi_adec_chn; 39 typedef hi_s32 hi_audio_dev; 40 typedef hi_s32 hi_vi_dev; 41 typedef hi_s32 hi_vi_pipe; 42 typedef hi_s32 hi_vi_chn; 43 typedef hi_s32 hi_vi_stitch_grp; 44 typedef hi_s32 hi_vi_mcf_grp; 45 typedef hi_s32 hi_vo_dev; 46 typedef hi_s32 hi_vo_layer; 47 typedef hi_s32 hi_vo_chn; 48 typedef hi_s32 hi_vo_wbc; 49 typedef hi_s32 hi_graphic_layer; 50 typedef hi_s32 hi_venc_chn; 51 typedef hi_s32 hi_vdec_chn; 52 typedef hi_s32 hi_ive_handle; 53 typedef hi_s32 hi_cls_handle; 54 typedef hi_s32 hi_fd_chn; 55 typedef hi_s32 hi_md_chn; 56 typedef hi_s32 hi_isp_dev; 57 typedef hi_s32 hi_blk_dev; 58 typedef hi_s32 hi_sensor_id; 59 typedef hi_s32 hi_mipi_dev; 60 typedef hi_s32 hi_slave_dev; 61 typedef hi_s32 hi_svp_nnie_handle; 62 typedef hi_s32 hi_svp_dsp_handle; 63 typedef hi_s32 hi_svp_alg_chn; 64 typedef hi_s32 hi_vpss_grp; 65 typedef hi_s32 hi_vpss_grp_pipe; 66 typedef hi_s32 hi_vpss_chn; 67 typedef hi_s32 hi_avs_grp; 68 typedef hi_s32 hi_avs_pipe; 69 typedef hi_s32 hi_avs_chn; 70 typedef hi_s32 hi_mcf_grp; 71 typedef hi_s32 hi_mcf_pipe; 72 typedef hi_s32 hi_mcf_chn; 73 74 typedef MOD_ID_E hi_mod_id; 75 76 typedef struct { 77 hi_mod_id mod_id; 78 hi_s32 dev_id; 79 hi_s32 chn_id; 80 } hi_mpp_chn; 81 82 typedef PAYLOAD_TYPE_E hi_payload_type; 83 84 #ifdef __cplusplus 85 #if __cplusplus 86 } 87 #endif 88 #endif /* end of #ifdef __cplusplus */ 89 90 #endif /* __HI_COMMON_ADAPT_H__ */ 91 92