-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GAPI Fluid SIMD:Add support of new several types for the Merge3. #21797
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,23 @@ using cv::gapi::own::rintd; | |
return; \ | ||
} | ||
|
||
#define MERGE3_(T, OP, ...) \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cannot find place where is it used, could you point me out? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. It is used here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. discussed offline: |
||
if (cv::DataType<T>::depth == dst.meta().depth && \ | ||
cv::DataType<T>::depth == src1.meta().depth) \ | ||
{ \ | ||
GAPI_DbgAssert(dst.length() == src1.length()); \ | ||
GAPI_DbgAssert(dst.length() == src2.length()); \ | ||
GAPI_DbgAssert(dst.length() == src3.length()); \ | ||
Comment on lines
+93
to
+95
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the reason to verify this? |
||
\ | ||
GAPI_DbgAssert(1 == src1.meta().chan); \ | ||
GAPI_DbgAssert(1 == src2.meta().chan); \ | ||
GAPI_DbgAssert(1 == src3.meta().chan); \ | ||
GAPI_DbgAssert(3 == dst.meta().chan); \ | ||
\ | ||
OP<T>(__VA_ARGS__); \ | ||
return; \ | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Macro function bodies considered harmful, is there any reasonable issues with rewriting it to templates? |
||
|
||
} // namespace fluid | ||
} // namespace gapi | ||
} // namespace cv | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should other types be listed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..and in GPU tests, too.