1 /*
2  * Copyright (c) 2022 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef SAMPLE_VIO_H
16 #define SAMPLE_VIO_H
17 
18 #include "hi_common.h"
19 
20 #ifdef __cplusplus
21 #if __cplusplus
22 extern "C" {
23 #endif
24 #endif /* End of #ifdef __cplusplus */
25 
26 #ifndef SAMPLE_PRT
27 #define SAMPLE_PRT(fmt...)                           \
28     do {                                             \
29         printf("[%s]-%d: ", __FUNCTION__, __LINE__); \
30         printf(fmt);                                 \
31     } while (0)
32 #endif
33 
34 #ifndef PAUSE
35 #define PAUSE()                                                             \
36     do {                                                                    \
37         printf("---------------press Enter key to exit!---------------\n"); \
38         getchar();                                                          \
39     } while (0)
40 #endif
41 
42 hi_void SAMPLE_VIO_GetChar(hi_void);
43 HI_S32 SAMPLE_VIO_ViOnlineVpssOfflineRoute(HI_U32 u32VoIntfType);
44 HI_S32 SAMPLE_VIO_WDR_LDC_DIS_SPREAD(HI_U32 u32VoIntfType);
45 HI_S32 SAMPLE_VIO_ViDoublePipeRoute(HI_U32 u32VoIntfType);
46 HI_S32 SAMPLE_VIO_ViWdrSwitch(HI_U32 u32VoIntfType);
47 HI_S32 SAMPLE_VIO_ViVpssLowDelay(HI_U32 u32VoIntfType);
48 HI_S32 SAMPLE_VIO_Rotate(HI_U32 u32VoIntfType);
49 HI_S32 SAMPLE_VIO_FPN(HI_U32 u32VoIntfType);
50 HI_S32 SAMPLE_VIO_ViDoubleWdrPipe(HI_U32 u32VoIntfType);
51 HI_S32 SAMPLE_VIO_VPSS_VO_MIPI_TX(HI_VOID);
52 
53 #ifdef __cplusplus
54 #if __cplusplus
55 }
56 #endif
57 #endif /* End of #ifdef __cplusplus */
58 
59 #endif /* End of #ifndef SAMPLE_VIO_H */
60