#include <vidl2_istream.h>
Inheritance diagram for vidl2_istream:

Definition at line 18 of file vidl2_istream.h.
Public Member Functions | |
| vidl2_istream () | |
| Constructor. | |
| virtual | ~vidl2_istream () |
| Destructor. | |
| virtual bool | is_open () const=0 |
| Return true if the stream is open for reading. | |
| virtual bool | is_valid () const=0 |
| Return true if the stream is in a valid state. | |
| virtual bool | is_seekable () const=0 |
| Return true if the stream support seeking. | |
| virtual int | num_frames () const=0 |
| Return the number of frames if known. | |
| virtual unsigned int | frame_number () const=0 |
| Return the current frame number. | |
| virtual void | close ()=0 |
| Close the stream. | |
| virtual bool | advance ()=0 |
| Advance to the next frame (but don't acquire an image). | |
| virtual vidl2_frame_sptr | read_frame ()=0 |
| Read the next frame from the stream (advance and acquire). | |
| virtual vidl2_frame_sptr | current_frame ()=0 |
| Return the current frame in the stream. | |
| virtual bool | seek_frame (unsigned int frame_number)=0 |
| Seek to the given frame number. | |
| void | ref () |
| Increment reference count. | |
| void | unref () |
| Decrement reference count. | |
| int | ref_count () const |
| Number of objects referring to this data. | |
Private Member Functions | |
| vidl2_istream (const vidl2_istream &other) | |
| prevent deep copying a stream. | |
Private Attributes | |
| int | ref_count_ |
| vidl2_istream::vidl2_istream | ( | ) | [inline] |
| virtual vidl2_istream::~vidl2_istream | ( | ) | [inline, virtual] |
| vidl2_istream::vidl2_istream | ( | const vidl2_istream & | other | ) | [inline, private] |
| virtual bool vidl2_istream::is_open | ( | ) | const [pure virtual] |
Return true if the stream is open for reading.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual bool vidl2_istream::is_valid | ( | ) | const [pure virtual] |
Return true if the stream is in a valid state.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual bool vidl2_istream::is_seekable | ( | ) | const [pure virtual] |
Return true if the stream support seeking.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual int vidl2_istream::num_frames | ( | ) | const [pure virtual] |
Return the number of frames if known.
returns -1 for non-seekable streams
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual unsigned int vidl2_istream::frame_number | ( | ) | const [pure virtual] |
Return the current frame number.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual void vidl2_istream::close | ( | ) | [pure virtual] |
Close the stream.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual bool vidl2_istream::advance | ( | ) | [pure virtual] |
Advance to the next frame (but don't acquire an image).
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual vidl2_frame_sptr vidl2_istream::read_frame | ( | ) | [pure virtual] |
Read the next frame from the stream (advance and acquire).
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual vidl2_frame_sptr vidl2_istream::current_frame | ( | ) | [pure virtual] |
Return the current frame in the stream.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| virtual bool vidl2_istream::seek_frame | ( | unsigned int | frame_number | ) | [pure virtual] |
Seek to the given frame number.
Implemented in vidl2_dc1394_istream, vidl2_dshow_file_istream, vidl2_dshow_live_istream< ParamsObject >, vidl2_ffmpeg_istream, vidl2_image_list_istream, and vidl2_v4l_istream.
| void vidl2_istream::ref | ( | ) | [inline] |
| void vidl2_istream::unref | ( | ) | [inline] |
| int vidl2_istream::ref_count | ( | ) | const [inline] |
int vidl2_istream::ref_count_ [private] |
Definition at line 76 of file vidl2_istream.h.
1.5.1