home *** CD-ROM | disk | FTP | other *** search
/ Cutting-Edge 3D Game Programming with C++ / CE3DC++.ISO / TOOLS / VFW / VFWDK / CAPTEST1.H_ / CAPTEST1.bin
Encoding:
Text File  |  1993-11-19  |  3.7 KB  |  122 lines

  1. /****************************************************************************
  2.  *
  3.  *   captest.h: Include file for the CapTest Sample Program
  4.  * 
  5.  *   Microsoft Video for Windows Capture Class Sample Program
  6.  *
  7.  ***************************************************************************/
  8. /**************************************************************************
  9.  *
  10.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  11.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  12.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  13.  *  PURPOSE.
  14.  *
  15.  *  Copyright (c) 1992, 1993  Microsoft Corporation.  All Rights Reserved.
  16.  * 
  17.  **************************************************************************/
  18.  
  19.  
  20. #include "dialogs.h"
  21.  
  22. //
  23. // General purpose constants...
  24. //
  25. #define MAXVIDDRIVERS            10
  26. #define MS_FOR_15FPS             66
  27. #define DEF_PALNUMFRAMES         10
  28. #define DEF_PALNUMCOLORS         236L
  29. #define ONEMEG                   (1024L * 1024L)
  30.  
  31. //
  32. // Menu Ids...
  33. //
  34. #define IDM_FILE                  100
  35. #define IDM_F_SETCAPTUREFILE      101
  36. #define IDM_F_SAVEVIDEOAS         102
  37. #define IDM_F_ALLOCATESPACE       103
  38. #define IDM_F_EXIT                104
  39.  
  40. #define IDM_EDIT                  110
  41. #define IDM_E_COPY                111
  42. #define IDM_E_PASTEPALETTE        112
  43.  
  44. #define IDM_CAPTURE               120
  45. #define IDM_C_CAPTUREVIDEO        121
  46. #define IDM_C_CAPTUREFRAME        122
  47. #define IDM_C_CAPTURESETTINGS     123
  48.  
  49. #define IDM_OPTIONS               130
  50. #define IDM_O_PREVIEW             131
  51. #define IDM_O_OVERLAY             132
  52. #define IDM_O_AUDIOFORMAT         133
  53. #define IDM_O_VIDEOFORMAT         134
  54. #define IDM_O_VIDEOSOURCE         135
  55. #define IDM_O_VIDEODISPLAY        136
  56. #define IDM_O_PALETTE             137
  57. #define IDM_O_CHOOSECOMPRESSOR    140
  58.  
  59. // !!! Leave some room after this define for the drivers
  60. #define IDM_O_DRIVERS             150
  61. #define IDM_O_DRIVERS1            151
  62. #define IDM_O_DRIVERS2            152
  63. #define IDM_O_DRIVERS3            153
  64. #define IDM_O_DRIVERS4            154
  65. #define IDM_O_DRIVERS5            155
  66. #define IDM_O_DRIVERS6            156
  67. #define IDM_O_DRIVERS7            157
  68. #define IDM_O_DRIVERS8            158
  69. #define IDM_O_DRIVERS9            159
  70. // The above are just reserved dummy IDs.
  71.  
  72. #define IDM_HELP                  190
  73. #define IDM_H_ABOUT               191
  74.  
  75. #define IDS_ERR_REGISTER_CLASS   1
  76. #define IDS_ERR_CREATE_WINDOW    2
  77.  
  78.  
  79. //
  80. // Macro Definitions...
  81. //
  82. #define IsDriverIndex(w) ( ((w) >= IDM_O_DRIVERS)  &&  \
  83.                            ((w) - IDM_O_DRIVERS < MAXVIDDRIVERS) )
  84.  
  85. #define Width(X)  ((X).right - (X).left)
  86. #define Height(X) ((X).bottom - (X).top)
  87.  
  88.  
  89. //
  90. // Global Variables...
  91. //
  92. extern char           gachAppName[] ;
  93. extern char           gachIconName[] ;
  94. extern char           gachMenuName[] ;
  95. extern char           gachString[] ;
  96. extern char           gachMCIDeviceName[] ;
  97.  
  98. extern HWND           ghInst ;
  99. extern HWND           ghWndMain ;
  100. extern HWND           ghWndCap ;
  101. extern HANDLE         ghAccel ;
  102. extern WORD           gwDeviceIndex ;
  103. extern WORD           gwPalFrames ; 
  104. extern WORD           gwPalColors ;
  105. extern WORD           gwCapFileSize ;
  106.  
  107. extern CAPSTATUS      gCapStatus ;
  108. extern CAPDRIVERCAPS  gCapDriverCaps ;
  109. extern CAPTUREPARMS   gCapParms ;
  110.  
  111. extern LPWAVEFORMATEX glpwfex ;
  112.  
  113. //
  114. // Dialog Box Procedures... 
  115. //
  116. int FAR PASCAL AboutProc(HWND, UINT, UINT, LONG) ;
  117. int FAR PASCAL AudioFormatProc(HWND, UINT, UINT, LONG) ;
  118. int FAR PASCAL CapSetUpProc(HWND, UINT, UINT, LONG) ;
  119. BOOL CALLBACK MakePaletteProc(HWND, UINT, UINT, LONG) ;
  120. int FAR PASCAL AllocCapFileProc(HWND, UINT, UINT, LONG) ;
  121.  
  122.