• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your 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, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __HIFB_BLIT_H__
20 #define __HIFB_BLIT_H__
21 
22 #include "hi_type.h"
23 #include "hifb_main.h"
24 
25 #ifdef __cplusplus
26 #if __cplusplus
27 extern "C" {
28 #endif
29 #endif /* End of #ifdef __cplusplus */
30 
31 hi_bool hifb_tde_is_support_fmt(HIFB_COLOR_FMT_E fmt);
32 hi_s32 hifb_drv_fill(HIFB_BUFFER_S *dst_img, hi_u32 fill_data);
33 hi_s32 hifb_drv_blit(HIFB_BUFFER_S *src_img, HIFB_BUFFER_S *dst_img, hifb_blit_opt *opt, hi_bool refresh_screen,
34                      hi_s32 *refresh_handle);
35 hi_s32 hifb_drv_rotate(HIFB_BUFFER_S *src_img, HIFB_BUFFER_S *dst_img, hifb_rotate_opt *rot_opt,
36                        hi_bool refresh_screen);
37 hi_s32 hifb_drv_set_tde_callback(int_callback tde_callback);
38 hi_s32 hifb_drv_set_tde_rotate_callback(int_callback tde_callback);
39 
40 #ifdef __cplusplus
41 #if __cplusplus
42 }
43 #endif /* __cplusplus */
44 #endif /* __cplusplus */
45 
46 #endif /* __HIFB_BLIT_H__ */
47