1 #ifndef __BIAS_VIDEOSERVER_HH__
2 #define __BIAS_VIDEOSERVER_HH__
8 #include <bias_config.h>
10 #include <Base/Debug/Debug.hh>
11 #include <Base/Image/ImageIO.hh>
12 #include <Filter/Rescale.hh>
13 #include <Image/Camera.hh>
14 #include <VideoSource/VideoSource_Base.hh>
15 #include <NetworkComm/CScommServer.hh>
18 #ifdef BIAS_HAVE_LIBJPEG
19 #include <Base/Image/CompressJpeg.hh>
20 #include <Base/Image/ImageConvert.hh>
21 #endif // BIAS_HAVE_LIBJPEG
42 int Init(
int port=D_CS_DEFAULT_PORT);
44 int InitFromExistingSource(
VideoSource *theSource,
int port=D_CS_DEFAULT_PORT);
50 int ProcessOneImage();
54 double GetFPS(){
return camParam_[0];}
64 int camType_, imgWidth_, imgHeight_,
jpeg_;
84 #ifdef BIAS_HAVE_LIBJPEG
86 #endif //BIAS_HAVE_LIBJPEG
Wrapper for fast libjpeg methods.
Defines a common interface to different devices.
BIAS::Vector< double > camParam_
BIAS::Camera< unsigned char > CamImage_
BIAS::Camera< unsigned char > SendImage_
BIAS::Camera< unsigned char > * GetSendImage()
std::ostringstream SendBuffer_
class for sending/receiving data between clients and serversOnly registered msgs will be accepted at ...
VideoSource * GetCamera()
void SetCameraType(int camType=1)
BIAS::Rescale< unsigned char, unsigned char > RescaleFilter_
void SetCompression(int compLvl=60)
class to send images from a camera or disk to a client
std::string targetAddress_
unsigned int GetMessageSize()