#include <dc1394vs.h>
Classes | |
struct | Params |
Public Member Functions | |
virtual bool | initialize () |
initialized the video source. | |
virtual bool | getFrame (IplImage *dst) |
get the next frame and convert it to the format described in "dst". | |
virtual void | getSize (int &width, int &height) |
return width and height of images coming from the video source. | |
DC1394 (Params &p) | |
virtual | ~DC1394 () |
virtual void | start () |
Start the video source: getFrame() will provide each time a different image. | |
virtual void | stop () |
Pause the source. | |
virtual bool | isPlaying () |
return false if the source is paused. | |
virtual int | getChannels () |
Get the number of channels the video source provides. | |
virtual const char * | getStreamName () const |
Returns a string describing the stream. | |
virtual const char * | getStreamType () const |
Returns a string describing the type of the stream. | |
virtual void * | getInternalPointer () |
Definition at line 12 of file dc1394vs.h.
DC1394::DC1394 | ( | Params & | p | ) |
Definition at line 36 of file dc1394vs.cpp.
DC1394::~DC1394 | ( | ) | [virtual] |
int DC1394::getChannels | ( | ) | [virtual] |
Get the number of channels the video source provides.
Reimplemented from VideoSource.
Definition at line 57 of file dc1394vs.cpp.
bool DC1394::getFrame | ( | IplImage * | dst | ) | [virtual] |
get the next frame and convert it to the format described in "dst".
The image will be deinterlaced, scaled, and color converted to match dst.
dst | the image to copy the frame into. |
Implements VideoSource.
Definition at line 300 of file dc1394vs.cpp.
virtual void* DC1394::getInternalPointer | ( | ) | [inline, virtual] |
void DC1394::getSize | ( | int & | width, | |
int & | height | |||
) | [virtual] |
return width and height of images coming from the video source.
Implements VideoSource.
Definition at line 343 of file dc1394vs.cpp.
virtual const char* DC1394::getStreamName | ( | ) | const [inline, virtual] |
Returns a string describing the stream.
If the source comes from a file, the filename is returned.
Implements VideoSource.
Definition at line 33 of file dc1394vs.h.
virtual const char* DC1394::getStreamType | ( | ) | const [inline, virtual] |
Returns a string describing the type of the stream.
For example: BmpFile, AviFile, DShowCB...
Implements VideoSource.
Definition at line 34 of file dc1394vs.h.
bool DC1394::initialize | ( | ) | [virtual] |
initialized the video source.
Has to be called before any other method.
Implements VideoSource.
Definition at line 245 of file dc1394vs.cpp.
References CHECK_ERROR, cleanup_and_exit(), and start().
Referenced by DC1394Factory::construct().
virtual bool DC1394::isPlaying | ( | ) | [inline, virtual] |
return false if the source is paused.
Implements VideoSource.
Definition at line 31 of file dc1394vs.h.
void DC1394::start | ( | ) | [virtual] |
Start the video source: getFrame() will provide each time a different image.
After calling initialize(), the video source is playing.
Implements VideoSource.
Definition at line 349 of file dc1394vs.cpp.
Referenced by initialize().
void DC1394::stop | ( | ) | [virtual] |
Pause the source.
The getFrame() method will always provide the current frame.
Implements VideoSource.
Definition at line 362 of file dc1394vs.cpp.
Referenced by ~DC1394().