projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a06d67
)
Merge pull request #19525 from danbey:Fix-cppcheck-error-in-carotete-lib
author
Dan Ben-Yosef
<danbey@gmail.com>
Mon, 15 Feb 2021 19:58:37 +0000
(21:58 +0200)
committer
GitHub
<noreply@github.com>
Mon, 15 Feb 2021 19:58:37 +0000
(19:58 +0000)
* Reduce if statement as it has the same expression on both sides of '&&'
If statement has the same expression on both sides so this can be reduce
Signed-off-by: Dan Ben Yosef <danbey@gmail.com>
* The if statement is to check width and height
3rdparty/carotene/src/resize.cpp
patch
|
blob
|
history
diff --git
a/3rdparty/carotene/src/resize.cpp
b/3rdparty/carotene/src/resize.cpp
index
4920557
..
aa5b756
100644
(file)
--- a/
3rdparty/carotene/src/resize.cpp
+++ b/
3rdparty/carotene/src/resize.cpp
@@
-758,7
+758,7
@@
inline void resizeAreaRounding(const Size2D &ssize, const Size2D &dsize,
}
else if (channels == 3)
{
- if ((wr == 2.0f) && (
w
r == 2.0f))
+ if ((wr == 2.0f) && (
h
r == 2.0f))
{
#ifndef __ANDROID__
size_t roiw16 = dsize.width >= 15 ? (dsize.width - 15) * 3 : 0;