summaryrefslogtreecommitdiff
path: root/ARMFCaptureD3D/ARMFCaptureD3D.h
blob: 35b2d6db2141a1b3a460c601013aef4692426987 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//////////////////////////////////////////////////////////////////////////
//
// 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.
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//////////////////////////////////////////////////////////////////////////
#pragma once

#include <new>
#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#ifdef DX9
#include <d3d9.h>
#include <d3d9types.h>
// include the Direct3D Library files
#pragma comment (lib, "d3d9.lib")
#else
#include <D3D11.h>
// include the Direct3D Library files
#pragma comment (lib, "d3d10.lib")
#endif

#include <mfapi.h>
#include <mfidl.h>
#include <mfreadwrite.h>
#include <mferror.h>

#include <strsafe.h>
#include <assert.h>

#include <ks.h>
#include <ksmedia.h>
#include <Dbt.h>

template <class T> void SafeRelease(T **ppT)
{
    if (*ppT)
    {
        (*ppT)->Release();
        *ppT = NULL;
    }
}


#include "device.h"
#include "preview.h"