Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a34f044d
Commit
a34f044d
authored
Jan 08, 2011
by
Vladimir Dudnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add IPP Sub operations to arithm.cpp for 8u, 16u, 16s, 32s, 32f, 64f data types.
parent
abdb1390
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
arithm.cpp
modules/core/src/arithm.cpp
+65
-0
No files found.
modules/core/src/arithm.cpp
View file @
a34f044d
...
...
@@ -322,6 +322,60 @@ struct ippAdd64f
}
};
struct
ippSub8u
{
int
operator
()(
const
Ipp8u
*
src1
,
const
Ipp8u
*
src2
,
Ipp8u
*
dst
,
int
len
)
const
{
ippsSub_8u_Sfs
(
src1
,
src2
,
dst
,
len
,
0
);
return
len
;
}
};
struct
ippSub16u
{
int
operator
()(
const
Ipp16u
*
src1
,
const
Ipp16u
*
src2
,
Ipp16u
*
dst
,
int
len
)
const
{
ippsSub_16u_Sfs
(
src1
,
src2
,
dst
,
len
,
0
);
return
len
;
}
};
struct
ippSub16s
{
int
operator
()(
const
Ipp16s
*
src1
,
const
Ipp16s
*
src2
,
Ipp16s
*
dst
,
int
len
)
const
{
ippsSub_16s_Sfs
(
src1
,
src2
,
dst
,
len
,
0
);
return
len
;
}
};
struct
ippSub32s
{
int
operator
()(
const
Ipp32s
*
src1
,
const
Ipp32s
*
src2
,
Ipp32s
*
dst
,
int
len
)
const
{
ippsSub_32s_Sfs
(
src1
,
src2
,
dst
,
len
,
0
);
return
len
;
}
};
struct
ippSub32f
{
int
operator
()(
const
Ipp32f
*
src1
,
const
Ipp32f
*
src2
,
Ipp32f
*
dst
,
int
len
)
const
{
ippsSub_32f
(
src1
,
src2
,
dst
,
len
);
return
len
;
}
};
struct
ippSub64f
{
int
operator
()(
const
Ipp64f
*
src1
,
const
Ipp64f
*
src2
,
Ipp64f
*
dst
,
int
len
)
const
{
ippsSub_64f
(
src1
,
src2
,
dst
,
len
);
return
len
;
}
};
#endif
...
...
@@ -708,6 +762,16 @@ static BinaryFunc addTab[] =
static
BinaryFunc
subTab
[]
=
{
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
binaryOpC1_
<
OpSub
<
uchar
>
,
ippSub8u
>
,
0
,
binaryOpC1_
<
OpSub
<
ushort
>
,
ippSub16u
>
,
binaryOpC1_
<
OpSub
<
short
>
,
ippSub16s
>
,
binaryOpC1_
<
OpSub
<
int
>
,
ippSub32s
>
,
binaryOpC1_
<
OpSub
<
float
>
,
ippSub32f
>
,
binaryOpC1_
<
OpSub
<
double
>
,
ippSub64f
>
,
0
#else
binaryOpC1_
<
OpSub
<
uchar
>
,
VSub8u
>
,
0
,
binaryOpC1_
<
OpSub
<
ushort
>
,
VSub16u
>
,
...
...
@@ -716,6 +780,7 @@ static BinaryFunc subTab[] =
binaryOpC1_
<
OpSub
<
float
>
,
VSub32f
>
,
binaryOpC1_
<
OpSub
<
double
>
,
NoVec
>
,
0
#endif
};
void
add
(
const
Mat
&
src1
,
const
Mat
&
src2
,
Mat
&
dst
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment