CBaseInputPin Class (Windows CE 5.0)
This is an abstract base class derived from CBasePin that adds support for IMemInputPin in addition to the IPin interface support provided by CBasePin. Its IMemInputPin::GetAllocator method returns a CMemAllocator object. Derive your input pin from this class.
All member functions in this class that return HRESULT and accept a pointer as a parameter return E_POINTER when passed a null pointer.
Protected Data Members
|m_bFlushing||In the state of flushing; if TRUE, all IMemInputPin::Receive methods are returned with S_FALSE.|
|m_bReadOnly||If TRUE, indicates that the allocator being used contains samples that are read-only.|
|m_pAllocator||Pointer to the default memory allocator.|
|CBaseInputPin||Constructs a CBaseInputPin object.|
|IsReadOnly||Checks the m_bReadOnly data member and returns its value.|
|IsFlushing||Checks the m_bFlushing data member and returns its value.|
|PassNotify||Passes a quality-control notification to the appropriate sink.|
Overrideable Member Functions
|CheckStreaming||Verifies conditions for continuing with a streaming operation.|
|Inactive||Switches the pin to an inactive state.|
Implemented IPin Methods
|BeginFlush||Informs the pin to begin a flush operation.|
|Disconnect||Releases the stored allocator.|
|EndFlush||Informs the pin to end a flush operation.|
Implemented IMemInputPin Methods
|GetAllocator||Returns the allocator interface that this input pin would like the output pin to use.|
|GetAllocatorRequirements||Indicates an optional method to use if the filter has specific alignment or prefix requirements but could use an upstream allocator.|
|NotifyAllocator||Tells the input pin which allocator the output pin is actually going to use.|
|Receive||Returns the next block of data from the stream. (Override this method to process a sample being passed in.)|
|ReceiveCanBlock||Determines if sending an IMemInputPin::Receive method might block.|
|ReceiveMultiple||Returns the next block of data from the stream. (Override this method to process samples being passed in.)|
Implemented INonDelegatingUnknown Methods
|NonDelegatingQueryInterface||Retrieves an interface from the subobject, not the aggregated object.|
Implemented IQualityControl Methods
|Notify||Notifies the recipient that a quality-control change is requested.
Override on the output pin only. This implementation returns NOERROR.
DirectShow applications and DirectShow filters have different include file and link library requirements.
For more information, see Setting Up the Build Environment.
OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Send Feedback on this topic to the authors