- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have code that activates the Intel M-JPEG Decoder MFT. Calling SetInputType on the MFT return E_FAIL. Is there another attribute that must be set on the MFT? This code works on synchronous MFT from Microsoft. For clarity, I've removed looking at the hr return, and dealing with errors.
MFTEnumEx(MFT_CATEGORY_VIDEO_DECODER, MFT_ENUM_FLAG_HARDWARE, &inputTypeGUID, &outputTypeGUID, &availableMFTs, &numMFTsAvailable);
availableMFTs[0]->ActivateObject(IID_PPV_ARGS(&m_mjpegMFT));
UnlockAsyncMFT( m_mjpegMFT ); // Comment this out for MFT_ENUM_FLAG_SYNCFMT
mfVideoFormat.dwSize = sizeof(mfVideoFormat);
mfVideoFormat.guidFormat = MFVideoFormat_MJPG;
mfVideoFormat.videoInfo.dwWidth = m_imageWidth;
mfVideoFormat.videoInfo.dwHeight = m_imageHeight;
MFCreateVideoMediaType(&mfVideoFormat, &pVideoMediaTypeInput);
// This next call fails, hr = E_FAIL
hr = m_mjpegMFT->SetInputType(0, pVideoMediaTypeInput, 0); // FAILS
Link Copied

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page