#include <Dmodshow.h>
IBaseFilter *pFilter;
hr = CoCreateInstance(CLSID_DMOWrapperFilter, NULL,
CLSCTX_INPROC_SERVER, IID_IBaseFilter,
reinterpret_cast(&pFilter));
if (SUCCEEDED(hr))
{
// Query for IDMOWrapperFilter.
IDMOWrapperFilter *pDmoWrapper;
hr = pFilter->QueryInterface(IID_IDMOWrapperFilter,
reinterpret_cast<void**>(&pDmoWrapper));
if (SUCCEEDED(hr))
{
// Initialize the filter.
hr = pDmoWrapper->Init(CLSID_DYNA_MPEG43DMO, CLSID_LegacyAmFilterCategory);
pDmoWrapper->Release();
if (SUCCEEDED(hr))
{
// Add the filter to the graph.
hr = m_pGB->AddFilter(pFilter, L"Mpeg43 Decoder DMO");
}
}
pFilter->Release();
}
// Dmoguids.lib 라이브러리 추가DMO 필터 사용하기
2009. 2. 13. 10:19