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.

Sharing VA Surfaces with media sdk

ahmed__shakeeb
Beginner
583 Views

I want to use media sdk to perform denoising on linux. The problem I have is that I have VASurfaceID which i want to give to the media sdk to perform denoising. Is there any good way to convert this VASurfaceID to mfxFrameSurface1 or something similar so that I can use Media SDK?  

0 Kudos
1 Reply
Mark_L_Intel1
Moderator
583 Views

Hi Shakeeb,

Sorry for the late response, did you solved this problem yet?

We should be able to support VASurfaceID, could you check the sample code of our Media SDK open source project? Here might be a good start point and you might trace the API from here:

https://github.com/Intel-Media-SDK/MediaSDK/blob/7f93c075850798d8b5555eec02f517d2cbd85dcf/samples/sample_common/src/vaapi_allocator.cpp

https://github.com/Intel-Media-SDK/MediaSDK/blob/dfdce26488c5a6e443a56fedce02b7a496dcbd0b/samples/sample_common/src/vaapi_utils.cpp

Our sample code has 2 configurations for memory usage: system memory and video memory; VASurfaceID should be on the path for video memory.

Hope this helps.

Mark

0 Kudos
Reply