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