This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
prpa/src/encoder/video_reader.hh

24 lines
473 B
C++

#ifndef VIDEO_READER_HH_
# define VIDEO_READER_HH_
# include <string>
# include "tbb/pipeline.h"
# include "opencv2/opencv.hpp"
class VideoReader: public tbb::filter
{
public:
VideoReader(const VideoReader& vr);
VideoReader(std::string filename);
int framecount_get();
int fps_get();
int width_get();
int height_get();
void* operator()(void*);
private:
cv::VideoCapture capture_;
int remaining_;
};
#endif /* !VIDEO_READER_HH_ */