|
|
|
1 |
|
|
2 |
|
|
3 |
|
/* this ALWAYS GENERATED file contains the definitions for the interfaces */ |
4 |
|
|
5 |
|
|
6 |
|
/* File created by MIDL compiler version 7.00.0499 */ |
7 |
|
/* Compiler settings for dxva2api.idl: |
8 |
|
Oicf, W1, Zp8, env=Win32 (32b run) |
9 |
|
protocol : dce , ms_ext, c_ext, robust |
10 |
|
error checks: allocation ref bounds_check enum stub_data |
11 |
|
VC __declspec() decoration level: |
12 |
|
__declspec(uuid()), __declspec(selectany), __declspec(novtable) |
13 |
|
DECLSPEC_UUID(), MIDL_INTERFACE() |
14 |
|
*/ |
15 |
|
//@@MIDL_FILE_HEADING( ) |
16 |
|
|
17 |
|
#pragma warning( disable: 4049 ) /* more than 64k source lines */ |
18 |
|
|
19 |
|
|
20 |
|
/* verify that the <rpcndr.h> version is high enough to compile this file*/ |
21 |
|
#ifndef __REQUIRED_RPCNDR_H_VERSION__ |
22 |
|
#define __REQUIRED_RPCNDR_H_VERSION__ 500 |
23 |
|
#endif |
24 |
|
|
25 |
|
/* verify that the <rpcsal.h> version is high enough to compile this file*/ |
26 |
|
#ifndef __REQUIRED_RPCSAL_H_VERSION__ |
27 |
|
#define __REQUIRED_RPCSAL_H_VERSION__ 100 |
28 |
|
#endif |
29 |
|
|
30 |
|
#include "rpc.h" |
31 |
|
#include "rpcndr.h" |
32 |
|
|
33 |
|
#ifndef __RPCNDR_H_VERSION__ |
34 |
|
#error this stub requires an updated version of <rpcndr.h> |
35 |
|
#endif // __RPCNDR_H_VERSION__ |
36 |
|
|
37 |
|
#ifndef COM_NO_WINDOWS_H |
38 |
|
#include "windows.h" |
39 |
|
#include "ole2.h" |
40 |
|
#endif /*COM_NO_WINDOWS_H*/ |
41 |
|
|
42 |
|
#ifndef __dxva2api_h__ |
43 |
|
#define __dxva2api_h__ |
44 |
|
|
45 |
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020) |
46 |
|
#pragma once |
47 |
|
#endif |
48 |
|
|
49 |
|
/* Forward Declarations */ |
50 |
|
|
51 |
|
#ifndef __IDirect3DDeviceManager9_FWD_DEFINED__ |
52 |
|
#define __IDirect3DDeviceManager9_FWD_DEFINED__ |
53 |
|
typedef interface IDirect3DDeviceManager9 IDirect3DDeviceManager9; |
54 |
|
#endif /* __IDirect3DDeviceManager9_FWD_DEFINED__ */ |
55 |
|
|
56 |
|
|
57 |
|
#ifndef __IDirectXVideoAccelerationService_FWD_DEFINED__ |
58 |
|
#define __IDirectXVideoAccelerationService_FWD_DEFINED__ |
59 |
|
typedef interface IDirectXVideoAccelerationService IDirectXVideoAccelerationService; |
60 |
|
#endif /* __IDirectXVideoAccelerationService_FWD_DEFINED__ */ |
61 |
|
|
62 |
|
|
63 |
|
#ifndef __IDirectXVideoDecoderService_FWD_DEFINED__ |
64 |
|
#define __IDirectXVideoDecoderService_FWD_DEFINED__ |
65 |
|
typedef interface IDirectXVideoDecoderService IDirectXVideoDecoderService; |
66 |
|
#endif /* __IDirectXVideoDecoderService_FWD_DEFINED__ */ |
67 |
|
|
68 |
|
|
69 |
|
#ifndef __IDirectXVideoProcessorService_FWD_DEFINED__ |
70 |
|
#define __IDirectXVideoProcessorService_FWD_DEFINED__ |
71 |
|
typedef interface IDirectXVideoProcessorService IDirectXVideoProcessorService; |
72 |
|
#endif /* __IDirectXVideoProcessorService_FWD_DEFINED__ */ |
1825 |
|
__out UINT* pResetToken, |
1826 |
|
__deref_out IDirect3DDeviceManager9** ppDeviceManager |
1827 |
|
); |
1828 |
|
STDAPI DXVA2CreateVideoService( |
1829 |
|
__in IDirect3DDevice9* pDD, |
1830 |
|
__in REFIID riid, |
1831 |
|
__deref_out void** ppService |
1832 |
|
); |
1833 |
|
#endif // _D3D9_H_ |
1834 |
|
__inline DXVA2_Fixed32 DXVA2FloatToFixed(__in const float _float_) |
1835 |
|
{ |
1836 |
|
DXVA2_Fixed32 _fixed_; |
1837 |
|
_fixed_.Fraction = LOWORD(_float_ * 0x10000); |
1838 |
|
_fixed_.Value = HIWORD(_float_ * 0x10000); |
1839 |
|
return _fixed_; |
1840 |
|
} |
1841 |
|
__inline float DXVA2FixedToFloat(__in const DXVA2_Fixed32 _fixed_) |
1842 |
|
{ |
1843 |
|
return (FLOAT)_fixed_.Value + (FLOAT)_fixed_.Fraction / 0x10000; |
1844 |
|
} |
1845 |
|
__inline const DXVA2_Fixed32 DXVA2_Fixed32TransparentAlpha() |
1846 |
|
{ |
1847 |
|
DXVA2_Fixed32 _fixed_ = {0, 0}; |
1848 |
|
return _fixed_; |
1849 |
|
} |
1850 |
|
__inline const DXVA2_Fixed32 DXVA2_Fixed32OpaqueAlpha() |
1851 |
|
{ |
1852 |
|
DXVA2_Fixed32 _fixed_ = {0, 1}; |
1853 |
|
return _fixed_; |
1854 |
|
} |
1855 |
|
#endif |
1856 |
|
|
1857 |
|
|
1858 |
|
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_c_ifspec; |
1859 |
|
extern RPC_IF_HANDLE __MIDL_itf_dxva2api_0000_0007_v0_0_s_ifspec; |
1860 |
|
|
1861 |
|
/* Additional Prototypes for ALL interfaces */ |
1862 |
|
|
1863 |
|
/* end of Additional Prototypes */ |
1864 |
|
|
1865 |
|
#ifdef __cplusplus |
1866 |
|
} |
1867 |
|
#endif |
1868 |
|
|
1869 |
|
#endif |
1870 |
|
|
1871 |
|
|
1872 |
|
|
1873 |
|
|
|
|
|