cbc9a7a686
The program now works as a video cat or converter : ./prpa -c MP42 -o /tmp/bar.avi /tmp/foo.flv -c specify a 4-letter codec to be used for the output file and follow a strict code defined on this page : http://www.fourcc.org/codecs.php The file output extension *does* matter and must match the selected output codec.
18 lines
279 B
C++
18 lines
279 B
C++
#ifndef VIDEO_HH_
|
|
# define VIDEO_HH_
|
|
|
|
# include <string>
|
|
# include "tbb/concurrent_vector.h"
|
|
# include "opencv2/opencv.hpp"
|
|
|
|
class Video
|
|
{
|
|
public:
|
|
void close();
|
|
void copy(Video& v);
|
|
protected:
|
|
tbb::concurrent_vector<cv::Mat*> images_;
|
|
};
|
|
|
|
#endif /* !VIDEO_HH_ */
|