iso::visual::MovieTools Class Reference

#include <iso_visual_movie_tools.h>

Collaboration diagram for iso::visual::MovieTools:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Movie * createMovie (const base::String &pFileName, const math::Vector2< unsigned int > pFrameSize, float pFrameRate) throw (VisualException)
Movie * loadMovie (const base::String &pFileName) throw (VisualException)
AVFrame * frame (Movie *pMovie)
 retrieve rgb frame from movie
void writeFrame (Movie *pMovie) throw (VisualException)
 write rgb frame to movie
bool readFrame (Movie *pMovie) throw (VisualException)
 read rgb frame from movie
void frameToImage (Movie *pMovie, TypedImage< float > *pImage) throw (VisualException)
 convert movie frame to image
void finishMovie (Movie *pMovie) throw (VisualException)
 finalize a new movie
void deleteMovie (Movie *pMovie) throw (VisualException)
 destroy movie
void createTestMovie (const base::String &pFileName, const math::Vector2< unsigned int > pFrameSize, float pFramerate, int pFrameCount) throw (VisualException)
 debug test movie creation
void loadTestMovie (const base::String &pFileName) throw (VisualException)
 debug test movie loading
base::String errorMessage (int pErrorNr) throw (VisualException)
 translate av error number into text messge

Static Public Member Functions

static MovieTools & get ()
 return sigleton instance
static void destroy ()
 destroy singleton instance

Protected Member Functions

 MovieTools ()
 default contructor
 ~MovieTools ()
 destructor
void addVideoStream (Movie *pMovie) throw (VisualException)
 add video stream to movie
void openVideo (Movie *pMovie) throw (VisualException)
 open video codecs and allocate encode buffers
void allocateFrame (AVFrame *&pFrame, uint8_t *&pFrameBuffer, int &pFrameBufferSize, enum PixelFormat pPixelFormat, int pFrameWidth, int pFrameHeight)
 allocate frame for movie
void createTestFrame (AVFrame *pFrame, int pFrameIndex, int pWidth, int pHeight)

Protected Attributes

char * mErrorMessageBuffer
size_t mErrorMessageBufferSize

Static Protected Attributes

static MovieTools * sMovieTools

Constructor & Destructor Documentation

MovieTools::MovieTools (  )  [protected]

default contructor

MovieTools::~MovieTools (  )  [protected]

destructor


Member Function Documentation

MovieTools & MovieTools::get (  )  [static]

return sigleton instance

void MovieTools::destroy (  )  [static]

destroy singleton instance

Movie * MovieTools::createMovie ( const base::String &  pFileName,
const math::Vector2< unsigned int >  pFrameSize,
float  pFrameRate 
) throw (VisualException)

Movie * MovieTools::loadMovie ( const base::String &  pFileName  )  throw (VisualException)

AVFrame* iso::visual::MovieTools::frame ( Movie *  pMovie  ) 

retrieve rgb frame from movie

Parameters:
pMovie movie
Returns:
frame in RGB format

void MovieTools::writeFrame ( Movie *  pMovie  )  throw (VisualException)

write rgb frame to movie

Parameters:
pMovie movie

bool MovieTools::readFrame ( Movie *  pMovie  )  throw (VisualException)

read rgb frame from movie

Parameters:
pMovie movie

void MovieTools::frameToImage ( Movie *  pMovie,
TypedImage< float > *  pImage 
) throw (VisualException)

convert movie frame to image

Parameters:
pMovie movie
pImage image

void MovieTools::finishMovie ( Movie *  pMovie  )  throw (VisualException)

finalize a new movie

Parameters:
pMovie movie

void MovieTools::deleteMovie ( Movie *  pMovie  )  throw (VisualException)

destroy movie

Parameters:
pMovie movie

void MovieTools::createTestMovie ( const base::String &  pFileName,
const math::Vector2< unsigned int >  pFrameSize,
float  pFramerate,
int  pFrameCount 
) throw (VisualException)

debug test movie creation

void MovieTools::loadTestMovie ( const base::String &  pFileName  )  throw (VisualException)

debug test movie loading

base::String MovieTools::errorMessage ( int  pErrorNr  )  throw (VisualException)

translate av error number into text messge

Parameters:
pErrorNr error number

void MovieTools::addVideoStream ( Movie *  pMovie  )  throw (VisualException) [protected]

add video stream to movie

Parameters:
pMovie movie

void MovieTools::openVideo ( Movie *  pMovie  )  throw (VisualException) [protected]

open video codecs and allocate encode buffers

Parameters:
pMovie movie

void MovieTools::allocateFrame ( AVFrame *&  pFrame,
uint8_t *&  pFrameBuffer,
int &  pFrameBufferSize,
enum PixelFormat  pPixelFormat,
int  pFrameWidth,
int  pFrameHeight 
) [protected]

allocate frame for movie

Parameters:
pFrame frame
pFramebuffer buffer associated with frame
pFrameBufferSize size of frame buffer (number of chars)
pPixelFormat pixel format
pFrameWidth pFrameWidth
pFrameHeight pFrameHeight

void MovieTools::createTestFrame ( AVFrame *  pFrame,
int  pFrameIndex,
int  pWidth,
int  pHeight 
) [protected]


Member Data Documentation

MovieTools * MovieTools::sMovieTools [static, protected]

singleton instance

char* iso::visual::MovieTools::mErrorMessageBuffer [protected]

size_t iso::visual::MovieTools::mErrorMessageBufferSize [protected]


The documentation for this class was generated from the following files:
Generated on Fri Feb 25 14:23:42 2011 for iso visual by  doxygen 1.5.1