mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -3073,7 +3073,7 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[],
|
||||
dims == 1 ? 64 : dims == 2 ? (i == 0 ? 256 : 8) : dims == 3 ? (8>>(int)(i>0)) : 1;
|
||||
CV_Assert( val > 0 );
|
||||
total *= _globalsize[i];
|
||||
if (_globalsize[i] == 1)
|
||||
if (_globalsize[i] == 1 && !_localsize)
|
||||
val = 1;
|
||||
globalsize[i] = divUp(_globalsize[i], (unsigned int)val) * val;
|
||||
}
|
||||
@@ -3086,7 +3086,7 @@ bool Kernel::run(int dims, size_t _globalsize[], size_t _localsize[],
|
||||
bool Kernel::Impl::run(int dims, size_t globalsize[], size_t localsize[],
|
||||
bool sync, int64* timeNS, const Queue& q)
|
||||
{
|
||||
CV_INSTRUMENT_REGION_OPENCL_RUN(name.c_str(););
|
||||
CV_INSTRUMENT_REGION_OPENCL_RUN(name.c_str());
|
||||
|
||||
if (!handle || isInProgress)
|
||||
return false;
|
||||
|
||||
@@ -1434,14 +1434,14 @@ void cv::ogl::render(const ogl::Texture2D& tex, Rect_<double> wndRect, Rect_<dou
|
||||
gl::TexParameteri(gl::TEXTURE_2D, gl::TEXTURE_MIN_FILTER, gl::LINEAR);
|
||||
CV_CheckGlError();
|
||||
|
||||
const float vertex[] =
|
||||
const double vertex[] =
|
||||
{
|
||||
wndRect.x, wndRect.y, 0.0f,
|
||||
wndRect.x, (wndRect.y + wndRect.height), 0.0f,
|
||||
wndRect.x + wndRect.width, (wndRect.y + wndRect.height), 0.0f,
|
||||
wndRect.x + wndRect.width, wndRect.y, 0.0f
|
||||
wndRect.x, wndRect.y, 0.0,
|
||||
wndRect.x, (wndRect.y + wndRect.height), 0.0,
|
||||
wndRect.x + wndRect.width, (wndRect.y + wndRect.height), 0.0,
|
||||
wndRect.x + wndRect.width, wndRect.y, 0.0
|
||||
};
|
||||
const float texCoords[] =
|
||||
const double texCoords[] =
|
||||
{
|
||||
texRect.x, texRect.y,
|
||||
texRect.x, texRect.y + texRect.height,
|
||||
@@ -1454,7 +1454,7 @@ void cv::ogl::render(const ogl::Texture2D& tex, Rect_<double> wndRect, Rect_<dou
|
||||
gl::EnableClientState(gl::TEXTURE_COORD_ARRAY);
|
||||
CV_CheckGlError();
|
||||
|
||||
gl::TexCoordPointer(2, gl::FLOAT, 0, texCoords);
|
||||
gl::TexCoordPointer(2, gl::DOUBLE, 0, texCoords);
|
||||
CV_CheckGlError();
|
||||
|
||||
gl::DisableClientState(gl::NORMAL_ARRAY);
|
||||
@@ -1464,7 +1464,7 @@ void cv::ogl::render(const ogl::Texture2D& tex, Rect_<double> wndRect, Rect_<dou
|
||||
gl::EnableClientState(gl::VERTEX_ARRAY);
|
||||
CV_CheckGlError();
|
||||
|
||||
gl::VertexPointer(3, gl::FLOAT, 0, vertex);
|
||||
gl::VertexPointer(3, gl::DOUBLE, 0, vertex);
|
||||
CV_CheckGlError();
|
||||
|
||||
gl::DrawArrays(gl::QUADS, 0, 4);
|
||||
|
||||
@@ -1768,7 +1768,7 @@ FLAGS getFlags()
|
||||
|
||||
NodeData::NodeData(const char* funName, const char* fileName, int lineNum, void* retAddress, bool alwaysExpand, cv::instr::TYPE instrType, cv::instr::IMPL implType)
|
||||
{
|
||||
m_funName = funName;
|
||||
m_funName = funName ? cv::String(funName) : cv::String(); // std::string doesn't accept NULL
|
||||
m_instrType = instrType;
|
||||
m_implType = implType;
|
||||
m_fileName = fileName;
|
||||
|
||||
Reference in New Issue
Block a user