A class for writing videos. More...
#include <mvl2_video_to_avi_linux.h>
Public Member Functions | |
mvl2_video_to_avi () | |
Dflt ctor. | |
~mvl2_video_to_avi () | |
Destructor. | |
bool | set_codec (char, char, char, char) |
Set the video codec fourcc. | |
bool | open (int width, int height, vcl_string format, vcl_string file_name) |
Initialize the file (format can be Grey, RGB, or more complex). | |
void | close () |
Tidy up and close the file. | |
bool | is_opened () const |
Check whether camera is initialised. | |
int | get_width () const |
Return width of image (in pixels). | |
int | get_height () const |
Return height of image (in pixels). | |
double | get_frame_rate () const |
Return the frame rate in frames per second. | |
void | set_frame_rate (double frame_rate) |
Set the frame rate in frames per second. | |
void | set_quality (int qual) |
Set the quality of the recorded movie. | |
void | write_frame (vil_image_view< vxl_byte > &image) |
Put frame data into the given image. | |
vcl_string | is_a () const |
Name of the class. | |
mvl2_video_writer * | clone () const |
Create a copy on the heap and return base class pointer. | |
mvl2_video_to_avi () | |
Dflt ctor. | |
~mvl2_video_to_avi () | |
Destructor. | |
bool | set_codec (char, char, char, char) |
Set the video codec fourcc. | |
bool | open (int width, int height, vcl_string format, vcl_string file_name) |
Initialize the file (format can be Grey, RGB, or more complex). | |
void | close () |
Tidy up and close the file. | |
bool | is_opened () const |
Check whether camera is initialised. | |
int | get_width () const |
Return width of image (in pixels). | |
int | get_height () const |
Return height of image (in pixels). | |
double | get_frame_rate () const |
Return the frame rate in frames per second. | |
void | set_frame_rate (double frame_rate) |
Set the frame rate in frames per second. | |
void | set_quality (int qual) |
Set the quality of the recorded movie. | |
void | write_frame (vil_image_view< vxl_byte > &image) |
Put frame data into the given image. | |
vcl_string | is_a () const |
Name of the class. | |
mvl2_video_writer * | clone () const |
Create a copy on the heap and return base class pointer. | |
virtual int | get_frame_number () const |
Return the index of the current frame. | |
Protected Attributes | |
long | fourcc_ |
bool | bgr_ |
bool | upside_down_ |
double | frame_rate_ |
IAviVideoWriteStream * | moviestream_ |
IAviWriteFile * | moviefile_ |
bool | use_colour_ |
bool | is_initialized_ |
int | current_frame_ |
int | width_ |
int | height_ |
int | quality_ |
bool | firstcall_ |
A class for writing videos.
Definition at line 20 of file mvl2_video_to_avi_linux.h.
mvl2_video_to_avi::mvl2_video_to_avi | ( | ) |
Dflt ctor.
Definition at line 13 of file mvl2_video_to_avi_linux.cxx.
mvl2_video_to_avi::~mvl2_video_to_avi | ( | ) |
Destructor.
Definition at line 24 of file mvl2_video_to_avi_linux.cxx.
mvl2_video_to_avi::mvl2_video_to_avi | ( | ) |
Dflt ctor.
mvl2_video_to_avi::~mvl2_video_to_avi | ( | ) |
Destructor.
mvl2_video_writer* mvl2_video_to_avi::clone | ( | ) | const [virtual] |
Create a copy on the heap and return base class pointer.
Implements mvl2_video_writer.
mvl2_video_writer * mvl2_video_to_avi::clone | ( | ) | const [virtual] |
Create a copy on the heap and return base class pointer.
Implements mvl2_video_writer.
Definition at line 175 of file mvl2_video_to_avi_linux.cxx.
void mvl2_video_to_avi::close | ( | ) | [virtual] |
Tidy up and close the file.
Reimplemented from mvl2_video_writer.
void mvl2_video_to_avi::close | ( | ) | [virtual] |
Tidy up and close the file.
Reimplemented from mvl2_video_writer.
Definition at line 86 of file mvl2_video_to_avi_linux.cxx.
virtual int mvl2_video_writer::get_frame_number | ( | ) | const [inline, virtual, inherited] |
Return the index of the current frame.
Definition at line 54 of file mvl2_video_writer.h.
double mvl2_video_to_avi::get_frame_rate | ( | ) | const [inline, virtual] |
Return the frame rate in frames per second.
Reimplemented from mvl2_video_writer.
Definition at line 42 of file mvl2_video_to_avi_windows.h.
double mvl2_video_to_avi::get_frame_rate | ( | ) | const [inline, virtual] |
Return the frame rate in frames per second.
Reimplemented from mvl2_video_writer.
Definition at line 50 of file mvl2_video_to_avi_linux.h.
int mvl2_video_to_avi::get_height | ( | ) | const [virtual] |
Return height of image (in pixels).
Reimplemented from mvl2_video_writer.
int mvl2_video_to_avi::get_height | ( | ) | const [virtual] |
Return height of image (in pixels).
Reimplemented from mvl2_video_writer.
Definition at line 100 of file mvl2_video_to_avi_linux.cxx.
int mvl2_video_to_avi::get_width | ( | ) | const [virtual] |
Return width of image (in pixels).
Reimplemented from mvl2_video_writer.
int mvl2_video_to_avi::get_width | ( | ) | const [virtual] |
Return width of image (in pixels).
Reimplemented from mvl2_video_writer.
Definition at line 95 of file mvl2_video_to_avi_linux.cxx.
vcl_string mvl2_video_to_avi::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented from mvl2_video_writer.
vcl_string mvl2_video_to_avi::is_a | ( | ) | const [virtual] |
Name of the class.
Reimplemented from mvl2_video_writer.
Definition at line 170 of file mvl2_video_to_avi_linux.cxx.
bool mvl2_video_to_avi::is_opened | ( | ) | const [inline, virtual] |
Check whether camera is initialised.
Reimplemented from mvl2_video_writer.
Definition at line 33 of file mvl2_video_to_avi_windows.h.
bool mvl2_video_to_avi::is_opened | ( | ) | const [inline, virtual] |
Check whether camera is initialised.
Reimplemented from mvl2_video_writer.
Definition at line 41 of file mvl2_video_to_avi_linux.h.
bool mvl2_video_to_avi::open | ( | int | width, |
int | height, | ||
vcl_string | format, | ||
vcl_string | file_name | ||
) | [virtual] |
Initialize the file (format can be Grey, RGB, or more complex).
Implements mvl2_video_writer.
bool mvl2_video_to_avi::open | ( | int | width, |
int | height, | ||
vcl_string | format, | ||
vcl_string | file_name | ||
) | [virtual] |
Initialize the file (format can be Grey, RGB, or more complex).
Implements mvl2_video_writer.
Definition at line 62 of file mvl2_video_to_avi_linux.cxx.
bool mvl2_video_to_avi::set_codec | ( | char | , |
char | , | ||
char | , | ||
char | |||
) | [virtual] |
Set the video codec fourcc.
Implements mvl2_video_writer.
bool mvl2_video_to_avi::set_codec | ( | char | a, |
char | b, | ||
char | c, | ||
char | d | ||
) | [virtual] |
Set the video codec fourcc.
Implements mvl2_video_writer.
Definition at line 29 of file mvl2_video_to_avi_linux.cxx.
void mvl2_video_to_avi::set_frame_rate | ( | double | frame_rate | ) | [virtual] |
Set the frame rate in frames per second.
Implements mvl2_video_writer.
void mvl2_video_to_avi::set_frame_rate | ( | double | frame_rate | ) | [virtual] |
Set the frame rate in frames per second.
Implements mvl2_video_writer.
Definition at line 105 of file mvl2_video_to_avi_linux.cxx.
void mvl2_video_to_avi::set_quality | ( | int | qual | ) | [virtual] |
Set the quality of the recorded movie.
Implements mvl2_video_writer.
void mvl2_video_to_avi::set_quality | ( | int | qual | ) | [virtual] |
Set the quality of the recorded movie.
Implements mvl2_video_writer.
Definition at line 57 of file mvl2_video_to_avi_linux.cxx.
void mvl2_video_to_avi::write_frame | ( | vil_image_view< vxl_byte > & | image | ) | [virtual] |
Put frame data into the given image.
Implements mvl2_video_writer.
void mvl2_video_to_avi::write_frame | ( | vil_image_view< vxl_byte > & | image | ) | [virtual] |
Put frame data into the given image.
Implements mvl2_video_writer.
Definition at line 110 of file mvl2_video_to_avi_linux.cxx.
bool mvl2_video_to_avi::bgr_ [protected] |
Definition at line 70 of file mvl2_video_to_avi_linux.h.
int mvl2_video_writer::current_frame_ [protected, inherited] |
Definition at line 78 of file mvl2_video_writer.h.
bool mvl2_video_writer::firstcall_ [protected, inherited] |
Definition at line 83 of file mvl2_video_writer.h.
long mvl2_video_to_avi::fourcc_ [protected] |
Definition at line 69 of file mvl2_video_to_avi_linux.h.
double mvl2_video_to_avi::frame_rate_ [protected] |
Reimplemented from mvl2_video_writer.
Definition at line 72 of file mvl2_video_to_avi_linux.h.
int mvl2_video_writer::height_ [protected, inherited] |
Definition at line 81 of file mvl2_video_writer.h.
bool mvl2_video_writer::is_initialized_ [protected, inherited] |
Definition at line 77 of file mvl2_video_writer.h.
IAviWriteFile* mvl2_video_to_avi::moviefile_ [protected] |
Definition at line 75 of file mvl2_video_to_avi_linux.h.
IAviVideoWriteStream* mvl2_video_to_avi::moviestream_ [protected] |
Definition at line 74 of file mvl2_video_to_avi_linux.h.
int mvl2_video_writer::quality_ [protected, inherited] |
Definition at line 82 of file mvl2_video_writer.h.
bool mvl2_video_to_avi::upside_down_ [protected] |
Definition at line 71 of file mvl2_video_to_avi_linux.h.
bool mvl2_video_writer::use_colour_ [protected, inherited] |
Definition at line 76 of file mvl2_video_writer.h.
int mvl2_video_writer::width_ [protected, inherited] |
Definition at line 80 of file mvl2_video_writer.h.