hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/*
 * Copyright 2021 Rockchip Electronics Co. LTD
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
 
#ifndef INCLUDE_RT_MPI_RK_DEFINES_H_
#define INCLUDE_RT_MPI_RK_DEFINES_H_
 
#ifdef __cplusplus
#if __cplusplus
extern "C" {
#endif
#endif /* __cplusplus */
 
/* For VENC */
#define VENC_MAX_CHN_NUM               64
#define VENC_MAX_ROI_NUM               8
 
/* For VDEC */
#define VDEC_MAX_CHN_NUM               128
 
/* For Region */
#define RGN_MAX_HANDLE_NUM             128
 
/* For VI */
/* number of channle and device on video input unit of chip
 * Note! VI_MAX_CHN_NUM is NOT equal to VI_MAX_DEV_NUM
 * multiplied by VI_MAX_CHN_NUM, because all VI devices
 * can't work at mode of 4 channles at the same time.
 */
#define VI_MAX_DEV_NUM                 8
#define VI_MAX_PHY_PIPE_NUM            VI_MAX_DEV_NUM
#define VI_MAX_VIR_PIPE_NUM            0
#define VI_MAX_PIPE_NUM                (VI_MAX_PHY_PIPE_NUM + VI_MAX_VIR_PIPE_NUM)
#define VI_MAX_PHY_CHN_NUM             4
#define VI_MAX_EXT_CHN_NUM             0
#define VI_MAX_CHN_NUM                 (VI_MAX_PHY_CHN_NUM + VI_MAX_EXT_CHN_NUM)
 
/* For VO */
#define VO_MAX_DEV_NUM                 4 /* max dev num */
#define VO_MAX_LAYER_NUM               8 /* max layer num */
#define VO_MAX_CHN_NUM                 128 /* max chn num */
#define VO_MAX_WBC_NUM                 1
#define VO_MAX_BUF_NUM                 15
#define VO_MAX_PRIORITY                7 /* max layer priority */
#define VO_MAX_PHY_DEV_NUM             4 /* max physical dev num */
 
/* For AUDIO */
#define AI_DEV_MAX_NUM                 2
#define AI_MAX_CHN_NUM                 1
#define AO_DEV_MAX_NUM                 2
#define AO_MAX_CHN_NUM                 3
#define AENC_MAX_CHN_NUM               32
#define ADEC_MAX_CHN_NUM               32
 
/* For VPSS */
#define VPSS_MAX_GRP_NUM               256
#define VPSS_MAX_CHN_NUM               4
#define VPSS_MIN_IMAGE_WIDTH           64
#define VPSS_MIN_IMAGE_HEIGHT          64
#define VPSS_MAX_IMAGE_WIDTH           8192
#define VPSS_MAX_IMAGE_HEIGHT          8192
 
/* For VGS */
#define VGS_MAX_JOB_NUM                128
#define VGS_MAX_TASK_NUM               200
 
/* For TDE */
#define TDE_MAX_JOB_NUM                128
#define TDE_MAX_TASK_NUM               200
 
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
 
#endif /* INCLUDE_RT_MPI_RK_DEFINES_H_ */