Merge pull request #15759 from alalek:issue_15758

pull/22008/head
Alexander Alekhin 5 years ago
commit 5ffeebabad
  1. 2
      modules/gapi/include/opencv2/gapi/ocl/goclkernel.hpp
  2. 2
      modules/gapi/src/executor/gstreamingexecutor.cpp

@ -119,7 +119,7 @@ template<class T> struct ocl_get_in
struct tracked_cv_umat{ struct tracked_cv_umat{
//TODO Think if T - API could reallocate UMat to a proper size - how do we handle this ? //TODO Think if T - API could reallocate UMat to a proper size - how do we handle this ?
//tracked_cv_umat(cv::UMat& m) : r{(m)}, original_data{m.getMat(ACCESS_RW).data} {} //tracked_cv_umat(cv::UMat& m) : r{(m)}, original_data{m.getMat(ACCESS_RW).data} {}
tracked_cv_umat(cv::UMat& m) : r{ (m) }, original_data{ nullptr } {} tracked_cv_umat(cv::UMat& m) : r(m), original_data{ nullptr } {}
cv::UMat &r; // FIXME: It was a value (not a reference) before. cv::UMat &r; // FIXME: It was a value (not a reference) before.
// Actually OCL backend should allocate its internal data! // Actually OCL backend should allocate its internal data!
uchar* original_data; uchar* original_data;

@ -546,7 +546,7 @@ void cv::gimpl::GStreamingExecutor::setSource(GRunArgs &&ins)
return util::holds_alternative<cv::gapi::wip::IStreamSource::Ptr>(arg); return util::holds_alternative<cv::gapi::wip::IStreamSource::Ptr>(arg);
}; };
const auto num_videos = std::count_if(ins.begin(), ins.end(), is_video); const auto num_videos = std::count_if(ins.begin(), ins.end(), is_video);
if (num_videos > 1u) if (num_videos > 1)
{ {
// See below why (another reason - no documented behavior // See below why (another reason - no documented behavior
// on handling videos streams of different length) // on handling videos streams of different length)

Loading…
Cancel
Save