#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <string.h>
#include <asm/elphel/c313a.h>
Include dependency graph for test_mmap.c:
Go to the source code of this file.
Defines | |
#define | D0(x) |
#define | MAP_OPTIONS MAP_SHARED |
Functions | |
int | main (int argc, char *argv[]) |
#define D0 | ( | x | ) |
Definition at line 13 of file test_mmap.c.
#define MAP_OPTIONS MAP_SHARED |
Definition at line 17 of file test_mmap.c.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
*************************************************************************** ! FILE NAME : autoexposure.c ! DESCRIPTION: Daemon to adjust camera exposure and white balance ! 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/>. ! -----------------------------------------------------------------------------** ! !
now try to mmap
These are read from frame zero (they are not frame-related)
now open circbuf
read pointer was invalid - try the earliest frame available
Definition at line 18 of file test_mmap.c.
References a, buff_size, ccam_dma_buf, CCAM_MMAP_META, ctlFileName, D0, fd_fparmsall, framepars_all_t::framePars, framePars, frameParsAll, G_CIRCBUFRP, G_CIRCBUFSIZE, G_CIRCBUFWP, G_FREECIRCBUF, GLOBALPARS, framepars_all_t::globalPars, globalPars, LSEEK_CIRC_FIRST, LSEEK_CIRC_TORP, MAP_OPTIONS, P_COMPRESSOR_RUN, P_SENSOR_RUN, framepars_t::pars, PARS_FRAMES_MASK, and SEEK_CUR.