intel-media-sdk

Changing image format of a Directx acquired surface in opencl

感情迁移 提交于 2019-12-13 02:15:00
问题 I am working in opencl gets a Media surface from Directx /* Working on NV12 surfaces, associate the shared buffer with the kernel object*/ p->memobj[0] = clCreateFromDX9MediaSurfaceINTEL(p->context, CL_MEM_READ_ONLY, input_D3D_surf, input_D3D_surf_hdl, 0, &error); p->memobj[1] = clCreateFromDX9MediaSurfaceINTEL(p->context, CL_MEM_READ_ONLY, input_D3D_surf, input_D3D_surf_hdl, 1, &error); p->memobj[2] = clCreateFromDX9MediaSurfaceINTEL(p->context, CL_MEM_READ_ONLY, input_D3D_surf, input_D3D