Debian Codegraph @

components/decoder/mediafoundation/dllinterface.h

raw symbols SCIP
1 /* BoCA - BonkEnc Component Architecture
2 * Copyright (C) 2007-2019 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #include <smooth.h>
14
15 #include <mfidl.h>
16 #include <mfreadwrite.h>
17
18 using namespace smooth;
19 using namespace smooth::System;
20
21 extern DynamicLoader *mfplatdll;
22 extern DynamicLoader *mfreadwritedll;
23
24 Bool LoadMFPlatDLL();
25 Void FreeMFPlatDLL();
26
27 Bool LoadMFReadWriteDLL();
28 Void FreeMFReadWriteDLL();
29
30 typedef HRESULT (WINAPI *MFSTARTUP) (ULONG, DWORD);
31 typedef HRESULT (WINAPI *MFSHUTDOWN) ();
32 typedef HRESULT (WINAPI *MFCREATEASYNCRESULT) (IUnknown *, IMFAsyncCallback *, IUnknown *, IMFAsyncResult **);
33 typedef HRESULT (WINAPI *MFINVOKECALLBACK) (IMFAsyncResult *);
34 typedef HRESULT (WINAPI *MFCREATEMEDIATYPE) (IMFMediaType **);
35 typedef HRESULT (WINAPI *MFINITMEDIATYPEFROMWAVEFORMATEX) (IMFMediaType *, const WAVEFORMATEX *, UINT32);
36
37 typedef HRESULT (WINAPI *MFCREATESOURCEREADERFROMBYTESTREAM) (IMFByteStream *, IMFAttributes *, IMFSourceReader **);
38
39 extern MFSTARTUP ex_MFStartup;
40 extern MFSHUTDOWN ex_MFShutdown;
41 extern MFCREATEASYNCRESULT ex_MFCreateAsyncResult;
42 extern MFINVOKECALLBACK ex_MFInvokeCallback;
43 extern MFCREATEMEDIATYPE ex_MFCreateMediaType;
44 extern MFINITMEDIATYPEFROMWAVEFORMATEX ex_MFInitMediaTypeFromWaveFormatEx;
45
46 extern MFCREATESOURCEREADERFROMBYTESTREAM ex_MFCreateSourceReaderFromByteStream;