Definition at line 41 of file CustomBaseFilter.h.
Public Member Functions | |
CCustomBaseFilter (TCHAR *pObjectName, LPUNKNOWN lpUnk, CLSID clsid) | |
virtual | ~CCustomBaseFilter (void) |
virtual HRESULT | CheckInputType (const CMediaType *pMediaType) |
Overridden method which validates the input media type against the ones accepted by this filter. | |
virtual HRESULT | SetMediaType (PIN_DIRECTION direction, const CMediaType *pmt) |
Helper method which allows us to capture the input output media type properties Override this method to set other initialization code but call this base class method first. | |
HRESULT | Transform (IMediaSample *pSource, IMediaSample *pDest) |
Transform code. | |
STDMETHODIMP | NonDelegatingQueryInterface (REFIID riid, void **ppv) |
override this to publicize our interfaces | |
STDMETHODIMP | GetParameter (const char *szParamName, char *szResult, int &length) |
Overridden from ISettingsInterface. | |
STDMETHODIMP | SetParameter (const char *szParamName, const char *szValue) |
virtual void | InitialiseInputTypes () PURE |
This method needs to overridden by child classes - add all possible accepted input combinations using the AddInputType method. | |
Protected Member Functions | |
void | AddInputType (const GUID *pType, const GUID *pSubType, const GUID *pFormat) |
Used for Media Type Negotiation Call the AddInputType method in your overridden InitialiseInputTypes method to add your acceptable media types, subtypes and formats. | |
virtual DWORD | ApplyTransform (BYTE *pBufferIn, BYTE *pBufferOut) PURE |
This method must be overridden in the sub class to apply the filter specific transformation It must return the size of the resulting transformed output buffer. | |
Protected Attributes | |
VIDEOINFOHEADER | m_videoInHeader |
Video header of input. | |
VIDEOINFOHEADER | m_videoOutHeader |
Video header of output. | |
int | m_nInHeight |
Height of image. | |
int | m_nInWidth |
Width of image. | |
int | m_nInPixels |
Number of pixels in image. | |
int | m_nOutHeight |
Height in output image. | |
int | m_nOutWidth |
Width in output image. | |
int | m_nOutPixels |
Number of pixels in output image. | |
int | m_nBitCount |
Bit count of image. |
HRESULT CCustomBaseFilter::Transform | ( | IMediaSample * | pSource, | |
IMediaSample * | pDest | |||
) |
Transform code.
This method takes the source sample and transforms it and writes the transformed sample to the destination This method is called by the transform input pin's Receive method.
pSource | The source sample | |
pDest | The destination sample |
Definition at line 118 of file CustomBaseFilter.cpp.