Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vidl2_ffmpeg_istream Class Reference

#include <vidl2_ffmpeg_istream.h>

Inheritance diagram for vidl2_ffmpeg_istream:

Inheritance graph
[legend]
List of all members.

Detailed Description

A video input stream using FFMPEG to decoded files.

Definition at line 23 of file vidl2_ffmpeg_istream.h.

Public Member Functions

 vidl2_ffmpeg_istream ()
 Constructor - default.
 vidl2_ffmpeg_istream (const vcl_string &filename)
 Constructor - from a filename.
virtual ~vidl2_ffmpeg_istream ()
 Destructor.
virtual bool open (const vcl_string &filename)
 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 unsigned int frame_number () const
 Return the current frame number.
virtual bool advance ()
 Advance to the next frame (but don't acquire an image).
virtual vidl2_frame_sptr read_frame ()
 Read the next frame from the stream (advance and acquire).
virtual vidl2_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.

Private Attributes

pimplis_

Classes

struct  pimpl


Constructor & Destructor Documentation

vidl2_ffmpeg_istream::vidl2_ffmpeg_istream  ) 
 

Constructor - default.

Definition at line 73 of file vidl2_ffmpeg_istream.cxx.

vidl2_ffmpeg_istream::vidl2_ffmpeg_istream const vcl_string &  filename  ) 
 

Constructor - from a filename.

Definition at line 82 of file vidl2_ffmpeg_istream.cxx.

vidl2_ffmpeg_istream::~vidl2_ffmpeg_istream  )  [virtual]
 

Destructor.

Definition at line 92 of file vidl2_ffmpeg_istream.cxx.


Member Function Documentation

bool vidl2_ffmpeg_istream::advance  )  [virtual]
 

Advance to the next frame (but don't acquire an image).

Implements vidl2_istream.

Definition at line 240 of file vidl2_ffmpeg_istream.cxx.

void vidl2_ffmpeg_istream::close  )  [virtual]
 

Close the stream.

Implements vidl2_istream.

Definition at line 163 of file vidl2_ffmpeg_istream.cxx.

vidl2_frame_sptr vidl2_ffmpeg_istream::current_frame  )  [virtual]
 

Return the current frame in the stream.

Implements vidl2_istream.

Definition at line 322 of file vidl2_ffmpeg_istream.cxx.

unsigned int vidl2_ffmpeg_istream::frame_number  )  const [virtual]
 

Return the current frame number.

Implements vidl2_istream.

Definition at line 217 of file vidl2_ffmpeg_istream.cxx.

bool vidl2_ffmpeg_istream::is_open  )  const [virtual]
 

Return true if the stream is open for reading.

Implements vidl2_istream.

Definition at line 190 of file vidl2_ffmpeg_istream.cxx.

bool vidl2_ffmpeg_istream::is_seekable  )  const [virtual]
 

Return true if the stream support seeking.

Implements vidl2_istream.

Definition at line 208 of file vidl2_ffmpeg_istream.cxx.

bool vidl2_ffmpeg_istream::is_valid  )  const [virtual]
 

Return true if the stream is in a valid state.

Implements vidl2_istream.

Definition at line 199 of file vidl2_ffmpeg_istream.cxx.

bool vidl2_ffmpeg_istream::open const vcl_string &  filename  )  [virtual]
 

Open a new stream using a filename.

Definition at line 101 of file vidl2_ffmpeg_istream.cxx.

vidl2_frame_sptr vidl2_ffmpeg_istream::read_frame  )  [virtual]
 

Read the next frame from the stream (advance and acquire).

Implements vidl2_istream.

Definition at line 312 of file vidl2_ffmpeg_istream.cxx.

void vidl2_istream::ref  )  [inline, inherited]
 

Increment reference count.

Definition at line 63 of file vidl2_istream.h.

int vidl2_istream::ref_count  )  const [inline, inherited]
 

Number of objects referring to this data.

Definition at line 69 of file vidl2_istream.h.

bool vidl2_ffmpeg_istream::seek_frame unsigned int  frame_number  )  [virtual]
 

Seek to the given frame number.

Returns:
true if successful

Implements vidl2_istream.

Definition at line 407 of file vidl2_ffmpeg_istream.cxx.

void vidl2_istream::unref  )  [inline, inherited]
 

Decrement reference count.

Definition at line 66 of file vidl2_istream.h.


Member Data Documentation

pimpl* vidl2_ffmpeg_istream::is_ [private]
 

Definition at line 70 of file vidl2_ffmpeg_istream.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:51:33 2008 for contrib/brl/bbas/vidl2 by  doxygen 1.4.4