|
As far as the nullnull example is concerned:
You can decide what type of data input your filter accepts in CheckInputType, for example:
HRESULT CheckInputType(const CMediaType* mtIn)
{
if (mtIn->subtype == MEDIASUBTYPE_RGB565)
return S_OK;
return E_FAIL;
}
Only RGB565 type data input is accepted. In addition, there is a member m_mt on the input pin, which is used to save the media type for connection, you can refer to it.
The video image frame is passed to the Transform function when the filter graph is running. |
|