Definition at line 48 of file RGBtoYUV420Filter.h.
Public Member Functions | |
RGBtoYUV420Filter () | |
Constructor. | |
~RGBtoYUV420Filter () | |
Destructor. | |
HRESULT | SetMediaType (PIN_DIRECTION direction, const CMediaType *pmt) |
Overriding this so that we can set whether this is an RGB24 or an RGB32 Filter. | |
HRESULT | GetMediaType (int iPosition, CMediaType *pMediaType) |
Used for Media Type Negotiation Returns an HRESULT value. | |
HRESULT | DecideBufferSize (IMemAllocator *pAlloc, ALLOCATOR_PROPERTIES *pProp) |
Buffer Allocation. | |
HRESULT | CheckTransform (const CMediaType *mtIn, const CMediaType *mtOut) |
The CheckTransform method checks whether an input media type is compatible with an output media type. | |
virtual void | InitialiseInputTypes () |
Overridden from CCustomBaseFilter. | |
virtual void | initParameters () |
Overridden from CSettingsInterface. | |
Static Public Member Functions | |
static CUnknown *WINAPI | CreateInstance (LPUNKNOWN pUnk, HRESULT *pHr) |
Static object-creation method (for the class factory). |
HRESULT RGBtoYUV420Filter::GetMediaType | ( | int | iPosition, | |
CMediaType * | pMediaType | |||
) |
Used for Media Type Negotiation Returns an HRESULT value.
Possible values include those shown in the following table.
Value | Description |
S_OK | Success |
VFW_S_NO_MORE_ITEMS | Index out of range |
E_INVALIDARG | Index less than zero |
Definition at line 107 of file RGBtoYUV420Filter.cpp.
HRESULT RGBtoYUV420Filter::DecideBufferSize | ( | IMemAllocator * | pAlloc, | |
ALLOCATOR_PROPERTIES * | pProp | |||
) |
Buffer Allocation.
The output pin's CTransformOutputPin::DecideBufferSize method calls this method. The derived class must implement this method. For more information, see CBaseOutputPin::DecideBufferSize.
pAlloc | Pointer to the IMemAllocator interface on the output pin's allocator. | |
pProp | Pointer to an ALLOCATOR_PROPERTIES structure that contains buffer requirements from the downstream input pin. |
Definition at line 131 of file RGBtoYUV420Filter.cpp.
HRESULT RGBtoYUV420Filter::CheckTransform | ( | const CMediaType * | mtIn, | |
const CMediaType * | mtOut | |||
) |
The CheckTransform method checks whether an input media type is compatible with an output media type.
Value | Description |
S_OK | The media types are compatible. |
VFW_E_TYPE_NOT_ACCEPTED | The media types are not compatible. |
Definition at line 207 of file RGBtoYUV420Filter.cpp.