1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Added tests for Image2D

This commit is contained in:
Alexander Karsakov
2014-10-23 14:23:37 +03:00
parent e40567eaee
commit 3a263c6326
2 changed files with 46 additions and 0 deletions
+3
View File
@@ -4624,6 +4624,9 @@ struct Image2D::Impl
static bool isFormatSupported(cl_image_format format)
{
if (!haveOpenCL())
CV_Error(Error::OpenCLApiCallError, "OpenCL runtime not found!");
cl_context context = (cl_context)Context::getDefault().ptr();
// Figure out how many formats are supported by this context.
cl_uint numFormats = 0;