本文介绍了WMV阅读(IWMReaderCallbackAdvanced)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该怎么做才能在过滤器中创建IWMReaderCallbackAdvanced的IWMReader调用方法?
What should i do to make IWMReader call methods of IWMReaderCallbackAdvanced in my filter?
推荐答案
class LIST_DATA
{
public:
WORD first;
WMFOutputPinPtr second;
};
typedef list<LIST_DATA> PinMap;
;
// create the pin with a unique name
WORD wStrLen = 0;
pStream->GetStreamName(NULL, &wStrLen);
smart_array<WCHAR>awch = new WCHAR[wStrLen];
pStream->GetStreamName(awch, &wStrLen);
WMFOutputPin *pin = new WMFOutputPin(this, &m_csFilter, &hr, awch);
LIST_DATA local_stream_data;
local_stream_data.first = wStream;
local_stream_data.second = pin;
// insert in map, using wStream as index
m_Outputs.push_back(local_stream_data);
// get the compressed media type from the profile for this stream
IWMMediaPropsPtr pProps = pStream;
;
这篇关于WMV阅读(IWMReaderCallbackAdvanced)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!