Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
a9c954e8
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a9c954e8
编写于
2月 06, 2021
作者:
A
Alexander Alekhin
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #19467 from alalek:hotfix_19411
上级
f46b1252
b6933dbf
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
30 deletion
+15
-30
modules/highgui/src/window.cpp
modules/highgui/src/window.cpp
+15
-1
modules/highgui/src/window_QT.cpp
modules/highgui/src/window_QT.cpp
+0
-7
modules/highgui/src/window_cocoa.mm
modules/highgui/src/window_cocoa.mm
+0
-7
modules/highgui/src/window_gtk.cpp
modules/highgui/src/window_gtk.cpp
+0
-7
modules/highgui/src/window_winrt.cpp
modules/highgui/src/window_winrt.cpp
+0
-8
未找到文件。
modules/highgui/src/window.cpp
浏览文件 @
a9c954e8
...
...
@@ -297,7 +297,17 @@ int cv::waitKey(int delay)
return
(
code
!=
-
1
)
?
(
code
&
0xff
)
:
-
1
;
}
// NOTE: cv::pollKey has no C API equivalent. it is implemented in each backend source file.
#if defined(HAVE_WIN32UI)
// pollKey() implemented in window_w32.cpp
#elif defined(HAVE_GTK) || defined(HAVE_COCOA) || defined(HAVE_QT) || (defined (WINRT) && !defined (WINRT_8_0))
// pollKey() fallback implementation
int
cv
::
pollKey
()
{
CV_TRACE_FUNCTION
();
// fallback. please implement a proper polling function
return
cvWaitKey
(
1
);
}
#endif
int
cv
::
createTrackbar
(
const
String
&
trackbarName
,
const
String
&
winName
,
int
*
value
,
int
count
,
TrackbarCallback
callback
,
...
...
@@ -789,6 +799,10 @@ CV_IMPL int cvCreateButton(const char*, void (*)(int, void*), void*, int, int)
CV_NO_GUI_ERROR
(
"cvCreateButton"
);
}
int
cv
::
pollKey
()
{
CV_NO_GUI_ERROR
(
"cv::pollKey()"
);
}
#endif
...
...
modules/highgui/src/window_QT.cpp
浏览文件 @
a9c954e8
...
...
@@ -382,13 +382,6 @@ CV_IMPL int cvWaitKey(int delay)
}
int
cv
::
pollKey
()
{
CV_TRACE_FUNCTION
();
// fallback. please implement a proper polling function
return
cvWaitKey
(
1
);
}
//Yannick Verdie
//This function is experimental and some functions (such as cvSet/getWindowProperty will not work)
//We recommend not using this function for now
...
...
modules/highgui/src/window_cocoa.mm
浏览文件 @
a9c954e8
...
...
@@ -632,13 +632,6 @@ CV_IMPL int cvWaitKey (int maxWait)
return
returnCode
;
}
int
cv
::
pollKey
()
{
CV_TRACE_FUNCTION
();
// fallback. please implement a proper polling function
return
cvWaitKey
(
1
);
}
CvRect
cvGetWindowRect_COCOA
(
const
char
*
name
)
{
CvRect
result
=
cvRect
(
-
1
,
-
1
,
-
1
,
-
1
);
...
...
modules/highgui/src/window_gtk.cpp
浏览文件 @
a9c954e8
...
...
@@ -1950,13 +1950,6 @@ CV_IMPL int cvWaitKey( int delay )
return
last_key
;
}
int
cv
::
pollKey
()
{
CV_TRACE_FUNCTION
();
// fallback. please implement a proper polling function
return
cvWaitKey
(
1
);
}
#endif // HAVE_GTK
#endif // _WIN32
...
...
modules/highgui/src/window_winrt.cpp
浏览文件 @
a9c954e8
...
...
@@ -205,14 +205,6 @@ CV_IMPL int cvGetTrackbarPos(const char* trackbar_name, const char* window_name)
/********************************** Not YET implemented API ****************************************************/
int
cv
::
pollKey
()
{
CV_TRACE_FUNCTION
();
CV_WINRT_NO_GUI_ERROR
(
"cvPollKey"
);
// TODO: implement appropriate logic here
}
CV_IMPL
int
cvWaitKey
(
int
delay
)
{
CV_WINRT_NO_GUI_ERROR
(
"cvWaitKey"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录