CGDV.H 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // CGDV.H
  3. //
  4. // Include file for cgdv(): Function version of gdv player
  5. //
  6. // Set to not return to current video mode but leave screen on
  7. //#define HOLD_VIDMODE
  8. // Possible values for play_flags: (OR them together. Some are unavailable
  9. // e.g. fades on 32k colour GDV's)
  10. #define PL_SOUND (1<<0) // Plays anim with sound if available
  11. #define PL_FADE_IN (1<<1) // Fade anim in before playing
  12. #define PL_FADE_OUT (1<<2) // Fade anim out after playing
  13. #define PL_INFO (1<<3) // Display info before playing
  14. #define PL_HOLD (1<<4) // Holds image for PL_HOLD_TIME seconds before fade/exit
  15. #define PL_REPEAT (1<<5) // Loops gdv continuously
  16. #define PL_NO_STOP (1<<6) // Disables keyboard/mouse exit
  17. #define PL_VGA (1<<7) // Uses 320x200 VGA rather than SVGA screen
  18. #define PL_NO_DECODE (1<<8) // Turns frame decoding off } For debugging
  19. #define PL_NO_DISPLAY (1<<9) // Turns screen update off } only!
  20. // Return codes from cgdv
  21. #define PL_OKAY 0 // No problems
  22. #define PL_NO_FILE 1 // Could not find file
  23. #define PL_NOT_GDV 2 // File specified is not a GDV file
  24. #define PL_READ_ERROR 3 // Error while reading disk / CD
  25. #define PL_UNPLAYABLE 4 // GDV has wrong video/sound type, version etc.
  26. #define PL_NO_MEM 5 // Not enough memory to show anim
  27. #define PL_STOPPED 6 // Interrupted by key press or mouse click
  28. #define PL_BAD_FRAME 7 // Frame had bad magic number or type
  29. #define PL_NO_TIMER 8 // SOS could not allocate video timer event
  30. #define PL_CRITICAL 9 // Critical error returned by DOS
  31. #define PL_HOLD_TIME 2 // Hold time in seconds for PL_HOLD
  32. #define GDV_MEM 2097152 // 2 Megabytes expected by cgdv()
  33. // Prototype for playback routine
  34. int cgdv(char *fname, unsigned short play_flags, unsigned char *memory);
  35.