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
1fbf9143
Commit
1fbf9143
authored
Jul 17, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9176 from alalek:fix_nightly_builds
parents
09436df1
4bb4a349
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
convert.cpp
modules/core/src/convert.cpp
+1
-1
imgwarp.avx2.cpp
modules/imgproc/src/imgwarp.avx2.cpp
+2
-0
imgwarp.sse4_1.cpp
modules/imgproc/src/imgwarp.sse4_1.cpp
+20
-21
No files found.
modules/core/src/convert.cpp
View file @
1fbf9143
...
...
@@ -3678,7 +3678,7 @@ cvtScale_<short, int, float>( const short* src, size_t sstep,
if
(
CV_CPU_HAS_SUPPORT_AVX2
)
{
opt_AVX2
::
cvtScale_s16s32f32Line_AVX2
(
src
,
dst
,
scale
,
shift
,
size
.
width
);
return
;
continue
;
}
#endif
#if CV_SSE2
...
...
modules/imgproc/src/imgwarp.avx2.cpp
View file @
1fbf9143
...
...
@@ -125,6 +125,7 @@ public:
}
}
}
_mm256_zeroupper
();
}
private
:
...
...
@@ -230,6 +231,7 @@ public:
}
}
}
_mm256_zeroupper
();
}
private
:
...
...
modules/imgproc/src/imgwarp.sse4_1.cpp
View file @
1fbf9143
...
...
@@ -387,19 +387,19 @@ class WarpPerspectiveLine_SSE4_Impl: public WarpPerspectiveLine_SSE4
public
:
WarpPerspectiveLine_SSE4_Impl
(
const
double
*
M
)
{
v_M0
=
_mm_set1_pd
(
M
[
0
]);
v_M3
=
_mm_set1_pd
(
M
[
3
]);
v_M6
=
_mm_set1_pd
(
M
[
6
]);
v_intmax
=
_mm_set1_pd
((
double
)
INT_MAX
);
v_intmin
=
_mm_set1_pd
((
double
)
INT_MIN
);
v_2
=
_mm_set1_pd
(
2
);
v_zero
=
_mm_setzero_pd
();
v_1
=
_mm_set1_pd
(
1
);
v_its
=
_mm_set1_pd
(
INTER_TAB_SIZE
);
v_itsi1
=
_mm_set1_epi32
(
INTER_TAB_SIZE
-
1
);
CV_UNUSED
(
M
);
}
virtual
void
processNN
(
const
double
*
M
,
short
*
xy
,
double
X0
,
double
Y0
,
double
W0
,
int
bw
)
{
const
__m128d
v_M0
=
_mm_set1_pd
(
M
[
0
]);
const
__m128d
v_M3
=
_mm_set1_pd
(
M
[
3
]);
const
__m128d
v_M6
=
_mm_set1_pd
(
M
[
6
]);
const
__m128d
v_intmax
=
_mm_set1_pd
((
double
)
INT_MAX
);
const
__m128d
v_intmin
=
_mm_set1_pd
((
double
)
INT_MIN
);
const
__m128d
v_2
=
_mm_set1_pd
(
2
);
const
__m128d
v_zero
=
_mm_setzero_pd
();
const
__m128d
v_1
=
_mm_set1_pd
(
1
);
int
x1
=
0
;
__m128d
v_X0d
=
_mm_set1_pd
(
X0
);
__m128d
v_Y0d
=
_mm_set1_pd
(
Y0
);
...
...
@@ -521,6 +521,16 @@ public:
}
virtual
void
process
(
const
double
*
M
,
short
*
xy
,
short
*
alpha
,
double
X0
,
double
Y0
,
double
W0
,
int
bw
)
{
const
__m128d
v_M0
=
_mm_set1_pd
(
M
[
0
]);
const
__m128d
v_M3
=
_mm_set1_pd
(
M
[
3
]);
const
__m128d
v_M6
=
_mm_set1_pd
(
M
[
6
]);
const
__m128d
v_intmax
=
_mm_set1_pd
((
double
)
INT_MAX
);
const
__m128d
v_intmin
=
_mm_set1_pd
((
double
)
INT_MIN
);
const
__m128d
v_2
=
_mm_set1_pd
(
2
);
const
__m128d
v_zero
=
_mm_setzero_pd
();
const
__m128d
v_its
=
_mm_set1_pd
(
INTER_TAB_SIZE
);
const
__m128i
v_itsi1
=
_mm_set1_epi32
(
INTER_TAB_SIZE
-
1
);
int
x1
=
0
;
__m128d
v_X0d
=
_mm_set1_pd
(
X0
);
...
...
@@ -656,17 +666,6 @@ public:
}
}
virtual
~
WarpPerspectiveLine_SSE4_Impl
()
{};
private
:
__m128d
v_M0
;
__m128d
v_M3
;
__m128d
v_M6
;
__m128d
v_intmax
;
__m128d
v_intmin
;
__m128d
v_2
,
v_zero
,
v_1
,
v_its
;
__m128i
v_itsi1
;
};
Ptr
<
WarpPerspectiveLine_SSE4
>
WarpPerspectiveLine_SSE4
::
getImpl
(
const
double
*
M
)
...
...
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