inputpin.h
来自「完整的基于Conxant平台的USB电视棒的WIN驱动程序。」· C头文件 代码 · 共 52 行
H
52 行
/*+++ *******************************************************************\
*
* 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 + =
减小字号Ctrl + -
显示快捷键?