[G-API] GStreamingBackend hotfix#19107
Conversation
|
@TolyaTalamanov please, change OV images to 2021.01 |
alalek
left a comment
There was a problem hiding this comment.
Do not place non-template code into public headers.
Move it into .cpp files.
|
|
||
| struct RMatMediaBGRAdapter final: public cv::RMat::Adapter | ||
| { | ||
| RMatMediaBGRAdapter(cv::MediaFrame frame) : m_frame(frame) { }; |
There was a problem hiding this comment.
That class is reference-counted anyway, but yes it may make sense.
I'd say this constructor must be explicit too.
| struct Data; | ||
| struct RcDesc; | ||
|
|
||
| struct RMatMediaBGRAdapter final: public cv::RMat::Adapter |
There was a problem hiding this comment.
-RMatMediaBGRAdapter
+RMatMediaAdapterBGR?
to avoid "BGRA" misread (and 3 channels below)
Also should avoid RMatMediaBGRAAdapter case.
/cc @dmatveev
There was a problem hiding this comment.
RMatMediaAdapterBGR +1
Also, should this class be EXPORT-ed if (I believe) it should be used in other G-API modules?
dmatveev
left a comment
There was a problem hiding this comment.
"Approved with comments"
| struct Data; | ||
| struct RcDesc; | ||
|
|
||
| struct RMatMediaBGRAdapter final: public cv::RMat::Adapter |
There was a problem hiding this comment.
RMatMediaAdapterBGR +1
Also, should this class be EXPORT-ed if (I believe) it should be used in other G-API modules?
|
|
||
| struct RMatMediaBGRAdapter final: public cv::RMat::Adapter | ||
| { | ||
| RMatMediaBGRAdapter(cv::MediaFrame frame) : m_frame(frame) { }; |
There was a problem hiding this comment.
That class is reference-counted anyway, but yes it may make sense.
I'd say this constructor must be explicit too.
dmatveev
left a comment
There was a problem hiding this comment.
Alert: while(true) is NOT required for asynchronous backends -- it will stuck with a regular GExecutor, and the GStreamingExecutor organizes a loop by itself
dmatveev
left a comment
There was a problem hiding this comment.
Oh I see you have this fixed
|
Approved, I believe can be merged now. Thanks! |
…ingbackend [G-API] GStreamingBackend hotfix * GStreamingBackend hotfix * Fix comments to review * Add strides * Removew while loop inside actor
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.
Overview
cv::gapi::streaming::backend()moved togstreamingkernel.hppcv::GCompileArgstoActorctorcv::gapi::streaming::kernels&cv::gapi::streaming::backendRMatMediaBGRAdaptermoved tocommon/gbackend.hpp