35 #include <Utils/Param.hh>
36 #include <VideoSource/VideoServer.hh>
37 #include <Base/Debug/TimeMeasure.hh>
43 int main(
int argc,
char *argv[])
54 cout<<
"Usage: "<<argv[0]<<
" options"<<endl<<
55 " by default all images in current dir are taken."<<endl;
58 cout <<
"Init class VideoServer"<<endl;
59 if (vs.
Init() <0) exit(1);
66 if (res==1) biasusleep(500);
72 float bw = (float)MessageSize* fps / 1024;
73 cout <<
"sent image "<<i<<
" size: "<<MessageSize<<
" fps: "<<fps
74 <<
" bandwidth: "<<bw<<
" [kB/s]"<<endl;
int ParseCommandLine(int &argc, char *argv[])
scan command line arguments for valid parameters
int Init(int port=D_CS_DEFAULT_PORT)
int SetShortCommand(const std::string &name, const char cmd)
Add a short commandline switch to an existing parameter.
double GetRealTime() const
return real time (=wall time clock) in usec JW For Win32: real-time is measured differently from user...
This class Param provides generic support for parameters.
class to send images from a camera or disk to a client
class TimeMeasure contains functions for timing real time and cpu time.
unsigned int GetMessageSize()