renamed gpu headers (made it more consistent)
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Thu, 30 May 2013 07:23:18 +0000 (11:23 +0400)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 10 Jun 2013 08:40:30 +0000 (12:40 +0400)
38 files changed:
modules/core/include/opencv2/core/cuda/common.hpp
modules/core/include/opencv2/core/gpu.hpp [moved from modules/core/include/opencv2/core/gpumat.hpp with 98% similarity]
modules/core/include/opencv2/core/gpu_private.hpp
modules/core/include/opencv2/core/gpu_stream_accessor.hpp [moved from modules/core/include/opencv2/core/stream_accessor.hpp with 91% similarity]
modules/core/include/opencv2/core/gpu_types.hpp [moved from modules/core/include/opencv2/core/cuda_devptrs.hpp with 94% similarity]
modules/core/src/gpu.cpp [moved from modules/core/src/gpumat.cpp with 100% similarity]
modules/core/src/gpu_cuda_mem.cpp [moved from modules/core/src/matrix_operations.cpp with 100% similarity]
modules/core/src/gpu_stream.cpp [moved from modules/core/src/cudastream.cpp with 100% similarity]
modules/core/src/matrix.cpp
modules/core/src/precomp.hpp
modules/gpu/include/opencv2/gpu.hpp
modules/gpuarithm/include/opencv2/gpuarithm.hpp
modules/gpubgsegm/include/opencv2/gpubgsegm.hpp
modules/gpubgsegm/src/cuda/fgd.hpp
modules/gpucodec/include/opencv2/gpucodec.hpp
modules/gpufeatures2d/include/opencv2/gpufeatures2d.hpp
modules/gpufilters/include/opencv2/gpufilters.hpp
modules/gpuimgproc/include/opencv2/gpuimgproc.hpp
modules/gpulegacy/test/test_precomp.hpp
modules/gpuoptflow/include/opencv2/gpuoptflow.hpp
modules/gpustereo/include/opencv2/gpustereo.hpp
modules/gpuwarping/include/opencv2/gpuwarping.hpp
modules/nonfree/include/opencv2/nonfree/gpu.hpp
modules/photo/include/opencv2/photo/gpu.hpp
modules/softcascade/include/opencv2/softcascade.hpp
modules/softcascade/src/cuda/channels.cu
modules/softcascade/src/cuda_invoker.hpp
modules/softcascade/test/test_cuda_softcascade.cpp
modules/softcascade/test/utility.hpp
modules/stitching/include/opencv2/stitching/detail/warpers.hpp
modules/superres/perf/perf_precomp.hpp
modules/superres/src/input_array_utility.hpp
modules/superres/src/precomp.hpp
modules/ts/include/opencv2/ts/gpu_test.hpp
modules/ts/src/gpu_perf.cpp
modules/ts/src/ts_perf.cpp
modules/videostab/include/opencv2/videostab/wobble_suppression.hpp
samples/gpu/opengl.cpp

index 434a3eb..6b3fef1 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_GPU_COMMON_HPP__
 
 #include <cuda_runtime.h>
-#include "opencv2/core/cuda_devptrs.hpp"
+#include "opencv2/core/gpu_types.hpp"
 #include "opencv2/core/cvdef.h"
 #include "opencv2/core/base.hpp"
 
similarity index 98%
rename from modules/core/include/opencv2/core/gpumat.hpp
rename to modules/core/include/opencv2/core/gpu.hpp
index 52b87b0..9ce2b1f 100644 (file)
 //M*/
 
 
-#ifndef __OPENCV_GPUMAT_HPP__
-#define __OPENCV_GPUMAT_HPP__
+#ifndef __OPENCV_CORE_GPU_HPP__
+#define __OPENCV_CORE_GPU_HPP__
+
+#ifndef __cplusplus
+#  error gpu.hpp header must be compiled as C++
+#endif
 
 #include "opencv2/core.hpp"
-#include "opencv2/core/cuda_devptrs.hpp"
+#include "opencv2/core/gpu_types.hpp"
 
 namespace cv { namespace gpu
 {
@@ -719,4 +723,4 @@ void ensureSizeIsEnough(Size size, int type, GpuMat& m)
 
 }} // cv::gpu
 
-#endif // __OPENCV_GPUMAT_HPP__
+#endif /* __OPENCV_CORE_GPU_HPP__ */
index 7a45a50..cacc194 100644 (file)
 #include "opencv2/core/cvdef.h"
 #include "opencv2/core/base.hpp"
 
+#include "opencv2/core/gpu.hpp"
+
 #ifdef HAVE_CUDA
 #  include <cuda.h>
 #  include <cuda_runtime.h>
 #  include <npp.h>
-#  include "opencv2/core/stream_accessor.hpp"
+#  include "opencv2/core/gpu_stream_accessor.hpp"
 #  include "opencv2/core/cuda/common.hpp"
 
 #  define NPP_VERSION (NPP_VERSION_MAJOR * 1000 + NPP_VERSION_MINOR * 100 + NPP_VERSION_BUILD)
 //
 //M*/
 
