Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
BIAS::VideoServer Class Reference

class to send images from a camera or disk to a client More...

#include <VideoSource/VideoServer.hh>

+ Inheritance diagram for BIAS::VideoServer:
+ Collaboration diagram for BIAS::VideoServer:

Public Member Functions

void AddDebugLevel (const long int lv)
 
void AddDebugLevel (const std::string &name)
 
bool DebugLevelIsSet (const long int lv) const
 
bool DebugLevelIsSet (const std::string &name) const
 
VideoSourceGetCamera ()
 
int GetDebugLevel () const
 
std::ostream & GetDebugStream () const
 
void GetDebugStream (std::ostream &os) const
 
double GetFPS ()
 
unsigned int GetMessageSize ()
 
BIAS::Camera< unsigned char > * GetSendImage ()
 
int Init (int port=D_CS_DEFAULT_PORT)
 
int InitFromExistingSource (VideoSource *theSource, int port=D_CS_DEFAULT_PORT)
 
long int Name2DebugLevel (const std::string &name) const
 looks up a debuglevel in the internal map, returns 0 if not found More...
 
long int NewDebugLevel (const std::string &name)
 creates a new debuglevel More...
 
void PrintDebugLevel (std::ostream &os=std::cout) const
 
int ProcessOneImage ()
 
void RemoveDebugLevel (const long int lv)
 
void RemoveDebugLevel (const std::string &name)
 
void SetCameraType (int camType=1)
 
void SetCompression (int compLvl=60)
 
void SetDebugLevel (const long int lv)
 
void SetDebugLevel (const std::string &name)
 
void SetDebugStream (const std::ostream &os)
 
void ShowDebugLevel (std::ostream &os=std::cout) const
 prints all internally known debuglevels More...
 
 VideoServer ()
 
 ~VideoServer ()
 

Static Public Member Functions

static long int GetGlobalDebugLevel ()
 
static void SetGlobalDebugLevel (long int lev)
 

Protected Member Functions

long ConsumeNextFreeDebuglevel_ ()
 returns the next available debuglevel More...
 

Protected Attributes

long int _liDebugLevel
 
long int _liNextDebugLevel
 new concept, debuglevel are managed here in the debug class More...
 
std::map< std::string, long int > _String2Debuglevel
 
VideoSourcecamera_
 
BIAS::Camera< unsigned char > CamImage_
 
BIAS::Vector< double > camParam_
 
int camType_
 
bool compressionColor_
 
JpegHandler Compressor_
 
int imgHeight_
 
int imgWidth_
 
bool Initialized_
 
int jpeg_
 
unsigned int msgSize_
 
int port_
 
BIAS::Rescale< unsigned char,
unsigned char > 
RescaleFilter_
 
double resizeFactor_
 
std::ostringstream SendBuffer_
 
BIAS::Camera< unsigned char > SendImage_
 
CScommServer server_
 
std::string targetAddress_
 
int UDPServerThrottle_
 
bool useUDP_
 

Static Protected Attributes

static std::ostream _zDebugStream
 
static long int GlobalDebugLevel = 0
 

Detailed Description

class to send images from a camera or disk to a client

uses TCP or UDPServer Catch images with the VideoSourve_Net class.

Todo:
fkellner 1/11: udp not working, options are hardcoded, needs doc
Author
grest Nov. 2005
Examples:
ExampleVideoServer.cpp.

Definition at line 37 of file VideoServer.hh.

Constructor & Destructor Documentation

VideoServer::VideoServer ( )

Definition at line 20 of file VideoServer.cpp.

VideoServer::~VideoServer ( )

Definition at line 45 of file VideoServer.cpp.

Member Function Documentation

void BIAS::Debug::AddDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::AddDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 362 of file Debug.hh.

long BIAS::Debug::ConsumeNextFreeDebuglevel_ ( )
inlineprotectedinherited

returns the next available debuglevel

Author
woelk 09/2006

Definition at line 521 of file Debug.hh.

bool BIAS::Debug::DebugLevelIsSet ( const long int  lv) const
inlineinherited
bool BIAS::Debug::DebugLevelIsSet ( const std::string &  name) const
inlineinherited

Definition at line 350 of file Debug.hh.

VideoSource* BIAS::VideoServer::GetCamera ( )
inline

Definition at line 52 of file VideoServer.hh.

int BIAS::Debug::GetDebugLevel ( ) const
inlineinherited
std::ostream& BIAS::Debug::GetDebugStream ( ) const
inlineinherited

Definition at line 405 of file Debug.hh.

void BIAS::Debug::GetDebugStream ( std::ostream &  os) const
inlineinherited

Definition at line 414 of file Debug.hh.

double BIAS::VideoServer::GetFPS ( )
inline

Definition at line 54 of file VideoServer.hh.

static long int BIAS::Debug::GetGlobalDebugLevel ( )
inlinestaticinherited

Definition at line 431 of file Debug.hh.

unsigned int BIAS::VideoServer::GetMessageSize ( )
inline
Examples:
ExampleVideoServer.cpp.

Definition at line 58 of file VideoServer.hh.

BIAS::Camera<unsigned char>* BIAS::VideoServer::GetSendImage ( )
inline

