home *** CD-ROM | disk | FTP | other *** search
- ; tdvp.inc (c) Minde 06/08/99 montana@is.lt
- ; Content: TASM DirectDrawVideoPort include file ver. 1.2
- ; converted from dvp.h, DX ver. 6.1
- ;
- ; Feel free to use or distribute the package, part or whole, for any
- ; non-commercial use preferably crediting me.
- ; Also feel free to contact me at the above address if you experience any
- ; problems or notice any omissions.
- ;
-
-
- IID_IDDVideoPortContainer GUID <06C142760h,0A733h,011CEh,0A5h,021h,000h,020h,0AFh,00Bh,0E5h,060h>
- IID_IDirectDrawVideoPort GUID <0B36D93E0h,02B43h,011CFh,0A2h,0DEh,000h,0AAh,000h,0B9h,033h,056h>
-
- DDVPTYPE_E_HREFH_VREFH GUID <054F39980h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_E_HREFH_VREFL GUID <092783220h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_E_HREFL_VREFH GUID <0A07A02E0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_E_HREFL_VREFL GUID <0E09C77E0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_CCIR656 GUID <0FCA326A0h,0DA60h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_BROOKTREE GUID <01352A560h,0DA61h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
- DDVPTYPE_PHILIPS GUID <0332CF160h,0DA61h,011CFh,09Bh,006h,000h,0A0h,0C9h,003h,0A3h,0B8h>
-
-
- ; *
- ; * DirectDraw Structures
- ; *
-
- DDVIDEOPORTCONNECT struct
- ddvideoportconnect_dwSize DD ? ; size of the TDDVideoPortConnect structure
- ddvideoportconnect_dwPortWidth DD ? ; Width of the video port
- ddvideoportconnect_guidTypeID GUID ? ; Description of video port connection
- ddvideoportconnect_dwFlags DD ? ; Connection flags
- ddvideoportconnect_dwReserved1 DD ? ; Reserved, set to zero.
- DDVIDEOPORTCONNECT ends
-
- DDVIDEOPORTCAPS struct
- ddvideoportcaps_dwSize DD ? ; size of the TDDVideoPortCaps structure
- ddvideoportcaps_dwFlags DD ? ; indicates which fields contain data
- ddvideoportcaps_dwMaxWidth DD ? ; max width of the video port field
- ddvideoportcaps_dwMaxVBIWidth DD ? ; max width of the VBI data
- ddvideoportcaps_dwMaxHeight DD ? ; max height of the video port field
- ddvideoportcaps_dwVideoPortID DD ? ; Video port ID (0 - (dwMaxVideoPorts -1))
- ddvideoportcaps_dwCaps DD ? ; Video port capabilities
- ddvideoportcaps_dwFX DD ? ; More video port capabilities
- ddvideoportcaps_dwNumAutoFlipSurfaces DD ? ; Number of autoflippable surfaces
- ddvideoportcaps_dwAlignVideoPortBoundary DD ? ; Byte restriction of placement within the surface
- ddvideoportcaps_dwAlignVideoPortPrescaleWidth DD ? ; Byte restriction of width after prescaling
- ddvideoportcaps_dwAlignVideoPortCropBoundary DD ? ; Byte restriction of left cropping
- ddvideoportcaps_dwAlignVideoPortCropWidth DD ? ; Byte restriction of cropping width
- ddvideoportcaps_dwPreshrinkXStep DD ? ; Width can be shrunk in steps of 1/x
- ddvideoportcaps_dwPreshrinkYStep DD ? ; Height can be shrunk in steps of 1/x
- ddvideoportcaps_dwNumVBIAutoFlipSurfaces DD ? ; Number of VBI autoflippable surfaces
- ddvideoportcaps_dwNumPreferredAutoflip DD ? ; Optimal number of autoflippable surfaces for hardware
- ddvideoportcaps_wNumFilterTapsX DW ? ; Number of taps the prescaler uses in the X direction (0 - no prescale, 1 - replication, etc.)
- ddvideoportcaps_wNumFilterTapsY DW ? ; Number of taps the prescaler uses in the Y direction (0 - no prescale, 1 - replication, etc.)
- DDVIDEOPORTCAPS ends
-
- DDVPD_WIDTH = 00000001h;
- DDVPD_HEIGHT = 00000002h;
- DDVPD_ID = 00000004h;
- DDVPD_CAPS = 00000008h;
- DDVPD_FX = 00000010h;
- DDVPD_AUTOFLIP = 00000020h;
- DDVPD_ALIGN = 00000040h;
- DDVPD_PREFERREDAUTOFLIP = 00000080h;
- DDVPD_FILTERQUALITY = 00000100h;
-
- DDVIDEOPORTDESC struct
- ddvideoportdesc_dwSize DD ? ; size of the TDDVideoPortDesc structure
- ddvideoportdesc_dwFieldWidth DD ? ; width of the video port field
- ddvideoportdesc_dwVBIWidth DD ? ; width of the VBI data
- ddvideoportdesc_dwFieldHeight DD ? ; height of the video port field
- ddvideoportdesc_dwMicrosecondsPerField DD ? ; Microseconds per video field
- ddvideoportdesc_dwMaxPixelsPerSecond DD ? ; Maximum pixel rate per second
- ddvideoportdesc_dwVideoPortID DD ? ; Video port ID (0 - (dwMaxVideoPorts -1))
- ddvideoportdesc_dwReserved1 DD ? ; Reserved for future use - set to zero
- ddvideoportdesc_VideoPortType DDVIDEOPORTCONNECT ? ; Description of video port connection
- ddvideoportdesc_dwReserved2 DD ? ; Reserved for future use - set to zero
- ddvideoportdesc_dwReserved3 DD ? ; Reserved for future use - set to zero
- DDVIDEOPORTDESC ends
-
- DDVIDEOPORTINFO struct
- ddvideoportinfo_dwSize DD ? ; Size of the structure
- ddvideoportinfo_dwOriginX DD ? ; Placement of the video data within the surface.
- ddvideoportinfo_dwOriginY DD ? ; Placement of the video data within the surface.
- ddvideoportinfo_dwVPFlags DD ? ; Video port options
- ddvideoportinfo_rCrop RECT ? ; Cropping rectangle (optional).
- ddvideoportinfo_dwPrescaleWidth DD ? ; Determines pre-scaling/zooming in the X direction (optional).
- ddvideoportinfo_dwPrescaleHeight DD ? ; Determines pre-scaling/zooming in the Y direction (optional).
- ddvideoportinfo_lpddpfInputFormat DD ? ; Video format written to the video port
- ddvideoportinfo_lpddpfVBIInputFormat DD ? ; Input format of the VBI data
- ddvideoportinfo_lpddpfVBIOutputFormat DD ? ; Output format of the data
- ddvideoportinfo_dwVBIHeight DD ? ; Specifies the number of lines of data within the vertical blanking interval.
- ddvideoportinfo_dwReserved1 DD ? ; Reserved for future use - set to zero
- ddvideoportinfo_dwReserved2 DD ? ; Reserved for future use - set to zero
- DDVIDEOPORTINFO ends
-
-
- DDVIDEOPORTBANDWIDTH struct
- ddvideoportbandwidth_dwSize DD ? ; Size of the structure
- ddvideoportbandwidth_dwCaps DD ? ;
- ddvideoportbandwidth_dwOverlay DD ? ; Zoom factor at which overlay is supported
- ddvideoportbandwidth_dwColorkey DD ? ; Zoom factor at which overlay w/ colorkey is supported
- ddvideoportbandwidth_dwYInterpolate DD ? ; Zoom factor at which overlay w/ Y interpolation is supported
- ddvideoportbandwidth_dwYInterpAndColorkey DD ? ; Zoom factor at which ovelray w/ Y interpolation and colorkeying is supported
- ddvideoportbandwidth_dwReserved1 DD ? ; Reserved for future use - set to zero
- ddvideoportbandwidth_dwReserved2 DD ? ; Reserved for future use - set to zero
- DDVIDEOPORTBANDWIDTH ends
-
- DDVIDEOPORTSTATUS struct
- ddvideoportstatus_dwSize DD ? ; Size of the structure
- ddvideoportstatus_bInUse DD ? ; TRUE if video port is currently being used
- ddvideoportstatus_dwFlags DD ? ; Currently not used
- ddvideoportstatus_dwReserved1 DD ? ; Reserved for future use
- ddvideoportstatus_VideoPortType DDVIDEOPORTCONNECT ? ; Information about the connection
- ddvideoportstatus_dwReserved2 DD ? ; Reserved for future use
- ddvideoportstatus_dwReserved3 DD ? ; Reserved for future use
- DDVIDEOPORTSTATUS ends
-
- ; *
- ; * Video Port Flags
- ; *
- ; * All flags are bit flags.
- ; *
-
- ; *
- ; * VIDEOPORT TDDVideoPortConnect FLAGS
- ; *
- DDVPCONNECT_DOUBLECLOCK = 00000001h;
- DDVPCONNECT_VACT = 00000002h;
- DDVPCONNECT_INVERTPOLARITY = 00000004h;
- DDVPCONNECT_DISCARDSVREFDATA = 00000008h;
- DDVPCONNECT_HALFLINE = 00000010h;
- DDVPCONNECT_INTERLACED = 00000020h;
- DDVPCONNECT_SHAREEVEN = 00000040h;
- DDVPCONNECT_SHAREODD = 00000080h;
-
- ; *
- ; * VIDEOPORT TDDVideoPortDesc CAPS
- ; *
- DDVPCAPS_AUTOFLIP = 00000001h;
- DDVPCAPS_INTERLACED = 00000002h;
- DDVPCAPS_NONINTERLACED = 00000004h;
- DDVPCAPS_READBACKFIELD = 00000008h;
- DDVPCAPS_READBACKLINE = 00000010h;
- DDVPCAPS_SHAREABLE = 00000020h;
- DDVPCAPS_SKIPEVENFIELDS = 00000040h;
- DDVPCAPS_SKIPODDFIELDS = 00000080h;
- DDVPCAPS_SYNCMASTER = 00000100h;
- DDVPCAPS_VBISURFACE = 00000200h;
- DDVPCAPS_COLORCONTROL = 00000400h;
- DDVPCAPS_OVERSAMPLEDVBI = 00000800h;
- DDVPCAPS_SYSTEMMEMORY = 00001000h;
- DDVPCAPS_VBIANDVIDEOINDEPENDENT = 00002000h;
- DDVPCAPS_HARDWAREDEINTERLACE = 00004000h;
-
- ; *
- ; * VIDEOPORT TDDVideoPortDesc FX
- ; *
- DDVPFX_CROPTOPDATA = 00000001h;
- DDVPFX_CROPX = 00000002h;
- DDVPFX_CROPY = 00000004h;
- DDVPFX_INTERLEAVE = 00000008h;
- DDVPFX_MIRRORLEFTRIGHT = 00000010h;
- DDVPFX_MIRRORUPDOWN = 00000020h;
- DDVPFX_PRESHRINKX = 00000040h;
- DDVPFX_PRESHRINKY = 00000080h;
- DDVPFX_PRESHRINKXB = 00000100h;
- DDVPFX_PRESHRINKYB = 00000200h;
- DDVPFX_PRESHRINKXS = 00000400h;
- DDVPFX_PRESHRINKYS = 00000800h;
- DDVPFX_PRESTRETCHX = 00001000h;
- DDVPFX_PRESTRETCHY = 00002000h;
- DDVPFX_PRESTRETCHXN = 00004000h;
- DDVPFX_PRESTRETCHYN = 00008000h;
- DDVPFX_VBICONVERT = 00010000h;
- DDVPFX_VBINOSCALE = 00020000h;
- DDVPFX_IGNOREVBIXCROP = 00040000h;
- DDVPFX_VBINOINTERLEAVE = 00080000h;
-
- ; *
- ; * VIDEOPORT TDDVideoPortInfo FLAGS
- ; *
- DDVP_AUTOFLIP = 00000001h;
- DDVP_CONVERT = 00000002h;
- DDVP_CROP = 00000004h;
- DDVP_INTERLEAVE = 00000008h;
- DDVP_MIRRORLEFTRIGHT = 00000010h;
- DDVP_MIRRORUPDOWN = 00000020h;
- DDVP_PRESCALE = 00000040h;
- DDVP_SKIPEVENFIELDS = 00000080h;
- DDVP_SKIPODDFIELDS = 00000100h;
- DDVP_SYNCMASTER = 00000200h;
- DDVP_VBICONVERT = 00000400h;
- DDVP_VBINOSCALE = 00000800h;
- DDVP_OVERRIDEBOBWEAVE = 00001000h;
- DDVP_IGNOREVBIXCROP = 00002000h;
- DDVP_VBINOINTERLEAVE = 00004000h;
- DDVP_HARDWAREDEINTERLACE = 00008000h;
-
- ; *
- ; * DIRIRECTDRAWVIDEOPORT GETINPUTFORMAT/GETOUTPUTFORMAT FLAGS
- ; *
- DDVPFORMAT_VIDEO = 00000001h;
- DDVPFORMAT_VBI = 00000002h;
-
- ; *
- ; * DIRIRECTDRAWVIDEOPORT SETTARGETSURFACE FLAGS
- ; *
- DDVPTARGET_VIDEO = 00000001h;
- DDVPTARGET_VBI = 00000002h;
-
- ; *
- ; * DIRIRECTDRAWVIDEOPORT WAITFORSYNC FLAGS
- ; *
- DDVPWAIT_BEGIN = 00000001h;
- DDVPWAIT_END = 00000002h;
- DDVPWAIT_LINE = 00000003h;
-
- ; *
- ; * DIRECTDRAWVIDEOPORT FLIP FLAGS
- ; *
- DDVPFLIP_VIDEO = 00000001h;
- DDVPFLIP_VBI = 00000002h;
-
- ; *
- ; * DIRIRECTDRAWVIDEOPORT GETVIDEOSIGNALSTATUS VALUES
- ; *
- DDVPSQ_NOSIGNAL = 00000001h;
- DDVPSQ_SIGNALOK = 00000002h;
-
- ; *
- ; * VIDEOPORTBANDWIDTH Flags
- ; *
- DDVPB_VIDEOPORT = 00000001h;
- DDVPB_OVERLAY = 00000002h;
- DDVPB_TYPE = 00000004h;
-
- ; *
- ; * VIDEOPORTBANDWIDTH Caps
- ; *
- DDVPBCAPS_SOURCE = 00000001h;
- DDVPBCAPS_DESTINATION = 00000002h;
-
- ; *
- ; * DDVIDEOPORTCONTAINER CreateVideoPort flags
- ; *
- DDVPCREATE_VBIONLY = 00000001h;
- DDVPCREATE_VIDEOONLY = 00000002h;
-
- ; *
- ; * DDVIDEOPORTSTATUS flags
- ; *
- DDVPSTATUS_VBIONLY = 00000001h;
- DDVPSTATUS_VIDEOONLY = 00000002h;
-
-
- ; IDirectDrawVideoPort
- ; IUnknown methods
- DDVPQueryInterface = 0
- DDVPAddRef = 4
- DDVPRelease = 8
- ; IDirectDrawVideoPort methods
- DDVPFlip = 12
- DDVPGetBandwidthInfo = 16
- DDVPGetColorControls = 20
- DDVPGetInputFormats = 24
- DDVPGetOutputFormats = 28
- DDVPGetFieldPolarity = 32
- DDVPGetVideoLine = 36
- DDVPGetVideoSignalStatus = 40
- DDVPSetColorControls = 44
- DDVPSetTargetSurface = 48
- DDVPStartVideo = 52
- DDVPStopVideo = 56
- DDVPUpdateVideo = 60
- DDVPWaitForSync = 64
-
-
- ; IDirectDrawVideoPortContainer
- ; IUnknown methods
- DDVPCQueryInterface = 0
- DDVPCAddRef = 4
- DDVPCRelease = 8
- ; IDDVideoPortContainer methods
- DDVPCCreateVideoPort = 12
- DDVPCEnumVideoPorts = 16
- DDVPCGetVideoPortConnectInfo = 20
- DDVPCQueryVideoPortStatus = 24
-
-
- ;end of file
-
-