I'm integrating Intel Media SDK decoding into an App that currently performs decode synchronously by passing a compressed frame as input
and expects an uncompressed frame as an output into a provided output buffer.
I have this working using system memory, but can't seem to get it going with graphics memory.
An easy way to see the issue is to modify the latest Intel Media SDK samples, with trivial modification as follows.
In simple_decode sample, after the line that has this statement
sts = mfxDEC.QueryIOSurf(&mfxVideoParams, &Request);
add these two statements
Request.NumFrameMin = 1;
Request.NumFrameSuggested = 1;
The program still works and is now completely synchronous. It also has pretty good performance.
However, when I make the same modification to simple_decode_d3d, the sample no longer works and returns an error.
Synchronous behavior is desirable in this case because the current App works synchronously. It can migrate to asynchronous method,
but this will take additional time and effort.
Is it possible to do decode (H.264) synchronously when using graphics memory? The hardware is working synchronously when using system memory.
Thank you for your help.
-Victor