home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / mciavi.h < prev    next >
Text File  |  1998-04-25  |  3KB  |  82 lines

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *
  9. **    Copyright (C) Microsoft Corporation 1991-1996. All rights reserved.
  10. **
  11. **    Title: mciavi.h - Multimedia Systems Media Control Interface
  12. **    AVI driver external header file
  13. **
  14. **    Version:    1.00    
  15. **
  16. **    Date:        16-JUL-1992
  17. **
  18. **    Depends on MMSYSTEM.H and WINDOWS.h
  19. */
  20.  
  21. /************************************************************************/
  22.  
  23.  
  24. /*
  25. ** These three flags apply to the 'play' command:
  26. **    play <alias> window        Play in normal window
  27. **    play <alias> fullscreen        Play in 320x240 full-screen mode
  28. **    play <alias> fullscreen by 2    Play fullscreen, zoomed by 2
  29. */
  30. #define MCI_MCIAVI_PLAY_WINDOW        0x01000000L
  31. #define    MCI_MCIAVI_PLAY_FULLSCREEN    0x02000000L
  32. #define MCI_MCIAVI_PLAY_FULLBY2        0x04000000L
  33. /*
  34. ** Debugging constants for AVI diagnostics
  35. */
  36. /*
  37. ** Returns number of frames not drawn during last play.  If this number
  38. ** is more than a small fraction of the number of frames that should have
  39. ** been displayed, things aren't looking good.
  40. */
  41. #define MCI_AVI_STATUS_FRAMES_SKIPPED        0x8001L
  42. /*
  43. ** Returns a number representing how well the last AVI play worked.
  44. ** A result of 1000 indicates that the AVI sequence took the amount
  45. ** of time to play that it should have; a result of 2000, for instance,
  46. ** would indicate that a 5-second AVI sequence took 10 seconds to play,
  47. ** implying that the audio and video were badly broken up.
  48. */
  49. #define MCI_AVI_STATUS_LAST_PLAY_SPEED        0x8002L
  50. /*
  51. ** Returns the number of times that the audio definitely broke up.
  52. ** (We count one for every time we're about to write some audio data
  53. ** to the driver, and we notice that it's already played all of the
  54. ** data we have.
  55. */
  56. #define MCI_AVI_STATUS_AUDIO_BREAKS        0x8003L
  57.  
  58.  
  59. #define MCI_AVI_SETVIDEO_DRAW_PROCEDURE        0x8000L
  60.  
  61. #define MCI_AVI_SETVIDEO_PALETTE_COLOR        0x8100L
  62.  
  63.  
  64. /*
  65. ** This constant specifies that the "halftone" palette should be
  66. ** used, rather than the default palette.
  67. */
  68. #define MCI_AVI_SETVIDEO_PALETTE_HALFTONE       0x0000FFFFL
  69.  
  70. /*
  71. **    Custom error return values
  72. */
  73. #define MCIERR_AVI_OLDAVIFORMAT        (MCIERR_CUSTOM_DRIVER_BASE + 100)
  74. #define MCIERR_AVI_NOTINTERLEAVED    (MCIERR_CUSTOM_DRIVER_BASE + 101)
  75. #define MCIERR_AVI_NODISPDIB        (MCIERR_CUSTOM_DRIVER_BASE + 102)
  76. #define MCIERR_AVI_CANTPLAYFULLSCREEN    (MCIERR_CUSTOM_DRIVER_BASE + 103)
  77. #define MCIERR_AVI_TOOBIGFORVGA        (MCIERR_CUSTOM_DRIVER_BASE + 104)
  78. #define MCIERR_AVI_NOCOMPRESSOR         (MCIERR_CUSTOM_DRIVER_BASE + 105)
  79. #define MCIERR_AVI_DISPLAYERROR         (MCIERR_CUSTOM_DRIVER_BASE + 106)
  80. #define MCIERR_AVI_AUDIOERROR        (MCIERR_CUSTOM_DRIVER_BASE + 107)
  81. #define MCIERR_AVI_BADPALETTE        (MCIERR_CUSTOM_DRIVER_BASE + 108)
  82.