A video input stream using libdc1394. More...
#include <vidl_dc1394_istream.h>
Classes | |
struct | pimpl |
Public Member Functions | |
vidl_dc1394_istream () | |
Constructor - default. | |
virtual | ~vidl_dc1394_istream () |
Destructor. | |
virtual bool | open (unsigned int num_dma_buffers=2, bool drop_frames=false, const vidl_iidc1394_params ¶ms=vidl_iidc1394_params()) |
Open a new stream using a filename. | |
virtual void | close () |
Close the stream. | |
virtual bool | is_open () const |
Return true if the stream is open for reading. | |
virtual bool | is_valid () const |
Return true if the stream is in a valid state. | |
virtual bool | is_seekable () const |
Return true if the stream support seeking. | |
virtual int | num_frames () const |
Return the number of frames if known. | |
virtual unsigned int | frame_number () const |
Return the current frame number. | |
virtual unsigned int | width () const |
Return the width of each frame. | |
virtual unsigned int | height () const |
Return the height of each frame. | |
virtual vidl_pixel_format | format () const |
Return the pixel format. | |
virtual double | frame_rate () const |
Return the frame rate (FPS, 0.0 if unspecified). | |
virtual double | duration () const |
Return the duration in seconds (0.0 if unknown). | |
virtual bool | advance () |
Advance to the next frame (but don't acquire an image). | |
virtual vidl_frame_sptr | read_frame () |
Read the next frame from the stream (advance and acquire). | |
virtual vidl_frame_sptr | current_frame () |
Return the current frame in the stream. | |
virtual bool | seek_frame (unsigned int frame_number) |
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. | |
Static Public Member Functions | |
static bool | valid_params (vidl_iidc1394_params::valid_options &options) |
Probe the bus to determine the valid parameter options. | |
Private Attributes | |
pimpl * | is_ |
A video input stream using libdc1394.
This stream uses the dc1394 API (v2.0) to stream video from an IEEE 1394 camera
Definition at line 34 of file vidl_dc1394_istream.h.
vidl_dc1394_istream::vidl_dc1394_istream | ( | ) |
vidl_dc1394_istream::~vidl_dc1394_istream | ( | ) | [virtual] |
Destructor.
Definition at line 160 of file vidl_dc1394_istream.cxx.
bool vidl_dc1394_istream::advance | ( | ) | [virtual] |
Advance to the next frame (but don't acquire an image).
Implements vidl_istream.
Definition at line 537 of file vidl_dc1394_istream.cxx.
void vidl_dc1394_istream::close | ( | void | ) | [virtual] |
vidl_frame_sptr vidl_dc1394_istream::current_frame | ( | void | ) | [virtual] |
Return the current frame in the stream.
Implements vidl_istream.
Definition at line 565 of file vidl_dc1394_istream.cxx.
double vidl_dc1394_istream::duration | ( | ) | const [virtual] |
Return the duration in seconds (0.0 if unknown).
Implements vidl_istream.
Definition at line 528 of file vidl_dc1394_istream.cxx.
vidl_pixel_format vidl_dc1394_istream::format | ( | ) | const [virtual] |
Return the pixel format.
Implements vidl_istream.
Definition at line 510 of file vidl_dc1394_istream.cxx.
unsigned int vidl_dc1394_istream::frame_number | ( | ) | const [virtual] |
Return the current frame number.
Implements vidl_istream.
Definition at line 483 of file vidl_dc1394_istream.cxx.
double vidl_dc1394_istream::frame_rate | ( | ) | const [virtual] |
Return the frame rate (FPS, 0.0 if unspecified).
Return the frame rate (0.0 if unspecified).
Implements vidl_istream.
Definition at line 519 of file vidl_dc1394_istream.cxx.
unsigned int vidl_dc1394_istream::height | ( | ) | const [virtual] |
Return the height of each frame.
Implements vidl_istream.
Definition at line 501 of file vidl_dc1394_istream.cxx.
bool vidl_dc1394_istream::is_open | ( | ) | const [virtual] |
Return true if the stream is open for reading.
Implements vidl_istream.
Definition at line 446 of file vidl_dc1394_istream.cxx.
bool vidl_dc1394_istream::is_seekable | ( | ) | const [virtual] |
Return true if the stream support seeking.
Implements vidl_istream.
Definition at line 464 of file vidl_dc1394_istream.cxx.
bool vidl_dc1394_istream::is_valid | ( | void | ) | const [virtual] |
Return true if the stream is in a valid state.
Implements vidl_istream.
Definition at line 455 of file vidl_dc1394_istream.cxx.
int vidl_dc1394_istream::num_frames | ( | ) | const [virtual] |
Return the number of frames if known.
returns -1 for non-seekable streams
Implements vidl_istream.
Definition at line 474 of file vidl_dc1394_istream.cxx.
bool vidl_dc1394_istream::open | ( | unsigned int | num_dma_buffers = 2 , |
bool | drop_frames = false , |
||
const vidl_iidc1394_params & | params = vidl_iidc1394_params() |
||
) | [virtual] |
Open a new stream using a filename.
Definition at line 170 of file vidl_dc1394_istream.cxx.
vidl_frame_sptr vidl_dc1394_istream::read_frame | ( | void | ) | [virtual] |
Read the next frame from the stream (advance and acquire).
Read the next frame from the stream.
Implements vidl_istream.
Definition at line 555 of file vidl_dc1394_istream.cxx.
void vidl_istream::ref | ( | ) | [inline, inherited] |
Increment reference count.
Definition at line 87 of file vidl_istream.h.
int vidl_istream::ref_count | ( | ) | const [inline, inherited] |
Number of objects referring to this data.
Definition at line 93 of file vidl_istream.h.
bool vidl_dc1394_istream::seek_frame | ( | unsigned int | frame | ) | [virtual] |
Seek to the given frame number.
Implements vidl_istream.
Definition at line 593 of file vidl_dc1394_istream.cxx.
void vidl_istream::unref | ( | ) | [inline, inherited] |
Decrement reference count.
Definition at line 90 of file vidl_istream.h.
bool vidl_dc1394_istream::valid_params | ( | vidl_iidc1394_params::valid_options & | options | ) | [static] |
Probe the bus to determine the valid parameter options.
Definition at line 340 of file vidl_dc1394_istream.cxx.
unsigned int vidl_dc1394_istream::width | ( | ) | const [virtual] |
Return the width of each frame.
Implements vidl_istream.
Definition at line 492 of file vidl_dc1394_istream.cxx.
pimpl* vidl_dc1394_istream::is_ [private] |
Definition at line 103 of file vidl_dc1394_istream.h.