FileSingleVideoSource Class Reference

#include <FileSingleVideoSource.hh>

Inheritance diagram for FileSingleVideoSource:

Inheritance graph
[legend]
Collaboration diagram for FileSingleVideoSource:

Collaboration graph
[legend]
List of all members.

Detailed Description

It uses a single-stream behaviour to retrieve one stream of IplImage(s) from a file from disk.

Definition at line 36 of file FileSingleVideoSource.hh.

Public Member Functions

 FileSingleVideoSource (char *file_path)
virtual ~FileSingleVideoSource ()
bool init_device ()
 Init device. It can be a webcam, a framegrabber or simpler a buffered class.
bool is_multi_stream ()
 Determine if the derived class is of type multi-stream or single-stream.
IplImage * get_next_frame ()
 Get the next image in the stream.
virtual IplImage * get_next_frame_by_stream_id (int stream_id)
 Redefined virtual function for multi video source.
virtual void add_image_by_stream_id (IplImage *image, int stream_id, char *__unused__, void *callback_data)
 Redefined virtual function for multi video source.

Private Attributes

bool _initialized
 Specify whether the class is initialized or not.
char * _file_path
 File path on disk.
CvCapture * _file_input
 OpenCV capture structure.


Constructor & Destructor Documentation

FileSingleVideoSource::FileSingleVideoSource ( char *  file_path  ) 

Definition at line 23 of file FileSingleVideoSource.cpp.

References _file_path, _initialized, and NULL.

FileSingleVideoSource::~FileSingleVideoSource (  )  [virtual]

Definition at line 33 of file FileSingleVideoSource.cpp.

References _file_input, _file_path, and NULL.


Member Function Documentation

void FileSingleVideoSource::add_image_by_stream_id ( IplImage *  image,
int  stream_id,
char *  __unused__,
void *  callback_data 
) [virtual]

We don't need them here

Reimplemented from BaseInputVideo.

Definition at line 90 of file FileSingleVideoSource.cpp.

IplImage * FileSingleVideoSource::get_next_frame (  )  [virtual]

Depends on OpenCV grabbing context.

Returns:
The next image in the stream.
Note:
The returned IplImage* must be freed by the caller.

Implements BaseInputVideo.

Definition at line 58 of file FileSingleVideoSource.cpp.

References _file_input, _initialized, DEBUG_PRINT, init_device(), and NULL.

Here is the call graph for this function:

IplImage * FileSingleVideoSource::get_next_frame_by_stream_id ( int  stream_id  )  [virtual]

We don't need them here

Implements BaseInputVideo.

Definition at line 85 of file FileSingleVideoSource.cpp.

References NULL.

bool FileSingleVideoSource::init_device (  )  [virtual]

Implements BaseInputVideo.

Definition at line 43 of file FileSingleVideoSource.cpp.

References _file_input, _file_path, _initialized, DEBUG_PRINT, and NULL.

Referenced by get_next_frame().

Here is the caller graph for this function:

bool FileSingleVideoSource::is_multi_stream (  )  [virtual]

Returns:
true if the class is multistream, false if it's singlestream.

Implements BaseInputVideo.

Definition at line 96 of file FileSingleVideoSource.cpp.


Member Data Documentation

CvCapture* FileSingleVideoSource::_file_input [private]

Definition at line 68 of file FileSingleVideoSource.hh.

Referenced by get_next_frame(), init_device(), and ~FileSingleVideoSource().

char* FileSingleVideoSource::_file_path [private]

Better if it's an absolute path.

Definition at line 65 of file FileSingleVideoSource.hh.

Referenced by FileSingleVideoSource(), init_device(), and ~FileSingleVideoSource().

bool FileSingleVideoSource::_initialized [private]

Definition at line 62 of file FileSingleVideoSource.hh.

Referenced by FileSingleVideoSource(), get_next_frame(), and init_device().


The documentation for this class was generated from the following files:
Generated on Tue Dec 26 10:36:34 2006 for Omnimeeting by  doxygen 1.4.7