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.

Does va - opencl interop support 444p surface ?

Van__Wincy
Beginner
444 Views
I am using Intel Media SDK to build a libva - opencl interop program.
 
When I use clCreateFromVA_APIMediaSurfaceINTEL to create a cl_mem object of the plane[0] (or plane[1], plane[2]),
 
the API returns -30 (CL_INVALID_VALUE). So I am wondering that does Media SDK 2018 R1 suport nv12 surfaces only?
 
 

Thanks

0 Kudos
1 Solution
Dmitry_E_Intel
Employee
444 Views
Hi,
 
Basically NV12 is a native format for MediaSDK decoders/encoders on BDW/SKL. VPP supports more formats but they all 8bit formats (on BDW/SKL). As for KBL/CFL/ICL there is 422, 444 support. You may refer to https://github.com/Intel-Media-SDK/MediaSDK and https://github.com/intel/media-driver for more details. Please note that for this OCL rotate filter we still plan to support NV12 only. This is because extension of this filter has a low priority, this is just for demonstration purposes. It doesn't mean 444 can't work there, we simply didn't try. Also please note that clCreateFromVA_APIMediaSurfaceINTEL is a part of OCL run-time, not MediaSDK. You may refer to https://github.com/intel/compute-runtime for details. 
 
Regards,
Dmitry

View solution in original post

0 Kudos
1 Reply
Dmitry_E_Intel
Employee
445 Views
Hi,
 
Basically NV12 is a native format for MediaSDK decoders/encoders on BDW/SKL. VPP supports more formats but they all 8bit formats (on BDW/SKL). As for KBL/CFL/ICL there is 422, 444 support. You may refer to https://github.com/Intel-Media-SDK/MediaSDK and https://github.com/intel/media-driver for more details. Please note that for this OCL rotate filter we still plan to support NV12 only. This is because extension of this filter has a low priority, this is just for demonstration purposes. It doesn't mean 444 can't work there, we simply didn't try. Also please note that clCreateFromVA_APIMediaSurfaceINTEL is a part of OCL run-time, not MediaSDK. You may refer to https://github.com/intel/compute-runtime for details. 
 
Regards,
Dmitry
0 Kudos
Reply