1 #ifndef CAPTURE_VIDEO_H_
2 #define CAPTURE_VIDEO_H_
8 /*----------------------------------------------------------------------*\
10 \*---------------------------------------------------------------------*/
12 /*--------------------------------------*\
14 \*-------------------------------------*/
17 * http://opencv.willowgarage.com/wiki/VideoCodecs
19 * AVI 'I420' RAW I420 Uncompressed YUV, 4:2:0 chroma subsampled
23 * http://www.mplayerhq.hu/design7/dload.html
24 * console: mencoder in.avi -ovc raw -vf format=i420 -oac mp3lame -o out.avi
25 * http://smplayer.sourceforge.net/
28 * sudo apt-get install mencoder
32 class CaptureVideo
: public Capture_A
34 /*--------------------------------------*\
36 \*-------------------------------------*/
40 CaptureVideo(const string
& videoName
, const string
& title
,uchar4
* ptrHostMemory
=NULL
);
41 virtual ~CaptureVideo(void);
43 /*--------------------------------------*\
45 \*-------------------------------------*/
50 * Temps a attendre entre 2 captures pour respecter fps original
52 int dtOriginalMS(void); // Override
54 string
getVideoName(void);
56 void printInfo(void); // Override
58 int fpsOriginal(void);
59 bool isFpsOriginalKnown(void);
64 VideoCapture
* createStream(const string
& videoName
);
68 virtual void readStream(VideoCapture
* ptrCaptureStream
, Mat
* ptrMatCaptureSrc
);
70 /*--------------------------------------*\
72 \*-------------------------------------*/
81 bool isFpsSourceConnu
;
88 /*----------------------------------------------------------------------*\
90 \*---------------------------------------------------------------------*/