This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
int | initFilesMmap (void) |
open required files, mmap theurt data structures uses global variables for files and mmap-ed data so they are accessible everywhere | |
int | initParams (int daemon_bit) |
give a chance for other applications to initialize P_* parameters related to autoexposure functionality so the daemon itself can be started early | |
Variables | |
int | fd_fparmsall |
Global variables. | |
int | fd_histogram_cache |
array of gamma structures | |
int | fd_gamma_cache |
(gamma_tables.c) access to gammas | |
framepars_all_t * | frameParsAll |
framepars_t * | framePars |
unsigned long * | globalPars |
each parameter has a 32-bit mask of what pgm_function to call - other fields not used | |
framepars_past_t * | pastPars |
histogram_stuct_t * | histogram_cache |
gamma_stuct_t * | gamma_cache |
gamma cache is needed to re-linearize the data | |
int | hist_index |
array of gamma structures | |
int | gamma_index |
to preserve it between calls | |
int | aex_recover_cntr |
to preserve it between calls | |
unsigned long | this_frame |
int | autoexposure_debug |
int initFilesMmap | ( | void | ) |
open required files, mmap theurt data structures uses global variables for files and mmap-ed data so they are accessible everywhere
Frame parameters file open/mmap (read/write)
Histogrames file open/mmap (readonly)
Gamma tables file open/mmap (readonly)
All initialized
Definition at line 60 of file globalsinit.c.
References ELP_FERR, fd_fparmsall, fd_gamma_cache, fd_histogram_cache, framepars_all_t::framePars, framePars, frameParsAll, gamma_cache, GAMMA_CACHE_NUMBER, framepars_all_t::globalPars, globalPars, histogram_cache, HISTOGRAM_CACHE_NUMBER, framepars_all_t::pastPars, pastPars, and stderr.
Referenced by main().
int initParams | ( | int | daemon_bit | ) |
give a chance for other applications to initialize P_* parameters related to autoexposure functionality so the daemon itself can be started early
wait for autoexposure daemon to be enabled
reset running error
reset running error
set global frame number
used default, no real calibration
Definition at line 118 of file globalsinit.c.
References aex_recover_cntr, DEFAULT_BLACK_CALIB, fd_histogram_cache, G_AE_INTEGERR, G_HIST_DIM_01, G_HIST_DIM_23, G_THIS_FRAME, G_WB_INTEGERR, GLOBALPARS, initAexpCorr(), initWhiteBalanceCorr(), LSEEK_DAEMON_HIST_Y, SEEK_END, and this_frame.
Referenced by main().
int aex_recover_cntr |
to preserve it between calls
Definition at line 49 of file globalsinit.c.
Referenced by aexpCorr(), and initParams().
int fd_fparmsall |
Global variables.
*************************************************************************** ! FILE NAME : globalsinit.c ! DESCRIPTION: Opens files, mmap-s data structures, initializes variables ! For the autoexposure daemon ! Copyright (C) 2008 Elphel, Inc. ! -----------------------------------------------------------------------------** ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation, either version 3 of the License, or ! (at your option) any later version. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** ! !
int fd_gamma_cache |
struct framepars_t* framePars |
struct framepars_all_t* frameParsAll |
struct gamma_stuct_t* gamma_cache |
gamma cache is needed to re-linearize the data
array of histograms
Definition at line 46 of file globalsinit.c.
int gamma_index |
to preserve it between calls
Definition at line 48 of file globalsinit.c.
Referenced by gammaDirect(), gammaReverse(), getPercentile(), and PHP_FUNCTION().
unsigned long* globalPars |
int hist_index |
array of gamma structures
Definition at line 47 of file globalsinit.c.
Referenced by aexpCorr(), get_histogram_index(), getPercentile(), main(), PHP_FUNCTION(), and whiteBalanceCorr().
struct histogram_stuct_t* histogram_cache |
Definition at line 44 of file globalsinit.c.
struct framepars_past_t* pastPars |
Definition at line 43 of file globalsinit.c.
unsigned long this_frame |
Definition at line 50 of file globalsinit.c.
Referenced by aexpCorr(), getPercentile(), initParams(), main(), recalibrateDim(), Video::waitDaemonEnabled(), waitDaemonEnabled(), waitRequstPrevHist(), and whiteBalanceCorr().