home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / TasmD3DRMdemo.ZIP / tdx61inc.ZIP / tdvp.inc < prev    next >
Encoding:
Text File  |  1999-08-10  |  12.4 KB  |  294 lines

  1. ; tdvp.inc  (c) Minde  06/08/99 montana@is.lt
  2. ; Content:  TASM DirectDrawVideoPort include file ver. 1.2
  3. ; converted from dvp.h, DX ver. 6.1
  4. ;
  5. ;  Feel free to use or distribute the package, part or whole, for any
  6. ; non-commercial use preferably crediting me.
  7. ;  Also feel free to contact me at the above address if you experience any
  8. ; problems or notice any omissions.
  9. ;
  10.  
  11.  
  12. IID_IDDVideoPortContainer   GUID <06C142760h,0A733h,011CEh,0A5h,021h,000h,020h,0AFh,00Bh,0E5h,060h>
  13. IID_IDirectDrawVideoPort    GUID <0B36D93E0h,02B43h,011CFh,0A2h,0DEh,000h,0AAh,000h,0B9h,033h,056h>
  14.  
  15. DDVPTYPE_E_HREFH_VREFH      GUID <054F39980h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  16. DDVPTYPE_E_HREFH_VREFL      GUID <092783220h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  17. DDVPTYPE_E_HREFL_VREFH      GUID <0A07A02E0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  18. DDVPTYPE_E_HREFL_VREFL      GUID <0E09C77E0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  19. DDVPTYPE_CCIR656            GUID <0FCA326A0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  20. DDVPTYPE_BROOKTREE          GUID <01352A560h,0DA61h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  21. DDVPTYPE_PHILIPS            GUID <0332CF160h,0DA61h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
  22.  
  23.  
  24. ; *
  25. ; * DirectDraw Structures
  26. ; *
  27.  
  28. DDVIDEOPORTCONNECT struct
  29. ddvideoportconnect_dwSize              DD ? ; size of the TDDVideoPortConnect structure
  30. ddvideoportconnect_dwPortWidth         DD ? ; Width of the video port
  31. ddvideoportconnect_guidTypeID          GUID ? ; Description of video port connection
  32. ddvideoportconnect_dwFlags             DD ? ; Connection flags
  33. ddvideoportconnect_dwReserved1         DD ? ; Reserved, set to zero.
  34. DDVIDEOPORTCONNECT ends
  35.  
  36. DDVIDEOPORTCAPS struct
  37. ddvideoportcaps_dwSize                          DD ? ; size of the TDDVideoPortCaps structure
  38. ddvideoportcaps_dwFlags                         DD ? ; indicates which fields contain data
  39. ddvideoportcaps_dwMaxWidth                      DD ? ; max width of the video port field
  40. ddvideoportcaps_dwMaxVBIWidth                   DD ? ; max width of the VBI data
  41. ddvideoportcaps_dwMaxHeight                     DD ? ; max height of the video port field
  42. ddvideoportcaps_dwVideoPortID                   DD ? ; Video port ID (0 - (dwMaxVideoPorts -1))
  43. ddvideoportcaps_dwCaps                          DD ? ; Video port capabilities
  44. ddvideoportcaps_dwFX                            DD ? ; More video port capabilities
  45. ddvideoportcaps_dwNumAutoFlipSurfaces           DD ? ; Number of autoflippable surfaces
  46. ddvideoportcaps_dwAlignVideoPortBoundary        DD ? ; Byte restriction of placement within the surface
  47. ddvideoportcaps_dwAlignVideoPortPrescaleWidth   DD ? ; Byte restriction of width after prescaling
  48. ddvideoportcaps_dwAlignVideoPortCropBoundary    DD ? ; Byte restriction of left cropping
  49. ddvideoportcaps_dwAlignVideoPortCropWidth       DD ? ; Byte restriction of cropping width
  50. ddvideoportcaps_dwPreshrinkXStep                DD ? ; Width can be shrunk in steps of 1/x
  51. ddvideoportcaps_dwPreshrinkYStep                DD ? ; Height can be shrunk in steps of 1/x
  52. ddvideoportcaps_dwNumVBIAutoFlipSurfaces        DD ? ; Number of VBI autoflippable surfaces
  53. ddvideoportcaps_dwNumPreferredAutoflip          DD ? ; Optimal number of autoflippable surfaces for hardware
  54. ddvideoportcaps_wNumFilterTapsX                 DW ? ; Number of taps the prescaler uses in the X direction (0 - no prescale, 1 - replication, etc.)
  55. ddvideoportcaps_wNumFilterTapsY                 DW ? ; Number of taps the prescaler uses in the Y direction (0 - no prescale, 1 - replication, etc.)
  56. DDVIDEOPORTCAPS ends
  57.  
  58. DDVPD_WIDTH             = 00000001h;
  59. DDVPD_HEIGHT            = 00000002h;
  60. DDVPD_ID                = 00000004h;
  61. DDVPD_CAPS              = 00000008h;
  62. DDVPD_FX                = 00000010h;
  63. DDVPD_AUTOFLIP          = 00000020h;
  64. DDVPD_ALIGN             = 00000040h;
  65. DDVPD_PREFERREDAUTOFLIP = 00000080h;
  66. DDVPD_FILTERQUALITY     = 00000100h;
  67.  
  68. DDVIDEOPORTDESC struct
  69. ddvideoportdesc_dwSize                  DD ? ; size of the TDDVideoPortDesc structure
  70. ddvideoportdesc_dwFieldWidth            DD ? ; width of the video port field
  71. ddvideoportdesc_dwVBIWidth              DD ? ; width of the VBI data
  72. ddvideoportdesc_dwFieldHeight           DD ? ; height of the video port field
  73. ddvideoportdesc_dwMicrosecondsPerField  DD ? ; Microseconds per video field
  74. ddvideoportdesc_dwMaxPixelsPerSecond    DD ? ; Maximum pixel rate per second
  75. ddvideoportdesc_dwVideoPortID           DD ? ; Video port ID (0 - (dwMaxVideoPorts -1))
  76. ddvideoportdesc_dwReserved1             DD ? ; Reserved for future use - set to zero
  77. ddvideoportdesc_VideoPortType           DDVIDEOPORTCONNECT ? ; Description of video port connection
  78. ddvideoportdesc_dwReserved2             DD ? ; Reserved for future use - set to zero
  79. ddvideoportdesc_dwReserved3             DD ? ; Reserved for future use - set to zero
  80. DDVIDEOPORTDESC ends
  81.  
  82. DDVIDEOPORTINFO struct
  83. ddvideoportinfo_dwSize                  DD ? ; Size of the structure
  84. ddvideoportinfo_dwOriginX               DD ? ; Placement of the video data within the surface.
  85. ddvideoportinfo_dwOriginY               DD ? ; Placement of the video data within the surface.
  86. ddvideoportinfo_dwVPFlags               DD ? ; Video port options
  87. ddvideoportinfo_rCrop                   RECT ? ; Cropping rectangle (optional).
  88. ddvideoportinfo_dwPrescaleWidth         DD ? ; Determines pre-scaling/zooming in the X direction (optional).
  89. ddvideoportinfo_dwPrescaleHeight        DD ? ; Determines pre-scaling/zooming in the Y direction (optional).
  90. ddvideoportinfo_lpddpfInputFormat       DD ? ; Video format written to the video port
  91. ddvideoportinfo_lpddpfVBIInputFormat    DD ? ; Input format of the VBI data
  92. ddvideoportinfo_lpddpfVBIOutputFormat   DD ? ; Output format of the data
  93. ddvideoportinfo_dwVBIHeight             DD ? ; Specifies the number of lines of data within the vertical blanking interval.
  94. ddvideoportinfo_dwReserved1             DD ? ; Reserved for future use - set to zero
  95. ddvideoportinfo_dwReserved2             DD ? ; Reserved for future use - set to zero
  96. DDVIDEOPORTINFO ends
  97.  
  98.  
  99. DDVIDEOPORTBANDWIDTH struct
  100. ddvideoportbandwidth_dwSize                  DD ? ; Size of the structure
  101. ddvideoportbandwidth_dwCaps                  DD ? ;
  102. ddvideoportbandwidth_dwOverlay               DD ? ; Zoom factor at which overlay is supported
  103. ddvideoportbandwidth_dwColorkey              DD ? ; Zoom factor at which overlay w/ colorkey is supported
  104. ddvideoportbandwidth_dwYInterpolate          DD ? ; Zoom factor at which overlay w/ Y interpolation is supported
  105. ddvideoportbandwidth_dwYInterpAndColorkey    DD ? ; Zoom factor at which ovelray w/ Y interpolation and colorkeying is supported
  106. ddvideoportbandwidth_dwReserved1             DD ? ; Reserved for future use - set to zero
  107. ddvideoportbandwidth_dwReserved2             DD ? ; Reserved for future use - set to zero
  108. DDVIDEOPORTBANDWIDTH ends
  109.  
  110. DDVIDEOPORTSTATUS struct
  111. ddvideoportstatus_dwSize                  DD ? ; Size of the structure
  112. ddvideoportstatus_bInUse                  DD ? ; TRUE if video port is currently being used
  113. ddvideoportstatus_dwFlags                 DD ? ; Currently not used
  114. ddvideoportstatus_dwReserved1             DD ? ; Reserved for future use
  115. ddvideoportstatus_VideoPortType           DDVIDEOPORTCONNECT ? ; Information about the connection
  116. ddvideoportstatus_dwReserved2             DD ? ; Reserved for future use
  117. ddvideoportstatus_dwReserved3             DD ? ; Reserved for future use
  118. DDVIDEOPORTSTATUS ends
  119.  
  120. ; *
  121. ; * Video Port Flags
  122. ; *
  123. ; * All flags are bit flags.
  124. ; *
  125.  
  126. ; *
  127. ; * VIDEOPORT TDDVideoPortConnect FLAGS
  128. ; *
  129. DDVPCONNECT_DOUBLECLOCK         = 00000001h;
  130. DDVPCONNECT_VACT                = 00000002h;
  131. DDVPCONNECT_INVERTPOLARITY      = 00000004h;
  132. DDVPCONNECT_DISCARDSVREFDATA    = 00000008h;
  133. DDVPCONNECT_HALFLINE            = 00000010h;
  134. DDVPCONNECT_INTERLACED          = 00000020h;
  135. DDVPCONNECT_SHAREEVEN           = 00000040h;
  136. DDVPCONNECT_SHAREODD            = 00000080h;
  137.  
  138. ; *
  139. ; * VIDEOPORT TDDVideoPortDesc CAPS
  140. ; *
  141. DDVPCAPS_AUTOFLIP                   = 00000001h;
  142. DDVPCAPS_INTERLACED                 = 00000002h;
  143. DDVPCAPS_NONINTERLACED              = 00000004h;
  144. DDVPCAPS_READBACKFIELD              = 00000008h;
  145. DDVPCAPS_READBACKLINE               = 00000010h;
  146. DDVPCAPS_SHAREABLE                  = 00000020h;
  147. DDVPCAPS_SKIPEVENFIELDS             = 00000040h;
  148. DDVPCAPS_SKIPODDFIELDS              = 00000080h;
  149. DDVPCAPS_SYNCMASTER                 = 00000100h;
  150. DDVPCAPS_VBISURFACE                 = 00000200h;
  151. DDVPCAPS_COLORCONTROL               = 00000400h;
  152. DDVPCAPS_OVERSAMPLEDVBI             = 00000800h;
  153. DDVPCAPS_SYSTEMMEMORY               = 00001000h;
  154. DDVPCAPS_VBIANDVIDEOINDEPENDENT     = 00002000h;
  155. DDVPCAPS_HARDWAREDEINTERLACE        = 00004000h;
  156.  
  157. ; *
  158. ; * VIDEOPORT TDDVideoPortDesc FX
  159. ; *
  160. DDVPFX_CROPTOPDATA      = 00000001h;
  161. DDVPFX_CROPX            = 00000002h;
  162. DDVPFX_CROPY            = 00000004h;
  163. DDVPFX_INTERLEAVE       = 00000008h;
  164. DDVPFX_MIRRORLEFTRIGHT  = 00000010h;
  165. DDVPFX_MIRRORUPDOWN     = 00000020h;
  166. DDVPFX_PRESHRINKX       = 00000040h;
  167. DDVPFX_PRESHRINKY       = 00000080h;
  168. DDVPFX_PRESHRINKXB      = 00000100h;
  169. DDVPFX_PRESHRINKYB      = 00000200h;
  170. DDVPFX_PRESHRINKXS      = 00000400h;
  171. DDVPFX_PRESHRINKYS      = 00000800h;
  172. DDVPFX_PRESTRETCHX      = 00001000h;
  173. DDVPFX_PRESTRETCHY      = 00002000h;
  174. DDVPFX_PRESTRETCHXN     = 00004000h;
  175. DDVPFX_PRESTRETCHYN     = 00008000h;
  176. DDVPFX_VBICONVERT       = 00010000h;
  177. DDVPFX_VBINOSCALE       = 00020000h;
  178. DDVPFX_IGNOREVBIXCROP   = 00040000h;
  179. DDVPFX_VBINOINTERLEAVE  = 00080000h;
  180.  
  181. ; *
  182. ; * VIDEOPORT TDDVideoPortInfo FLAGS
  183. ; *
  184. DDVP_AUTOFLIP               = 00000001h;
  185. DDVP_CONVERT                = 00000002h;
  186. DDVP_CROP                   = 00000004h;
  187. DDVP_INTERLEAVE             = 00000008h;
  188. DDVP_MIRRORLEFTRIGHT        = 00000010h;
  189. DDVP_MIRRORUPDOWN           = 00000020h;
  190. DDVP_PRESCALE               = 00000040h;
  191. DDVP_SKIPEVENFIELDS         = 00000080h;
  192. DDVP_SKIPODDFIELDS          = 00000100h;
  193. DDVP_SYNCMASTER             = 00000200h;
  194. DDVP_VBICONVERT             = 00000400h;
  195. DDVP_VBINOSCALE             = 00000800h;
  196. DDVP_OVERRIDEBOBWEAVE       = 00001000h;
  197. DDVP_IGNOREVBIXCROP         = 00002000h;
  198. DDVP_VBINOINTERLEAVE        = 00004000h;
  199. DDVP_HARDWAREDEINTERLACE    = 00008000h;
  200.  
  201. ; *
  202. ; * DIRIRECTDRAWVIDEOPORT GETINPUTFORMAT/GETOUTPUTFORMAT FLAGS
  203. ; *
  204. DDVPFORMAT_VIDEO    = 00000001h;
  205. DDVPFORMAT_VBI      = 00000002h;
  206.  
  207. ; *
  208. ; * DIRIRECTDRAWVIDEOPORT SETTARGETSURFACE FLAGS
  209. ; *
  210. DDVPTARGET_VIDEO    = 00000001h;
  211. DDVPTARGET_VBI      = 00000002h;
  212.  
  213. ; *
  214. ; * DIRIRECTDRAWVIDEOPORT WAITFORSYNC FLAGS
  215. ; *
  216. DDVPWAIT_BEGIN      = 00000001h;
  217. DDVPWAIT_END        = 00000002h;
  218. DDVPWAIT_LINE       = 00000003h;
  219.  
  220. ; *
  221. ; * DIRECTDRAWVIDEOPORT FLIP FLAGS
  222. ; *
  223. DDVPFLIP_VIDEO      = 00000001h;
  224. DDVPFLIP_VBI        = 00000002h;
  225.  
  226. ; *
  227. ; * DIRIRECTDRAWVIDEOPORT GETVIDEOSIGNALSTATUS VALUES
  228. ; *
  229. DDVPSQ_NOSIGNAL = 00000001h;
  230. DDVPSQ_SIGNALOK = 00000002h;
  231.  
  232. ; *
  233. ; * VIDEOPORTBANDWIDTH Flags
  234. ; *
  235. DDVPB_VIDEOPORT = 00000001h;
  236. DDVPB_OVERLAY   = 00000002h;
  237. DDVPB_TYPE      = 00000004h;
  238.  
  239. ; *
  240. ; * VIDEOPORTBANDWIDTH Caps
  241. ; *
  242. DDVPBCAPS_SOURCE        = 00000001h;
  243. DDVPBCAPS_DESTINATION   = 00000002h;
  244.  
  245. ; *
  246. ; * DDVIDEOPORTCONTAINER CreateVideoPort flags
  247. ; *
  248. DDVPCREATE_VBIONLY            = 00000001h;
  249. DDVPCREATE_VIDEOONLY          = 00000002h;
  250.  
  251. ; *
  252. ; * DDVIDEOPORTSTATUS flags
  253. ; *
  254. DDVPSTATUS_VBIONLY            = 00000001h;
  255. DDVPSTATUS_VIDEOONLY          = 00000002h;
  256.  
  257.  
  258. ; IDirectDrawVideoPort
  259. ; IUnknown methods
  260. DDVPQueryInterface          = 0
  261. DDVPAddRef                  = 4
  262. DDVPRelease                 = 8
  263. ; IDirectDrawVideoPort methods
  264. DDVPFlip                    = 12
  265. DDVPGetBandwidthInfo        = 16
  266. DDVPGetColorControls        = 20
  267. DDVPGetInputFormats         = 24
  268. DDVPGetOutputFormats        = 28
  269. DDVPGetFieldPolarity        = 32
  270. DDVPGetVideoLine            = 36
  271. DDVPGetVideoSignalStatus    = 40
  272. DDVPSetColorControls        = 44
  273. DDVPSetTargetSurface        = 48
  274. DDVPStartVideo              = 52
  275. DDVPStopVideo               = 56
  276. DDVPUpdateVideo             = 60
  277. DDVPWaitForSync             = 64
  278.  
  279.  
  280. ; IDirectDrawVideoPortContainer
  281. ; IUnknown methods
  282. DDVPCQueryInterface            = 0
  283. DDVPCAddRef                    = 4
  284. DDVPCRelease                   = 8
  285. ; IDDVideoPortContainer methods
  286. DDVPCCreateVideoPort            = 12
  287. DDVPCEnumVideoPorts             = 16
  288. DDVPCGetVideoPortConnectInfo    = 20
  289. DDVPCQueryVideoPortStatus       = 24
  290.  
  291.  
  292. ;end of file
  293.  
  294.