• 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 __VOU_CHN_H__
20 #define __VOU_CHN_H__
21 
22 #include "vou.h"
23 
24 #ifdef __cplusplus
25 #if __cplusplus
26 extern "C" {
27 #endif
28 #endif /* end of #ifdef __cplusplus */
29 
30 vo_sync_basic_info *vo_get_sync_basic_info(hi_void);
31 
32 hi_s32 vou_set_pub_attr(hi_vo_dev dev, hi_vo_pub_attr *pub_attr);
33 hi_s32 vou_get_pub_attr(hi_vo_dev dev, hi_vo_pub_attr *pub_attr);
34 hi_s32 vou_set_dev_frame_rate(hi_vo_dev dev, hi_u32 *frame_rate);
35 hi_s32 vou_get_dev_frame_rate(hi_vo_dev dev, hi_u32 *frame_rate);
36 
37 hi_s32 vou_enable(hi_vo_dev dev);
38 hi_s32 vou_disable(hi_vo_dev dev);
39 
40 hi_s32 vo_set_mod_param(const hi_vo_mod_param *mod_param);
41 hi_s32 vo_get_mod_param(hi_vo_mod_param *mod_param);
42 
43 hi_s32 vou_set_vtth(hi_vo_dev dev, hi_u32 *vtth);
44 hi_s32 vou_get_vtth(hi_vo_dev dev, hi_u32 *vtth);
45 hi_s32 vou_set_vtth2(hi_vo_dev dev, hi_u32 *vtth);
46 hi_s32 vou_get_vtth2(hi_vo_dev dev, hi_u32 *vtth);
47 
48 hi_s32 vou_set_user_intf_sync_info(hi_vo_dev dev, hi_vo_user_intfsync_info *user_info);
49 
50 void vou_virt_dev_timer_func(unsigned long data);
51 
52 #ifdef __cplusplus
53 #if __cplusplus
54 }
55 #endif
56 #endif /* end of #ifdef __cplusplus */
57 
58 #endif /* end of #ifndef __VOU_CHN_H__ */
59