• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
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 __MPP_DEV_DEFS_H__
17 #define __MPP_DEV_DEFS_H__
18 
19 /*
20  * Platform video codec hardware feature
21  */
22 typedef enum MppClientType_e {
23     VPU_CLIENT_VDPU1 = 0,    /* 0x00000001 */
24     VPU_CLIENT_VDPU2 = 1,    /* 0x00000002 */
25     VPU_CLIENT_VDPU1_PP = 2, /* 0x00000004 */
26     VPU_CLIENT_VDPU2_PP = 3, /* 0x00000008 */
27 
28     VPU_CLIENT_HEVC_DEC = 8,     /* 0x00000100 */
29     VPU_CLIENT_RKVDEC = 9,       /* 0x00000200 */
30     VPU_CLIENT_AVSPLUS_DEC = 12, /* 0x00001000 */
31     VPU_CLIENT_JPEG_DEC = 13,    /* 0x00002000 */
32 
33     VPU_CLIENT_RKVENC = 16,     /* 0x00010000 */
34     VPU_CLIENT_VEPU1 = 17,      /* 0x00020000 */
35     VPU_CLIENT_VEPU2 = 18,      /* 0x00040000 */
36     VPU_CLIENT_VEPU2_LITE = 19, /* 0x00080000 */
37     VPU_CLIENT_VEPU22 = 24,     /* 0x01000000 */
38 
39     IEP_CLIENT_TYPE = 28, /* 0x10000000 */
40 
41     VPU_CLIENT_BUTT,
42 } MppClientType;
43 
44 /* RK combined codec */
45 #define HAVE_VDPU1 (1 << VPU_CLIENT_VDPU1)       /* 0x00000001 */
46 #define HAVE_VDPU2 (1 << VPU_CLIENT_VDPU2)       /* 0x00000002 */
47 #define HAVE_VDPU1_PP (1 << VPU_CLIENT_VDPU1_PP) /* 0x00000004 */
48 #define HAVE_VDPU2_PP (1 << VPU_CLIENT_VDPU2_PP) /* 0x00000008 */
49 /* RK standalone decoder */
50 #define HAVE_HEVC_DEC (1 << VPU_CLIENT_HEVC_DEC)  /* 0x00000100 */
51 #define HAVE_RKVDEC (1 << VPU_CLIENT_RKVDEC)      /* 0x00000200 */
52 #define HAVE_AVSDEC (1 << VPU_CLIENT_AVSPLUS_DEC) /* 0x00001000 */
53 #define HAVE_JPEG_DEC (1 << VPU_CLIENT_JPEG_DEC)  /* 0x00002000 */
54 /* RK standalone encoder */
55 #define HAVE_RKVENC (1 << VPU_CLIENT_RKVENC) /* 0x00010000 */
56 #define HAVE_VEPU1 (1 << VPU_CLIENT_VEPU1)   /* 0x00020000 */
57 #define HAVE_VEPU2 (1 << VPU_CLIENT_VEPU2)   /* 0x00040000 */
58 /* External encoder */
59 #define HAVE_VEPU22 (1 << VPU_CLIENT_VEPU22) /* 0x01000000 */
60 /* RK Image Enhance Processor for deinterlacing */
61 #define HAVE_IEP (1 << IEP_CLIENT_TYPE) /* 0x10000000 */
62 
63 /* Platform image process hardware feature */
64 #define HAVE_IPP (0x00000001)
65 #define HAVE_RGA (0x00000002)
66 #define HAVE_RGA2 (0x00000004)
67 
68 #endif /* __MPP_DEV_DEFS_H__ */
69