Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Committer:
thedo
Date:
Fri Jul 21 01:26:02 2017 +0000
Revision:
166:240bc5a0f42a
gr-peach-opencv-project-sd-card

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 166:240bc5a0f42a 1 /*M///////////////////////////////////////////////////////////////////////////////////////
thedo 166:240bc5a0f42a 2 //
thedo 166:240bc5a0f42a 3 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
thedo 166:240bc5a0f42a 4 //
thedo 166:240bc5a0f42a 5 // By downloading, copying, installing or using the software you agree to this license.
thedo 166:240bc5a0f42a 6 // If you do not agree to this license, do not download, install,
thedo 166:240bc5a0f42a 7 // copy or use the software.
thedo 166:240bc5a0f42a 8 //
thedo 166:240bc5a0f42a 9 //
thedo 166:240bc5a0f42a 10 // License Agreement
thedo 166:240bc5a0f42a 11 // For Open Source Computer Vision Library
thedo 166:240bc5a0f42a 12 //
thedo 166:240bc5a0f42a 13 // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved.
thedo 166:240bc5a0f42a 14 // Third party copyrights are property of their respective owners.
thedo 166:240bc5a0f42a 15 //
thedo 166:240bc5a0f42a 16 // Redistribution and use in source and binary forms, with or without modification,
thedo 166:240bc5a0f42a 17 // are permitted provided that the following conditions are met:
thedo 166:240bc5a0f42a 18 //
thedo 166:240bc5a0f42a 19 // * Redistribution's of source code must retain the above copyright notice,
thedo 166:240bc5a0f42a 20 // this list of conditions and the following disclaimer.
thedo 166:240bc5a0f42a 21 //
thedo 166:240bc5a0f42a 22 // * Redistribution's in binary form must reproduce the above copyright notice,
thedo 166:240bc5a0f42a 23 // this list of conditions and the following disclaimer in the documentation
thedo 166:240bc5a0f42a 24 // and/or other materials provided with the distribution.
thedo 166:240bc5a0f42a 25 //
thedo 166:240bc5a0f42a 26 // * The name of the copyright holders may not be used to endorse or promote products
thedo 166:240bc5a0f42a 27 // derived from this software without specific prior written permission.
thedo 166:240bc5a0f42a 28 //
thedo 166:240bc5a0f42a 29 // This software is provided by the copyright holders and contributors "as is" and
thedo 166:240bc5a0f42a 30 // any express or implied warranties, including, but not limited to, the implied
thedo 166:240bc5a0f42a 31 // warranties of merchantability and fitness for a particular purpose are disclaimed.
thedo 166:240bc5a0f42a 32 // In no event shall the OpenCV Foundation or contributors be liable for any direct,
thedo 166:240bc5a0f42a 33 // indirect, incidental, special, exemplary, or consequential damages
thedo 166:240bc5a0f42a 34 // (including, but not limited to, procurement of substitute goods or services;
thedo 166:240bc5a0f42a 35 // loss of use, data, or profits; or business interruption) however caused
thedo 166:240bc5a0f42a 36 // and on any theory of liability, whether in contract, strict liability,
thedo 166:240bc5a0f42a 37 // or tort (including negligence or otherwise) arising in any way out of
thedo 166:240bc5a0f42a 38 // the use of this software, even if advised of the possibility of such damage.
thedo 166:240bc5a0f42a 39 //
thedo 166:240bc5a0f42a 40 //M*/
thedo 166:240bc5a0f42a 41
thedo 166:240bc5a0f42a 42 #ifndef __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__
thedo 166:240bc5a0f42a 43 #define __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__
thedo 166:240bc5a0f42a 44
thedo 166:240bc5a0f42a 45 #ifdef HAVE_OPENCL
thedo 166:240bc5a0f42a 46
thedo 166:240bc5a0f42a 47 #if defined(HAVE_OPENCL_STATIC)
thedo 166:240bc5a0f42a 48
thedo 166:240bc5a0f42a 49 #if defined __APPLE__
thedo 166:240bc5a0f42a 50 #include <OpenCL/cl.h>
thedo 166:240bc5a0f42a 51 #else
thedo 166:240bc5a0f42a 52 #include <CL/cl.h>
thedo 166:240bc5a0f42a 53 #endif
thedo 166:240bc5a0f42a 54
thedo 166:240bc5a0f42a 55 #else // HAVE_OPENCL_STATIC
thedo 166:240bc5a0f42a 56
thedo 166:240bc5a0f42a 57 #ifndef CL_RUNTIME_EXPORT
thedo 166:240bc5a0f42a 58 #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined WIN32 || defined _WIN32 || defined WINCE)
thedo 166:240bc5a0f42a 59 #define CL_RUNTIME_EXPORT __declspec(dllimport)
thedo 166:240bc5a0f42a 60 #else
thedo 166:240bc5a0f42a 61 #define CL_RUNTIME_EXPORT
thedo 166:240bc5a0f42a 62 #endif
thedo 166:240bc5a0f42a 63 #endif
thedo 166:240bc5a0f42a 64
thedo 166:240bc5a0f42a 65 #ifdef HAVE_OPENCL_SVM
thedo 166:240bc5a0f42a 66 #define clSVMAlloc clSVMAlloc_
thedo 166:240bc5a0f42a 67 #define clSVMFree clSVMFree_
thedo 166:240bc5a0f42a 68 #define clSetKernelArgSVMPointer clSetKernelArgSVMPointer_
thedo 166:240bc5a0f42a 69 #define clSetKernelExecInfo clSetKernelExecInfo_
thedo 166:240bc5a0f42a 70 #define clEnqueueSVMFree clEnqueueSVMFree_
thedo 166:240bc5a0f42a 71 #define clEnqueueSVMMemcpy clEnqueueSVMMemcpy_
thedo 166:240bc5a0f42a 72 #define clEnqueueSVMMemFill clEnqueueSVMMemFill_
thedo 166:240bc5a0f42a 73 #define clEnqueueSVMMap clEnqueueSVMMap_
thedo 166:240bc5a0f42a 74 #define clEnqueueSVMUnmap clEnqueueSVMUnmap_
thedo 166:240bc5a0f42a 75 #endif
thedo 166:240bc5a0f42a 76
thedo 166:240bc5a0f42a 77 #include "autogenerated/opencl_core.hpp"
thedo 166:240bc5a0f42a 78
thedo 166:240bc5a0f42a 79 #endif // HAVE_OPENCL_STATIC
thedo 166:240bc5a0f42a 80
thedo 166:240bc5a0f42a 81 #ifndef CL_DEVICE_DOUBLE_FP_CONFIG
thedo 166:240bc5a0f42a 82 #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032
thedo 166:240bc5a0f42a 83 #endif
thedo 166:240bc5a0f42a 84
thedo 166:240bc5a0f42a 85 #ifndef CL_DEVICE_HALF_FP_CONFIG
thedo 166:240bc5a0f42a 86 #define CL_DEVICE_HALF_FP_CONFIG 0x1033
thedo 166:240bc5a0f42a 87 #endif
thedo 166:240bc5a0f42a 88
thedo 166:240bc5a0f42a 89 #ifndef CL_VERSION_1_2
thedo 166:240bc5a0f42a 90 #define CV_REQUIRE_OPENCL_1_2_ERROR CV_ErrorNoReturn(cv::Error::OpenCLApiCallError, "OpenCV compiled without OpenCL v1.2 support, so we can't use functionality from OpenCL v1.2")
thedo 166:240bc5a0f42a 91 #endif
thedo 166:240bc5a0f42a 92
thedo 166:240bc5a0f42a 93 #endif // HAVE_OPENCL
thedo 166:240bc5a0f42a 94
thedo 166:240bc5a0f42a 95 #endif // __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__
thedo 166:240bc5a0f42a 96