Media (Intel® oneAPI 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 sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.

Does va - opencl interop support 444p surface ?

Van__Wincy
Beginner
256 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
256 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

1 Reply
Dmitry_E_Intel
Employee
257 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
Reply