I am trying to develop a decoding application using IMSDK. I am facing issues with the frame allocator.
First, I try the application provided by imsdk : sample_decode.exe mpeg2 -i test.m2v -o test.yuv -hw. In this case (hardware implementation, API version 1.0), frame allocator is called "by hand" in the CDecodingPipeline::AllocFrames function. It is never called during the m_pmfxDEC->Init() call. I am actually in the case of system memory allocations.
Then, I try to implement the same in my application. I do have exactly the same parameters as input for each MFX call (I use C API instead of C++, but I do not think it matters), but during the MFXVideoDECODE_Init call, frame allocator is called and request d3d surfaces.
How can I reproduce the behavior of the sample_decode code ?
Thanks for your help