• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute  it and/or modify it
5  * under  the terms of  the GNU General  Public License as published by the
6  * Free Software Foundation;  either version 2 of the  License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  *
17  */
18 
19 #ifndef __MKP_VO_GFX_H__
20 #define __MKP_VO_GFX_H__
21 
22 #include "hi_type.h"
23 #include "hi_common.h"
24 #include "hi_common_vo.h"
25 #include "drv_vo_gfx.h"
26 
27 #ifdef __cplusplus
28 #if __cplusplus
29 extern "C" {
30 #endif
31 #endif /* end of #ifdef __cplusplus */
32 
33 hi_void vo_init_gfx(hi_void);
34 hi_bool vo_is_dev_gfx_layer_enabled(hi_vo_dev dev);
35 hi_s32 vo_set_gfx_attr(hi_vo_layer layer, const hi_vo_gfx_attr *attr);
36 hi_s32 vo_enable_gfx_layer(hi_vo_layer layer, const hi_vo_gfx_attr *gfx_attr);
37 hi_s32 vo_disable_gfx_layer(hi_vo_layer layer_id);
38 
39 #ifdef __cplusplus
40 #if __cplusplus
41 }
42 #endif
43 #endif /* end of #ifdef __cplusplus */
44 
45 #endif /* end of #ifndef __MKP_VO_GFX_H__ */
46