Revision: 10628 http://pure-data.svn.sourceforge.net/pure-data/?rev=10628&view=rev Author: lluisbigorda Date: 2009-01-25 01:16:22 +0000 (Sun, 25 Jan 2009)
Log Message: ----------- new tcl-socket way to get frame-data and paint it into the canvas
Modified Paths: -------------- trunk/externals/pdvjtools/pix_preview/pix_preview.h
Modified: trunk/externals/pdvjtools/pix_preview/pix_preview.h =================================================================== --- trunk/externals/pdvjtools/pix_preview/pix_preview.h 2009-01-25 01:14:06 UTC (rev 10627) +++ trunk/externals/pdvjtools/pix_preview/pix_preview.h 2009-01-25 01:16:22 UTC (rev 10628) @@ -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\xFCnther Geiger. geiger@epy.co.at -Copyright (c) 2001-2002 IOhannes m zmoelnig. forum::f\xFCr::uml\xE4ute. 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\xFCr::uml\xE4ute:2000 - IOhannes m zmoelnig - mailto:zmoelnig@iem.kug.ac.at -----------------------------------------------------------------*/
#ifndef INCLUDE_PIX_DUMP_H_ @@ -28,14 +11,15 @@
/*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 @@ // Constructor pix_preview(t_floatarg fx, t_floatarg fy); int x_width, x_height; + static int counter; protected: @@ -80,6 +65,7 @@ void trigger(); int getx(); int gety(); + void connectMess();
////////// // The color outlet @@ -95,6 +81,8 @@ int oldimagex; int oldimagey; + int widgetwidth; + int widgetheight; ////////// // navigation @@ -111,9 +99,13 @@ t_widgetbehavior image_widgetbehavior;
+ int s; + int connected; + struct addrinfo *res; + struct addrinfo hints; + int whoami;
- private: ////////// @@ -122,6 +114,7 @@ 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.