Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Custom Prsenter modifications

sourabht
Beginner
527 Views
Hello,

I am working on a application for which I will require to modify custom presenter. I just want to ask that is it possible that we create NV12 surfaces in presnter? This type is not in the list but is there any way we can do this? And will it make my filter graph and video rendering faster?

Basically we will be having multiple videos and we take out video frame from renderer and render it through our application along with other content. So I thought having NV12 surfaces will save color conversion happening in renderer.
We have observed that with multiple videos, the application is not able to render at proper rate. So we are trying to optimize wherever possible.

Any other idea will also help. (We are using Intel MSDK DS filters)

Thanks,
Sourabh
0 Kudos
5 Replies
Nina_K_Intel
Employee
527 Views
Hi Sourabh,

I think this is a good idea and worth trying. You may define#define D3DFMT_NV12 (D3DFORMAT)MAKEFOURCC('N','V','1','2') and use D3DFMT_NV12 as backbuffer format. I expect both mixer and display device can support this format. Just make sure you correct all the format checks in the code (like explicit check for D3DFMT_X8R8G8B8).

I'll be interested to know if this works and helps improve performance of your app. We may need to update our sample apps, too.

Thanks,
Nina
0 Kudos
sourabhthakre
Beginner
527 Views
Hi Nina, I tried this in presenter but creating swap chain fails with this format type. Any other modifications required? -Sourabh
0 Kudos
Nina_K_Intel
Employee
527 Views
Hi Sourabh,

I tried this too and confirm that it doesn't work. Sorry for a misleading advice. Let me do more investigation on this.. Could you please also describe in more details the pipeline of your app and which color conversion you need to avoid?

Thanks,
Nina
0 Kudos
sourabhthakre
Beginner
527 Views
Hi Nina,

We are using directshow for video playback but the EVR presenter would provide video frame to application where it gets composed along with other contents using DXVA-HD. The color conversion happens in presenter since the surfaces created are of XRGB type and the IMSDK output is NV12.

-Sourabh
0 Kudos
Petter_L_Intel
Employee
527 Views
Hi Sourabh,

we are looking into this to see if we can provide some recommendations. Our resources are strained this week but we plan to get back to you sometime next week.

Regards,
Petter
0 Kudos
Reply