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
a914088f
Commit
a914088f
authored
Apr 04, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build warning fixes.
parent
1e9ed142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
types_c.h
modules/core/include/opencv2/core/types_c.h
+3
-1
imgwarp.cpp
modules/imgproc/src/imgwarp.cpp
+1
-1
No files found.
modules/core/include/opencv2/core/types_c.h
View file @
a914088f
...
...
@@ -315,6 +315,8 @@ CV_INLINE int cvRound( double value )
fistp
t
;
}
return
t
;
#elif defined _MSC_VER && defined _M_ARM && defined HAVE_TEGRA_OPTIMIZATION
TEGRA_ROUND
(
value
);
#elif defined HAVE_LRINT || defined CV_ICC || defined __GNUC__
# ifdef HAVE_TEGRA_OPTIMIZATION
TEGRA_ROUND
(
value
);
...
...
@@ -324,7 +326,7 @@ CV_INLINE int cvRound( double value )
#else
double
intpart
,
fractpart
;
fractpart
=
modf
(
value
,
&
intpart
);
if
((
abs
(
fractpart
)
!=
0
.
5
)
||
((((
int
)
intpart
)
%
2
)
!=
0
))
if
((
f
abs
(
fractpart
)
!=
0
.
5
)
||
((((
int
)
intpart
)
%
2
)
!=
0
))
return
(
int
)(
value
+
(
value
>=
0
?
0
.
5
:
-
0
.
5
));
else
return
(
int
)
intpart
;
...
...
modules/imgproc/src/imgwarp.cpp
View file @
a914088f
...
...
@@ -1740,7 +1740,7 @@ void cv::resize( InputArray _src, OutputArray _dst, Size dsize,
#ifdef HAVE_TEGRA_OPTIMIZATION
if
(
tegra
::
resize
(
src
,
dst
,
inv_scale_x
,
inv_scale_y
,
interpolation
))
if
(
tegra
::
resize
(
src
,
dst
,
(
float
)
inv_scale_x
,
(
float
)
inv_scale_y
,
interpolation
))
return
;
#endif
...
...
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