12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- #ifndef __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__
- #define __OPENCV_VIDEOSTAB_FRAME_SOURCE_HPP__
- #include <vector>
- #include "opencv2/core.hpp"
- namespace cv
- {
- namespace videostab
- {
- class CV_EXPORTS IFrameSource
- {
- public:
- virtual ~IFrameSource() {}
- virtual void reset() = 0;
- virtual Mat nextFrame() = 0;
- };
- class CV_EXPORTS NullFrameSource : public IFrameSource
- {
- public:
- virtual void reset() {}
- virtual Mat nextFrame() { return Mat(); }
- };
- class CV_EXPORTS VideoFileSource : public IFrameSource
- {
- public:
- VideoFileSource(const String &path, bool volatileFrame = false);
- virtual void reset();
- virtual Mat nextFrame();
- int width();
- int height();
- int count();
- double fps();
- private:
- Ptr<IFrameSource> impl;
- };
- }
- }
- #endif
|