os/linux-2.6-tag--devboard-R2_10-4/arch/cris/arch-v32/drivers/elphel/gamma_tables.h

Go to the documentation of this file.
00001 //gamma_tables.h
00002 #ifndef _GAMMA_TABLES_H
00003 #define _GAMMA_TABLES_H
00004 
00005 void init_gammas(void);
00006 int is_gamma_current (unsigned short hash16, unsigned short scale, int index);
00007 int is_gamma_valid  (unsigned short hash16, unsigned short scale, int index);
00008 //             int prev_locked_color[4];
00009 
00010 int unlock_gamma_node (int color); 
00011 
00012 
00013 
00014 unsigned long * get_gamma_fpga(int color);
00015 
00016 int gamma_new_node(void);
00017 void gamma_encode_fpga(unsigned short * gamma_in, unsigned long * gamma_out);
00018 void  gamma_calc_scaled (unsigned short scale,unsigned short * gamma_in, unsigned short * gamma_out);
00019 //void  gamma_calc_reverse(unsigned short * gamma_in, unsigned short * gamma_out);/// calculate reverse gamma table (16-bit output) that matches 1-byte gamma-converted data to the input data (in the 0..ffff range)
00020 void  gamma_calc_reverse(unsigned short * gamma_in, unsigned char * gamma_out);
00021 
00022 
00023 
00024 
00025 // #define GAMMA_MODE_NOT_NICE     1  // if set, no interrupts will be enabled between steps, whole operation is atomic
00026 // #define GAMMA_MODE_NEED_REVERSE 2  // reverse gamma table is needed
00027 // #define GAMMA_MODE_HARDWARE     4  // the table is needed to program FPGA: fpga-encoded table will be calculated (if not yet), node will be locked for specified
00028                                    // color/frame pair
00029 int set_gamma_table (unsigned short hash16, unsigned short scale, unsigned short * gamma_proto,  unsigned char mode, int color);
00030 unsigned long get_locked_hash32(int color);
00031 #endif

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