00001
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
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
00020 void gamma_calc_reverse(unsigned short * gamma_in, unsigned char * gamma_out);
00021
00022
00023
00024
00025
00026
00027
00028
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