-#ifndef __OPENCV_CUDA_STREAM_ACCESSOR_HPP__
-#define __OPENCV_CUDA_STREAM_ACCESSOR_HPP__
+#ifndef __OPENCV_CORE_GPU_STREAM_ACCESSOR_HPP__
+#define __OPENCV_CORE_GPU_STREAM_ACCESSOR_HPP__
 
-#include <cuda_runtime.h>
-#include "opencv2/core/cvdef.h"
+#ifndef __cplusplus
+#  error gpu_stream_accessor.hpp header must be compiled as C++
+#endif
 
 // This is only header file that depends on Cuda. All other headers are independent.
 // So if you use OpenCV binaries you do noot need to install Cuda Toolkit.
 // But of you wanna use GPU by yourself, may get cuda stream instance using the class below.
 // In this case you have to install Cuda Toolkit.
 
+#include <cuda_runtime.h>
+#include "opencv2/core/cvdef.h"
+
 namespace cv
 {
     namespace gpu
@@ -64,4 +68,4 @@ namespace cv
     }
 }
 
-#endif /* __OPENCV_CUDA_STREAM_ACCESSOR_HPP__ */
+#endif /* __OPENCV_CORE_GPU_STREAM_ACCESSOR_HPP__ */
 //
 //M*/
 
-#ifndef __OPENCV_CORE_DEVPTRS_HPP__
-#define __OPENCV_CORE_DEVPTRS_HPP__
+#ifndef __OPENCV_CORE_GPU_TYPES_HPP__
+#define __OPENCV_CORE_GPU_TYPES_HPP__
 
-#ifdef __cplusplus
+#ifndef __cplusplus
+#  error gpu_types.hpp header must be compiled as C++
+#endif
 
 #ifdef __CUDACC__
     #define __CV_GPU_HOST_DEVICE__ __host__ __device__ __forceinline__
@@ -88,7 +90,7 @@ namespace cv
             __CV_GPU_HOST_DEVICE__ PtrStep() : step(0) {}
             __CV_GPU_HOST_DEVICE__ PtrStep(T* data_, size_t step_) : DevPtr<T>(data_), step(step_) {}
 
-            /** \brief stride between two consecutive rows in bytes. Step is stored always and everywhere in bytes!!! */
+            //! stride between two consecutive rows in bytes. Step is stored always and everywhere in bytes!!!
             size_t step;
 
             __CV_GPU_HOST_DEVICE__       T* ptr(int y = 0)       { return (      T*)( (      char*)DevPtr<T>::data + y * step); }
@@ -148,6 +150,4 @@ namespace cv
     }
 }
 
-#endif // __cplusplus
-
-#endif /* __OPENCV_CORE_DEVPTRS_HPP__ */
+#endif /* __OPENCV_CORE_GPU_TYPES_HPP__ */
index 948c8d7..393798c 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "precomp.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/core/opengl.hpp"
 
 /****************************************************************************************\
index 8b39d7a..f86f466 100644 (file)
@@ -45,7 +45,7 @@
 
 #include "opencv2/core/utility.hpp"
 #include "opencv2/core/core_c.h"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/core/opengl.hpp"
 
 #include "opencv2/core/private.hpp"
index 5dc9b95..1b0120b 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpu.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 #if !defined(__OPENCV_BUILD) && !defined(OPENCV_GPU_SKIP_INCLUDE)
     #include "opencv2/opencv_modules.hpp"
index 55d163d..4edc29b 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpuarithm.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index fbb53f7..e7a29b5 100644 (file)
@@ -49,7 +49,7 @@
 
 #include <memory>
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/gpufilters.hpp"
 
 namespace cv { namespace gpu {
index a8fda7b..dd71519 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __FGD_BGFG_COMMON_HPP__
 #define __FGD_BGFG_COMMON_HPP__
 
-#include "opencv2/core/cuda_devptrs.hpp"
+#include "opencv2/core/gpu_types.hpp"
 
 namespace bgfg
 {
index ac9c400..af68c38 100644 (file)
@@ -49,7 +49,7 @@
 
 #include <iosfwd>
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index 08313b1..0c82174 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpufeatures2d.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/gpufilters.hpp"
 
 namespace cv { namespace gpu {
index 853755d..582c55d 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpufilters.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/core/base.hpp"
 
 namespace cv { namespace gpu {
index 809fdb9..cf1b8e6 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpuimgproc.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/core/base.hpp"
 #include "opencv2/imgproc.hpp"
 #include "opencv2/gpufilters.hpp"
index 0de044a..90fc4d2 100644 (file)
@@ -68,7 +68,7 @@
 #include "opencv2/ts.hpp"
 #include "opencv2/ts/gpu_test.hpp"
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/gpulegacy.hpp"
 #include "opencv2/highgui.hpp"
 
index f47a55e..e9e0719 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpuoptflow.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index 54ce82d..ecda512 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpustereo.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index ada180d..18b42ce 100644 (file)
@@ -47,7 +47,7 @@
 #  error gpuwarping.hpp header must be compiled as C++
 #endif
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/imgproc.hpp"
 
 namespace cv { namespace gpu {
index fc91b26..b94a99c 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_NONFREE_GPU_HPP__
 #define __OPENCV_NONFREE_GPU_HPP__
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index 8a018b5..a8b3859 100644 (file)
@@ -43,7 +43,7 @@
 #ifndef __OPENCV_PHOTO_GPU_HPP__
 #define __OPENCV_PHOTO_GPU_HPP__
 
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace gpu {
 
index a174c50..60f33aa 100644 (file)
 #ifndef __OPENCV_SOFTCASCADE_HPP__
 #define __OPENCV_SOFTCASCADE_HPP__
 
+#include <iosfwd>
+
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
-#include <ostream>
+#include "opencv2/core/gpu.hpp"
 
 namespace cv { namespace softcascade {
 
@@ -296,4 +297,4 @@ private:
 
 }} // namespace cv { namespace softcascade {
 
-#endif
\ No newline at end of file
+#endif
index ca90113..78489e1 100644 (file)
@@ -40,7 +40,7 @@
 //
 //M*/
 
