home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 564a.lha / wasp_v1.21 / Src.LZH / Src / proto.h < prev    next >
C/C++ Source or Header  |  1991-07-17  |  5KB  |  170 lines

  1. #ifdef __STDC__
  2. # define    P(s) s
  3. #else
  4. # define P(s) ()
  5. #endif
  6.  
  7.  
  8. /* wasp.i */
  9. int main P((int argc , char **argv ));
  10. int usage P((void ));
  11. int initvars P((void ));
  12. void *cmalloc P((unsigned int n ));
  13. void *ccalloc P((unsigned int n ));
  14. void *crealloc P((void *q , unsigned int n ));
  15. int lowcase P((char *s ));
  16. u_long ceillog2 P((u_long a ));
  17. int stringcode P((char *s ));
  18. int do_options P((int argc , char **argv ));
  19. int do_operations P((int argc , char **argv ));
  20.  
  21. /* raw.i */
  22. int read_srgr P((void ));
  23. int write_srgr P((void ));
  24.  
  25. /* readiff.i */
  26. int read_iff P((void ));
  27. char *idstr P((u_long id ));
  28. int do_chunk P((u_long id ));
  29. int isgroupid P((u_long id ));
  30. int isgroupid2 P((u_long i , u_long i2 ));
  31. int isvalid P((u_long id ));
  32. int do_anno P((u_long size ));
  33. int do_cmap P((u_long size ));
  34. int extend_cmap P((void ));
  35. int do_sham P((u_long size , int is_ctbl ));
  36. int do_body P((u_long size ));
  37. int set_bodylimit P((u_long size ));
  38. int check_bodylimit P((void ));
  39. short nextbody P((void *buf ));
  40. int read_direct_body P((void ));
  41. int read_body P((void ));
  42. int fill_conv P((void ));
  43. int do_row P((short y , u_char *parrow ));
  44. int do_row_ham P((short y , u_char *parrow ));
  45. int do_row_direct P((short y , u_char *inrow ));
  46.  
  47. /* readgif.i */
  48. int read_gif P((void ));
  49. int readscreendescriptor P((void ));
  50. int readimagedescriptor P((void ));
  51. int readcolormap P((void ));
  52. int readbody P((void ));
  53. short nextrow P((int mode ));
  54. int decompress P((void ));
  55. short fill_masks P((short startbit , short nbits ));
  56. short nextcodes P((void ));
  57. short nextubytes P((void ));
  58. int fill_transchars P((void ));
  59.  
  60. /* operations.i */
  61. int scalex P((int t , int n ));
  62. int scaley P((int t , int n ));
  63. int scalef P((int yflag , float factor ));
  64. int do_clipping P((void ));
  65. int xaverage P((void ));
  66. int xmirror P((void ));
  67. int ymirror P((void ));
  68. int transpose P((void ));
  69.  
  70. /* io.i */
  71. int cread P((void *buf , int len ));
  72. int cwrite P((void *buf , int len ));
  73. int wrl P((u_long l ));
  74. int printe P((char *s , ...));
  75. int pute P((char c ));
  76. int init_counter P((int start , int end , int instep , char *s , ...));
  77. int counter P((void ));
  78. int erase_counter P((char *s , ...));
  79. int prin1 P((char *p ));
  80. int errorx P((long code , ...));
  81.  
  82. /* wriff.i */
  83. int write_iff P((void ));
  84. int wriff_init P((void ));
  85. int decide_mode P((void ));
  86. int is_ehb_distr P((void ));
  87. int compute_nregs P((void ));
  88. int write_header P((void ));
  89. int write_cmap P((void ));
  90. int write_sham P((void ));
  91. int write_body P((void ));
  92. int fillconv P((void ));
  93. int cmpcolregs P((short *p1 , short *p2 ));
  94. int sort_cm P((void ));
  95. char *slicednam P((int i ));
  96. char *xmodenam P((int i ));
  97. char *ymodenam P((int i ));
  98. char *dmethnam P((int i ));
  99. int dmethnum P((char *s ));
  100. char *cmethnam P((int i ));
  101. int cmethnum P((char *s ));
  102.  
  103. /* wriffcount.i */
  104. int clear_counts P((void ));
  105. int fill_xor_tab P((void ));
  106. void call1 P((int row ));
  107. void calldif P((int row ));
  108. void callfixdif P((int row ));
  109. void cjump1 P((int row ));
  110. void cjump21 P((int row ));
  111. void cjumpdif P((int row ));
  112. void cjumpdifsh P((int row ));
  113. void cjumpfixdif P((int row ));
  114. void cjumpfixdifsh P((int row ));
  115. void chammap P((int row ));
  116. void fill_curcm P((short meth ));
  117. int count_colors P((u_long thr ));
  118. int count_pixels P((int firstrow , int lastrow , int moverride ));
  119.  
  120. /* wriffdistr.i */
  121. int compute_distr P((int firstrow , int lastrow ));
  122. int no_distr P((void ));
  123. int mostused_distr P((void ));
  124. int worstfirst_distr P((void ));
  125. int fill_wf_rgb P((void ));
  126. int find_2_furthest P((short *rgb1p , short *rgb2p ));
  127. int fill_wf_dist_1 P((short color ));
  128. int fill_wf_dist_2 P((short color ));
  129. int find_1_furthest P((short *rgbp ));
  130. int fill_wf2rgbweight P((void ));
  131. int wf2_redo_curcm P((void ));
  132. int black_darkest P((void ));
  133. int ehb_distr P((void ));
  134. int ehb_pair P((short c1 , int i ));
  135. int ehb_worst P((short col1 , short col8 , short *worstp ));
  136. int ehb_farcol P((short color ));
  137. int ehb_minind_adjust P((int from , int to ));
  138. int ehb_redo_curcm P((void ));
  139. int mue_distr P((void ));
  140. int mue_extend P((void ));
  141. int hamsharp_distr P((void ));
  142. int fill_hsmark P((void ));
  143. int cmphs P((struct hs_t *p1 , struct hs_t *p2 ));
  144. int fill_hshead P((void ));
  145. int fill_hs_cm P((void ));
  146. int contraction_distr P((void ));
  147. int fill_ctrgbw P((void ));
  148. int fill_cthead P((void ));
  149. int do_contraction P((void ));
  150. int fill_ct_cm P((void ));
  151. int fill_cmrgb P((void ));
  152. int fill_newcol P((void ));
  153. int fill_newcol_count P((void ));
  154.  
  155. /* wriffout.i */
  156. int row_out P((int row ));
  157. int rgb_row_out P((int row ));
  158. int rgb_line P((int y , u_char *inq , int bitnum ));
  159. int ham_row_out P((int row ));
  160. int fill_prgbtab P((void ));
  161. u_char *next_row P((int flush ));
  162. int cwritec P((int inlen ));
  163.  
  164. /* scrsz.i */
  165. int get_scr_size P((void ));
  166. int resetsecs P((void ));
  167. long centisecs P((void ));
  168.  
  169. #undef P
  170.