/* * (C) 2003-2006 Gabest * (C) 2006-2013 see Authors.txt * * This file is part of MPC-HC. * * MPC-HC is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * MPC-HC is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #pragma once #include #include #include #include "../../../SubPic/ISubPic.h" #include "PixelShaderCompiler.h" // {4E4834FA-22C2-40e2-9446-F77DD05D245E} DEFINE_GUID(CLSID_VMR9AllocatorPresenter, 0x4e4834fa, 0x22c2, 0x40e2, 0x94, 0x46, 0xf7, 0x7d, 0xd0, 0x5d, 0x24, 0x5e); // {A1542F93-EB53-4e11-8D34-05C57ABA9207} DEFINE_GUID(CLSID_RM9AllocatorPresenter, 0xa1542f93, 0xeb53, 0x4e11, 0x8d, 0x34, 0x5, 0xc5, 0x7a, 0xba, 0x92, 0x7); // {622A4032-70CE-4040-8231-0F24F2886618} DEFINE_GUID(CLSID_QT9AllocatorPresenter, 0x622a4032, 0x70ce, 0x4040, 0x82, 0x31, 0xf, 0x24, 0xf2, 0x88, 0x66, 0x18); // {B72EBDD4-831D-440f-A656-B48F5486CD82} DEFINE_GUID(CLSID_DXRAllocatorPresenter, 0xb72ebdd4, 0x831d, 0x440f, 0xa6, 0x56, 0xb4, 0x8f, 0x54, 0x86, 0xcd, 0x82); // {C7ED3100-9002-4595-9DCA-B30B30413429} DEFINE_GUID(CLSID_madVRAllocatorPresenter, 0xc7ed3100, 0x9002, 0x4595, 0x9d, 0xca, 0xb3, 0xb, 0x30, 0x41, 0x34, 0x29); DEFINE_GUID(CLSID_EVRAllocatorPresenter, 0x7612b889, 0xe070, 0x4bcc, 0xb8, 0x8, 0x91, 0xcb, 0x79, 0x41, 0x74, 0xab); extern CCritSec g_ffdshowReceive; extern bool queue_ffdshow_support; extern bool IsVMR9InGraph(IFilterGraph* pFG); extern CString GetWindowsErrorMessage(HRESULT _Error, HMODULE _Module); extern const wchar_t* GetD3DFormatStr(D3DFORMAT Format); extern HRESULT CreateAP9(const CLSID& clsid, HWND hWnd, bool bFullscreen, ISubPicAllocatorPresenter** ppAP); extern HRESULT CreateEVR(const CLSID& clsid, HWND hWnd, bool bFullscreen, ISubPicAllocatorPresenter** ppAP); // Support ffdshow queuing. // This interface is used to check version of Media Player Classic. // {A273C7F6-25D4-46b0-B2C8-4F7FADC44E37} DEFINE_GUID(IID_IVMRffdshow9, 0xa273c7f6, 0x25d4, 0x46b0, 0xb2, 0xc8, 0x4f, 0x7f, 0xad, 0xc4, 0x4e, 0x37); MIDL_INTERFACE("A273C7F6-25D4-46b0-B2C8-4F7FADC44E37") IVMRffdshow9 : public IUnknown { public: STDMETHOD(support_ffdshow()) PURE; };