apps/autoexposure/hdr_control.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int skipHDR (int mode, unsigned long frame)
 in HDR mode - wait until we get a histogram from a normal frame (only needed to re-sync after long delays uses global variables for files and mmap-ed data so they are accessible everywhere
int exposureHDR (int frame, int target_frame)


Function Documentation

int exposureHDR ( int  frame,
int  target_frame 
)

*************************************************************************** ! FILE NAME : hdr_control.c ! DESCRIPTION: HDR part of the autoexposure/white balance/hdr 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/>. ! -----------------------------------------------------------------------------** ! !

Log
hdr_control.c,v
! Revision 1.1.1.1 2008/11/27 20:04:01 elphel ! ! ! Revision 1.1 2008/11/15 23:08:24 elphel ! 8.0.alpha17 - split autoexposure source file ! !

HDR mode is disabled

maybe was just written by autoexposure

program next two frames after target_frame

skip 2 frames from 'frame' (use absolute to add tolerance against being too late)

Definition at line 33 of file hdr_control.c.

References ELP_FERR, fd_fparmsall, framePars, FRAMEPARS_SETFRAME, LSEEK_FRAME_WAIT_ABS, MDF5, P_HDR_DUR, P_HDR_VEXPOS, P_VEXPOS, framepars_t::pars, PARS_FRAMES_MASK, SEEK_END, stderr, and write.

Referenced by main().

int skipHDR ( int  mode,
unsigned long  frame 
)

in HDR mode - wait until we get a histogram from a normal frame (only needed to re-sync after long delays uses global variables for files and mmap-ed data so they are accessible everywhere

Returns:
0 - OK, <0 - problems opening/mma-ing

wait for Y only

nothing needed, just waiting for some frames to be skipped

just wait until the Y histogram will available for non-HDR frame

Definition at line 106 of file hdr_control.c.

References fd_histogram_cache, HDR_PATTERN1, HDR_PATTERN2, LSEEK_HIST_NEEDED, LSEEK_HIST_WAIT_Y, PARS_FRAMES_MASK, SEEK_CUR, and SEEK_END.

Referenced by main().


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