📄 inputpin.h
字号:
/*+++ *******************************************************************\
*
* Copyright and Disclaimer:
*
* ---------------------------------------------------------------
* This software is provided "AS IS" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of noninfringement, merchantability and/or
* fitness for a particular purpose.
* ---------------------------------------------------------------
*
* Copyright (c) 2008 Conexant Systems, Inc.
* All rights reserved.
*
\******************************************************************* ---*/
class CY8Filter;
class CInputPin : public CBaseInputPin
{
public:
CInputPin(CY8Filter *pTextOutFilter,
HRESULT *phr,
LPCWSTR pPinName);
~CInputPin();
// Check that we can support this input type
HRESULT CheckMediaType(const CMediaType *pmt);
HRESULT SetMediaType(const CMediaType* mt);
// IMemInputPin virtual methods
// Override so we can show and hide the window
HRESULT Active(void);
HRESULT Inactive(void);
// Here's the next block of data from the stream.
// AddRef it if you are going to hold onto it
STDMETHODIMP Receive(IMediaSample *pSample);
STDMETHODIMP EndOfStream();
inline IPin * GetConnectedOutputPin() { return (m_Connected); }
// inherited from IQualityControl via CBasePin
STDMETHODIMP Notify(IBaseFilter * pSender, Quality q);
private:
CY8Filter* m_pFilter; // The filter that owns us
CCritSec _critical_section;
}; // CInputPin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -