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
bce65311
Commit
bce65311
authored
Oct 16, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15700 from alalek:issue_12943
parents
d154fa4b
6a7d1c15
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
copy.cpp
modules/core/src/copy.cpp
+7
-0
test_mat.cpp
modules/core/test/test_mat.cpp
+13
-0
ts_tags.cpp
modules/ts/src/ts_tags.cpp
+2
-1
No files found.
modules/core/src/copy.cpp
View file @
bce65311
...
...
@@ -711,6 +711,13 @@ static bool ipp_flip(Mat &src, Mat &dst, int flip_mode)
#ifdef HAVE_IPP_IW
CV_INSTRUMENT_REGION_IPP
();
// Details: https://github.com/opencv/opencv/issues/12943
if
(
flip_mode
<=
0
/* swap rows */
&&
cv
::
ipp
::
getIppTopFeatures
()
!=
ippCPUID_SSE42
&&
(
int64_t
)(
src
.
total
())
*
src
.
elemSize
()
>=
CV_BIG_INT
(
0x80000000
)
/*2Gb*/
)
return
false
;
IppiAxis
ippMode
;
if
(
flip_mode
<
0
)
ippMode
=
ippAxsBoth
;
...
...
modules/core/test/test_mat.cpp
View file @
bce65311
...
...
@@ -2035,4 +2035,17 @@ TEST(Core_Eigen, eigen2cv_check_Mat_type)
}
#endif // HAVE_EIGEN
TEST
(
Mat
,
regression_12943
)
// memory usage: ~4.5 Gb
{
applyTestTag
(
CV_TEST_TAG_MEMORY_6GB
);
const
int
width
=
0x8000
;
const
int
height
=
0x10001
;
cv
::
Mat
src
(
height
,
width
,
CV_8UC1
,
Scalar
::
all
(
128
));
cv
::
Mat
dst
;
cv
::
flip
(
src
,
dst
,
0
);
}
}}
// namespace
modules/ts/src/ts_tags.cpp
View file @
bce65311
...
...
@@ -46,7 +46,8 @@ static std::vector<std::string>& getTestTagsSkipList()
#if OPENCV_32BIT_CONFIGURATION
testSkipWithTags
.
push_back
(
CV_TEST_TAG_MEMORY_2GB
);
#else
testSkipWithTags
.
push_back
(
CV_TEST_TAG_MEMORY_6GB
);
if
(
!
cvtest
::
runBigDataTests
)
testSkipWithTags
.
push_back
(
CV_TEST_TAG_MEMORY_6GB
);
#endif
testSkipWithTags
.
push_back
(
CV_TEST_TAG_VERYLONG
);
#if defined(_DEBUG)
...
...
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