A class to get video input from avi file. More...
#include <mvl2_video_from_avi_linux.h>
Public Member Functions | |
mvl2_video_from_avi () | |
Dflt ctor. | |
virtual | ~mvl2_video_from_avi () |
Destructor. | |
virtual bool | initialize (int width, int height, vcl_string format, vcl_string file_name) |
Initialize the file (format can by Grey, RGB, or more complex). | |
virtual void | uninitialize () |
Tidy up. | |
virtual void | set_capture_size (int width, int height) |
Set the size of image captured. | |
virtual int | get_width () const |
Return width of image (in pixels). | |
virtual int | get_height () const |
Return height of image (in pixels). | |
virtual double | get_frame_rate () const |
Return the frame rate in frames per second. | |
virtual void | set_frame_rate (double frame_rate) |
Set the frame rate in frames per second. | |
virtual int | next_frame () |
Move frame counter on to next frame. | |
virtual void | reset_frame () |
Reset frame counter to zero. | |
virtual bool | get_frame (vil_image_view< vxl_byte > &image) |
Put frame data into the given image. | |
virtual vcl_string | is_a () const |
Name of the class. | |
virtual mvl2_video_reader * | clone () const |
Create a copy on the heap and return base class pointer. | |
virtual int | length () |
Returns the number of frames available from the beginning of the stream or -1 if unknown. | |
virtual int | seek (unsigned int frame_number) |
Move frame counter on to given frame if relevant. | |
mvl2_video_from_avi () | |
Dflt ctor. | |
virtual | ~mvl2_video_from_avi () |
Destructor. | |
virtual bool | initialize (int width, int height, vcl_string format, vcl_string file_name) |
Initialize the file (format can by Grey, RGB, or more complex). | |
virtual void | uninitialize () |
Tidy up. | |
virtual void | set_capture_size (int width, int height) |
Set the size of image captured. | |
virtual int | get_width () const |
Return width of image (in pixels). | |
virtual int | get_height () const |
Return height of image (in pixels). | |
virtual double | get_frame_rate () const |
Return the frame rate in frames per second. | |
virtual void | set_frame_rate (double frame_rate) |
Set the frame rate in frames per second. | |
virtual int | next_frame () |
Move frame counter on to next frame. | |
virtual int | seek (int frame_number) |
Move frame counter on to given frame if relevant. | |
virtual void | reset_frame () |
Reset frame counter to zero. | |
virtual bool | get_frame (vil_image_view< vxl_byte > &image) |
Put frame data into the given image. | |
virtual vcl_string | is_a () const |
Name of the class. | |
virtual mvl2_video_reader * | clone () const |
Create a copy on the heap and return base class pointer. | |
vcl_vector< vcl_string > | load_configs (vcl_string filename) |
Load configurations from a file, returns a configuration's name vector. | |
bool | use_config (vcl_string configname) |
Use the configuration given by the configuration's name. | |
void | display_configs () |
Display the configurations on the standard output. | |
virtual bool | is_initialized () const |
Check whether camera is initialised. | |
virtual int | get_frame_number () const |
Return the current frame number. | |
virtual void | set_brightness (int) |
Set the brightness of the picture. | |
virtual void | set_hue (int) |
Set the hue of the picture. | |
virtual void | set_colour (int) |
Set the colour of the picture. | |
virtual void | set_contrast (int) |
Set the contrast of the picture. | |
virtual void | set_whiteness (int) |
Set the whiteness of the picture. | |
Protected Attributes | |
bool | use_colour_ |
bool | is_initialized_ |
unsigned int | current_frame_ |
double | frame_rate_ |
int | width_ |
int | height_ |
bool | firstcall_ |
vcl_vector< vcl_string > | config_names_ |
vcl_vector< vcl_pair< int, int > > | config_sizes_ |
vcl_vector< vcl_string > | config_strings_ |
vcl_vector< vcl_string > | config_filenames_ |
Private Member Functions | |
void | getVideoFormat (BITMAPINFO &bmp_info) const |
Private Attributes | |
vxl_byte * | buffer_ |
IAviReadFile * | moviefile_ |
IAviReadStream * | moviestream_ |
PAVISTREAM | ppavi_ |
A class to get video input from avi file.
Definition at line 18 of file mvl2_video_from_avi_linux.h.
mvl2_video_from_avi::mvl2_video_from_avi | ( | ) |
Dflt ctor.
Definition at line 17 of file mvl2_video_from_avi_linux.cxx.
mvl2_video_from_avi::~mvl2_video_from_avi | ( | ) | [virtual] |
Destructor.
Definition at line 24 of file mvl2_video_from_avi_linux.cxx.
mvl2_video_from_avi::mvl2_video_from_avi | ( | ) |
Dflt ctor.
virtual mvl2_video_from_avi::~mvl2_video_from_avi | ( | ) | [virtual] |
Destructor.
mvl2_video_reader * mvl2_video_from_avi::clone | ( | ) | const [virtual] |
Create a copy on the heap and return base class pointer.
Implements mvl2_video_reader.
Definition at line 35 of file mvl2_video_from_avi_linux.cxx.
virtual mvl2_video_reader* mvl2_video_from_avi::clone | ( | ) | const [virtual] |
Create a copy on the heap and return base class pointer.
Implements mvl2_video_reader.
void mvl2_video_reader::display_configs | ( | ) | [inherited] |
Display the configurations on the standard output.
Definition at line 82 of file mvl2_video_reader.cxx.
bool mvl2_video_from_avi::get_frame | ( | vil_image_view< vxl_byte > & | image | ) | [virtual] |
Put frame data into the given image.
Implements mvl2_video_reader.
Definition at line 85 of file mvl2_video_from_avi_linux.cxx.
virtual bool mvl2_video_from_avi::get_frame | ( | vil_image_view< vxl_byte > & | image | ) | [virtual] |
Put frame data into the given image.
Implements mvl2_video_reader.
virtual int mvl2_video_reader::get_frame_number | ( | ) | const [inline, virtual, inherited] |
Return the current frame number.
Definition at line 59 of file mvl2_video_reader.h.
double mvl2_video_from_avi::get_frame_rate | ( | ) | const [virtual] |
Return the frame rate in frames per second.
Implements mvl2_video_reader.
Definition at line 143 of file mvl2_video_from_avi_linux.cxx.
virtual double mvl2_video_from_avi::get_frame_rate | ( | ) | const [virtual] |
Return the frame rate in frames per second.
Implements mvl2_video_reader.
int mvl2_video_from_avi::get_height | ( | ) | const [virtual] |
Return height of image (in pixels).
Reimplemented from mvl2_video_reader.
Definition at line 153 of file mvl2_video_from_avi_linux.cxx.
virtual int mvl2_video_from_avi::get_height | ( | ) | const [virtual] |
Return height of image (in pixels).
Reimplemented from mvl2_video_reader.
int mvl2_video_from_avi::get_width | ( | ) | const [virtual] |
Return width of image (in pixels).
Reimplemented from mvl2_video_reader.
Definition at line 148 of file mvl2_video_from_avi_linux.cxx.
virtual int mvl2_video_from_avi::get_width | ( | ) | const [virtual] |
Return width of image (in pixels).
Reimplemented from mvl2_video_reader.
void mvl2_video_from_avi::getVideoFormat | ( | BITMAPINFO & | bmp_info | ) | const [private] |
Definition at line 183 of file mvl2_video_from_avi_windows.cxx.
bool mvl2_video_from_avi::initialize | ( | int | width, |
int | height, | ||
vcl_string | format, | ||
vcl_string | file_name | ||
) | [virtual] |
Initialize the file (format can by Grey, RGB, or more complex).
Implements mvl2_video_reader.
Definition at line 41 of file mvl2_video_from_avi_linux.cxx.
virtual bool mvl2_video_from_avi::initialize | ( | int | width, |
int | height, | ||
vcl_string | format, | ||
vcl_string | file_name | ||
) | [virtual] |
Initialize the file (format can by Grey, RGB, or more complex).
Implements mvl2_video_reader.
vcl_string mvl2_video_from_avi::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented from mvl2_video_reader.
Definition at line 30 of file mvl2_video_from_avi_linux.cxx.
virtual vcl_string mvl2_video_from_avi::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented from mvl2_video_reader.
virtual bool mvl2_video_reader::is_initialized | ( | ) | const [inline, virtual, inherited] |
Check whether camera is initialised.
Definition at line 47 of file mvl2_video_reader.h.
int mvl2_video_from_avi::length | ( | ) | [virtual] |
Returns the number of frames available from the beginning of the stream or -1 if unknown.
Reimplemented from mvl2_video_reader.
Definition at line 162 of file mvl2_video_from_avi_linux.cxx.
vcl_vector< vcl_string > mvl2_video_reader::load_configs | ( | vcl_string | filename | ) | [inherited] |
Load configurations from a file, returns a configuration's name vector.
Definition at line 28 of file mvl2_video_reader.cxx.
int mvl2_video_from_avi::next_frame | ( | ) | [virtual] |
Move frame counter on to next frame.
Implements mvl2_video_reader.
Definition at line 74 of file mvl2_video_from_avi_linux.cxx.
virtual int mvl2_video_from_avi::next_frame | ( | ) | [virtual] |
Move frame counter on to next frame.
Implements mvl2_video_reader.
void mvl2_video_from_avi::reset_frame | ( | ) | [virtual] |
Reset frame counter to zero.
Implements mvl2_video_reader.
Definition at line 131 of file mvl2_video_from_avi_linux.cxx.
virtual void mvl2_video_from_avi::reset_frame | ( | ) | [virtual] |
Reset frame counter to zero.
Implements mvl2_video_reader.
int mvl2_video_from_avi::seek | ( | int | ) | [virtual] |
Move frame counter on to given frame if relevant.
Reimplemented from mvl2_video_reader.
Definition at line 73 of file mvl2_video_from_avi_windows.cxx.
int mvl2_video_from_avi::seek | ( | unsigned int | frame_number | ) | [virtual] |
Move frame counter on to given frame if relevant.
Use only when necessary, because it's slow.
Definition at line 169 of file mvl2_video_from_avi_linux.cxx.
virtual void mvl2_video_reader::set_brightness | ( | int | ) | [inline, virtual, inherited] |
Set the brightness of the picture.
Definition at line 83 of file mvl2_video_reader.h.
void mvl2_video_from_avi::set_capture_size | ( | int | width, |
int | height | ||
) | [virtual] |
Set the size of image captured.
Implements mvl2_video_reader.
Definition at line 158 of file mvl2_video_from_avi_linux.cxx.
virtual void mvl2_video_from_avi::set_capture_size | ( | int | width, |
int | height | ||
) | [virtual] |
Set the size of image captured.
Implements mvl2_video_reader.
virtual void mvl2_video_reader::set_colour | ( | int | ) | [inline, virtual, inherited] |
Set the colour of the picture.
Definition at line 89 of file mvl2_video_reader.h.
virtual void mvl2_video_reader::set_contrast | ( | int | ) | [inline, virtual, inherited] |
Set the contrast of the picture.
Definition at line 92 of file mvl2_video_reader.h.
void mvl2_video_from_avi::set_frame_rate | ( | double | frame_rate | ) | [virtual] |
Set the frame rate in frames per second.
Implements mvl2_video_reader.
Definition at line 139 of file mvl2_video_from_avi_linux.cxx.
virtual void mvl2_video_from_avi::set_frame_rate | ( | double | frame_rate | ) | [virtual] |
Set the frame rate in frames per second.
Implements mvl2_video_reader.
virtual void mvl2_video_reader::set_hue | ( | int | ) | [inline, virtual, inherited] |
Set the hue of the picture.
Definition at line 86 of file mvl2_video_reader.h.
virtual void mvl2_video_reader::set_whiteness | ( | int | ) | [inline, virtual, inherited] |
Set the whiteness of the picture.
Definition at line 95 of file mvl2_video_reader.h.
void mvl2_video_from_avi::uninitialize | ( | ) | [virtual] |
Tidy up.
Reimplemented from mvl2_video_reader.
Definition at line 66 of file mvl2_video_from_avi_linux.cxx.
virtual void mvl2_video_from_avi::uninitialize | ( | ) | [virtual] |
Tidy up.
Reimplemented from mvl2_video_reader.
bool mvl2_video_reader::use_config | ( | vcl_string | configname | ) | [inherited] |
Use the configuration given by the configuration's name.
Definition at line 100 of file mvl2_video_reader.cxx.
vxl_byte* mvl2_video_from_avi::buffer_ [private] |
Definition at line 74 of file mvl2_video_from_avi_linux.h.
vcl_vector<vcl_string> mvl2_video_reader::config_filenames_ [protected, inherited] |
Definition at line 118 of file mvl2_video_reader.h.
vcl_vector<vcl_string> mvl2_video_reader::config_names_ [protected, inherited] |
Definition at line 115 of file mvl2_video_reader.h.
vcl_vector<vcl_pair<int,int > > mvl2_video_reader::config_sizes_ [protected, inherited] |
Definition at line 116 of file mvl2_video_reader.h.
vcl_vector<vcl_string> mvl2_video_reader::config_strings_ [protected, inherited] |
Definition at line 117 of file mvl2_video_reader.h.
unsigned int mvl2_video_reader::current_frame_ [protected, inherited] |
Definition at line 110 of file mvl2_video_reader.h.
bool mvl2_video_reader::firstcall_ [protected, inherited] |
Definition at line 114 of file mvl2_video_reader.h.
double mvl2_video_reader::frame_rate_ [mutable, protected, inherited] |
Definition at line 111 of file mvl2_video_reader.h.
int mvl2_video_reader::height_ [mutable, protected, inherited] |
Definition at line 113 of file mvl2_video_reader.h.
bool mvl2_video_reader::is_initialized_ [protected, inherited] |
Definition at line 109 of file mvl2_video_reader.h.
IAviReadFile* mvl2_video_from_avi::moviefile_ [private] |
Definition at line 75 of file mvl2_video_from_avi_linux.h.
IAviReadStream* mvl2_video_from_avi::moviestream_ [private] |
Definition at line 76 of file mvl2_video_from_avi_linux.h.
PAVISTREAM mvl2_video_from_avi::ppavi_ [private] |
Definition at line 71 of file mvl2_video_from_avi_windows.h.
bool mvl2_video_reader::use_colour_ [protected, inherited] |
Definition at line 108 of file mvl2_video_reader.h.
int mvl2_video_reader::width_ [mutable, protected, inherited] |
Definition at line 112 of file mvl2_video_reader.h.