Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-06-01 20:47:06 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-06-19 00:18:20 +0400
commit7dc747e4d3a0043c863583475ec49e4be4c260ca (patch)
tree974b9ddd765b5333f2fd235bfeb1a61ebfdbc9a3
parentc5fb9c73b7f622300cf5d36346fdf8872d79cf2b (diff)
Use "PURE" instead of "= 0" for COM interfaces.
-rw-r--r--src/DSUtil/DSMPropertyBag.h38
-rw-r--r--src/SubPic/ISubRender.h10
-rw-r--r--src/SubPic/SubPicAllocatorPresenterImpl.h4
-rw-r--r--src/SubPic/SubPicImpl.h12
-rw-r--r--src/SubPic/SubPicProviderImpl.h10
-rw-r--r--src/SubPic/SubPicQueueImpl.h10
-rw-r--r--src/Subtitles/SubtitleInputPin.cpp4
-rw-r--r--src/filters/muxer/BaseMuxer/BaseMuxerRelatedPin.h6
-rw-r--r--src/filters/muxer/BaseMuxer/BitStream.h14
-rw-r--r--src/filters/muxer/MatroskaMuxer/MatroskaMuxer.h4
-rw-r--r--src/filters/parser/AviSplitter/IAviSplitterFilter.h8
-rw-r--r--src/filters/parser/BaseSplitter/AsyncReader.h14
-rw-r--r--src/filters/parser/MpegSplitter/IMpegSplitterFilter.h32
-rw-r--r--src/filters/renderer/MpcAudioRenderer/IMpcAudioRendererFilter.h16
-rw-r--r--src/filters/renderer/SyncClock/Interfaces.h10
-rw-r--r--src/filters/renderer/VideoRenderers/AllocatorCommon.h4
-rw-r--r--src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp8
-rw-r--r--src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h4
-rw-r--r--src/filters/switcher/AudioSwitcher/AudioSwitcher.h24
-rw-r--r--src/filters/switcher/AudioSwitcher/StreamSwitcher.h4
-rw-r--r--src/filters/transform/BufferFilter/BufferFilter.h10
-rw-r--r--src/filters/transform/MPCVideoDec/IMPCVideoDecFilter.h36
-rw-r--r--src/filters/transform/MPCVideoDec/VideoDecDXVAAllocator.h4
-rw-r--r--src/filters/transform/MpaDecFilter/IMpaDecFilter.h26
-rw-r--r--src/filters/transform/Mpeg2DecFilter/IMpeg2DecFilter.h40
-rw-r--r--src/mpc-hc/BaseGraph.h4
-rw-r--r--src/mpc-hc/IGraphBuilder2.h36
27 files changed, 196 insertions, 196 deletions
diff --git a/src/DSUtil/DSMPropertyBag.h b/src/DSUtil/DSMPropertyBag.h
index f11693836..f99e144f8 100644
--- a/src/DSUtil/DSMPropertyBag.h
+++ b/src/DSUtil/DSMPropertyBag.h
@@ -28,11 +28,11 @@
interface __declspec(uuid("232FD5D2-4954-41E7-BF9B-09E1257B1A95"))
IDSMPropertyBag :
public IPropertyBag2 {
- STDMETHOD(SetProperty)(LPCWSTR key, LPCWSTR value) = 0;
- STDMETHOD(SetProperty)(LPCWSTR key, VARIANT * var) = 0;
- STDMETHOD(GetProperty)(LPCWSTR key, BSTR * value) = 0;
- STDMETHOD(DelAllProperties)() = 0;
- STDMETHOD(DelProperty)(LPCWSTR key) = 0;
+ STDMETHOD(SetProperty)(LPCWSTR key, LPCWSTR value) PURE;
+ STDMETHOD(SetProperty)(LPCWSTR key, VARIANT * var) PURE;
+ STDMETHOD(GetProperty)(LPCWSTR key, BSTR * value) PURE;
+ STDMETHOD(DelAllProperties)() PURE;
+ STDMETHOD(DelProperty)(LPCWSTR key) PURE;
};
class IDSMPropertyBagImpl : public ATL::CSimpleMap<CStringW, CStringW>, public IDSMPropertyBag, public IPropertyBag
@@ -75,12 +75,12 @@ public:
interface __declspec(uuid("EBAFBCBE-BDE0-489A-9789-05D5692E3A93"))
IDSMResourceBag :
public IUnknown {
- STDMETHOD_(DWORD, ResGetCount)() = 0;
- STDMETHOD(ResGet)(DWORD iIndex, BSTR * ppName, BSTR * ppDesc, BSTR * ppMime, BYTE** ppData, DWORD * pDataLen, DWORD_PTR * pTag) = 0;
- STDMETHOD(ResSet)(DWORD iIndex, LPCWSTR pName, LPCWSTR pDesc, LPCWSTR pMime, BYTE * pData, DWORD len, DWORD_PTR tag) = 0;
- STDMETHOD(ResAppend)(LPCWSTR pName, LPCWSTR pDesc, LPCWSTR pMime, BYTE * pData, DWORD len, DWORD_PTR tag) = 0;
- STDMETHOD(ResRemoveAt)(DWORD iIndex) = 0;
- STDMETHOD(ResRemoveAll)(DWORD_PTR tag) = 0;
+ STDMETHOD_(DWORD, ResGetCount)() PURE;
+ STDMETHOD(ResGet)(DWORD iIndex, BSTR * ppName, BSTR * ppDesc, BSTR * ppMime, BYTE** ppData, DWORD * pDataLen, DWORD_PTR * pTag) PURE;
+ STDMETHOD(ResSet)(DWORD iIndex, LPCWSTR pName, LPCWSTR pDesc, LPCWSTR pMime, BYTE * pData, DWORD len, DWORD_PTR tag) PURE;
+ STDMETHOD(ResAppend)(LPCWSTR pName, LPCWSTR pDesc, LPCWSTR pMime, BYTE * pData, DWORD len, DWORD_PTR tag) PURE;
+ STDMETHOD(ResRemoveAt)(DWORD iIndex) PURE;
+ STDMETHOD(ResRemoveAll)(DWORD_PTR tag) PURE;
};
class CDSMResource
@@ -128,14 +128,14 @@ public:
interface __declspec(uuid("2D0EBE73-BA82-4E90-859B-C7C48ED3650F"))
IDSMChapterBag :
public IUnknown {
- STDMETHOD_(DWORD, ChapGetCount)() = 0;
- STDMETHOD(ChapGet)(DWORD iIndex, REFERENCE_TIME * prt, BSTR * ppName) = 0;
- STDMETHOD(ChapSet)(DWORD iIndex, REFERENCE_TIME rt, LPCWSTR pName) = 0;
- STDMETHOD(ChapAppend)(REFERENCE_TIME rt, LPCWSTR pName) = 0;
- STDMETHOD(ChapRemoveAt)(DWORD iIndex) = 0;
- STDMETHOD(ChapRemoveAll)() = 0;
- STDMETHOD_(long, ChapLookup)(REFERENCE_TIME * prt, BSTR * ppName) = 0;
- STDMETHOD(ChapSort)() = 0;
+ STDMETHOD_(DWORD, ChapGetCount)() PURE;
+ STDMETHOD(ChapGet)(DWORD iIndex, REFERENCE_TIME * prt, BSTR * ppName) PURE;
+ STDMETHOD(ChapSet)(DWORD iIndex, REFERENCE_TIME rt, LPCWSTR pName) PURE;
+ STDMETHOD(ChapAppend)(REFERENCE_TIME rt, LPCWSTR pName) PURE;
+ STDMETHOD(ChapRemoveAt)(DWORD iIndex) PURE;
+ STDMETHOD(ChapRemoveAll)() PURE;
+ STDMETHOD_(long, ChapLookup)(REFERENCE_TIME * prt, BSTR * ppName) PURE;
+ STDMETHOD(ChapSort)() PURE;
};
class CDSMChapter
diff --git a/src/SubPic/ISubRender.h b/src/SubPic/ISubRender.h
index 9a684056a..ad71f59e2 100644
--- a/src/SubPic/ISubRender.h
+++ b/src/SubPic/ISubRender.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -27,13 +27,13 @@ interface __declspec(uuid("CD6D2AA5-20D3-4ebe-A8A9-34D3B00CC253"))
ISubRenderCallback :
public IUnknown {
// NULL means release current device, textures and other resources
- STDMETHOD(SetDevice)(IDirect3DDevice9 * dev) = 0;
+ STDMETHOD(SetDevice)(IDirect3DDevice9 * dev) PURE;
// destination video rectangle, will be inside (0, 0)-(width, height)
// width,height is the size of the entire output window
STDMETHOD(Render)(REFERENCE_TIME rtStart,
int left, int top, int bottom, int right,
- int width, int height) = 0;
+ int width, int height) PURE;
};
interface __declspec(uuid("E602585E-C05A-4828-AC69-AF92997F2E0C"))
@@ -42,11 +42,11 @@ public ISubRenderCallback {
STDMETHOD(RenderEx)(REFERENCE_TIME rtStart, REFERENCE_TIME rtStop,
REFERENCE_TIME AvgTimePerFrame,
int left, int top, int right, int bottom,
- int width, int height) = 0;
+ int width, int height) PURE;
};
interface __declspec(uuid("9CC7F9F7-3ED1-493c-AF65-527EA1D9947F"))
ISubRender :
public IUnknown {
- STDMETHOD(SetCallback)(ISubRenderCallback * cb) = 0;
+ STDMETHOD(SetCallback)(ISubRenderCallback * cb) PURE;
};
diff --git a/src/SubPic/SubPicAllocatorPresenterImpl.h b/src/SubPic/SubPicAllocatorPresenterImpl.h
index b86abb075..be42e8057 100644
--- a/src/SubPic/SubPicAllocatorPresenterImpl.h
+++ b/src/SubPic/SubPicAllocatorPresenterImpl.h
@@ -64,14 +64,14 @@ public:
// ISubPicAllocatorPresenter
- STDMETHODIMP CreateRenderer(IUnknown** ppRenderer) = 0;
+ STDMETHODIMP CreateRenderer(IUnknown** ppRenderer) PURE;
STDMETHODIMP_(SIZE) GetVideoSize(bool fCorrectAR = true);
STDMETHODIMP_(SIZE) GetVisibleVideoSize() {
return m_NativeVideoSize;
};
STDMETHODIMP_(void) SetPosition(RECT w, RECT v);
- STDMETHODIMP_(bool) Paint(bool fAll) = 0;
+ STDMETHODIMP_(bool) Paint(bool fAll) PURE;
STDMETHODIMP_(void) SetTime(REFERENCE_TIME rtNow);
STDMETHODIMP_(void) SetSubtitleDelay(int delay_ms);
diff --git a/src/SubPic/SubPicImpl.h b/src/SubPic/SubPicImpl.h
index 993a3b126..424bb19d6 100644
--- a/src/SubPic/SubPicImpl.h
+++ b/src/SubPic/SubPicImpl.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -78,20 +78,20 @@ public:
STDMETHODIMP_(void) SetStart(REFERENCE_TIME rtStart);
STDMETHODIMP_(void) SetStop(REFERENCE_TIME rtStop);
- STDMETHODIMP GetDesc(SubPicDesc& spd) = 0;
+ STDMETHODIMP GetDesc(SubPicDesc& spd) PURE;
STDMETHODIMP CopyTo(ISubPic* pSubPic);
- STDMETHODIMP ClearDirtyRect(DWORD color) = 0;
+ STDMETHODIMP ClearDirtyRect(DWORD color) PURE;
STDMETHODIMP GetDirtyRect(RECT* pDirtyRect);
STDMETHODIMP SetDirtyRect(RECT* pDirtyRect);
STDMETHODIMP GetMaxSize(SIZE* pMaxSize);
STDMETHODIMP SetSize(SIZE size, RECT vidrect);
- STDMETHODIMP Lock(SubPicDesc& spd) = 0;
- STDMETHODIMP Unlock(RECT* pDirtyRect) = 0;
+ STDMETHODIMP Lock(SubPicDesc& spd) PURE;
+ STDMETHODIMP Unlock(RECT* pDirtyRect) PURE;
- STDMETHODIMP AlphaBlt(RECT* pSrc, RECT* pDst, SubPicDesc* pTarget) = 0;
+ STDMETHODIMP AlphaBlt(RECT* pSrc, RECT* pDst, SubPicDesc* pTarget) PURE;
STDMETHODIMP SetVirtualTextureSize(const SIZE pSize, const POINT pTopLeft);
STDMETHODIMP GetSourceAndDest(SIZE* pSize, RECT* pRcSource, RECT* pRcDest);
diff --git a/src/SubPic/SubPicProviderImpl.h b/src/SubPic/SubPicProviderImpl.h
index 141a0f5a4..2bd464db8 100644
--- a/src/SubPic/SubPicProviderImpl.h
+++ b/src/SubPic/SubPicProviderImpl.h
@@ -40,12 +40,12 @@ public:
STDMETHODIMP Lock();
STDMETHODIMP Unlock();
- STDMETHODIMP_(POSITION) GetStartPosition(REFERENCE_TIME rt, double fps) = 0;
- STDMETHODIMP_(POSITION) GetNext(POSITION pos) = 0;
+ STDMETHODIMP_(POSITION) GetStartPosition(REFERENCE_TIME rt, double fps) PURE;
+ STDMETHODIMP_(POSITION) GetNext(POSITION pos) PURE;
- STDMETHODIMP_(REFERENCE_TIME) GetStart(POSITION pos, double fps) = 0;
- STDMETHODIMP_(REFERENCE_TIME) GetStop(POSITION pos, double fps) = 0;
+ STDMETHODIMP_(REFERENCE_TIME) GetStart(POSITION pos, double fps) PURE;
+ STDMETHODIMP_(REFERENCE_TIME) GetStop(POSITION pos, double fps) PURE;
- STDMETHODIMP Render(SubPicDesc& spd, REFERENCE_TIME rt, double fps, RECT& bbox) = 0;
+ STDMETHODIMP Render(SubPicDesc& spd, REFERENCE_TIME rt, double fps, RECT& bbox) PURE;
STDMETHODIMP GetTextureSize(POSITION pos, SIZE& MaxTextureSize, SIZE& VirtualSize, POINT& VirtualTopLeft) { return E_NOTIMPL; };
};
diff --git a/src/SubPic/SubPicQueueImpl.h b/src/SubPic/SubPicQueueImpl.h
index 2b8c1040e..468918d1a 100644
--- a/src/SubPic/SubPicQueueImpl.h
+++ b/src/SubPic/SubPicQueueImpl.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -52,11 +52,11 @@ public:
STDMETHODIMP SetFPS(double fps);
STDMETHODIMP SetTime(REFERENCE_TIME rtNow);
/*
- STDMETHODIMP Invalidate(REFERENCE_TIME rtInvalidate = -1) = 0;
- STDMETHODIMP_(bool) LookupSubPic(REFERENCE_TIME rtNow, ISubPic** ppSubPic) = 0;
+ STDMETHODIMP Invalidate(REFERENCE_TIME rtInvalidate = -1) PURE;
+ STDMETHODIMP_(bool) LookupSubPic(REFERENCE_TIME rtNow, ISubPic** ppSubPic) PURE;
- STDMETHODIMP GetStats(int& nSubPics, REFERENCE_TIME& rtNow, REFERENCE_TIME& rtStart, REFERENCE_TIME& rtStop) = 0;
- STDMETHODIMP GetStats(int nSubPics, REFERENCE_TIME& rtStart, REFERENCE_TIME& rtStop) = 0;
+ STDMETHODIMP GetStats(int& nSubPics, REFERENCE_TIME& rtNow, REFERENCE_TIME& rtStart, REFERENCE_TIME& rtStop) PURE;
+ STDMETHODIMP GetStats(int nSubPics, REFERENCE_TIME& rtStart, REFERENCE_TIME& rtStop) PURE;
*/
};
diff --git a/src/Subtitles/SubtitleInputPin.cpp b/src/Subtitles/SubtitleInputPin.cpp
index 3c5dcefa7..6853fa472 100644
--- a/src/Subtitles/SubtitleInputPin.cpp
+++ b/src/Subtitles/SubtitleInputPin.cpp
@@ -207,8 +207,8 @@ STDMETHODIMP CSubtitleInputPin::NewSegment(REFERENCE_TIME tStart, REFERENCE_TIME
interface __declspec(uuid("D3D92BC3-713B-451B-9122-320095D51EA5"))
IMpeg2DemultiplexerTesting :
public IUnknown {
- STDMETHOD(GetMpeg2StreamType)(ULONG * plType) = 0;
- STDMETHOD(toto)() = 0;
+ STDMETHOD(GetMpeg2StreamType)(ULONG * plType) PURE;
+ STDMETHOD(toto)() PURE;
};
STDMETHODIMP CSubtitleInputPin::Receive(IMediaSample* pSample)
diff --git a/src/filters/muxer/BaseMuxer/BaseMuxerRelatedPin.h b/src/filters/muxer/BaseMuxer/BaseMuxerRelatedPin.h
index e6d657999..be749ce97 100644
--- a/src/filters/muxer/BaseMuxer/BaseMuxerRelatedPin.h
+++ b/src/filters/muxer/BaseMuxer/BaseMuxerRelatedPin.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -24,8 +24,8 @@
interface __declspec(uuid("EE6F2741-7DB4-4AAD-A3CB-545208EE4C0A"))
IBaseMuxerRelatedPin :
public IUnknown {
- STDMETHOD(SetRelatedPin)(CBasePin * pPin) = 0;
- STDMETHOD_(CBasePin*, GetRelatedPin)() = 0;
+ STDMETHOD(SetRelatedPin)(CBasePin * pPin) PURE;
+ STDMETHOD_(CBasePin*, GetRelatedPin)() PURE;
};
class CBaseMuxerRelatedPin : public IBaseMuxerRelatedPin
diff --git a/src/filters/muxer/BaseMuxer/BitStream.h b/src/filters/muxer/BaseMuxer/BitStream.h
index 2d90f0a35..914447ca4 100644
--- a/src/filters/muxer/BaseMuxer/BitStream.h
+++ b/src/filters/muxer/BaseMuxer/BitStream.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -24,12 +24,12 @@
interface __declspec(uuid("30AB78C7-5259-4594-AEFE-9C0FC2F08A5E"))
IBitStream :
public IUnknown {
- STDMETHOD_(UINT64, GetPos)() = 0;
- STDMETHOD_(UINT64, Seek)(UINT64 pos) = 0; // it's a _stream_, please don't seek if you don't have to
- STDMETHOD(ByteWrite)(const void * pData, int len) = 0;
- STDMETHOD(BitWrite)(UINT64 data, int len) = 0;
- STDMETHOD(BitFlush)() = 0;
- STDMETHOD(StrWrite)(LPCSTR pData, BOOL bFixNewLine) = 0;
+ STDMETHOD_(UINT64, GetPos)() PURE;
+ STDMETHOD_(UINT64, Seek)(UINT64 pos) PURE; // it's a _stream_, please don't seek if you don't have to
+ STDMETHOD(ByteWrite)(const void * pData, int len) PURE;
+ STDMETHOD(BitWrite)(UINT64 data, int len) PURE;
+ STDMETHOD(BitFlush)() PURE;
+ STDMETHOD(StrWrite)(LPCSTR pData, BOOL bFixNewLine) PURE;
};
class CBitStream : public CUnknown, public IBitStream
diff --git a/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.h b/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.h
index 245758b3b..82d9e4fd3 100644
--- a/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.h
+++ b/src/filters/muxer/MatroskaMuxer/MatroskaMuxer.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -88,7 +88,7 @@ public:
interface __declspec(uuid("38E2D43D-915D-493C-B373-888DB16EE3DC"))
IMatroskaMuxer :
public IUnknown {
- STDMETHOD(CorrectTimeOffset)(bool fNegative, bool fPositive) = 0;
+ STDMETHOD(CorrectTimeOffset)(bool fNegative, bool fPositive) PURE;
// TODO: chapters
};
diff --git a/src/filters/parser/AviSplitter/IAviSplitterFilter.h b/src/filters/parser/AviSplitter/IAviSplitterFilter.h
index 62af5c0bd..a648d3b42 100644
--- a/src/filters/parser/AviSplitter/IAviSplitterFilter.h
+++ b/src/filters/parser/AviSplitter/IAviSplitterFilter.h
@@ -1,5 +1,5 @@
/*
- * (C) 2012 see Authors.txt
+ * (C) 2012-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -23,8 +23,8 @@
interface __declspec(uuid("1E41BBCB-F6E0-4A49-91F7-A2AD5B5C7113"))
IAviSplitterFilter :
public IUnknown {
- STDMETHOD(Apply()) = 0;
+ STDMETHOD(Apply()) PURE;
- STDMETHOD(SetNonInterleavedFilesSupport(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetNonInterleavedFilesSupport()) = 0;
+ STDMETHOD(SetNonInterleavedFilesSupport(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetNonInterleavedFilesSupport()) PURE;
};
diff --git a/src/filters/parser/BaseSplitter/AsyncReader.h b/src/filters/parser/BaseSplitter/AsyncReader.h
index ceb1af316..b6e69237c 100644
--- a/src/filters/parser/BaseSplitter/AsyncReader.h
+++ b/src/filters/parser/BaseSplitter/AsyncReader.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -26,17 +26,17 @@
interface __declspec(uuid("6DDB4EE7-45A0-4459-A508-BD77B32C91B2"))
ISyncReader :
public IUnknown {
- STDMETHOD_(void, SetBreakEvent)(HANDLE hBreakEvent) = 0;
- STDMETHOD_(bool, HasErrors)() = 0;
- STDMETHOD_(void, ClearErrors)() = 0;
- STDMETHOD_(void, SetPTSOffset)(REFERENCE_TIME * rtPTSOffset) = 0;
+ STDMETHOD_(void, SetBreakEvent)(HANDLE hBreakEvent) PURE;
+ STDMETHOD_(bool, HasErrors)() PURE;
+ STDMETHOD_(void, ClearErrors)() PURE;
+ STDMETHOD_(void, SetPTSOffset)(REFERENCE_TIME * rtPTSOffset) PURE;
};
interface __declspec(uuid("7D55F67A-826E-40B9-8A7D-3DF0CBBD272D"))
IFileHandle :
public IUnknown {
- STDMETHOD_(HANDLE, GetFileHandle)() = 0;
- STDMETHOD_(LPCTSTR, GetFileName)() = 0;
+ STDMETHOD_(HANDLE, GetFileHandle)() PURE;
+ STDMETHOD_(LPCTSTR, GetFileName)() PURE;
};
class CAsyncFileReader : public CUnknown, public CMultiFiles, public IAsyncReader, public ISyncReader, public IFileHandle
diff --git a/src/filters/parser/MpegSplitter/IMpegSplitterFilter.h b/src/filters/parser/MpegSplitter/IMpegSplitterFilter.h
index 76e9bb1a2..e0ad52cb0 100644
--- a/src/filters/parser/MpegSplitter/IMpegSplitterFilter.h
+++ b/src/filters/parser/MpegSplitter/IMpegSplitterFilter.h
@@ -23,28 +23,28 @@
interface __declspec(uuid("1DC9C085-04AC-4BB8-B2BD-C49A4D30B104"))
IMpegSplitterFilter :
public IUnknown {
- STDMETHOD(Apply()) = 0;
+ STDMETHOD(Apply()) PURE;
- STDMETHOD(SetFastStreamChange(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetFastStreamChange()) = 0;
+ STDMETHOD(SetFastStreamChange(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetFastStreamChange()) PURE;
- STDMETHOD(SetForcedSub(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetForcedSub()) = 0;
+ STDMETHOD(SetForcedSub(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetForcedSub()) PURE;
- STDMETHOD(SetAudioLanguageOrder(WCHAR * nValue)) = 0;
- STDMETHOD_(WCHAR*, GetAudioLanguageOrder()) = 0;
+ STDMETHOD(SetAudioLanguageOrder(WCHAR * nValue)) PURE;
+ STDMETHOD_(WCHAR*, GetAudioLanguageOrder()) PURE;
- STDMETHOD(SetSubtitlesLanguageOrder(WCHAR * nValue)) = 0;
- STDMETHOD_(WCHAR*, GetSubtitlesLanguageOrder()) = 0;
+ STDMETHOD(SetSubtitlesLanguageOrder(WCHAR * nValue)) PURE;
+ STDMETHOD_(WCHAR*, GetSubtitlesLanguageOrder()) PURE;
- STDMETHOD(SetVC1_GuidFlag(int nValue)) = 0;
- STDMETHOD_(int, GetVC1_GuidFlag()) = 0;
+ STDMETHOD(SetVC1_GuidFlag(int nValue)) PURE;
+ STDMETHOD_(int, GetVC1_GuidFlag()) PURE;
- STDMETHOD(SetTrueHD(int nValue)) = 0;
- STDMETHOD_(int, GetTrueHD()) = 0;
+ STDMETHOD(SetTrueHD(int nValue)) PURE;
+ STDMETHOD_(int, GetTrueHD()) PURE;
- STDMETHOD(SetAlternativeDuration(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetAlternativeDuration()) = 0;
+ STDMETHOD(SetAlternativeDuration(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetAlternativeDuration()) PURE;
- STDMETHOD_(int, GetMPEGType()) = 0;
+ STDMETHOD_(int, GetMPEGType()) PURE;
};
diff --git a/src/filters/renderer/MpcAudioRenderer/IMpcAudioRendererFilter.h b/src/filters/renderer/MpcAudioRenderer/IMpcAudioRendererFilter.h
index a4504b28f..a9e33ebf5 100644
--- a/src/filters/renderer/MpcAudioRenderer/IMpcAudioRendererFilter.h
+++ b/src/filters/renderer/MpcAudioRenderer/IMpcAudioRendererFilter.h
@@ -1,5 +1,5 @@
/*
- * (C) 2010-2012 see Authors.txt
+ * (C) 2010-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -23,12 +23,12 @@
interface __declspec(uuid("495D2C66-D430-439b-9DEE-40F9B7929BBA"))
IMpcAudioRendererFilter :
public IUnknown {
- STDMETHOD(Apply()) = 0;
+ STDMETHOD(Apply()) PURE;
- STDMETHOD(SetWasapiMode(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetWasapiMode()) = 0;
- STDMETHOD(SetMuteFastForward(BOOL nValue)) = 0;
- STDMETHOD_(BOOL, GetMuteFastForward()) = 0;
- STDMETHOD(SetSoundDevice(CString nValue)) = 0;
- STDMETHOD_(CString, GetSoundDevice()) = 0;
+ STDMETHOD(SetWasapiMode(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetWasapiMode()) PURE;
+ STDMETHOD(SetMuteFastForward(BOOL nValue)) PURE;
+ STDMETHOD_(BOOL, GetMuteFastForward()) PURE;
+ STDMETHOD(SetSoundDevice(CString nValue)) PURE;
+ STDMETHOD_(CString, GetSoundDevice()) PURE;
};
diff --git a/src/filters/renderer/SyncClock/Interfaces.h b/src/filters/renderer/SyncClock/Interfaces.h
index 3be139c6c..b50c046b2 100644
--- a/src/filters/renderer/SyncClock/Interfaces.h
+++ b/src/filters/renderer/SyncClock/Interfaces.h
@@ -1,5 +1,5 @@
/*
- * (C) 2010-2012 see Authors.txt
+ * (C) 2010-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -26,8 +26,8 @@ MIDL_INTERFACE("A62888FB-8E37-44d2-8850-B3E3F2C1169F")
ISyncClock:
public IUnknown {
public:
- virtual HRESULT STDMETHODCALLTYPE AdjustClock(double adjustment) = 0;
- virtual HRESULT STDMETHODCALLTYPE SetBias(double bias) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetBias(double * bias) = 0;
- virtual HRESULT STDMETHODCALLTYPE GetStartTime(REFERENCE_TIME * startTime);
+ STDMETHOD(AdjustClock)(double adjustment) PURE;
+ STDMETHOD(SetBias)(double bias) PURE;
+ STDMETHOD(GetBias)(double * bias) PURE;
+ STDMETHOD(GetStartTime)(REFERENCE_TIME * startTime);
};
diff --git a/src/filters/renderer/VideoRenderers/AllocatorCommon.h b/src/filters/renderer/VideoRenderers/AllocatorCommon.h
index 165812ecb..6526e496b 100644
--- a/src/filters/renderer/VideoRenderers/AllocatorCommon.h
+++ b/src/filters/renderer/VideoRenderers/AllocatorCommon.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -70,5 +70,5 @@ MIDL_INTERFACE("A273C7F6-25D4-46b0-B2C8-4F7FADC44E37")
IVMRffdshow9 :
public IUnknown {
public:
- virtual STDMETHODIMP support_ffdshow() = 0;
+ STDMETHOD(support_ffdshow()) PURE;
};
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp
index db1a7c836..9b9823fde 100644
--- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp
+++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.cpp
@@ -31,8 +31,8 @@ using namespace DSObjects;
interface __declspec(uuid("D6EE8031-214E-4E9E-A3A7-458925F933AB"))
IMadVRExclusiveModeInfo :
public IUnknown {
- STDMETHOD_(BOOL, IsExclusiveModeActive)() = 0;
- STDMETHOD_(BOOL, IsMadVRSeekbarEnabled)() = 0;
+ STDMETHOD_(BOOL, IsExclusiveModeActive)() PURE;
+ STDMETHOD_(BOOL, IsMadVRSeekbarEnabled)() PURE;
};
#define ShaderStage_PreScale 0
@@ -41,8 +41,8 @@ public IUnknown {
interface __declspec(uuid("B6A6D5D4-9637-4C7D-AAAE-BC0B36F5E433"))
IMadVRExternalPixelShaders :
public IUnknown {
- STDMETHOD(ClearPixelShaders)(bool postScale) = 0;
- STDMETHOD(AddPixelShader)(LPCSTR sourceCode, LPCSTR compileProfile, int stage, LPVOID reserved) = 0;
+ STDMETHOD(ClearPixelShaders)(bool postScale) PURE;
+ STDMETHOD(AddPixelShader)(LPCSTR sourceCode, LPCSTR compileProfile, int stage, LPVOID reserved) PURE;
};
//
diff --git a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h
index bed41153e..1319f345d 100644
--- a/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h
+++ b/src/filters/renderer/VideoRenderers/madVRAllocatorPresenter.h
@@ -27,8 +27,8 @@
interface __declspec(uuid("ABA34FDA-DD22-4E00-9AB4-4ABF927D0B0C"))
IMadVRTextOsd :
public IUnknown {
- STDMETHOD(OsdDisplayMessage)(LPCWSTR text, DWORD milliseconds) = 0;
- STDMETHOD(OsdClearMessage)() = 0;
+ STDMETHOD(OsdDisplayMessage)(LPCWSTR text, DWORD milliseconds) PURE;
+ STDMETHOD(OsdClearMessage)() PURE;
};
namespace DSObjects
diff --git a/src/filters/switcher/AudioSwitcher/AudioSwitcher.h b/src/filters/switcher/AudioSwitcher/AudioSwitcher.h
index 552b4f738..c335c5f28 100644
--- a/src/filters/switcher/AudioSwitcher/AudioSwitcher.h
+++ b/src/filters/switcher/AudioSwitcher/AudioSwitcher.h
@@ -30,20 +30,20 @@
interface __declspec(uuid("CEDB2890-53AE-4231-91A3-B0AAFCD1DBDE"))
IAudioSwitcherFilter :
public IUnknown {
- STDMETHOD(GetInputSpeakerConfig)(DWORD * pdwChannelMask) = 0;
- STDMETHOD(GetSpeakerConfig)(bool * pfCustomChannelMapping, DWORD pSpeakerToChannelMap[AS_MAX_CHANNELS][AS_MAX_CHANNELS]) = 0;
- STDMETHOD(SetSpeakerConfig)(bool fCustomChannelMapping, DWORD pSpeakerToChannelMap[AS_MAX_CHANNELS][AS_MAX_CHANNELS]) = 0;
- STDMETHOD_(int, GetNumberOfInputChannels)() = 0;
- STDMETHOD_(bool, IsDownSamplingTo441Enabled)() = 0;
- STDMETHOD(EnableDownSamplingTo441)(bool fEnable) = 0;
- STDMETHOD_(REFERENCE_TIME, GetAudioTimeShift)() = 0;
- STDMETHOD(SetAudioTimeShift)(REFERENCE_TIME rtAudioTimeShift) = 0;
+ STDMETHOD(GetInputSpeakerConfig)(DWORD * pdwChannelMask) PURE;
+ STDMETHOD(GetSpeakerConfig)(bool * pfCustomChannelMapping, DWORD pSpeakerToChannelMap[AS_MAX_CHANNELS][AS_MAX_CHANNELS]) PURE;
+ STDMETHOD(SetSpeakerConfig)(bool fCustomChannelMapping, DWORD pSpeakerToChannelMap[AS_MAX_CHANNELS][AS_MAX_CHANNELS]) PURE;
+ STDMETHOD_(int, GetNumberOfInputChannels)() PURE;
+ STDMETHOD_(bool, IsDownSamplingTo441Enabled)() PURE;
+ STDMETHOD(EnableDownSamplingTo441)(bool fEnable) PURE;
+ STDMETHOD_(REFERENCE_TIME, GetAudioTimeShift)() PURE;
+ STDMETHOD(SetAudioTimeShift)(REFERENCE_TIME rtAudioTimeShift) PURE;
// Deprecated
- STDMETHOD(GetNormalizeBoost)(bool & fNormalize, bool & fNormalizeRecover, float & boost_dB) = 0;
+ STDMETHOD(GetNormalizeBoost)(bool & fNormalize, bool & fNormalizeRecover, float & boost_dB) PURE;
// Deprecated
- STDMETHOD(SetNormalizeBoost)(bool fNormalize, bool fNormalizeRecover, float boost_dB) = 0;
- STDMETHOD(GetNormalizeBoost2)(bool & fNormalize, UINT & nMaxNormFactor, bool & fNormalizeRecover, UINT & nBoost) = 0;
- STDMETHOD(SetNormalizeBoost2)(bool fNormalize, UINT nMaxNormFactor, bool fNormalizeRecover, UINT nBoost) = 0;
+ STDMETHOD(SetNormalizeBoost)(bool fNormalize, bool fNormalizeRecover, float boost_dB) PURE;
+ STDMETHOD(GetNormalizeBoost2)(bool & fNormalize, UINT & nMaxNormFactor, bool & fNormalizeRecover, UINT & nBoost) PURE;
+ STDMETHOD(SetNormalizeBoost2)(bool fNormalize, UINT nMaxNormFactor, bool fNormalizeRecover, UINT nBoost) PURE;
};
class AudioStreamResampler;
diff --git a/src/filters/switcher/AudioSwitcher/StreamSwitcher.h b/src/filters/switcher/AudioSwitcher/StreamSwitcher.h
index 3bb8ad5e9..1f608ab5b 100644
--- a/src/filters/switcher/AudioSwitcher/StreamSwitcher.h
+++ b/src/filters/switcher/AudioSwitcher/StreamSwitcher.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -102,7 +102,7 @@ public:
interface __declspec(uuid("DA395FA3-4A3E-4D85-805E-0BEFF53D4BCD"))
IStreamSwitcherInputPin :
public IUnknown {
- STDMETHOD_(bool, IsActive)() = 0;
+ STDMETHOD_(bool, IsActive)() PURE;
};
class CStreamSwitcherInputPin : public CBaseInputPin, public IPinConnection, public IStreamSwitcherInputPin
diff --git a/src/filters/transform/BufferFilter/BufferFilter.h b/src/filters/transform/BufferFilter/BufferFilter.h
index c6e227e36..babd6315d 100644
--- a/src/filters/transform/BufferFilter/BufferFilter.h
+++ b/src/filters/transform/BufferFilter/BufferFilter.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -28,10 +28,10 @@
interface __declspec(uuid("63EF0035-3FFE-4c41-9230-4346E028BE20"))
IBufferFilter :
public IUnknown {
- STDMETHOD(SetBuffers)(int nBuffers) = 0;
- STDMETHOD_(int, GetBuffers)() = 0;
- STDMETHOD_(int, GetFreeBuffers)() = 0;
- STDMETHOD(SetPriority)(DWORD dwPriority = THREAD_PRIORITY_NORMAL) = 0;
+ STDMETHOD(SetBuffers)(int nBuffers) PURE;
+ STDMETHOD_(int, GetBuffers)() PURE;
+ STDMETHOD_(int, GetFreeBuffers)() PURE;
+ STDMETHOD(SetPriority)(DWORD dwPriority = THREAD_PRIORITY_NORMAL) PURE;
};
class __declspec(uuid("DA2B3D77-2F29-4fd2-AC99-DEE4A8A13BF0"))
diff --git a/src/filters/transform/MPCVideoDec/IMPCVideoDecFilter.h b/src/filters/transform/MPCVideoDec/IMPCVideoDecFilter.h
index 75a404eda..dbfe1316b 100644
--- a/src/filters/transform/MPCVideoDec/IMPCVideoDecFilter.h
+++ b/src/filters/transform/MPCVideoDec/IMPCVideoDecFilter.h
@@ -55,36 +55,36 @@ enum MPCVD_INTERLACED_FLAG {
interface __declspec(uuid("CDC3B5B3-A8B0-4c70-A805-9FC80CDEF262"))
IMPCVideoDecFilter :
public IUnknown {
- STDMETHOD(Apply()) = 0;
+ STDMETHOD(Apply()) PURE;
- STDMETHOD(SetThreadNumber(int nValue)) = 0;
- STDMETHOD_(int, GetThreadNumber()) = 0;
+ STDMETHOD(SetThreadNumber(int nValue)) PURE;
+ STDMETHOD_(int, GetThreadNumber()) PURE;
- STDMETHOD(SetDiscardMode(int nValue)) = 0;
- STDMETHOD_(int, GetDiscardMode()) = 0;
+ STDMETHOD(SetDiscardMode(int nValue)) PURE;
+ STDMETHOD_(int, GetDiscardMode()) PURE;
- STDMETHOD_(GUID*, GetDXVADecoderGuid()) = 0;
+ STDMETHOD_(GUID*, GetDXVADecoderGuid()) PURE;
- STDMETHOD(SetActiveCodecs(MPC_VIDEO_CODEC nValue)) = 0;
- STDMETHOD_(MPC_VIDEO_CODEC, GetActiveCodecs()) = 0;
+ STDMETHOD(SetActiveCodecs(MPC_VIDEO_CODEC nValue)) PURE;
+ STDMETHOD_(MPC_VIDEO_CODEC, GetActiveCodecs()) PURE;
- STDMETHOD_(LPCTSTR, GetVideoCardDescription()) = 0;
+ STDMETHOD_(LPCTSTR, GetVideoCardDescription()) PURE;
- STDMETHOD(SetARMode(int nValue)) = 0;
- STDMETHOD_(int, GetARMode()) = 0;
+ STDMETHOD(SetARMode(int nValue)) PURE;
+ STDMETHOD_(int, GetARMode()) PURE;
- STDMETHOD(SetDXVACheckCompatibility(int nValue)) = 0;
- STDMETHOD_(int, GetDXVACheckCompatibility()) = 0;
+ STDMETHOD(SetDXVACheckCompatibility(int nValue)) PURE;
+ STDMETHOD_(int, GetDXVACheckCompatibility()) PURE;
- STDMETHOD(SetDXVA_SD(int nValue)) = 0;
- STDMETHOD_(int, GetDXVA_SD()) = 0;
+ STDMETHOD(SetDXVA_SD(int nValue)) PURE;
+ STDMETHOD_(int, GetDXVA_SD()) PURE;
};
interface __declspec(uuid("F0ABC515-19ED-4D65-9D5F-59E36AE7F2AF"))
IMPCVideoDecFilter2 :
public IMPCVideoDecFilter {
- STDMETHOD_(int, GetFrameType()) = 0;
+ STDMETHOD_(int, GetFrameType()) PURE;
- STDMETHOD(SetInterlacedFlag(MPCVD_INTERLACED_FLAG interlacedFlag)) = 0;
- STDMETHOD_(MPCVD_INTERLACED_FLAG, GetInterlacedFlag()) = 0;
+ STDMETHOD(SetInterlacedFlag(MPCVD_INTERLACED_FLAG interlacedFlag)) PURE;
+ STDMETHOD_(MPCVD_INTERLACED_FLAG, GetInterlacedFlag()) PURE;
};
diff --git a/src/filters/transform/MPCVideoDec/VideoDecDXVAAllocator.h b/src/filters/transform/MPCVideoDec/VideoDecDXVAAllocator.h
index 5f1f56af4..71e362b94 100644
--- a/src/filters/transform/MPCVideoDec/VideoDecDXVAAllocator.h
+++ b/src/filters/transform/MPCVideoDec/VideoDecDXVAAllocator.h
@@ -1,5 +1,5 @@
/*
- * (C) 2007-2012 see Authors.txt
+ * (C) 2007-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -31,7 +31,7 @@ class CVideoDecDXVAAllocator;
interface __declspec(uuid("AE7EC2A2-1913-4a80-8DD6-DF1497ABA494"))
IMPCDXVA2Sample :
public IUnknown {
- STDMETHOD_(int, GetDXSurfaceId()) = 0;
+ STDMETHOD_(int, GetDXSurfaceId()) PURE;
};
class CDXVA2Sample : public CMediaSample, public IMFGetService, public IMPCDXVA2Sample
diff --git a/src/filters/transform/MpaDecFilter/IMpaDecFilter.h b/src/filters/transform/MpaDecFilter/IMpaDecFilter.h
index 17a013b9d..50dfaa466 100644
--- a/src/filters/transform/MpaDecFilter/IMpaDecFilter.h
+++ b/src/filters/transform/MpaDecFilter/IMpaDecFilter.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -41,17 +41,17 @@ public IUnknown {
etcount
};
- STDMETHOD(SetSampleFormat(MPCSampleFormat sf, bool enable)) = 0;
- STDMETHOD_(bool, GetSampleFormat(MPCSampleFormat sf)) = 0;
- STDMETHOD_(MPCSampleFormat, SelectSampleFormat(MPCSampleFormat sf)) = 0;
- STDMETHOD(SetMixer(bool fMixer)) = 0;
- STDMETHOD_(bool, GetMixer()) = 0;
- STDMETHOD(SetMixerLayout(int sc)) = 0;
- STDMETHOD_(int, GetMixerLayout()) = 0;
- STDMETHOD(SetDynamicRangeControl(bool fDRC)) = 0;
- STDMETHOD_(bool, GetDynamicRangeControl()) = 0;
- STDMETHOD(SetSPDIF(enctype et, bool fSPDIF)) = 0;
- STDMETHOD_(bool, GetSPDIF(enctype et)) = 0;
+ STDMETHOD(SetSampleFormat(MPCSampleFormat sf, bool enable)) PURE;
+ STDMETHOD_(bool, GetSampleFormat(MPCSampleFormat sf)) PURE;
+ STDMETHOD_(MPCSampleFormat, SelectSampleFormat(MPCSampleFormat sf)) PURE;
+ STDMETHOD(SetMixer(bool fMixer)) PURE;
+ STDMETHOD_(bool, GetMixer()) PURE;
+ STDMETHOD(SetMixerLayout(int sc)) PURE;
+ STDMETHOD_(int, GetMixerLayout()) PURE;
+ STDMETHOD(SetDynamicRangeControl(bool fDRC)) PURE;
+ STDMETHOD_(bool, GetDynamicRangeControl()) PURE;
+ STDMETHOD(SetSPDIF(enctype et, bool fSPDIF)) PURE;
+ STDMETHOD_(bool, GetSPDIF(enctype et)) PURE;
- STDMETHOD(SaveSettings()) = 0;
+ STDMETHOD(SaveSettings()) PURE;
};
diff --git a/src/filters/transform/Mpeg2DecFilter/IMpeg2DecFilter.h b/src/filters/transform/Mpeg2DecFilter/IMpeg2DecFilter.h
index 52b504072..04580c72c 100644
--- a/src/filters/transform/Mpeg2DecFilter/IMpeg2DecFilter.h
+++ b/src/filters/transform/Mpeg2DecFilter/IMpeg2DecFilter.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -33,33 +33,33 @@ typedef enum {
interface __declspec(uuid("0ABEAA65-0317-47B9-AE1D-D9EA905AFD25"))
IMpeg2DecFilter :
public IUnknown {
- STDMETHOD(SetDeinterlaceMethod(ditype di)) = 0;
- STDMETHOD_(ditype, GetDeinterlaceMethod()) = 0;
+ STDMETHOD(SetDeinterlaceMethod(ditype di)) PURE;
+ STDMETHOD_(ditype, GetDeinterlaceMethod()) PURE;
// Brightness: -255.0 to 255.0, default 0.0
// Contrast: 0.0 to 10.0, default 1.0
// Hue: -180.0 to +180.0, default 0.0
// Saturation: 0.0 to 10.0, default 1.0
- STDMETHOD(SetBrightness(float brightness)) = 0;
- STDMETHOD(SetContrast(float contrast)) = 0;
- STDMETHOD(SetHue(float hue)) = 0;
- STDMETHOD(SetSaturation(float saturation)) = 0;
- STDMETHOD_(float, GetBrightness()) = 0;
- STDMETHOD_(float, GetContrast()) = 0;
- STDMETHOD_(float, GetHue()) = 0;
- STDMETHOD_(float, GetSaturation()) = 0;
+ STDMETHOD(SetBrightness(float brightness)) PURE;
+ STDMETHOD(SetContrast(float contrast)) PURE;
+ STDMETHOD(SetHue(float hue)) PURE;
+ STDMETHOD(SetSaturation(float saturation)) PURE;
+ STDMETHOD_(float, GetBrightness()) PURE;
+ STDMETHOD_(float, GetContrast()) PURE;
+ STDMETHOD_(float, GetHue()) PURE;
+ STDMETHOD_(float, GetSaturation()) PURE;
- STDMETHOD(EnableForcedSubtitles(bool fEnable)) = 0;
- STDMETHOD_(bool, IsForcedSubtitlesEnabled()) = 0;
+ STDMETHOD(EnableForcedSubtitles(bool fEnable)) PURE;
+ STDMETHOD_(bool, IsForcedSubtitlesEnabled()) PURE;
- STDMETHOD(EnablePlanarYUV(bool fEnable)) = 0;
- STDMETHOD_(bool, IsPlanarYUVEnabled()) = 0;
+ STDMETHOD(EnablePlanarYUV(bool fEnable)) PURE;
+ STDMETHOD_(bool, IsPlanarYUVEnabled()) PURE;
- STDMETHOD(EnableInterlaced(bool fEnable)) = 0;
- STDMETHOD_(bool, IsInterlacedEnabled()) = 0;
+ STDMETHOD(EnableInterlaced(bool fEnable)) PURE;
+ STDMETHOD_(bool, IsInterlacedEnabled()) PURE;
- STDMETHOD(EnableReadARFromStream(bool fEnable)) = 0;
- STDMETHOD_(bool, IsReadARFromStreamEnabled()) = 0;
+ STDMETHOD(EnableReadARFromStream(bool fEnable)) PURE;
+ STDMETHOD_(bool, IsReadARFromStreamEnabled()) PURE;
- STDMETHOD(Apply()) = 0;
+ STDMETHOD(Apply()) PURE;
};
diff --git a/src/mpc-hc/BaseGraph.h b/src/mpc-hc/BaseGraph.h
index f70821fc2..eaa2cfb31 100644
--- a/src/mpc-hc/BaseGraph.h
+++ b/src/mpc-hc/BaseGraph.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -45,7 +45,7 @@ typedef enum {
interface __declspec(uuid("B110CDE5-6331-4118-8AAF-A870D6F7E2E4"))
IGraphEngine :
public IUnknown {
- STDMETHOD_(engine_t, GetEngine)() = 0;
+ STDMETHOD_(engine_t, GetEngine)() PURE;
};
enum {
diff --git a/src/mpc-hc/IGraphBuilder2.h b/src/mpc-hc/IGraphBuilder2.h
index 96db02973..f5c37fb63 100644
--- a/src/mpc-hc/IGraphBuilder2.h
+++ b/src/mpc-hc/IGraphBuilder2.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2012 see Authors.txt
+ * (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -24,23 +24,23 @@
interface __declspec(uuid("165BE9D6-0929-4363-9BA3-580D735AA0F6"))
IGraphBuilder2 :
public IFilterGraph2 {
- STDMETHOD(IsPinDirection)(IPin * pPin, PIN_DIRECTION dir) = 0;
- STDMETHOD(IsPinConnected)(IPin * pPin) = 0;
- STDMETHOD(ConnectFilter)(IBaseFilter * pBF, IPin * pPinIn) = 0;
- STDMETHOD(ConnectFilter)(IPin * pPinOut, IBaseFilter * pBF) = 0;
- STDMETHOD(ConnectFilterDirect)(IPin * pPinOut, IBaseFilter * pBF, const AM_MEDIA_TYPE * pmt) = 0;
- STDMETHOD(NukeDownstream)(IUnknown * pUnk) = 0;
- STDMETHOD(FindInterface)(REFIID iid, void** ppv, BOOL bRemove) = 0;
- STDMETHOD(AddToROT)() = 0;
- STDMETHOD(RemoveFromROT)() = 0;
+ STDMETHOD(IsPinDirection)(IPin * pPin, PIN_DIRECTION dir) PURE;
+ STDMETHOD(IsPinConnected)(IPin * pPin) PURE;
+ STDMETHOD(ConnectFilter)(IBaseFilter * pBF, IPin * pPinIn) PURE;
+ STDMETHOD(ConnectFilter)(IPin * pPinOut, IBaseFilter * pBF) PURE;
+ STDMETHOD(ConnectFilterDirect)(IPin * pPinOut, IBaseFilter * pBF, const AM_MEDIA_TYPE * pmt) PURE;
+ STDMETHOD(NukeDownstream)(IUnknown * pUnk) PURE;
+ STDMETHOD(FindInterface)(REFIID iid, void** ppv, BOOL bRemove) PURE;
+ STDMETHOD(AddToROT)() PURE;
+ STDMETHOD(RemoveFromROT)() PURE;
};
// private use only
interface __declspec(uuid("43CDA93D-6A4E-4A07-BD3E-49D161073EE7"))
IGraphBuilderDeadEnd :
public IUnknown {
- STDMETHOD_(size_t, GetCount)() = 0;
- STDMETHOD(GetDeadEnd)(int iIndex, CAtlList<CStringW>& path, CAtlList<CMediaType>& mts) = 0;
+ STDMETHOD_(size_t, GetCount)() PURE;
+ STDMETHOD(GetDeadEnd)(int iIndex, CAtlList<CStringW>& path, CAtlList<CMediaType>& mts) PURE;
};
struct EventDescriptor;
@@ -49,10 +49,10 @@ struct EventDescriptor;
interface __declspec(uuid("43CDA93D-6A4E-4A07-BD3E-49D161073EE7"))
IBDATuner :
public IUnknown {
- STDMETHOD(SetChannel)(int nChannelPrefNumber) = 0;
- STDMETHOD(SetAudio)(int nAudioIndex) = 0;
- STDMETHOD(SetFrequency)(ULONG ulFrequency) = 0;
- STDMETHOD(Scan)(ULONG ulFrequency, HWND hWnd) = 0;
- STDMETHOD(GetStats)(BOOLEAN & bPresent, BOOLEAN & bLocked, LONG & lDbStrength, LONG & lPercentQuality) = 0;
- STDMETHOD(UpdatePSI)(EventDescriptor & NowNext) = 0;
+ STDMETHOD(SetChannel)(int nChannelPrefNumber) PURE;
+ STDMETHOD(SetAudio)(int nAudioIndex) PURE;
+ STDMETHOD(SetFrequency)(ULONG ulFrequency) PURE;
+ STDMETHOD(Scan)(ULONG ulFrequency, HWND hWnd) PURE;
+ STDMETHOD(GetStats)(BOOLEAN & bPresent, BOOLEAN & bLocked, LONG & lDbStrength, LONG & lPercentQuality) PURE;
+ STDMETHOD(UpdatePSI)(EventDescriptor & NowNext) PURE;
};