vidl2_ostream Class Reference

#include <vidl2_ostream.h>

Inheritance diagram for vidl2_ostream:

vidl2_ffmpeg_ostream vidl2_image_list_ostream List of all members.

Detailed Description

A base class for output video streams.

Definition at line 18 of file vidl2_ostream.h.


Public Member Functions

 vidl2_ostream ()
 Constructor.
virtual ~vidl2_ostream ()
 Destructor.
virtual void close ()=0
 Close the stream.
virtual bool is_open () const=0
 Return true if the stream is open for writing.
virtual bool write_frame (const vidl2_frame_sptr &frame)=0
 Write and image to the stream.
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_ostream (const vidl2_ostream &other)
 prevent deep copying a stream.

Private Attributes

int ref_count_

Constructor & Destructor Documentation

vidl2_ostream::vidl2_ostream (  )  [inline]

Constructor.

Definition at line 22 of file vidl2_ostream.h.

virtual vidl2_ostream::~vidl2_ostream (  )  [inline, virtual]

Destructor.

Definition at line 24 of file vidl2_ostream.h.

vidl2_ostream::vidl2_ostream ( const vidl2_ostream other  )  [inline, private]

prevent deep copying a stream.

Definition at line 38 of file vidl2_ostream.h.


Member Function Documentation

virtual void vidl2_ostream::close (  )  [pure virtual]

Close the stream.

Implemented in vidl2_ffmpeg_ostream, and vidl2_image_list_ostream.

virtual bool vidl2_ostream::is_open (  )  const [pure virtual]

Return true if the stream is open for writing.

Implemented in vidl2_ffmpeg_ostream, and vidl2_image_list_ostream.

virtual bool vidl2_ostream::write_frame ( const vidl2_frame_sptr frame  )  [pure virtual]

Write and image to the stream.

Return values:
false if the image could not be written

Implemented in vidl2_ffmpeg_ostream, and vidl2_image_list_ostream.

void vidl2_ostream::ref (  )  [inline]

Increment reference count.

Definition at line 45 of file vidl2_ostream.h.

void vidl2_ostream::unref (  )  [inline]

Decrement reference count.

Definition at line 48 of file vidl2_ostream.h.

int vidl2_ostream::ref_count (  )  const [inline]

Number of objects referring to this data.

Definition at line 51 of file vidl2_ostream.h.


Member Data Documentation

int vidl2_ostream::ref_count_ [private]

Definition at line 54 of file vidl2_ostream.h.


The documentation for this class was generated from the following file:
Generated on Tue Oct 7 05:20:53 2008 for contrib/brl/bbas/vidl2 by  doxygen 1.5.1