home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff397.lzh / DKBTrace / DKBSource.LZH / dumproto.h < prev    next >
C/C++ Source or Header  |  1990-08-26  |  3KB  |  77 lines

  1. /*****************************************************************************
  2. *
  3. *                                   dumproto.h
  4. *
  5. *   from DKBTrace (c) 1990  David Buck
  6. *
  7. *  This file contains prototypes for DumpToIFF
  8. *
  9. * This software is freely distributable. The source and/or object code may be
  10. * copied or uploaded to communications services so long as this notice remains
  11. * at the top of each file.  If any changes are made to the program, you must
  12. * clearly indicate in the documentation and in the programs startup message
  13. * who it was who made the changes. The documentation should also describe what
  14. * those changes were. This software may not be included in whole or in
  15. * part into any commercial package without the express written consent of the
  16. * author.  It may, however, be included in other public domain or freely
  17. * distributed software so long as the proper credit for the software is given.
  18. *
  19. * This software is provided as is without any guarantees or warranty. Although
  20. * the author has attempted to find and correct any bugs in the software, he
  21. * is not responsible for any damage caused by the use of the software.  The
  22. * author is under no obligation to provide service, corrections, or upgrades
  23. * to this package.
  24. *
  25. * Despite all the legal stuff above, if you do find bugs, I would like to hear
  26. * about them.  Also, if you have any comments or questions, you may contact me
  27. * at the following address:
  28. *
  29. *     David Buck
  30. *     22C Sonnet Cres.
  31. *     Nepean Ontario
  32. *     Canada, K2H 8W7
  33. *
  34. *  I can also be reached on the following bulleton boards:
  35. *
  36. *     ATX              (613) 526-4141
  37. *     OMX              (613) 731-3419
  38. *     Mystic           (613) 731-0088 or (613) 731-6698
  39. *
  40. *  Fidonet:   1:163/109.9
  41. *  Internet:  David_Buck@Carleton.CA
  42. *
  43. *
  44. *****************************************************************************/
  45.  
  46. /* Prototypes from DumpToIFF.c */
  47.  
  48. void display_close (void);
  49. void display_plot (LONG x, LONG y, LONG new_red, LONG new_green, LONG new_blue);
  50. void process (LONG x, LONG y, LONG new_red, LONG new_green, LONG new_blue);
  51. void ConvertToIFF(char *file_name);
  52. int read_raw_byte(FILE *f);
  53. int read_raw_word(FILE *f);
  54. void read_raw_image (IMAGE *Image, char *filename);
  55. void dither (IMAGE *Image);
  56.  
  57. /* Prototypes from palette.c */
  58.  
  59. void reset_colours (void);
  60. int closeness(int x, int y);
  61. void start_recording_colours (void);
  62. void record_colours (int new_red, int new_green, int new_blue);
  63. void choose_palette(void);
  64. int best_colour (int new_red, int new_blue, int new_green);
  65.  
  66. /* Prototypes from showpriow.h */
  67.  
  68. struct prioq_struct *pq_new (int index_size, int value_size);
  69. void pq_add (struct prioq *q, unsigned int index, unsigned int value);
  70. int pq_find_value (struct prioq *q, unsigned int value);
  71. void pq_balance(struct prioq *q, unsigned int entry_pos1);
  72. int pq_get_highest_index(struct prioq *q);
  73. int pq_get_highest_value(struct prioq *q);
  74. void pq_delete_highest (struct prioq *q);
  75. void pq_free (struct prioq *q);
  76.  
  77.