Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

phNetSource Class Reference
[Capture and AcquisitionNetwork]

#include <phNetSource.h>

Inheritance diagram for phNetSource:

phImageCapture phImageCapture phCaptureInterface phCaptureInterface phThread phThread phCondition phCondition phMutex phMutex phObject phObject List of all members.

Detailed Description

todo.

Definition at line 54 of file phNetSource.h.

Public Member Functions

 phNetSource (char *path=NULL)
 ~phNetSource ()
int setHost (const char *host)
const char * getHost ()
int setPort (uint32_t port)
uint32_t getPort ()
const char * getTitle ()
int setReconnect (int reconnect)
int getReconnect ()
int setServerWait (int wait)
int getServerWait ()
int setOriginal ()
int setOriginalSize ()
int setOriginalFormat ()
int getOriginal (uint32_t *format, uint32_t *height, uint32_t *width, uint32_t *size)
uint32_t getOriginalFormat ()
uint32_t getOriginalHeight ()
uint32_t getOriginalWidth ()
uint32_t getOriginalSize ()
int resetDimensions ()
virtual int onApplySettings ()
virtual int isOpen ()
int isConnected ()
 phNetSource (char *path=NULL)
 ~phNetSource ()
int setHost (const char *host)
const char * getHost ()
int setPort (uint32_t port)
uint32_t getPort ()
const char * getTitle ()
int setReconnect (int reconnect)
int getReconnect ()
int setServerWait (int wait)
int getServerWait ()
int getOriginal (uint32_t *format, uint32_t *height, uint32_t *width, uint32_t *size)
uint32_t getOriginalFormat ()
uint32_t getOriginalHeight ()
uint32_t getOriginalWidth ()
uint32_t getOriginalSize ()
int resetDimensions ()
virtual int onApplySettings ()
virtual int isOpen ()
int isConnected ()

Static Public Member Functions

static int makePath (const char *host, uint32_t port, uint32_t type, char **path)
static int makePath (const char *host, uint32_t port, uint32_t type, char **path)

Protected Member Functions

int parsePath (const char *path, char **host, uint32_t *port, uint32_t *type)
int tcp_connect (phSocket *comms, bool poll, char *host, uint32_t port, uint32_t *w, uint32_t *h, uint32_t *f, char **title)
int tcp_init (phSocket *comms, char **title, uint32_t *w, uint32_t *h, uint32_t *f)
int tcp_recv (phSocket *comms, phImage *inputImage, uint32_t *w, uint32_t *h, uint32_t *f, uint8_t **data, uint32_t *data_size)
int tcp_disconnect (phSocket *comms)
virtual int open (char *path)
virtual int close ()
int connect (bool poll=true)
int getNextFrame (phImage *image, uint8_t **image_buf, uint32_t *image_size)
int disconnect ()
virtual int run ()
virtual int cleanup ()
virtual int wakeup ()
int parsePath (const char *path, char **host, uint32_t *port, uint32_t *type)
int tcp_connect (phSocket *comms, bool poll, char *host, uint32_t port, uint32_t *w, uint32_t *h, uint32_t *f, char **title)
int tcp_init (phSocket *comms, char **title, uint32_t *w, uint32_t *h, uint32_t *f)
int tcp_recv (phSocket *comms, phImage *inputImage, uint32_t *w, uint32_t *h, uint32_t *f, uint8_t **data, uint32_t *data_size)
int tcp_disconnect (phSocket *comms)
virtual int open (char *path)
virtual int close ()
int connect (bool poll=true)
int recv (phImage *image, uint8_t **image_buf, uint32_t *image_size)
int disconnect ()
virtual int run ()
virtual int cleanup ()
virtual int wakeup ()

Protected Attributes

phNetSourceInfo m_info
int m_is_open
uint32_t m_type
char * m_temp_path
uint32_t m_connected_type
int m_reconnect
int m_server_wait
phMutex m_orig_lock
uint32_t m_orig_format
uint32_t m_orig_height
uint32_t m_orig_width
uint32_t m_orig_size
char * m_temp_path
uint32_t m_user_dimensions


The documentation for this class was generated from the following files:



Copyright (C) 2002 - 2007 Philip D.S. Thoren ( pthoren@users.sourceforge.net )
University Of Massachusetts at Lowell
Robotics Lab
SourceForge.net Logo

Generated on Sat Jun 16 02:45:01 2007 for phission by  doxygen 1.4.4