home *** CD-ROM | disk | FTP | other *** search
/ Media Gallery 1996 January / MG_0196.ISO / spea / install / stplus / documci / mcimpeg.h next >
C/C++ Source or Header  |  1994-11-03  |  3KB  |  102 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.  *  Copyright (c) 1994  Microsoft Corporation.  All Rights Reserved.
  9.  *
  10.  *  FILE:   MCIMPEG.H
  11.  *      
  12.  *  DESCRIPTION:
  13.  *      Include file extension for the MCI-MPEG Command Set, depends
  14.  *    on digitalv.h
  15.  *    
  16.  *  HISTORY:
  17.  *      September 10, 1994     -Version 1.0 Beta Release
  18.  *    November 3, 1994 -      Version 1.0a Beta
  19.  *
  20.  **************************************************************************/
  21.  
  22. #ifndef _INC_MCIMPEG
  23. #define _INC_MCIMPEG  100
  24.  
  25. #ifndef NOMCIMPEG
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {            /* Assume C declarations for C++ */
  29. #endif    /* __cplusplus */
  30.  
  31.  
  32. /* New Commands */
  33.  
  34. #define MCI_CREATEDC                        0x0890
  35. #define MCI_UPDATEDC                        0x0891
  36. #define MCI_RELEASEDC                       0x0892
  37.  
  38. /* flags for dwFlags parameter of MCI_RELEASEDC command message  */
  39. #define MCI_MPEG_RELEASEDC_HDC              0x00010000L
  40.  
  41. /* parameter block for MCI_RELEASEDC */
  42. typedef struct {
  43.     DWORD   dwCallback;
  44.     HDC     hDC;
  45. #ifndef WIN32
  46.     WORD    wReserved0;
  47. #endif
  48. } MCI_MPEG_RELEASEDC_PARMS;
  49. typedef MCI_MPEG_RELEASEDC_PARMS FAR * LPMCI_MPEG_RELEASEDC_PARMS;
  50.  
  51. /* flags for the dwFlags parameter of MCI_SEEK  */
  52. #define MCI_MPEG_SEEK_OFFSET                0x00010000L
  53. #define MCI_MPEG_SEEK_FRAMEREF              0x00020000L
  54.  
  55. /* parameter block for extended MCI_SEEK command */
  56. typedef struct MCI_MPEG_SEEK_PARMS {
  57.     DWORD    dwCallback;
  58.     DWORD    dwTo;
  59.     DWORD    dwOffset;
  60.     DWORD    dwFrameRef;
  61. } MCI_MPEG_SEEK_PARMS;
  62. typedef MCI_MPEG_SEEK_PARMS FAR * LPMCI_MPEG_SEEK_PARMS;
  63.     
  64. /* MCI_STATUS - new status items */
  65. #define MCI_MPEG_STATUS_VIDEO_STREAMS       0x00004100L
  66. #define MCI_MPEG_STATUS_VIDEO_BITRATE       0x00004101L
  67. #define MCI_MPEG_STATUS_VIDEO_MAXBITRATE    0x00004102L
  68. #define MCI_MPEG_STATUS_AUDIO_STREAMS       0x00004103L
  69. #define MCI_MPEG_STATUS_AUDIO_BITRATE       0x00004104L
  70. #define MCI_MPEG_STATUS_VIDEO_BRUSH         0x00004105L
  71.  
  72. /* flags for the dwFlags parameter of MCI_STEP  */
  73. #define MCI_MPEG_STEP_KEY                   0x00040000L 
  74.  
  75. /* flags for dwFlags parameter of MCI_WHERE command message  */
  76. #define MCI_MPEG_WHERE_MIN                  0x00800000L
  77.  
  78. /* parameter block and flags for MCI_UPDATEDC, see MCI_DGV_UPDATE_PARMS */
  79. /* parameter block for MCI_CREATEDC, use DGV_RECT flags */
  80.  
  81. typedef struct {
  82.     DWORD   dwCallback;
  83.     DWORD   dwReturn;
  84. #ifdef MCI_USE_OFFEXT
  85.     POINT   ptOffset;
  86.     POINT   ptExtent;
  87. #else    
  88.     RECT    rc;
  89. #endif  
  90. } MCI_MPEG_CREATEDC_PARMS;
  91. typedef MCI_MPEG_CREATEDC_PARMS FAR * LPMCI_MPEG_CREATEDC_PARMS;
  92.  
  93.  
  94.  
  95. #ifdef __cplusplus
  96. }                       /* End of extern "C" { */
  97. #endif    /* __cplusplus */
  98.  
  99. #endif  /* !NOMCIMPEG */
  100.  
  101. #endif  /* !_INC_MCIMPEG */
  102.