Definition at line 56 of file VideoServer.hh.

int VideoServer::Init ( int  port = D_CS_DEFAULT_PORT)
Examples:
ExampleVideoServer.cpp.

Definition at line 56 of file VideoServer.cpp.

int VideoServer::InitFromExistingSource ( VideoSource theSource,
int  port = D_CS_DEFAULT_PORT 
)

Definition at line 132 of file VideoServer.cpp.

References BIAS::VideoSource::OpenDevice().

long int BIAS::Debug::Name2DebugLevel ( const std::string &  name) const
inlineinherited

looks up a debuglevel in the internal map, returns 0 if not found

Author
woelk 09/2006

Definition at line 454 of file Debug.hh.

long int BIAS::Debug::NewDebugLevel ( const std::string &  name)
inlineinherited
void BIAS::Debug::PrintDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

Definition at line 383 of file Debug.hh.

int VideoServer::ProcessOneImage ( )
void BIAS::Debug::RemoveDebugLevel ( const long int  lv)
inlineinherited

Definition at line 369 of file Debug.hh.

void BIAS::Debug::RemoveDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 376 of file Debug.hh.

void BIAS::VideoServer::SetCameraType ( int  camType = 1)
inline

Definition at line 48 of file VideoServer.hh.

void BIAS::VideoServer::SetCompression ( int  compLvl = 60)
inline

Definition at line 46 of file VideoServer.hh.

void BIAS::Debug::SetDebugLevel ( const long int  lv)
inlineinherited
void BIAS::Debug::SetDebugLevel ( const std::string &  name)
inlineinherited

Definition at line 325 of file Debug.hh.

void BIAS::Debug::SetDebugStream ( const std::ostream &  os)
inlineinherited

Definition at line 398 of file Debug.hh.

static void BIAS::Debug::SetGlobalDebugLevel ( long int  lev)
inlinestaticinherited

Definition at line 424 of file Debug.hh.

void BIAS::Debug::ShowDebugLevel ( std::ostream &  os = std::cout) const
inlineinherited

prints all internally known debuglevels

Author
woelk 09/2006

Definition at line 496 of file Debug.hh.

Member Data Documentation

long int BIAS::Debug::_liDebugLevel
protectedinherited

Definition at line 510 of file Debug.hh.

Referenced by BIAS::Debug::operator=(), and BIAS::ImageBase::operator=().

long int BIAS::Debug::_liNextDebugLevel
protectedinherited

new concept, debuglevel are managed here in the debug class

Definition at line 516 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::map<std::string, long int> BIAS::Debug::_String2Debuglevel
protectedinherited

Definition at line 517 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

std::ostream BIAS::Debug::_zDebugStream
staticprotectedinherited

Definition at line 511 of file Debug.hh.

Referenced by BIAS::Debug::operator=().

VideoSource* BIAS::VideoServer::camera_
protected

Definition at line 70 of file VideoServer.hh.

BIAS::Camera<unsigned char> BIAS::VideoServer::CamImage_
protected

Definition at line 71 of file VideoServer.hh.

BIAS::Vector<double> BIAS::VideoServer::camParam_
protected

Definition at line 63 of file VideoServer.hh.

int BIAS::VideoServer::camType_
protected

Definition at line 64 of file VideoServer.hh.

bool BIAS::VideoServer::compressionColor_
protected

Definition at line 79 of file VideoServer.hh.

JpegHandler BIAS::VideoServer::Compressor_
protected

Definition at line 85 of file VideoServer.hh.

long int BIAS::Debug::GlobalDebugLevel = 0
staticprotectedinherited

Definition at line 513 of file Debug.hh.

int BIAS::VideoServer::imgHeight_
protected

Definition at line 64 of file VideoServer.hh.

int BIAS::VideoServer::imgWidth_
protected

Definition at line 64 of file VideoServer.hh.

bool BIAS::VideoServer::Initialized_
protected

Definition at line 73 of file VideoServer.hh.

int BIAS::VideoServer::jpeg_
protected

Definition at line 64 of file VideoServer.hh.

unsigned int BIAS::VideoServer::msgSize_
protected

Definition at line 77 of file VideoServer.hh.

int BIAS::VideoServer::port_
protected

Definition at line 61 of file VideoServer.hh.

BIAS::Rescale<unsigned char,unsigned char> BIAS::VideoServer::RescaleFilter_
protected

Definition at line 75 of file VideoServer.hh.

double BIAS::VideoServer::resizeFactor_
protected

Definition at line 65 of file VideoServer.hh.

std::ostringstream BIAS::VideoServer::SendBuffer_
protected

Definition at line 74 of file VideoServer.hh.

BIAS::Camera<unsigned char> BIAS::VideoServer::SendImage_
protected

Definition at line 72 of file VideoServer.hh.

CScommServer BIAS::VideoServer::server_
protected

Definition at line 82 of file VideoServer.hh.

std::string BIAS::VideoServer::targetAddress_
protected

Definition at line 62 of file VideoServer.hh.

int BIAS::VideoServer::UDPServerThrottle_
protected

Definition at line 66 of file VideoServer.hh.

bool BIAS::VideoServer::useUDP_
protected

Definition at line 67 of file VideoServer.hh.


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