prip::ViscaIP Class Reference

#include <IPCamera.h>

Inheritance diagram for prip::ViscaIP:

prip::IPCamera prip::ViscaControl List of all members.

Detailed Description

Class for communicating with VISCA-capable IP Cameras.

Author:
blau

Definition at line 1108 of file IPCamera.h.

Public Member Functions

 ViscaIP (std::string address, int port, std::string cgiscript="/command/ptzf.cgi", std::string imgpath="/.jpg", std::string streampath="/mjpeg", std::string username="", std::string password="")
std::string getImage (void)
 This pure virtual function should return the raw JPEG Image from the camera.
std::string getNextImage (void)
 get next image from MJPEG stream.
virtual void startMJPEGStream (void)
 opens a connection to the IP Camera and retreives the MJPEG stream.
virtual void stopMJPEGStream (void)
 stops the retreival of the MJPEG stream.

Protected Member Functions

virtual void sendCommand (void)
 This function is invoked by every ViscaControl command after termCommand().

Protected Attributes

MJPEGStream mStreamHandler

Private Attributes

std::string mSite
std::string mImgPath
std::string mStreamPath


Constructor & Destructor Documentation

prip::ViscaIP::ViscaIP ( std::string  address,
int  port,
std::string  cgiscript = "/command/ptzf.cgi",
std::string  imgpath = "/.jpg",
std::string  streampath = "/mjpeg",
std::string  username = "",
std::string  password = "" 
) [inline]

Parameters:
address host name or ip address of VISCA capable IP camera
port TCP port of IP camera
cgiscript address of cgi-script - default = /command/ptzf.cgi (which is suitable for SONY IP Cameras)
imgpath path to the page where the image can be downloaded default = /image (which is suitable for SONY IP Cameras)
streampath path to the page where the MJPEG stream can be downloaded default = /mjpeg (which is suitable for SONY IP Cameras)
username if username is supplied, HTTP basic authentication is used
password password for HTTP basic authentication

Definition at line 1126 of file IPCamera.h.


Member Function Documentation

std::string prip::ViscaIP::getImage ( void   )  [inline, virtual]

This pure virtual function should return the raw JPEG Image from the camera.

Returns:
current image (raw JPEG)
See also:
Util::raw2fipImage

Util::raw2IplImage

Implements prip::IPCamera.

Definition at line 1132 of file IPCamera.h.

std::string prip::ViscaIP::getNextImage ( void   )  [inline]

get next image from MJPEG stream.

Definition at line 1156 of file IPCamera.h.

virtual void prip::ViscaIP::sendCommand ( void   )  [inline, protected, virtual]

This function is invoked by every ViscaControl command after termCommand().

It is supposed to be overwritten by subclasses to actually send the command to the VISCA-able Camera e.g. via serial port or IP connection.

See also:
termCommand

Reimplemented from prip::ViscaControl.

Definition at line 1196 of file IPCamera.h.

virtual void prip::ViscaIP::startMJPEGStream ( void   )  [inline, virtual]

opens a connection to the IP Camera and retreives the MJPEG stream.

All MJPEGStream functions use the mClientClone

Definition at line 1176 of file IPCamera.h.

virtual void prip::ViscaIP::stopMJPEGStream ( void   )  [inline, virtual]

stops the retreival of the MJPEG stream.

See also:
startMJPEGStream, getNextImage

Definition at line 1186 of file IPCamera.h.


Member Data Documentation

std::string prip::ViscaIP::mImgPath [private]

Definition at line 1206 of file IPCamera.h.

std::string prip::ViscaIP::mSite [private]

Definition at line 1205 of file IPCamera.h.

MJPEGStream prip::ViscaIP::mStreamHandler [protected]

Definition at line 1202 of file IPCamera.h.

std::string prip::ViscaIP::mStreamPath [private]

Definition at line 1207 of file IPCamera.h.


The documentation for this class was generated from the following file:
Generated on Thu Nov 30 00:34:24 2006 for PRIP by  doxygen 1.4.7