#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <time.h>
#include <string.h>
#include <syslog.h>
#include <netinet/in.h>
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <asm/elphel/c313a.h>
#include <asm/elphel/exifa.h>
#include <asm/elphel/ext353.h>
#include <asm/byteorder.h>
#include "aexp_utils.h"
#include "aexp_corr.h"
#include "white_balance.h"
#include "hdr_control.h"
#include "globalsinit.h"
Include dependency graph for autoexposure.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | THIS_DEBUG 1 |
#define | MDF0(x) { if (autoexposure_debug & (1 << 0)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF1(x) { if (autoexposure_debug & (1 << 1)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF2(x) { if (autoexposure_debug & (1 << 2)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF3(x) { if (autoexposure_debug & (1 << 3)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF4(x) { if (autoexposure_debug & (1 << 4)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF5(x) { if (autoexposure_debug & (1 << 5)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF6(x) { if (autoexposure_debug & (1 << 6)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | MDF7(x) { if (autoexposure_debug & (1 << 7)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define | START_SKIP_FRAMES 8 |
#define | get_imageParamsThis(x) ( framePars[this_frame & PARS_FRAMES_MASK].pars[x]) |
#define | min(x, y) ((x<y)?x:y) |
#define | RECALIBRATE_AHEAD 3 |
#define | EXPOS_AHEAD 3 |
#define | DEFAULT_AE_PERIOD_CHANGE 4 |
#define | DEFAULT_AE_PERIOD_NOCHANGE 1 |
#define | DEFAULT_WB_PERIOD_CHANGE 16 |
#define | DEFAULT_WB_PERIOD_NOCHANGE 4 |
#define | RECALIBRATE_AFTER 2 |
#define | DEFAULT_BLACK_CALIB 0xa00 |
#define | HDR_PATTERN1_8 0xaa |
#define | HDR_PATTERN2_8 0x66 |
#define | HDR_PATTERN1 (HDR_PATTERN1_8 | (HDR_PATTERN1_8 << 8) | (HDR_PATTERN1_8 << 16) | (HDR_PATTERN1_8 << 24)) |
#define | HDR_PATTERN2 (HDR_PATTERN2_8 | (HDR_PATTERN2_8 << 8) | (HDR_PATTERN2_8 << 16) | (HDR_PATTERN2_8 << 24)) |
#define | DEFAULT_WB_WHITELEV 0xfae1 |
#define | DEFAULT_WB_WHITEFRAC 0x028f |
#define | PERCENTILE_SHIFT 16 |
#define | PERCENTILE_1 (1 << PERCENTILE_SHIFT) |
#define DEFAULT_AE_PERIOD_CHANGE 4 |
#define DEFAULT_AE_PERIOD_NOCHANGE 1 |
#define DEFAULT_BLACK_CALIB 0xa00 |
#define DEFAULT_WB_PERIOD_CHANGE 16 |
#define DEFAULT_WB_PERIOD_NOCHANGE 4 |
#define DEFAULT_WB_WHITEFRAC 0x028f |
#define DEFAULT_WB_WHITELEV 0xfae1 |
#define EXPOS_AHEAD 3 |
Definition at line 94 of file autoexposure.h.
#define get_imageParamsThis | ( | x | ) | ( framePars[this_frame & PARS_FRAMES_MASK].pars[x]) |
Definition at line 89 of file autoexposure.h.
#define HDR_PATTERN1 (HDR_PATTERN1_8 | (HDR_PATTERN1_8 << 8) | (HDR_PATTERN1_8 << 16) | (HDR_PATTERN1_8 << 24)) |
#define HDR_PATTERN1_8 0xaa |
Definition at line 101 of file autoexposure.h.
#define HDR_PATTERN2 (HDR_PATTERN2_8 | (HDR_PATTERN2_8 << 8) | (HDR_PATTERN2_8 << 16) | (HDR_PATTERN2_8 << 24)) |
#define HDR_PATTERN2_8 0x66 |
Definition at line 102 of file autoexposure.h.
#define MDF0 | ( | x | ) | { if (autoexposure_debug & (1 << 0)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
#define MDF1 | ( | x | ) | { if (autoexposure_debug & (1 << 1)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 68 of file autoexposure.h.
Referenced by add_sensor_proc(), aexpCorr(), framepars_lseek(), framepars_mmap(), framepars_open(), framepars_release(), framepars_write(), init_pgm_proc(), main(), mt9x001_pgm_detectsensor(), mt9x001_pgm_exposure(), pgm_detectsensor(), recalibrateDim(), schedule_pgm_func(), and schedule_this_pgm_func().
#define MDF2 | ( | x | ) | { if (autoexposure_debug & (1 << 2)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 69 of file autoexposure.h.
Referenced by camera_interrupts(), framepars_lseek(), gammaReverse(), getPercentile(), initSequencers(), resetFrameNumber(), setFrameParsAtomic(), and waitRequstPrevHist().
#define MDF3 | ( | x | ) | { if (autoexposure_debug & (1 << 3)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 71 of file autoexposure.h.
Referenced by aexpCorr(), main(), pgm_aexp(), pgm_afterinit(), pgm_compctl(), pgm_compmode(), pgm_comprestart(), pgm_compstop(), pgm_detectsensor(), pgm_exposure(), pgm_focusmode(), pgm_gains(), pgm_gamma(), pgm_gammaload(), pgm_hist(), pgm_i2c(), pgm_initsensor(), pgm_irq(), pgm_limitfps(), pgm_memcompressor(), pgm_memsensor(), pgm_prescal(), pgm_quality(), pgm_recalcseq(), pgm_sensorin(), pgm_sensorphase(), pgm_sensorregs(), pgm_sensorrun(), pgm_sensorstop(), pgm_triggermode(), pgm_trigseq(), pgm_window(), pgm_window_common(), pgm_window_safe(), and whiteBalanceCorr().
#define MDF4 | ( | x | ) | { if (autoexposure_debug & (1 << 4)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 73 of file autoexposure.h.
Referenced by mt9x001_pgm_detectsensor(), mt9x001_pgm_exposure(), mt9x001_pgm_gains(), mt9x001_pgm_initsensor(), mt9x001_pgm_limitfps(), mt9x001_pgm_sensorregs(), mt9x001_pgm_triggermode(), mt9x001_pgm_window(), mt9x001_pgm_window_common(), mt9x001_pgm_window_safe(), and whiteBalanceCorr().
#define MDF5 | ( | x | ) | { if (autoexposure_debug & (1 << 5)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 74 of file autoexposure.h.
Referenced by exposureHDR(), and setFrameParsAtomic().
#define MDF6 | ( | x | ) | { if (autoexposure_debug & (1 << 6)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 75 of file autoexposure.h.
Referenced by processParsASAP(), and processParsSeq().
#define MDF7 | ( | x | ) | { if (autoexposure_debug & (1 << 7)) {fprintf(stderr,"%s:%d:%s: ",__FILE__,__LINE__,__FUNCTION__);x;} } |
Definition at line 90 of file autoexposure.h.
Referenced by addDirEntry(), create_target_filesystem(), nand_do_read_ops(), nand_rw(), padblock(), prepSetNative(), processParsSeq(), read_bbt(), and showLastImages().
#define PERCENTILE_1 (1 << PERCENTILE_SHIFT) |
#define PERCENTILE_SHIFT 16 |
Definition at line 107 of file autoexposure.h.
Referenced by getPercentile(), and whiteBalanceCorr().
#define RECALIBRATE_AFTER 2 |
#define RECALIBRATE_AHEAD 3 |
#define START_SKIP_FRAMES 8 |
Definition at line 88 of file autoexposure.h.
#define THIS_DEBUG 1 |
*************************************************************************** ! FILE NAME : autoexposure.h ! DESCRIPTION: ! 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/>. ! -----------------------------------------------------------------------------** ! !
Definition at line 61 of file autoexposure.h.