-#include "opencv2/core/cuda_devptrs.hpp"
+#include "opencv2/core/gpu_types.hpp"
 #include "opencv2/core/cuda/common.hpp"
 
 namespace cv { namespace softcascade { namespace cudev
index 85bf63c..92f30d0 100644 (file)
@@ -44,7 +44,7 @@
 #ifndef __OPENCV_ICF_HPP__
 #define __OPENCV_ICF_HPP__
 
-#include "opencv2/core/cuda_devptrs.hpp"
+#include "opencv2/core/gpu_types.hpp"
 #include "cuda_runtime_api.h"
 
 #if defined __CUDACC__
index 7787664..4d97f92 100644 (file)
@@ -41,7 +41,7 @@
 //M*/
 
 #include "test_precomp.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 
 #ifdef HAVE_CUDA
index 9849b52..44b0fab 100644 (file)
@@ -43,7 +43,7 @@
 #define __OPENCV_SOFTCASCADE_TEST_UTILITY_HPP__
 
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/ts.hpp"
 
 //////////////////////////////////////////////////////////////////////
index 55b4d3a..5cd8f51 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_STITCHING_WARPERS_HPP__
 
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/imgproc.hpp"
 #include "opencv2/opencv_modules.hpp"
 
index f92d8e4..72236c4 100644 (file)
@@ -52,7 +52,7 @@
 #define __OPENCV_PERF_PRECOMP_HPP__
 
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/ts.hpp"
 #include "opencv2/ts/gpu_perf.hpp"
 #include "opencv2/superres.hpp"
index c814123..488399f 100644 (file)
@@ -44,7 +44,7 @@
 #define __OPENCV_SUPERRES_INPUT_ARRAY_UTILITY_HPP__
 
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 namespace cv
 {
index 73074c4..300894e 100644 (file)
@@ -48,7 +48,7 @@
 
 #include "opencv2/opencv_modules.hpp"
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/core/opengl.hpp"
 #include "opencv2/core/utility.hpp"
 #include "opencv2/imgproc.hpp"
index b4c6e7b..dab5fd3 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <stdexcept>
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/highgui.hpp"
 #include "opencv2/imgproc.hpp"
 #include "opencv2/ts.hpp"
index 19146c0..f6d3bb3 100644 (file)
@@ -42,7 +42,7 @@
 
 #include "precomp.hpp"
 #include "opencv2/ts/gpu_perf.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 
 #ifdef HAVE_CUDA
     #include <cuda_runtime.h>
index 33a9ec7..caaeda4 100644 (file)
@@ -1,7 +1,7 @@
 #include "precomp.hpp"
 
 #ifdef HAVE_CUDA
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #endif
 
 #ifdef ANDROID
@@ -72,10 +72,6 @@ static void setCurrentThreadAffinityMask(int mask)
 }
 #endif
 
-#ifdef HAVE_CUDA
-# include <opencv2/core/gpumat.hpp>
-#endif
-
 namespace {
 
 class PerfEnvironment: public ::testing::Environment
index 987a19b..8588acb 100644 (file)
@@ -45,7 +45,7 @@
 
 #include <vector>
 #include "opencv2/core.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/videostab/global_motion.hpp"
 #include "opencv2/videostab/log.hpp"
 
index 80eb44b..37960d9 100644 (file)
@@ -25,7 +25,7 @@ int main()
 
 #include "opencv2/core/core.hpp"
 #include "opencv2/core/opengl.hpp"
-#include "opencv2/core/gpumat.hpp"
+#include "opencv2/core/gpu.hpp"
 #include "opencv2/highgui/highgui.hpp"
 
 using namespace std;