1 /* 2 * Copyright 2021 Rockchip Electronics Co. LTD 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef SRC_TESTS_RT_MPI_COMMON_TEST_RGN_COMM_H_ 18 #define SRC_TESTS_RT_MPI_COMMON_TEST_RGN_COMM_H_ 19 20 #include "rk_common.h" 21 #include "rk_comm_rgn.h" 22 23 #ifdef __cplusplus 24 #if __cplusplus 25 extern "C" { 26 #endif 27 #endif /* End of #ifdef __cplusplus */ 28 29 RK_S32 TEST_RGN_CreateOverlayAndAttach( 30 RGN_HANDLE RgnHandle, RK_U32 u32Width, RK_U32 u32Height, 31 PIXEL_FORMAT_E enFmt, const MPP_CHN_S *pstChn, RK_U32 u32ChnNum); 32 33 RK_S32 TEST_RGN_CreateCoverAndAttach( 34 RGN_HANDLE RgnHandle, const COVER_CHN_ATTR_S *pstCoverAttr, 35 const MPP_CHN_S *pstChn, RK_U32 u32ChnNum); 36 37 RK_S32 TEST_RGN_CreateMosaicAndAttach( 38 RGN_HANDLE RgnHandle, const MOSAIC_CHN_ATTR_S *pstMosaicAttr, 39 const MPP_CHN_S *pstChn, RK_U32 u32ChnNum); 40 41 RK_S32 TEST_RGN_CreateLineAndAttach( 42 RGN_HANDLE RgnHandle, const LINE_CHN_ATTR_S *pstLineAttr, 43 const MPP_CHN_S *pstChn, RK_U32 u32ChnNum); 44 45 RK_S32 TEST_RGN_DestroyAndDetach( 46 RGN_HANDLE RgnHandle, const MPP_CHN_S *pstChn, RK_U32 u32ChnNum); 47 48 RK_S32 TEST_RGN_ChangePosition( 49 RGN_HANDLE RgnHandle, const MPP_CHN_S *pstChn, RK_S32 s32X, RK_S32 s32Y); 50 51 RK_S32 TEST_RGN_ShowOrHide(RGN_HANDLE RgnHandle, const MPP_CHN_S *pstChn, RK_BOOL bShow); 52 53 RK_S32 TEST_RGN_ChangeAlpha( 54 RGN_HANDLE RgnHandle, const MPP_CHN_S *pstChn, RK_U32 u32FgAlpha, RK_U32 u32BgAlpha); 55 56 RK_S32 TEST_RGN_ChangeColor( 57 RGN_HANDLE RgnHandle, const MPP_CHN_S *pstChn, RK_U32 u32Color); 58 59 RK_S32 TEST_RGN_LoadBmp(const RK_CHAR *filename, BITMAP_S *pstBitmap, PIXEL_FORMAT_E enBmpFmt); 60 61 RK_S32 TEST_RGN_CreateBmp(RK_U32 u32Width, RK_U32 u32Height, PIXEL_FORMAT_E enBmpFmt, BITMAP_S *pstBitmap); 62 63 #ifdef __cplusplus 64 #if __cplusplus 65 } 66 #endif 67 #endif /* End of #ifdef __cplusplus */ 68 69 #endif // SRC_TESTS_RT_MPI_COMMON_TEST_RGN_COMM_H_ 70