| 10 | { |
| 11 | |
| 12 | std::shared_ptr<cv::Mat> CvVideoFrameReader::ReadFrame() |
| 13 | { |
| 14 | // opencv copies data anyway |
| 15 | cv::Mat captureFrame; |
| 16 | m_capture.read(captureFrame); |
| 17 | return std::make_shared<cv::Mat>(std::move(captureFrame)); |
| 18 | } |
| 19 | |
| 20 | bool CvVideoFrameReader::IsExhausted(const std::shared_ptr<cv::Mat>& frame) const |
| 21 | { |
no outgoing calls
no test coverage detected