' ########################################################################################
' Microsoft Windows
' File: wmdxva.inc
' Contents: Microsoft Windows Media Technologies
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_wmdxva_PBI)
#DEFINE PBX_wmdxva_PBI
%EQUATE `WMDXVA_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/Media/mediaobj.inc"
#INCLUDE ONCE "Legacy/Media/videoacc.inc"
$IID_IWMPlayerTimestampHook = GUID$("{28580DDA-D98E-48D0-B7AE-69E473A02825}")
$IID_IWMCodecVideoAccelerator = GUID$("{990641B0-739F-4E94-A808-9888DA8F75AF}")
$IID_IWMCodecAMVideoAccelerator = GUID$("{D98EE251-34E0-4A2D-9312-9B4C788D9FA1}")
' ########################################################################################
' Interface name = IWMPlayerTimestampHook
' IID = 28580DDA-D98E-48D0-B7AE-69E473A02825
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMPlayerTimestampHook_INTERFACE_DEFINED)
 %IWMPlayerTimestampHook_INTERFACE_DEFINED = 1
INTERFACE IWMPlayerTimestampHook $IID_IWMPlayerTimestampHook
 INHERIT IUnknown
 ' =====================================================================================
 METHOD MapTimestamp ( ' VTable offset = 12
 BYVAL rtIn AS QUAD
 , BYREF prtOut AS QUAD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMPlayerTimestampHook_INTERFACE_DEFINED__ */
' ########################################################################################
' Interface name = IWMCodecAMVideoAccelerator
' IID = D98EE251-34E0-4A2D-9312-9B4C788D9FA1
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMCodecAMVideoAccelerator_INTERFACE_DEFINED)
 %IWMCodecAMVideoAccelerator_INTERFACE_DEFINED = 1
INTERFACE IWMCodecAMVideoAccelerator $IID_IWMCodecAMVideoAccelerator
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetAcceleratorInterface ( ' VTable offset = 12
 BYVAL pIAMVA AS IAMVideoAccelerator
 ) AS LONG
 ' =====================================================================================
 METHOD NegotiateConnection ( ' VTable offset = 16
 BYREF pMediaType AS DMO_MEDIA_TYPE
 ) AS LONG
 ' =====================================================================================
 METHOD SetPlayerNotify ( ' VTable offset = 20
 BYVAL pHook AS IWMPlayerTimestampHook
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMCodecAMVideoAccelerator_INTERFACE_DEFINED__ */
' ########################################################################################
' Interface name = IWMCodecVideoAccelerator
' IID = 990641B0-739F-4E94-A808-9888DA8F75AF
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IWMCodecVideoAccelerator_INTERFACE_DEFINED)
 %IWMCodecVideoAccelerator_INTERFACE_DEFINED = 1
INTERFACE IWMCodecVideoAccelerator $IID_IWMCodecVideoAccelerator
 INHERIT IUnknown
 ' =====================================================================================
 METHOD NegotiateConnection ( ' VTable offset = 12
 BYVAL pIAMVA AS IAMVideoAccelerator
 , BYREF pMediaType AS DMO_MEDIA_TYPE
 ) AS LONG
 ' =====================================================================================
 METHOD SetPlayerNotify ( ' VTable offset = 16
 BYVAL pHook AS IWMPlayerTimestampHook
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IWMCodecVideoAccelerator_INTERFACE_DEFINED__ */
#ENDIF
