apps/autoexposure/aexp_utils.h

Go to the documentation of this file.
00001 /*!***************************************************************************
00002 *! FILE NAME  : aexp_utils.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: aexp_utils.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_AEXP_UTILS__
00030 #define __H_AUTOEXPOSURE_AEXP_UTILS__
00031 unsigned long get_imageParamsThat     (int indx, unsigned long frame);
00032 int           get_imageParamsThatValid(int indx, unsigned long frame);
00033 long getPercentile(unsigned long frame,int color, unsigned long fraction,int request_colors);
00034 int recalibrateDim(void);
00035 unsigned long gammaDirect (unsigned long x);
00036 unsigned long gammaReverse (unsigned long x);
00037 int waitRequstPrevHist(unsigned long next_frame);
00038 int poorLog(int x);
00039 int poorExp(int x);
00040 
00041 #define get_imageParamsThis(x) ( framePars[this_frame & PARS_FRAMES_MASK].pars[x])
00042 
00043 
00044 #endif

Generated on Fri Nov 28 00:06:21 2008 for elphel by  doxygen 1.5.1