1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * Copyright 2020 Rockchip Electronics Co. LTD 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Licensed under the Apache License, Version 2.0 (the "License"); 5*4882a593Smuzhiyun * you may not use this file except in compliance with the License. 6*4882a593Smuzhiyun * You may obtain a copy of the License at 7*4882a593Smuzhiyun * 8*4882a593Smuzhiyun * http://www.apache.org/licenses/LICENSE-2.0 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * Unless required by applicable law or agreed to in writing, software 11*4882a593Smuzhiyun * distributed under the License is distributed on an "AS IS" BASIS, 12*4882a593Smuzhiyun * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*4882a593Smuzhiyun * See the License for the specific language governing permissions and 14*4882a593Smuzhiyun * limitations under the License. 15*4882a593Smuzhiyun */ 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #ifndef __MPP_DEV_DEFS_H__ 18*4882a593Smuzhiyun #define __MPP_DEV_DEFS_H__ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #include "rk_type.h" 21*4882a593Smuzhiyun 22*4882a593Smuzhiyun /* 23*4882a593Smuzhiyun * Platform video codec hardware feature 24*4882a593Smuzhiyun */ 25*4882a593Smuzhiyun typedef enum MppClientType_e { 26*4882a593Smuzhiyun VPU_CLIENT_VDPU1 = 0, /* 0x00000001 */ 27*4882a593Smuzhiyun VPU_CLIENT_VDPU2 = 1, /* 0x00000002 */ 28*4882a593Smuzhiyun VPU_CLIENT_VDPU1_PP = 2, /* 0x00000004 */ 29*4882a593Smuzhiyun VPU_CLIENT_VDPU2_PP = 3, /* 0x00000008 */ 30*4882a593Smuzhiyun VPU_CLIENT_AV1DEC = 4, /* 0x00000010 */ 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun VPU_CLIENT_HEVC_DEC = 8, /* 0x00000100 */ 33*4882a593Smuzhiyun VPU_CLIENT_RKVDEC = 9, /* 0x00000200 */ 34*4882a593Smuzhiyun VPU_CLIENT_AVSPLUS_DEC = 12, /* 0x00001000 */ 35*4882a593Smuzhiyun VPU_CLIENT_JPEG_DEC = 13, /* 0x00002000 */ 36*4882a593Smuzhiyun 37*4882a593Smuzhiyun VPU_CLIENT_RKVENC = 16, /* 0x00010000 */ 38*4882a593Smuzhiyun VPU_CLIENT_VEPU1 = 17, /* 0x00020000 */ 39*4882a593Smuzhiyun VPU_CLIENT_VEPU2 = 18, /* 0x00040000 */ 40*4882a593Smuzhiyun VPU_CLIENT_VEPU2_JPEG = 19, /* 0x00080000 */ 41*4882a593Smuzhiyun VPU_CLIENT_VEPU22 = 24, /* 0x01000000 */ 42*4882a593Smuzhiyun 43*4882a593Smuzhiyun IEP_CLIENT_TYPE = 28, /* 0x10000000 */ 44*4882a593Smuzhiyun 45*4882a593Smuzhiyun VPU_CLIENT_BUTT, 46*4882a593Smuzhiyun } MppClientType; 47*4882a593Smuzhiyun 48*4882a593Smuzhiyun /* RK combined codec */ 49*4882a593Smuzhiyun #define HAVE_VDPU1 (1 << VPU_CLIENT_VDPU1) /* 0x00000001 */ 50*4882a593Smuzhiyun #define HAVE_VDPU2 (1 << VPU_CLIENT_VDPU2) /* 0x00000002 */ 51*4882a593Smuzhiyun #define HAVE_VDPU1_PP (1 << VPU_CLIENT_VDPU1_PP) /* 0x00000004 */ 52*4882a593Smuzhiyun #define HAVE_VDPU2_PP (1 << VPU_CLIENT_VDPU2_PP) /* 0x00000008 */ 53*4882a593Smuzhiyun #define HAVE_AV1DEC (1 << VPU_CLIENT_AV1DEC) /* 0x00000008 */ 54*4882a593Smuzhiyun /* RK standalone decoder */ 55*4882a593Smuzhiyun #define HAVE_HEVC_DEC (1 << VPU_CLIENT_HEVC_DEC) /* 0x00000100 */ 56*4882a593Smuzhiyun #define HAVE_RKVDEC (1 << VPU_CLIENT_RKVDEC) /* 0x00000200 */ 57*4882a593Smuzhiyun #define HAVE_AVSDEC (1 << VPU_CLIENT_AVSPLUS_DEC) /* 0x00001000 */ 58*4882a593Smuzhiyun #define HAVE_JPEG_DEC (1 << VPU_CLIENT_JPEG_DEC) /* 0x00002000 */ 59*4882a593Smuzhiyun /* RK standalone encoder */ 60*4882a593Smuzhiyun #define HAVE_RKVENC (1 << VPU_CLIENT_RKVENC) /* 0x00010000 */ 61*4882a593Smuzhiyun #define HAVE_VEPU1 (1 << VPU_CLIENT_VEPU1) /* 0x00020000 */ 62*4882a593Smuzhiyun #define HAVE_VEPU2 (1 << VPU_CLIENT_VEPU2) /* 0x00040000 */ 63*4882a593Smuzhiyun #define HAVE_VEPU2_JPEG (1 << VPU_CLIENT_VEPU2_JPEG) /* 0x00080000 */ 64*4882a593Smuzhiyun /* External encoder */ 65*4882a593Smuzhiyun #define HAVE_VEPU22 (1 << VPU_CLIENT_VEPU22) /* 0x01000000 */ 66*4882a593Smuzhiyun /* RK Image Enhance Processor for deinterlacing */ 67*4882a593Smuzhiyun #define HAVE_IEP (1 << IEP_CLIENT_TYPE) /* 0x10000000 */ 68*4882a593Smuzhiyun 69*4882a593Smuzhiyun /* Platform image process hardware feature */ 70*4882a593Smuzhiyun #define HAVE_IPP (0x00000001) 71*4882a593Smuzhiyun #define HAVE_RGA (0x00000002) 72*4882a593Smuzhiyun #define HAVE_RGA2 (0x00000004) 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun #endif /*__MPP_DEV_DEFS_H__*/ 75