1 /* 2 * Copyright 2021 Rockchip Electronics Co. LTD 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 18 #ifndef INCLUDE_RT_MPI_RK_DEFINES_H_ 19 #define INCLUDE_RT_MPI_RK_DEFINES_H_ 20 21 /* Automatic generated [rv1109] config */ 22 23 #ifdef __cplusplus 24 #if __cplusplus 25 extern "C" { 26 #endif 27 #endif /* __cplusplus */ 28 29 /* For VENC */ 30 #define VENC_MAX_CHN_NUM 16 31 #define VENC_MAX_ROI_NUM 8 32 33 /* For VDEC */ 34 #define VDEC_MAX_CHN_NUM 64 35 36 /* For Region */ 37 #define RGN_MAX_HANDLE_NUM 128 38 #define RGN_EXTRA_DEVICE_TYPE 1 39 40 /* For VI */ 41 /* number of channle and device on video input unit of chip 42 * Note! VI_MAX_CHN_NUM is NOT equal to VI_MAX_DEV_NUM 43 * multiplied by VI_MAX_CHN_NUM, because all VI devices 44 * can't work at mode of 4 channles at the same time. 45 */ 46 #define VI_MAX_DEV_NUM 3 47 #define VI_MAX_PHY_PIPE_NUM VI_MAX_DEV_NUM 48 #define VI_MAX_VIR_PIPE_NUM 0 49 #define VI_MAX_PIPE_NUM (VI_MAX_PHY_PIPE_NUM + VI_MAX_VIR_PIPE_NUM) 50 #define VI_MAX_PHY_CHN_NUM 4 51 #define VI_MAX_EXT_CHN_NUM 0 52 #define VI_MAX_CHN_NUM (VI_MAX_PHY_CHN_NUM + VI_MAX_EXT_CHN_NUM) 53 54 /* For VO */ 55 #define VO_SPLICE_DEVICE_TYPE 1 56 #define VO_MAX_DEV_NUM 3 /* max dev num */ 57 #define VO_MAX_LAYER_NUM 8 /* max layer num */ 58 #define VO_MAX_CHN_NUM 128 /* max chn num */ 59 #define VO_MAX_WBC_NUM 1 60 #define VO_MAX_BUF_NUM 15 61 #define VO_MAX_PRIORITY 7 /* max layer priority */ 62 #define VO_MAX_PHY_DEV_NUM 3 /* max physical dev num */ 63 64 /* For AUDIO */ 65 #define AI_DEV_MAX_NUM 2 66 #define AI_MAX_CHN_NUM 1 67 #define AO_DEV_MAX_NUM 2 68 #define AO_MAX_CHN_NUM 3 69 #define AENC_MAX_CHN_NUM 32 70 #define ADEC_MAX_CHN_NUM 32 71 72 /* For VPSS */ 73 #define VPSS_MAX_GRP_NUM 256 74 #define VPSS_MAX_CHN_NUM 4 75 #define VPSS_MIN_IMAGE_WIDTH 64 76 #define VPSS_MIN_IMAGE_HEIGHT 64 77 #define VPSS_MAX_IMAGE_WIDTH 8192 78 #define VPSS_MAX_IMAGE_HEIGHT 8192 79 #define VPSS_VIDEO_PROC_DEVICE_TYPE 1 80 81 /* For VGS */ 82 #define VGS_MAX_JOB_NUM 128 83 #define VGS_MAX_TASK_NUM 200 84 85 /* For TDE */ 86 #define TDE_MAX_JOB_NUM 128 87 #define TDE_MAX_TASK_NUM 200 88 89 /* For GDC */ 90 #define GDC_MAX_JOB_NUM 128 91 #define GDC_MAX_TASK_NUM 200 92 93 /* For AVS */ 94 #define AVS_MAX_GRP_NUM 4 95 #define AVS_PIPE_NUM 2 96 #define AVS_MAX_CHN_NUM 2 97 #define AVS_MAX_IN_WIDTH 4096 98 #define AVS_MAX_IN_HEIGHT 4096 99 #define AVS_MIN_IN_WIDTH 1280 100 #define AVS_MIN_IN_HEIGHT 720 101 #define AVS_MAX_OUT_WIDTH 4096 102 #define AVS_MAX_OUT_HEIGHT 4096 103 #define AVS_MIN_OUT_WIDTH 256 104 #define AVS_MIN_OUT_HEIGHT 256 105 106 #ifdef __cplusplus 107 #if __cplusplus 108 } 109 #endif 110 #endif /* __cplusplus */ 111 112 #endif /* INCLUDE_RT_MPI_RK_DEFINES_H_ */ 113 114