diff options
author | lluÃs gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2009-01-25 01:16:22 +0000 |
---|---|---|
committer | lluÃs gómez i bigordà <lluisbigorda@users.sourceforge.net> | 2009-01-25 01:16:22 +0000 |
commit | 8d506e6d3303eab24693ade79a0ee6b528f59ee1 (patch) | |
tree | aaad1963745596767bd7d9d072bb1ceace728173 | |
parent | 27b80972be922c09f431ee9418cab698477b10d0 (diff) |
new tcl-socket way to get frame-data and paint it into the canvas
svn path=/trunk/externals/pdvjtools/; revision=10628
-rw-r--r-- | pix_preview/pix_preview.h | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/pix_preview/pix_preview.h b/pix_preview/pix_preview.h index 6352aa5..4e2a851 100644 --- a/pix_preview/pix_preview.h +++ b/pix_preview/pix_preview.h @@ -1,24 +1,7 @@ -/*----------------------------------------------------------------- -LOG -GEM - Graphics Environment for Multimedia - -Get pixel information - -Copyright (c) 1997-1998 Mark Danks. mark@danks.org -Copyright (c) Günther Geiger. geiger@epy.co.at -Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::für::umläute. IEM. zmoelnig@iem.kug.ac.at -Copyright (c) 2002 James Tittle & Chris Clepper -For information on usage and redistribution, and for a DISCLAIMER OF ALL -WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. - ------------------------------------------------------------------*/ /*----------------------------------------------------------------- pix_preview - 0409:forum::für::umläute:2000 - IOhannes m zmoelnig - mailto:zmoelnig@iem.kug.ac.at -----------------------------------------------------------------*/ #ifndef INCLUDE_PIX_DUMP_H_ @@ -28,14 +11,15 @@ pix_preview /*needed for base64 conversion*/ #include <string> +#include <sys/types.h> +#include <netinet/in.h> +#include <sys/socket.h> +#include <arpa/inet.h> +#include <netdb.h> std::string base64_encode(unsigned char const* , unsigned int len); - - - - /*----------------------------------------------------------------- ------------------------------------------------------------------- CLASS @@ -62,6 +46,7 @@ public: // Constructor pix_preview(t_floatarg fx, t_floatarg fy); int x_width, x_height; + static int counter; protected: @@ -80,6 +65,7 @@ protected: void trigger(); int getx(); int gety(); + void connectMess(); ////////// // The color outlet @@ -95,6 +81,8 @@ protected: int oldimagex; int oldimagey; + int widgetwidth; + int widgetheight; ////////// // navigation @@ -111,7 +99,11 @@ protected: t_widgetbehavior image_widgetbehavior; - + int s; + int connected; + struct addrinfo *res; + struct addrinfo hints; + int whoami; private: @@ -122,6 +114,7 @@ private: static void GREYMessCallback(void *dump); static void RGBAMessCallback(void *dump); static void RGBMessCallback(void *dump); + static void connectMessCallback(void *dump); static void image_drawme(pix_preview *x, t_glist *glist, int firsttime, int m_xsize, int m_ysize); |