如何能得到h263的IAMVideoCompression接口 QueryInterface找不到 是它不支持吗
如何能得到h263的IAMVideoCompression接口 QueryInterface找不到 是它不支持吗 问题点数:0、回复次数:3Top
1 楼dongchaomissyou(超)回复于 2005-04-02 12:57:46 得分 0
在FILTER支持IAMVideoCompression接口的前提下使用下面方法
HRESULT hr = E_FAIL;
IEnumPins *pEnum = NULL;
IPin *pPin = NULL;
IAMVideoCompression *pCompress = NULL;
// Find the pin that supports IAMVideoCompression (if any).
pFilter->EnumPins(&pEnum);
while (S_OK == pEnum->Next(1, &pPin, NULL))
{
hr = pPin->QueryInterface(IID_IAMVideoCompression, (void**)&pCompress);
pPin->Release();
if (SUCCEEDED(hr)) // Found the interface.
{
break;
}
}
Top
2 楼mycs2005()回复于 2005-04-02 16:55:33 得分 0
看来是那个 编码一7 不支持 哎Top
3 楼constantine(飘遥的安吉儿)回复于 2005-04-03 10:29:08 得分 0
找到了也不一定支持,最好是自己写过,或是网上下载相关的dll来用Top




