Merge pull request #1903 from ilya-lavrenov:tapi_warp

This commit is contained in:
Andrey Pavlenko
2013-12-04 11:34:51 +04:00
committed by OpenCV Buildbot
8 changed files with 1307 additions and 11 deletions

View File

@@ -286,7 +286,7 @@ public:
Kernel();
Kernel(const char* kname, const Program& prog);
Kernel(const char* kname, const ProgramSource2& prog,
const String& buildopts, String* errmsg=0);
const String& buildopts = String(), String* errmsg=0);
~Kernel();
Kernel(const Kernel& k);
Kernel& operator = (const Kernel& k);

View File

@@ -578,6 +578,7 @@ Mat UMat::getMat(int accessFlags) const
u->currAllocator->map(u, accessFlags | ACCESS_READ);
CV_Assert(u->data != 0);
Mat hdr(dims, size.p, type(), u->data + offset, step.p);
hdr.flags = flags;
hdr.u = u;
hdr.datastart = u->data;
hdr.data = hdr.datastart + offset;