Commit dbeb3e29 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

renamed gpucodec -> cudacodec

parent cfe4a71d
if(ANDROID OR IOS OR APPLE)
ocv_module_disable(gpucodec)
ocv_module_disable(cudacodec)
endif()
set(the_description "GPU-accelerated Video Encoding/Decoding")
set(the_description "CUDA-accelerated Video Encoding/Decoding")
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 /wd4324 /wd4512 -Wundef -Wmissing-declarations)
ocv_add_module(gpucodec opencv_highgui)
ocv_add_module(cudacodec opencv_highgui)
ocv_module_include_directories()
ocv_glob_module_sources()
......
......@@ -41,11 +41,11 @@
//
//M*/
#ifndef __OPENCV_GPUCODEC_HPP__
#define __OPENCV_GPUCODEC_HPP__
#ifndef __OPENCV_CUDACODEC_HPP__
#define __OPENCV_CUDACODEC_HPP__
#ifndef __cplusplus
# error gpucodec.hpp header must be compiled as C++
# error cudacodec.hpp header must be compiled as C++
#endif
#include "opencv2/core/cuda.hpp"
......@@ -203,4 +203,4 @@ CV_EXPORTS Ptr<VideoReader> createVideoReader(const Ptr<RawVideoSource>& source)
}} // namespace cv { namespace cudacodec {
#endif /* __OPENCV_GPUCODEC_HPP__ */
#endif /* __OPENCV_CUDACODEC_HPP__ */
......@@ -44,4 +44,4 @@
using namespace perf;
CV_PERF_TEST_CUDA_MAIN(gpucodec)
CV_PERF_TEST_CUDA_MAIN(cudacodec)
......@@ -54,7 +54,7 @@
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_perf.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "opencv2/highgui.hpp"
#ifdef GTEST_CREATE_SHARED_LIBRARY
......
......@@ -47,7 +47,7 @@
#include <nvcuvid.h>
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "video_source.hpp"
namespace cv { namespace cudacodec { namespace detail
......
......@@ -44,7 +44,7 @@
#ifndef __FFMPEG_VIDEO_SOURCE_HPP__
#define __FFMPEG_VIDEO_SOURCE_HPP__
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
struct InputMediaStream_FFMPEG;
......
......@@ -51,7 +51,7 @@
#include <stdexcept>
#include <iostream>
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "opencv2/core/private.cuda.hpp"
......
......@@ -47,7 +47,7 @@
#include <nvcuvid.h>
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
namespace cv { namespace cudacodec { namespace detail
{
......
......@@ -47,7 +47,7 @@
#include <nvcuvid.h>
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "frame_queue.hpp"
#include "video_decoder.hpp"
......
......@@ -41,11 +41,11 @@
//
//M*/
#ifndef __GPUCODEC_VIDEO_SOURCE_H__
#define __GPUCODEC_VIDEO_SOURCE_H__
#ifndef __CUDACODEC_VIDEO_SOURCE_H__
#define __CUDACODEC_VIDEO_SOURCE_H__
#include "opencv2/core/private.cuda.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "thread.hpp"
namespace cv { namespace cudacodec { namespace detail
......@@ -96,4 +96,4 @@ private:
}}}
#endif // __GPUCODEC_VIDEO_SOURCE_H__
#endif // __CUDACODEC_VIDEO_SOURCE_H__
......@@ -54,7 +54,7 @@
#include "opencv2/ts.hpp"
#include "opencv2/ts/gpu_test.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "opencv2/highgui.hpp"
#include "cvconfig.h"
......
......@@ -6,4 +6,4 @@ set(the_description "Super Resolution")
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 -Wundef)
ocv_define_module(superres opencv_imgproc opencv_video
OPTIONAL opencv_highgui opencv_ocl
opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc opencv_gpuoptflow opencv_gpucodec)
opencv_gpuarithm opencv_gpufilters opencv_gpuwarping opencv_gpuimgproc opencv_gpuoptflow opencv_cudacodec)
......@@ -199,7 +199,7 @@ Ptr<FrameSource> cv::superres::createFrameSource_Camera(int deviceId)
//////////////////////////////////////////////////////
// VideoFrameSource_GPU
#ifndef HAVE_OPENCV_GPUCODEC
#ifndef HAVE_OPENCV_CUDACODEC
Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileName)
{
......@@ -208,7 +208,7 @@ Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileNam
return Ptr<FrameSource>();
}
#else // HAVE_OPENCV_GPUCODEC
#else // HAVE_OPENCV_CUDACODEC
namespace
{
......@@ -260,4 +260,4 @@ Ptr<FrameSource> cv::superres::createFrameSource_Video_GPU(const String& fileNam
return new VideoFrameSource(fileName);
}
#endif // HAVE_OPENCV_GPUCODEC
#endif // HAVE_OPENCV_CUDACODEC
......@@ -77,8 +77,8 @@
# include "opencv2/gpuoptflow.hpp"
#endif
#ifdef HAVE_OPENCV_GPUCODEC
# include "opencv2/gpucodec.hpp"
#ifdef HAVE_OPENCV_CUDACODEC
# include "opencv2/cudacodec.hpp"
#endif
#ifdef HAVE_OPENCV_OCL
......
......@@ -23,8 +23,8 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/nonfree/include")
endif()
if(HAVE_opencv_gpucodec)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/gpucodec/include")
if(HAVE_opencv_cudacodec)
ocv_include_directories("${OpenCV_SOURCE_DIR}/modules/cudacodec/include")
endif()
if(HAVE_CUDA)
......@@ -55,8 +55,8 @@ if(BUILD_EXAMPLES AND OCV_DEPENDENCIES_FOUND)
if(HAVE_opencv_nonfree)
target_link_libraries(${the_target} opencv_nonfree)
endif()
if(HAVE_opencv_gpucodec)
target_link_libraries(${the_target} opencv_gpucodec)
if(HAVE_opencv_cudacodec)
target_link_libraries(${the_target} opencv_cudacodec)
endif()
if(HAVE_OPENCL)
......
......@@ -2,7 +2,7 @@
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPUCODEC)
#if defined(HAVE_OPENCV_CUDACODEC)
#include <string>
#include <vector>
......@@ -11,7 +11,7 @@
#include <opencv2/core.hpp>
#include <opencv2/core/opengl.hpp>
#include <opencv2/gpucodec.hpp>
#include <opencv2/cudacodec.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/contrib.hpp>
......
......@@ -2,13 +2,13 @@
#include "opencv2/opencv_modules.hpp"
#if defined(HAVE_OPENCV_GPUCODEC) && defined(WIN32)
#if defined(HAVE_OPENCV_CUDACODEC) && defined(WIN32)
#include <vector>
#include <numeric>
#include "opencv2/core.hpp"
#include "opencv2/gpucodec.hpp"
#include "opencv2/cudacodec.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/contrib.hpp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment