Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Van__Wincy
Beginner
63 Views

Does va - opencl interop support 444p surface ?

Jump to solution
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
63 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
64 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

Reply