Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ImageSubscription Class Reference

#include <MirageDriver.h>

Inheritance diagram for ImageSubscription:

Detailed Description

Definition at line 114 of file MirageDriver.h.

List of all members.

Public Member Functions

 ImageSubscription (const std::string &name)
virtual void registerSource ()
 User hook, called when the data source should claim which outputs it provides feedback (providingOuput()).
virtual void deregisterSource ()
 User hook, called when the data source should release its claim on outputs with feedback (ignoringOuput()).

Public Attributes

plist::NamedEnumeration< Encodingencoding
 indicates whether to stream JPG or PNG images as simulated camera input
plist::Primitive< unsigned int > pngCompressionLevel
 the compression level to pass to libpng, and thus zlib. 0 for no compression (fastest), 9 for maximum compression (slowest), image quality is constant as this is lossless
plist::Primitive< unsigned int > jpgQualityLevel
 the compression level to pass to libjpeg, 0 for very poor quality and small file size, 100 for best quality but larger files

Protected Member Functions

virtual void opened ()
 should be called by open() once the connection is successfully made, so deeper subclasses can do initialization
virtual void plistValueChanged (const plist::PrimitiveBase &pl)

Constructor & Destructor Documentation

ImageSubscription ( const std::string &  name  ) 

Definition at line 116 of file MirageDriver.h.


Member Function Documentation

void deregisterSource (  )  [virtual]

User hook, called when the data source should release its claim on outputs with feedback (ignoringOuput()).

It would be wise to call this from your destructor as well.

Reimplemented from DataStreamDriver.

Definition at line 39 of file MirageDriver.cc.

void opened (  )  [protected, virtual]

should be called by open() once the connection is successfully made, so deeper subclasses can do initialization

Implements Subscription< ImageStreamDriver >.

Definition at line 347 of file MirageDriver.cc.

void plistValueChanged ( const plist::PrimitiveBase pl  )  [protected, virtual]

Reimplemented from Subscription< ImageStreamDriver >.

Definition at line 389 of file MirageDriver.cc.

void registerSource (  )  [virtual]

User hook, called when the data source should claim which outputs it provides feedback (providingOuput()).

Does not indicate the data source should start sending updates yet — wait for enteringRealtime() or advance() to be called

Reimplemented from DataStreamDriver.

Definition at line 32 of file MirageDriver.cc.


Member Data Documentation

the compression level to pass to libjpeg, 0 for very poor quality and small file size, 100 for best quality but larger files

Definition at line 132 of file MirageDriver.h.

Referenced by ImageSubscription::ImageSubscription(), MirageDriver::MirageDriver(), ImageSubscription::opened(), and ImageSubscription::plistValueChanged().

the compression level to pass to libpng, and thus zlib. 0 for no compression (fastest), 9 for maximum compression (slowest), image quality is constant as this is lossless

Definition at line 131 of file MirageDriver.h.

Referenced by ImageSubscription::ImageSubscription(), MirageDriver::MirageDriver(), ImageSubscription::opened(), and ImageSubscription::plistValueChanged().


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3