Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

PIAVE::Frame Class Reference

#include <frame.hh>

List of all members.

Public Methods

 Frame ()
 trivial constructor

void decodeMetaData ()
 decode meta data about the stream

void decodeVideo (uint8_t *dest=0)
 decode video data

void decodeAudio (uint8_t *dest=0)
 decode audoi data

bool getVideoIsDecoded () const
 return true if video was already decoded

bool getAudioIsDecoded () const
 return true if audio was already decoded

const Frame & operator= (const Frame &o)
 copy only pointers, no deep copy, inexpensive

void makeWriteableVBuf ()
 make copy if f is locked

VideoBuffermakeVBuf ()
 this method will create a new or transform an existing VideoBuffer to the requested format.

void dropRefs ()
 drop references to the Buffers

Time getPos () const
 acceess coordinates

Time getLength () const
 acceess coordinates

void setPos (const Time pos)
 acceess coordinates

void setLength (const Time length)
 acceess coordinates

VideoBuffergetVBuf () const
 decoded data

AudioBuffergetABuf () const
 decoded data

Buffer * getRawVBuf () const
 encoded data

Buffer * getRawABuf () const
 encoded data

void setRawVBuf (Buffer *evb)
 trivial setter

void setRawABuf (Buffer *eab)
 trivial setter

void setVBuf (VideoBuffer *vb)
 trivial setter

void setABuf (AudioBuffer *ab)
 trivial setter

void setVideoIsDecoded (bool is)
 trivial setter

void setAudioIsDecoded (bool is)
 trivial setter

void setAVContext (InAVStreamIFace *v)
 trivial setter

void setAudioContext (InAVStreamIFace *a)
 trivial setter

void setProperties (PropertyNode *p)
 trivial setter


Private Methods

void addAlpha ()
 add buffer for alpha channel

void flattenAlpha ()
 clip alpha


Detailed Description

Todo:
document when defined


Member Function Documentation

void Frame::decodeAudio uint8_t *    dest = 0
 

decode audoi data

Parameters:
dest:  if 0, then a new audio buffer is allocated and added to the Frame if non 0, then the audio is decoded into the given memory space

void Frame::decodeVideo uint8_t *    dest = 0
 

decode video data

Parameters:
dest:  if 0, then a new video buffer is allocated and added to the Frame if non 0, then the video is decoded into the given memory space

void Frame::makeWriteableVBuf  
 

make copy if f is locked

If o is locked, a new VideoBuffer containing a deep copy of o. If o does not have videobuffer, it will be created from the DVFrame.


The documentation for this class was generated from the following files:
Generated on Tue Oct 14 20:45:37 2003 for piave by doxygen1.2.18