rllib  1
rlwebcam.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlwebcam.h - description
3  -------------------
4  begin : Mo Aug 24 2009
5  copyright : (C) 2009 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_WEBCAM_H_
17 #define _RL_WEBCAM_H_
18 
19 #include "rldefine.h"
20 #include "rlsocket.h"
21 #include "rlstring.h"
22 
77 class rlWebcam
78 {
79 public:
80  rlWebcam();
81  virtual ~rlWebcam();
82  int setUrl(const char *url);
83  int disconnect();
84  const char *getSnapshot(int timeout=3000);
85  const char *getFrame(int timeout=3000, int requestOnly=0);
86  int getFrameBuffer(unsigned char *buffer, int maxbuffer, int timeout=3000);
87  const char *getUrl();
88  const char *getHost();
89  int getPort();
90  const char *getPath();
91  int debug;
94 
95 private:
97 };
98 #endif
int getPort()
Definition: rlwebcam.cpp:281
int setUrl(const char *url)
Definition: rlwebcam.cpp:29
rlString temp2
Definition: rlwebcam.h:96
int getFrameBuffer(unsigned char *buffer, int maxbuffer, int timeout=3000)
Definition: rlwebcam.cpp:166
rlString temp3
Definition: rlwebcam.h:96
rlWebcam()
Definition: rlwebcam.cpp:18
const char * getPath()
Definition: rlwebcam.cpp:301
const char * getSnapshot(int timeout=3000)
Definition: rlwebcam.cpp:47
int debug
Definition: rlwebcam.h:91
int disconnect()
Definition: rlwebcam.cpp:40
const char * getHost()
Definition: rlwebcam.cpp:262
const char * getFrame(int timeout=3000, int requestOnly=0)
Definition: rlwebcam.cpp:60
rlString filename
Definition: rlwebcam.h:92
const char * getUrl()
Definition: rlwebcam.cpp:257
rlString url
Definition: rlwebcam.h:96
rlSocket * sock
Definition: rlwebcam.h:93
rlString temp1
Definition: rlwebcam.h:96
virtual ~rlWebcam()
Definition: rlwebcam.cpp:24