switched to new device layer in gpucodec module

This commit is contained in:
Vladislav Vinogradov
2013-07-29 12:08:42 +04:00
parent 298a1d50d2
commit 776c0cb08c
6 changed files with 87 additions and 89 deletions

View File

@@ -62,10 +62,7 @@ Ptr<VideoWriter> cv::cudacodec::createVideoWriter(const Ptr<EncoderCallBack>&, S
#else // !defined HAVE_CUDA || !defined WIN32
namespace cv { namespace cuda { namespace device
{
void RGB_to_YV12(const PtrStepSzb src, int cn, PtrStepSzb dst, cudaStream_t stream = 0);
}}}
void RGB_to_YV12(const GpuMat& src, GpuMat& dst);
///////////////////////////////////////////////////////////////////////////
// VideoWriterImpl
@@ -642,7 +639,7 @@ namespace
if (inputFormat_ == SF_BGR)
{
device::RGB_to_YV12(frame, frame.channels(), videoFrame_);
RGB_to_YV12(frame, videoFrame_);
}
else
{