home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / winh / mciavi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  2.9 KB  |  79 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-1995. 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. ** These three flags apply to the 'play' command:
  25. **    play <alias> window        Play in normal window
  26. **    play <alias> fullscreen        Play in 320x240 full-screen mode
  27. **    play <alias> fullscreen by 2    Play fullscreen, zoomed by 2
  28. */
  29. #define MCI_MCIAVI_PLAY_WINDOW        0x01000000L
  30. #define    MCI_MCIAVI_PLAY_FULLSCREEN    0x02000000L
  31. #define MCI_MCIAVI_PLAY_FULLBY2        0x04000000L
  32. /*
  33. ** Debugging constants for AVI diagnostics
  34. */
  35. /* 
  36. ** Returns number of frames not drawn during last play.  If this number
  37. ** is more than a small fraction of the number of frames that should have
  38. ** been displayed, things aren't looking good.
  39. */
  40. #define MCI_AVI_STATUS_FRAMES_SKIPPED        0x8001L
  41. /*
  42. ** Returns a number representing how well the last AVI play worked.
  43. ** A result of 1000 indicates that the AVI sequence took the amount
  44. ** of time to play that it should have; a result of 2000, for instance,
  45. ** would indicate that a 5-second AVI sequence took 10 seconds to play,
  46. ** implying that the audio and video were badly broken up.
  47. */
  48. #define MCI_AVI_STATUS_LAST_PLAY_SPEED        0x8002L
  49. /*
  50. ** Returns the number of times that the audio definitely broke up.
  51. ** (We count one for every time we're about to write some audio data
  52. ** to the driver, and we notice that it's already played all of the
  53. ** data we have.
  54. */
  55. #define MCI_AVI_STATUS_AUDIO_BREAKS        0x8003L
  56.  
  57. #define MCI_AVI_SETVIDEO_DRAW_PROCEDURE        0x8000L
  58.  
  59. #define MCI_AVI_SETVIDEO_PALETTE_COLOR        0x8100L
  60.  
  61. /*
  62. ** This constant specifies that the "halftone" palette should be
  63. ** used, rather than the default palette.
  64. */
  65. #define MCI_AVI_SETVIDEO_PALETTE_HALFTONE       0x0000FFFFL
  66.  
  67. /*
  68. **    Custom error return values
  69. */
  70. #define MCIERR_AVI_OLDAVIFORMAT        (MCIERR_CUSTOM_DRIVER_BASE + 100)
  71. #define MCIERR_AVI_NOTINTERLEAVED    (MCIERR_CUSTOM_DRIVER_BASE + 101)
  72. #define MCIERR_AVI_NODISPDIB        (MCIERR_CUSTOM_DRIVER_BASE + 102)
  73. #define MCIERR_AVI_CANTPLAYFULLSCREEN    (MCIERR_CUSTOM_DRIVER_BASE + 103)
  74. #define MCIERR_AVI_TOOBIGFORVGA        (MCIERR_CUSTOM_DRIVER_BASE + 104)
  75. #define MCIERR_AVI_NOCOMPRESSOR         (MCIERR_CUSTOM_DRIVER_BASE + 105)
  76. #define MCIERR_AVI_DISPLAYERROR         (MCIERR_CUSTOM_DRIVER_BASE + 106)
  77. #define MCIERR_AVI_AUDIOERROR        (MCIERR_CUSTOM_DRIVER_BASE + 107)
  78. #define MCIERR_AVI_BADPALETTE        (MCIERR_CUSTOM_DRIVER_BASE + 108)
  79.