home *** CD-ROM | disk | FTP | other *** search
/ Graphics 16,000 / graphics-16000.iso / msdos / animutil / pvquan / flilib / aaflisav.h < prev    next >
C/C++ Source or Header  |  1992-11-30  |  1KB  |  32 lines

  1. /* aaflisav.h  Copyright 1990 Dancing Flame, San Francisco */
  2.  
  3. #ifndef AAFLISAV_H
  4. #define AAFLISAV_H
  5.  
  6. /* Compress a frame into a RAM buffer.  Return size of frame. */
  7. unsigned fli_comp_frame(Cbuf *comp_buf,         /* Buffer FLI_CBUF_SIZE or bigger */
  8.     Pixel *last_screen, Cmap *last_cmap,     /* Data from previous frame */
  9.     Pixel *this_screen, Cmap *this_cmap,    /* Data for this frame */
  10.     int type);                                        /* FLI_BRUN?  FLI_LC? */
  11.  
  12. /* Open FLI file and write out first frame.  Return file handle if things
  13.    go well, error code otherwise */
  14. FILE *fli_create(char *fliname,         /* file name */
  15.     Fli_head *fh,                     /* fli_create will initialize this */
  16.     int speed);                        /* Speed in 1/70th of a second */
  17.  
  18. /* Write succeeding frames of a FLI. */
  19. Errval fli_write_next(FILE *ff,                 /* FLI file returned by fli_create */
  20.     Fli_head *fh,                         /* Same header used by fli_create */
  21.     Vscreen *this,                         /* Current frame */
  22.     Vscreen *last);                        /* Previous frame */
  23.  
  24. /* Finish up writing a FLI file...
  25.    Write the 'ring frame', that is the difference between the first and
  26.    last frame of a fli.  Pass in the final frame of the FLI in last_frame.
  27.    firstf_buf will be loaded with the first frame of the FLI as a side
  28.    effect.  */ 
  29. Errval fli_end(FILE *ff, Fli_head *fh, Vscreen *end_frame, Vscreen *firstf_buf);
  30.  
  31. #endif /* AAFLISAV_H */
  32.