apps/php-5.2.1/ext/elphel/elphel_php.h

Go to the documentation of this file.
00001 #ifndef PHP_ELPHEL_H
00002 #define PHP_ELPHEL_H 1
00003 
00004 #ifdef ZTS
00005 #include "TSRM.h"
00006 #warning Using TSRM.h
00007 #else
00008 #warning Not using TSRM.h
00009 #endif
00010 
00011 #include <asm/elphel/c313a.h>
00012 #include <asm/elphel/exifa.h>
00013 #include <asm/elphel/autoexp.h>
00014 
00015 
00016 
00017 ZEND_BEGIN_MODULE_GLOBALS(elphel)
00018 int fd_exif;
00019 int fd_exifdir;
00020 int fd_exifmeta;
00021 int fd_sens;
00022 unsigned long * imageParamsR;
00023 int fd_circ;
00024 unsigned long * ccam_dma_buf;
00025 unsigned long   ccam_dma_buf_len; // in bytes
00026 int fd_autoexp;
00027 void * hist_gamma_mmap; 
00028 struct exif_dir_table_t exif_dir[ExifKmlNumber] ;  
00029 int    exif_size; // to see if verify exif directory has changed
00030 ZEND_END_MODULE_GLOBALS(elphel)
00032 #ifdef ZTS
00033 #define ELPHEL_G(v) TSRMG(elphel_globals_id, zend_elphel_globals *, v)
00034 #else
00035 #define ELPHEL_G(v) (elphel_globals.v)
00036 #endif
00037 
00038 #define PHP_ELPHEL_VERSION "1.0"
00039 #define PHP_ELPHEL_EXTNAME "elphel"
00040 
00041 //PHP_FUNCTION(hello_world);
00042 PHP_FUNCTION(elph_hello);
00043 PHP_FUNCTION(elphel_get_P_value);
00044 PHP_FUNCTION(elphel_set_P_value);
00045 PHP_FUNCTION(elphel_get_P_arr);
00046 PHP_FUNCTION(elphel_get_P_warr);
00047 PHP_FUNCTION(elphel_set_P_arr);
00048 PHP_FUNCTION(elphel_get_state);
00049 PHP_FUNCTION(elphel_program_sensor);
00050 PHP_FUNCTION(elphel_compressor_cmd);
00051 PHP_FUNCTION(elphel_compressor_reset);
00052 PHP_FUNCTION(elphel_compressor_run);
00053 PHP_FUNCTION(elphel_compressor_stop);
00054 PHP_FUNCTION(elphel_compressor_frame);
00055 PHP_FUNCTION(elphel_is_compressor_idle);
00056 PHP_FUNCTION(elphel_reset_sensor);
00057 PHP_FUNCTION(elphel_set_fpga_time);
00058 PHP_FUNCTION(elphel_get_fpga_time);
00059 PHP_FUNCTION(elphel_flush_cache);
00060 PHP_FUNCTION(elphel_white_balance);
00061 PHP_FUNCTION(elphel_autoexposure_set);
00062 PHP_FUNCTION(elphel_autoexposure_get);
00063 PHP_FUNCTION(elphel_wait_frame);
00064 PHP_FUNCTION(elphel_fpga_read);
00065 PHP_FUNCTION(elphel_fpga_write);
00066 PHP_FUNCTION(elphel_trigger);
00067 PHP_FUNCTION(elphel_gamma);
00068 PHP_FUNCTION(elphel_histogram);
00069 PHP_FUNCTION(elphel_get_gamma);
00070 PHP_FUNCTION(elphel_get_histogram);
00071 PHP_FUNCTION(elphel_get_exif_field);
00072 PHP_FUNCTION(elphel_set_exif_field);
00073 PHP_FUNCTION(elphel_get_exif_elphel);
00074 PHP_FUNCTION(elphel_get_circbuf_pointers);
00075 PHP_FUNCTION(elphel_update_exif); // force to rebuild directory after Exif format was changes. Usually done automatically
00076 
00077 
00078 PHP_MINIT_FUNCTION(elphel);
00079 PHP_MSHUTDOWN_FUNCTION(elphel);
00080 PHP_RINIT_FUNCTION(elphel);
00081 PHP_MINFO_FUNCTION(elphel);
00082 extern zend_module_entry elphel_module_entry;
00083 #define phpext_elphel_ptr &elphel_module_entry
00084 //static void init_sens();
00085 #endif

Generated on Thu Aug 7 16:18:59 2008 for elphel by  doxygen 1.5.1