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
4b339104
Commit
4b339104
authored
Dec 14, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13428 from rgarnov:gapi_add_kernels_pass_stage
parents
0c16d8f6
53400737
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
compiler_hints.hpp
modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
+0
-2
gfluidcore.cpp
modules/gapi/src/backends/fluid/gfluidcore.cpp
+2
-2
gfluidutils.hpp
modules/gapi/src/backends/fluid/gfluidutils.hpp
+1
-1
gcompiler.cpp
modules/gapi/src/compiler/gcompiler.cpp
+4
-2
gmodel.cpp
modules/gapi/src/compiler/gmodel.cpp
+1
-1
gmodel.hpp
modules/gapi/src/compiler/gmodel.hpp
+0
-1
No files found.
modules/gapi/include/opencv2/gapi/util/compiler_hints.hpp
View file @
4b339104
...
...
@@ -16,6 +16,4 @@ namespace util
}
// namespace util
}
// namespace cv
#define UNUSED(x) cv::util::suppress_unused_warning(x)
#endif
/* OPENCV_GAPI_UTIL_COMPILER_HINTS_HPP */
modules/gapi/src/backends/fluid/gfluidcore.cpp
View file @
4b339104
...
...
@@ -340,7 +340,7 @@ static void run_arithm_s3(uchar out[], const uchar in[], int width, const uchar
v_store_interleave
(
&
out
[
3
*
w
],
x
,
y
,
z
);
}
#endif
UNUSED
(
v_op
);
cv
::
util
::
suppress_unused_warning
(
v_op
);
for
(;
w
<
width
;
w
++
)
{
out
[
3
*
w
]
=
saturate
<
uchar
>
(
s_op
(
in
[
3
*
w
],
scalar
[
0
])
);
...
...
@@ -386,7 +386,7 @@ static void run_arithm_s1(uchar out[], const float in[], int width, const float
v_store
(
&
out
[
w
],
uc
);
}
#endif
UNUSED
(
v_op
);
cv
::
util
::
suppress_unused_warning
(
v_op
);
for
(;
w
<
width
;
w
++
)
{
out
[
w
]
=
saturate
<
uchar
>
(
s_op
(
in
[
w
],
scalar
[
0
]),
std
::
roundf
);
...
...
modules/gapi/src/backends/fluid/gfluidutils.hpp
View file @
4b339104
...
...
@@ -10,7 +10,7 @@
#include <limits>
#include <type_traits>
#include <opencv2/gapi/util/compiler_hints.hpp> //
UNUSED
#include <opencv2/gapi/util/compiler_hints.hpp> //
suppress_unused_warning
#include <opencv2/gapi/own/saturate.hpp>
namespace
cv
{
...
...
modules/gapi/src/compiler/gcompiler.cpp
View file @
4b339104
...
...
@@ -104,11 +104,13 @@ cv::gimpl::GCompiler::GCompiler(const cv::GComputation &c,
// Remove GCompoundBackend to avoid calling setupBackend() with it in the list
m_all_kernels
.
remove
(
cv
::
gapi
::
compound
::
backend
());
m_e
.
addPass
(
"init"
,
"resolve_kernels"
,
std
::
bind
(
passes
::
resolveKernels
,
_1
,
m_e
.
addPassStage
(
"kernels"
);
m_e
.
addPass
(
"kernels"
,
"resolve_kernels"
,
std
::
bind
(
passes
::
resolveKernels
,
_1
,
std
::
ref
(
m_all_kernels
),
// NB: and not copied here
lookup_order
));
m_e
.
addPass
(
"kernels"
,
"check_islands_content"
,
passes
::
checkIslandsContent
);
m_e
.
addPass
(
"init"
,
"check_islands_content"
,
passes
::
checkIslandsContent
);
m_e
.
addPassStage
(
"meta"
);
m_e
.
addPass
(
"meta"
,
"initialize"
,
std
::
bind
(
passes
::
initMeta
,
_1
,
std
::
ref
(
m_metas
)));
m_e
.
addPass
(
"meta"
,
"propagate"
,
std
::
bind
(
passes
::
inferMeta
,
_1
,
false
));
...
...
modules/gapi/src/compiler/gmodel.cpp
View file @
4b339104
...
...
@@ -26,7 +26,7 @@ ade::NodeHandle GModel::mkOpNode(GModel::Graph &g, const GKernel &k, const std::
ade
::
NodeHandle
op_h
=
g
.
createNode
();
g
.
metadata
(
op_h
).
set
(
NodeType
{
NodeType
::
OP
});
//These extra empty {} are to please GCC (-Wmissing-field-initializers)
g
.
metadata
(
op_h
).
set
(
Op
{
k
,
args
,
{},
{}
,
{}
});
g
.
metadata
(
op_h
).
set
(
Op
{
k
,
args
,
{},
{}});
if
(
!
island
.
empty
())
g
.
metadata
(
op_h
).
set
(
Island
{
island
});
return
op_h
;
...
...
modules/gapi/src/compiler/gmodel.hpp
View file @
4b339104
...
...
@@ -61,7 +61,6 @@ struct Op
std
::
vector
<
RcDesc
>
outs
;
// TODO: Introduce a new type for resource references
cv
::
gapi
::
GBackend
backend
;
util
::
any
opaque
;
};
struct
Data
...
...
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