CBaseInputPin Class
A version of this page is also available for
4/8/2010
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
Member | Description |
---|---|
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. |
Member Functions
Member function | Description |
---|---|
Constructs a CBaseInputPin object. |
|
Checks the m_bReadOnly data member and returns its value. |
|
Checks the m_bFlushing data member and returns its value. |
|
Passes a quality-control notification to the appropriate sink. |
Overrideable Member Functions
Member function | Description |
---|---|
Verifies conditions for continuing with a streaming operation. |
|
Switches the pin to an inactive state. |
Implemented IPin Methods
Method | Description |
---|---|
Informs the pin to begin a flush operation. |
|
Releases the stored allocator. |
|
Informs the pin to end a flush operation. |
Implemented IMemInputPin Methods
Method | Description |
---|---|
Returns the allocator interface that this input pin would like the output pin to use. |
|
Indicates an optional method to use if the filter has specific alignment or prefix requirements but could use an upstream allocator. |
|
Tells the input pin which allocator the output pin is actually going to use. |
|
Returns the next block of data from the stream. (Override this method to process a sample being passed in.) |
|
Determines if sending an IMemInputPin::Receive method might block. |
|
Returns the next block of data from the stream. (Override this method to process samples being passed in.) |
Implemented INonDelegatingUnknown Methods
Method | Description |
---|---|
Retrieves an interface from the subobject, not the aggregated object. |
Implemented IQualityControl Methods
Method | Description |
---|---|
Notifies the recipient that a quality-control change is requested. Override on the output pin only. This implementation returns NOERROR. |
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment |