Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv
提交
8bcec7d7
O
opencv
项目概览
OpenCV
/
opencv
上一次同步 10 个月
通知
995
Star
71100
Fork
55580
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8bcec7d7
编写于
8月 12, 2016
作者:
P
Pavel Vlasov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IPP enabling fix and typo fix;
上级
f210602d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
modules/core/src/system.cpp
modules/core/src/system.cpp
+13
-13
未找到文件。
modules/core/src/system.cpp
浏览文件 @
8bcec7d7
...
...
@@ -1303,10 +1303,10 @@ void setUseCollection(bool flag)
namespace
ipp
{
struct
IPPInitSing
el
ton
struct
IPPInitSing
le
ton
{
public:
IPPInitSing
el
ton
()
IPPInitSing
le
ton
()
{
useIPP
=
true
;
ippStatus
=
0
;
...
...
@@ -1360,15 +1360,15 @@ public:
int
ippFeatures
;
};
static
IPPInitSing
elton
&
getIPPSingel
ton
()
static
IPPInitSing
leton
&
getIPPSingle
ton
()
{
CV_SINGLETON_LAZY_INIT_REF
(
IPPInitSing
elton
,
new
IPPInitSingel
ton
())
CV_SINGLETON_LAZY_INIT_REF
(
IPPInitSing
leton
,
new
IPPInitSingle
ton
())
}
int
getIppFeatures
()
{
#ifdef HAVE_IPP
return
getIPPSing
el
ton
().
ippFeatures
;
return
getIPPSing
le
ton
().
ippFeatures
;
#else
return
0
;
#endif
...
...
@@ -1376,20 +1376,20 @@ int getIppFeatures()
void
setIppStatus
(
int
status
,
const
char
*
const
_funcname
,
const
char
*
const
_filename
,
int
_line
)
{
getIPPSing
el
ton
().
ippStatus
=
status
;
getIPPSing
el
ton
().
funcname
=
_funcname
;
getIPPSing
el
ton
().
filename
=
_filename
;
getIPPSing
el
ton
().
linen
=
_line
;
getIPPSing
le
ton
().
ippStatus
=
status
;
getIPPSing
le
ton
().
funcname
=
_funcname
;
getIPPSing
le
ton
().
filename
=
_filename
;
getIPPSing
le
ton
().
linen
=
_line
;
}
int
getIppStatus
()
{
return
getIPPSing
el
ton
().
ippStatus
;
return
getIPPSing
le
ton
().
ippStatus
;
}
String
getIppErrorLocation
()
{
return
format
(
"%s:%d %s"
,
getIPPSing
elton
().
filename
?
getIPPSingelton
().
filename
:
""
,
getIPPSingelton
().
linen
,
getIPPSingelton
().
funcname
?
getIPPSingel
ton
().
funcname
:
""
);
return
format
(
"%s:%d %s"
,
getIPPSing
leton
().
filename
?
getIPPSingleton
().
filename
:
""
,
getIPPSingleton
().
linen
,
getIPPSingleton
().
funcname
?
getIPPSingle
ton
().
funcname
:
""
);
}
bool
useIPP
()
...
...
@@ -1398,7 +1398,7 @@ bool useIPP()
CoreTLSData
*
data
=
getCoreTlsData
().
get
();
if
(
data
->
useIPP
<
0
)
{
data
->
useIPP
=
getIPPSing
el
ton
().
useIPP
;
data
->
useIPP
=
getIPPSing
le
ton
().
useIPP
;
}
return
(
data
->
useIPP
>
0
);
#else
...
...
@@ -1410,7 +1410,7 @@ void setUseIPP(bool flag)
{
CoreTLSData
*
data
=
getCoreTlsData
().
get
();
#ifdef HAVE_IPP
data
->
useIPP
=
flag
;
data
->
useIPP
=
(
getIPPSingleton
().
useIPP
)
?
flag
:
false
;
#else
(
void
)
flag
;
data
->
useIPP
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录