omegalib  13.1
omegaToolkit::CameraStreamer Class Reference

A camera listener that uses plug-ins to encode rendered frames into video streams. More...

#include <CameraStreamer.h>

Public Member Functions

 CameraStreamer (const String &encoderName)
 
 ~CameraStreamer ()
 
void initialize (Camera *c, const DrawContext &context)
 
void reset (Camera *c, const DrawContext &context)
 
virtual void endDraw (Camera *cam, DrawContext &context)
 
virtual void beginDraw (Camera *cam, DrawContext &context)
 
virtual void startFrame (Camera *cam, const FrameInfo &frame)
 
virtual void finishFrame (Camera *cam, const FrameInfo &frame)
 
IEncoderlockEncoder ()
 
void unlockEncoder ()
 
void setTargetFps (int fps)
 
int getTargetFps ()
 
void setResolution (const Vector2i &r)
 
Vector2i getResolution ()
 
const String & getEncoderName ()
 
- Public Member Functions inherited from omicron::ReferenceType
 ReferenceType ()
 
virtual ~ReferenceType ()
 
void ref ()
 
void unref ()
 
long refCount ()
 

Additional Inherited Members

- Static Public Member Functions inherited from omicron::ReferenceType
static void printObjCounts ()
 
- Static Protected Attributes inherited from omicron::ReferenceType
static List< ReferenceType * > mysObjList
 

Detailed Description

A camera listener that uses plug-ins to encode rendered frames into video streams.

+ Inheritance diagram for omegaToolkit::CameraStreamer:

Constructor & Destructor Documentation

omegaToolkit::CameraStreamer::CameraStreamer ( const String &  encoderName)
omegaToolkit::CameraStreamer::~CameraStreamer ( )

Member Function Documentation

virtual void omegaToolkit::CameraStreamer::beginDraw ( Camera cam,
DrawContext context 
)
virtual

Reimplemented from omega::ICameraListener.

virtual void omegaToolkit::CameraStreamer::endDraw ( Camera cam,
DrawContext context 
)
virtual

Reimplemented from omega::ICameraListener.

virtual void omegaToolkit::CameraStreamer::finishFrame ( Camera cam,
const FrameInfo frame 
)
virtual

Reimplemented from omega::ICameraListener.

const String& omegaToolkit::CameraStreamer::getEncoderName ( )
inline
Vector2i omegaToolkit::CameraStreamer::getResolution ( )
inline
int omegaToolkit::CameraStreamer::getTargetFps ( )
inline
void omegaToolkit::CameraStreamer::initialize ( Camera c,
const DrawContext context 
)
IEncoder* omegaToolkit::CameraStreamer::lockEncoder ( )
void omegaToolkit::CameraStreamer::reset ( Camera c,
const DrawContext context 
)
void omegaToolkit::CameraStreamer::setResolution ( const Vector2i r)
inline
void omegaToolkit::CameraStreamer::setTargetFps ( int  fps)
inline
virtual void omegaToolkit::CameraStreamer::startFrame ( Camera cam,
const FrameInfo frame 
)
virtual

Reimplemented from omega::ICameraListener.

void omegaToolkit::CameraStreamer::unlockEncoder ( )

The documentation for this class was generated from the following file: