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 __VOU_H__ 20 #define __VOU_H__ 21 22 #include "hi3519av100_vo.h" 23 24 #ifdef __cplusplus 25 extern "C" { 26 #endif /* end of #ifdef __cplusplus */ 27 28 int set_vobg(unsigned int dev, unsigned int rgb); 29 int start_vo(unsigned int dev, unsigned int type, unsigned int sync); 30 31 int stop_vo(unsigned int dev); 32 int start_videolayer(unsigned int layer, unsigned long addr, unsigned int strd, hi_vo_rect layer_rect); 33 int stop_videolayer(unsigned int layer); 34 int start_gx(unsigned int layer, unsigned long addr, unsigned int strd, hi_vo_rect gx_rect); 35 int stop_gx(unsigned int layer); 36 37 #ifdef __cplusplus 38 } 39 #endif /* end of #ifdef __cplusplus */ 40 41 #endif /* end of #ifdef __VOU_H__ */ 42