00001 /*!*************************************************************************** 00002 *! FILE NAME : globalsinit.h 00003 *! DESCRIPTION: Daemon to adjust camera exposure and white balance 00004 *! Copyright (C) 2008 Elphel, Inc. 00005 *! -----------------------------------------------------------------------------** 00006 *! This program is free software: you can redistribute it and/or modify 00007 *! it under the terms of the GNU General Public License as published by 00008 *! the Free Software Foundation, either version 3 of the License, or 00009 *! (at your option) any later version. 00010 *! 00011 *! This program is distributed in the hope that it will be useful, 00012 *! but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 *! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 *! GNU General Public License for more details. 00015 *! 00016 *! You should have received a copy of the GNU General Public License 00017 *! along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 *! -----------------------------------------------------------------------------** 00019 *! 00020 *! $Log: globalsinit.h,v $ 00021 *! Revision 1.1.1.1 2008/11/27 20:04:01 elphel 00022 *! 00023 *! 00024 *! Revision 1.1 2008/11/15 23:08:24 elphel 00025 *! 8.0.alpha17 - split autoexposure source file 00026 *! 00027 *! 00028 */ 00029 #ifndef __H_AUTOEXPOSURE_GLOBALSINIT__ 00030 #define __H_AUTOEXPOSURE_GLOBALSINIT__ 00031 00033 extern int fd_fparmsall; 00034 extern int fd_histogram_cache; 00035 extern int fd_gamma_cache; 00036 extern struct framepars_all_t * frameParsAll; 00037 extern struct framepars_t * framePars; 00038 extern unsigned long * globalPars; 00039 extern struct framepars_past_t * pastPars; 00040 extern struct histogram_stuct_t * histogram_cache; 00041 00042 extern struct gamma_stuct_t * gamma_cache; 00043 extern int hist_index; 00044 extern int gamma_index; 00045 extern int aex_recover_cntr; 00046 extern unsigned long this_frame; 00047 extern int autoexposure_debug; 00048 00049 int initFilesMmap(void); 00050 int initParams(int daemon_bit); 00051 00052 00053 #endif