File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -936,6 +936,7 @@ struct InferList: public cv::detail::KernelTag {
936
936
std::vector<cv::Mat> &out_vec = ctx->outVecR <cv::Mat>(i);
937
937
938
938
IE::Blob::Ptr out_blob = req.GetBlob (ctx->uu .params .output_names [i]);
939
+ GAPI_Assert (out_blob);
939
940
940
941
cv::Mat out_mat (cached_dims[i], toCV (out_blob->getTensorDesc ().getPrecision ()));
941
942
// FIXME: Avoid data copy. Not sure if it is possible though
@@ -1103,6 +1104,7 @@ struct InferList2: public cv::detail::KernelTag {
1103
1104
std::vector<cv::Mat> &out_vec = ctx->outVecR <cv::Mat>(i);
1104
1105
1105
1106
IE::Blob::Ptr out_blob = req.GetBlob (ctx->uu .params .output_names [i]);
1107
+ GAPI_Assert (out_blob);
1106
1108
1107
1109
cv::Mat out_mat (cached_dims[i], toCV (out_blob->getTensorDesc ().getPrecision ()));
1108
1110
// FIXME: Avoid data copy. Not sure if it is possible though
Original file line number Diff line number Diff line change @@ -615,17 +615,17 @@ class CvCapture_MSMF : public cv::IVideoCapture
615
615
_ComPtr<IMFDXGIDeviceManager> D3DMgr;
616
616
#endif
617
617
_ComPtr<IMFSourceReader> videoFileSource;
618
+ _ComPtr<IMFSample> videoSample;
619
+ _ComPtr<IMFSourceReaderCallback> readCallback; // non-NULL for "live" streams (camera capture)
618
620
DWORD dwStreamIndex;
619
621
MediaType nativeFormat;
620
622
MediaType captureFormat;
621
623
int outputFormat;
622
624
bool convertFormat;
623
625
MFTIME duration;
624
626
LONGLONG frameStep;
625
- _ComPtr<IMFSample> videoSample;
626
627
LONGLONG sampleTime;
627
628
bool isOpen;
628
- _ComPtr<IMFSourceReaderCallback> readCallback; // non-NULL for "live" streams (camera capture)
629
629
};
630
630
631
631
CvCapture_MSMF::CvCapture_MSMF ():
@@ -641,8 +641,12 @@ CvCapture_MSMF::CvCapture_MSMF():
641
641
#endif
642
642
videoFileSource (NULL ),
643
643
videoSample(NULL ),
644
+ readCallback(NULL ),
645
+ dwStreamIndex(0 ),
644
646
outputFormat(CV_CAP_MODE_BGR),
645
647
convertFormat(true ),
648
+ duration(0 ),
649
+ frameStep(0 ),
646
650
sampleTime(0 ),
647
651
isOpen(false )
648
652
{
You can’t perform that action at this time.
0 commit comments