class netCAVEcam : public CAVEcam

This is the derived class netCAVEcam, which starts a vic process upon initialization which uses the shared memory segment as a frame grabber and sends that video stream out on the network to the specified network address

Inheritance:


Public

Methods
netCAVEcam(char *hostname = NULL, int port = 0, float ex = 0.0, float ey = 5.0, float ez = 0.0, float cx = 0.0, float cy = 5.0, float cz = -5.0, float ux = 0.0, float uy = 1.0, float uz = 0.0)
This constructor takes the same arguments as the default as well as the hostname and port number of the video stream destination. Like the shmCAVEcam it opens a shared memory segment to store a ring buffer. The ring buffer can hold a number of frames.
~netCAVEcam()
This destructor kills the vic process and the shared memory segment
void Init(void)
This initialization takes no arguments, it starts the vic process (which will pointed at the corrrect host and port for the video destination)
void Process(void)
This function renders the frame into the temporary buffer then flips it into the ring buffer

Private

Data
key_t _shmkey
Shared Memory Key
sharedMemory* _shmem
Shared Memory Object
unsigned char* _tmpbuf
Temporary buffer for frame
char* _host
Destination Hostname
int _port
Destination Port
int _pid
Vic process id

Inherited from CAVEcam:


Inherited from SharedObject:


Documentation

This is the derived class netCAVEcam, which starts a vic process upon initialization which uses the shared memory segment as a frame grabber and sends that video stream out on the network to the specified network address. In order for this camera to find the vic binary it is necessary for the user to set the environment variable CAVEAV_VIC to the full pathname (including trailing '/vic') to the vic binary that is compiled with shared memory support.
Methods

netCAVEcam(char *hostname = NULL, int port = 0, float ex = 0.0, float ey = 5.0, float ez = 0.0, float cx = 0.0, float cy = 5.0, float cz = -5.0, float ux = 0.0, float uy = 1.0, float uz = 0.0)
This constructor takes the same arguments as the default as well as the hostname and port number of the video stream destination. Like the shmCAVEcam it opens a shared memory segment to store a ring buffer. The ring buffer can hold a number of frames.

~netCAVEcam()
This destructor kills the vic process and the shared memory segment

void Init(void)
This initialization takes no arguments, it starts the vic process (which will pointed at the corrrect host and port for the video destination)

void Process(void)
This function renders the frame into the temporary buffer then flips it into the ring buffer

Data

key_t _shmkey
Shared Memory Key

sharedMemory* _shmem
Shared Memory Object

unsigned char* _tmpbuf
Temporary buffer for frame

char* _host
Destination Hostname

int _port
Destination Port

int _pid
Vic process id


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de