|
|
@ -6445,6 +6445,8 @@ struct Image2D::Impl |
|
|
|
CL_MEM_OBJECT_IMAGE2D, numFormats, |
|
|
|
CL_MEM_OBJECT_IMAGE2D, numFormats, |
|
|
|
NULL, &numFormats); |
|
|
|
NULL, &numFormats); |
|
|
|
CV_OCL_DBG_CHECK_RESULT(err, "clGetSupportedImageFormats(CL_MEM_OBJECT_IMAGE2D, NULL)"); |
|
|
|
CV_OCL_DBG_CHECK_RESULT(err, "clGetSupportedImageFormats(CL_MEM_OBJECT_IMAGE2D, NULL)"); |
|
|
|
|
|
|
|
if (numFormats > 0) |
|
|
|
|
|
|
|
{ |
|
|
|
AutoBuffer<cl_image_format> formats(numFormats); |
|
|
|
AutoBuffer<cl_image_format> formats(numFormats); |
|
|
|
err = clGetSupportedImageFormats(context, CL_MEM_READ_WRITE, |
|
|
|
err = clGetSupportedImageFormats(context, CL_MEM_READ_WRITE, |
|
|
|
CL_MEM_OBJECT_IMAGE2D, numFormats, |
|
|
|
CL_MEM_OBJECT_IMAGE2D, numFormats, |
|
|
@ -6457,6 +6459,7 @@ struct Image2D::Impl |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|