Intel Hardware M-JPEG Decoder MFT

Intel Hardware M-JPEG Decoder MFT

I'm trying to use this MFT to decode MJPEG frames.  I have a working sample that uses the synchronous decoder from Microsoft which goes thru a software path, and I'm trying to convert that code to use the Intel decoder which presumably uses the GPU to decode frames.

My code activates the Intel MFT, then unlocks the Async MFT.  I notice two problems:

1) My original code calls SetInputType on the MFT.  Now, that call returns E_FAIL.

mfVideoFormat.dwSize = sizeof(mfVideoFormat);
mfVideoFormat.guidFormat = MFVideoFormat_MJPG;
mfVideoFormat.videoInfo.dwWidth = m_imageWidth;
mfVideoFormat.videoInfo.dwHeight = m_imageHeight;
hr = MFCreateVideoMediaType(&mfVideoFormat, &pVideoMediaTypeInput);

hr = mjpegMFT->SetInputType( 0, pVideoMediaTypeInput, 0 );  // XXX this call fails with E_FAIL

2)  If  I comment this out, and then query for the IMFMediaEventGenerator, and call BeginGetEvent, my invoke method is never called by the MFT.

 

Are there any samples showing how to decode an image using an asynchronous + hardware MFT?

3 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Best Reply

Hi,

Please check the decoding with one of our samples using sample_decode. This is a sample decoder and also uses Intel hardware during the decoding process. Please follow the format provide at https://software.intel.com/forums/topic/531083 , which will provide us more useful information about your environment set up.

Thanks,

Hi All,

I'm developing a multimedia USB Camera streaming application for Desktop using SourceReader MediaFoundation technique.

I'm using USB camera device to show streaming. The camera supports 2-video formats: YUY2 and MJPG.

For MJPG video format, I used MJPEG Decoder MFT to convert MJPG - YUY2 - RGB32 and then displaying on the window using Direct3D9. 
For specific resolution, I'm facing framerate drops from 60fps to 30fps(Ex: 1920x1080 60fps but drawing only 30-33fps).

I have posted a question about this issue in StackOverflow, some of them suggested to me use Intel Hardware M-JPEG Decoder MFT.

So, I tried to use Intel Hardware M-JPEG Decoder MFT in my application but this decoder is not installed on my PC.
I downloaded the Intel Media SDK 2016 R2 setup from your site and installed in my PC. I have enumerated this decoder to use it in my system but I  couldn't find any intel hardware decoder installed in my PC. Moreover, I confirmed with System analyzer tool. 

I have attached my system configuration file. File Name: DxDiag.txt

Could you tell me whether my system support to install this decoder?If Yes, Please help me to install this decoder and solve this issue?

Thank you in advance

Attachments: 

AttachmentSize
Downloadtext/plain DxDiag.txt60.44 KB

Leave a Comment

Please sign in to add a comment. Not a member? Join today