11bd4fe43Sopenharmony_ci/* 21bd4fe43Sopenharmony_ci * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED. 31bd4fe43Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 41bd4fe43Sopenharmony_ci * you may not use this file except in compliance with the License. 51bd4fe43Sopenharmony_ci * You may obtain a copy of the License at 61bd4fe43Sopenharmony_ci * 71bd4fe43Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 81bd4fe43Sopenharmony_ci * 91bd4fe43Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 101bd4fe43Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 111bd4fe43Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 121bd4fe43Sopenharmony_ci * See the License for the specific language governing permissions and 131bd4fe43Sopenharmony_ci * limitations under the License. 141bd4fe43Sopenharmony_ci */ 151bd4fe43Sopenharmony_ci#ifndef __MPI_REGION_H__ 161bd4fe43Sopenharmony_ci#define __MPI_REGION_H__ 171bd4fe43Sopenharmony_ci 181bd4fe43Sopenharmony_ci#include "hi_comm_region.h" 191bd4fe43Sopenharmony_ci 201bd4fe43Sopenharmony_ci#ifdef __cplusplus 211bd4fe43Sopenharmony_ci#if __cplusplus 221bd4fe43Sopenharmony_ciextern "C" { 231bd4fe43Sopenharmony_ci#endif 241bd4fe43Sopenharmony_ci#endif 251bd4fe43Sopenharmony_ci 261bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_Create(RGN_HANDLE Handle, const RGN_ATTR_S *pstRegion); 271bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_Destroy(RGN_HANDLE Handle); 281bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_GetAttr(RGN_HANDLE Handle, RGN_ATTR_S *pstRegion); 291bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_SetAttr(RGN_HANDLE Handle, const RGN_ATTR_S *pstRegion); 301bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_SetBitMap(RGN_HANDLE Handle, const BITMAP_S *pstBitmap); 311bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_AttachToChn(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, const RGN_CHN_ATTR_S *pstChnAttr); 321bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_DetachFromChn(RGN_HANDLE Handle, const MPP_CHN_S *pstChn); 331bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_SetDisplayAttr(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, const RGN_CHN_ATTR_S *pstChnAttr); 341bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_GetDisplayAttr(RGN_HANDLE Handle, const MPP_CHN_S *pstChn, RGN_CHN_ATTR_S *pstChnAttr); 351bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_GetCanvasInfo(RGN_HANDLE Handle, RGN_CANVAS_INFO_S *pstCanvasInfo); 361bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_UpdateCanvas(RGN_HANDLE Handle); 371bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_BatchBegin(RGN_HANDLEGROUP *pu32Group, HI_U32 u32Num, const RGN_HANDLE handle[]); 381bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_BatchEnd(RGN_HANDLEGROUP u32Group); 391bd4fe43Sopenharmony_ciHI_S32 HI_MPI_RGN_GetFd(HI_VOID); 401bd4fe43Sopenharmony_ci 411bd4fe43Sopenharmony_ci#ifdef __cplusplus 421bd4fe43Sopenharmony_ci#if __cplusplus 431bd4fe43Sopenharmony_ci} 441bd4fe43Sopenharmony_ci#endif 451bd4fe43Sopenharmony_ci#endif 461bd4fe43Sopenharmony_ci#endif 47