📄 photo.h
字号:
/* photo.h - *//* * $Header: /xtel/isode/isode/h/quipu/RCS/photo.h,v 9.0 1992/06/16 12:23:11 isode Rel $ * * * $Log: photo.h,v $ * Revision 9.0 1992/06/16 12:23:11 isode * Release 8.0 * *//* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */typedef struct { char length; /* number of bits in the pattern */ short pattern; /* the bit pattern (starting at bit 13) */ } code_word;typedef struct { code_word make, /* make up code */ /* if make.length = 0 then there is no make up code */ term; /* terminal code */ } full_code;typedef struct { unsigned char pos; /* pointer into the string */ int * run_top; /* run length pointer */ int * run_pos; /* pointer to above */ unsigned char mask; /* mask to get at one bit of the string */ char * dbuf_top; char * dbuf; } bit_string;typedef struct { char r_type; /* descibes type of run */ int run_length; /* a run_length */ } run_type;typedef struct nd { char n_type; /* describe the type of node */ struct nd * one; /* one branch */ struct nd * zero; /* zero branch */ int value; /* value arrived at */ } node ;/* now some constant definitions */#define MSB_MASK 010000 /* octal. Mask to get at first bit of code_word pattern */#define BIT_MASK 0x80 /* i.e. set bit 8 of a char */#define WHITE 0#define WT_TERM 0#define BLACK 1#define BL_TERM 1#define MAKE 2#define EOLN 127#define INTERNAL 7#define P 1#define H 2#define V0 6#define VR1 7#define VR2 8#define VR3 9#define VL1 5#define VL2 4#define VL3 3#define BUFLEN 75000#define LINEBUF 4096#define FIXED_OFFSET 6full_code get_code();char get_bit();node * get_node ();run_type next_run ();
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -