13d0407baSopenharmony_ci/*
23d0407baSopenharmony_ci * Copyright (c) 2021 Rockchip Electronics Co., Ltd.
33d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43d0407baSopenharmony_ci * you may not use this file except in compliance with the License.
53d0407baSopenharmony_ci * You may obtain a copy of the License at
63d0407baSopenharmony_ci *
73d0407baSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83d0407baSopenharmony_ci *
93d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123d0407baSopenharmony_ci * See the License for the specific language governing permissions and
133d0407baSopenharmony_ci * limitations under the License.
143d0407baSopenharmony_ci */
153d0407baSopenharmony_ci
163d0407baSopenharmony_ci#ifndef __MPP_DEV_DEFS_H__
173d0407baSopenharmony_ci#define __MPP_DEV_DEFS_H__
183d0407baSopenharmony_ci
193d0407baSopenharmony_ci/*
203d0407baSopenharmony_ci * Platform video codec hardware feature
213d0407baSopenharmony_ci */
223d0407baSopenharmony_citypedef enum MppClientType_e {
233d0407baSopenharmony_ci    VPU_CLIENT_VDPU1 = 0,    /* 0x00000001 */
243d0407baSopenharmony_ci    VPU_CLIENT_VDPU2 = 1,    /* 0x00000002 */
253d0407baSopenharmony_ci    VPU_CLIENT_VDPU1_PP = 2, /* 0x00000004 */
263d0407baSopenharmony_ci    VPU_CLIENT_VDPU2_PP = 3, /* 0x00000008 */
273d0407baSopenharmony_ci
283d0407baSopenharmony_ci    VPU_CLIENT_HEVC_DEC = 8,     /* 0x00000100 */
293d0407baSopenharmony_ci    VPU_CLIENT_RKVDEC = 9,       /* 0x00000200 */
303d0407baSopenharmony_ci    VPU_CLIENT_AVSPLUS_DEC = 12, /* 0x00001000 */
313d0407baSopenharmony_ci    VPU_CLIENT_JPEG_DEC = 13,    /* 0x00002000 */
323d0407baSopenharmony_ci
333d0407baSopenharmony_ci    VPU_CLIENT_RKVENC = 16,     /* 0x00010000 */
343d0407baSopenharmony_ci    VPU_CLIENT_VEPU1 = 17,      /* 0x00020000 */
353d0407baSopenharmony_ci    VPU_CLIENT_VEPU2 = 18,      /* 0x00040000 */
363d0407baSopenharmony_ci    VPU_CLIENT_VEPU2_LITE = 19, /* 0x00080000 */
373d0407baSopenharmony_ci    VPU_CLIENT_VEPU22 = 24,     /* 0x01000000 */
383d0407baSopenharmony_ci
393d0407baSopenharmony_ci    IEP_CLIENT_TYPE = 28, /* 0x10000000 */
403d0407baSopenharmony_ci
413d0407baSopenharmony_ci    VPU_CLIENT_BUTT,
423d0407baSopenharmony_ci} MppClientType;
433d0407baSopenharmony_ci
443d0407baSopenharmony_ci/* RK combined codec */
453d0407baSopenharmony_ci#define HAVE_VDPU1 (1 << VPU_CLIENT_VDPU1)       /* 0x00000001 */
463d0407baSopenharmony_ci#define HAVE_VDPU2 (1 << VPU_CLIENT_VDPU2)       /* 0x00000002 */
473d0407baSopenharmony_ci#define HAVE_VDPU1_PP (1 << VPU_CLIENT_VDPU1_PP) /* 0x00000004 */
483d0407baSopenharmony_ci#define HAVE_VDPU2_PP (1 << VPU_CLIENT_VDPU2_PP) /* 0x00000008 */
493d0407baSopenharmony_ci/* RK standalone decoder */
503d0407baSopenharmony_ci#define HAVE_HEVC_DEC (1 << VPU_CLIENT_HEVC_DEC)  /* 0x00000100 */
513d0407baSopenharmony_ci#define HAVE_RKVDEC (1 << VPU_CLIENT_RKVDEC)      /* 0x00000200 */
523d0407baSopenharmony_ci#define HAVE_AVSDEC (1 << VPU_CLIENT_AVSPLUS_DEC) /* 0x00001000 */
533d0407baSopenharmony_ci#define HAVE_JPEG_DEC (1 << VPU_CLIENT_JPEG_DEC)  /* 0x00002000 */
543d0407baSopenharmony_ci/* RK standalone encoder */
553d0407baSopenharmony_ci#define HAVE_RKVENC (1 << VPU_CLIENT_RKVENC) /* 0x00010000 */
563d0407baSopenharmony_ci#define HAVE_VEPU1 (1 << VPU_CLIENT_VEPU1)   /* 0x00020000 */
573d0407baSopenharmony_ci#define HAVE_VEPU2 (1 << VPU_CLIENT_VEPU2)   /* 0x00040000 */
583d0407baSopenharmony_ci/* External encoder */
593d0407baSopenharmony_ci#define HAVE_VEPU22 (1 << VPU_CLIENT_VEPU22) /* 0x01000000 */
603d0407baSopenharmony_ci/* RK Image Enhance Processor for deinterlacing */
613d0407baSopenharmony_ci#define HAVE_IEP (1 << IEP_CLIENT_TYPE) /* 0x10000000 */
623d0407baSopenharmony_ci
633d0407baSopenharmony_ci/* Platform image process hardware feature */
643d0407baSopenharmony_ci#define HAVE_IPP (0x00000001)
653d0407baSopenharmony_ci#define HAVE_RGA (0x00000002)
663d0407baSopenharmony_ci#define HAVE_RGA2 (0x00000004)
673d0407baSopenharmony_ci
683d0407baSopenharmony_ci#endif /* __MPP_DEV_DEFS_H__ */
69