aboutsummaryrefslogtreecommitdiff
path: root/pix_2pdp.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2005-06-17 13:45:22 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2005-06-17 13:45:22 +0000
commita8e7bc2c20f3d404ebc039f573843d8801c30eaa (patch)
tree9c6aed48ab1076a225092961ef0a148a711b1a78 /pix_2pdp.h
parent715d78993a78983fe730ab273895eb6257b65528 (diff)
added pix_2pdp
svn path=/trunk/externals/gem2pdp/; revision=3202
Diffstat (limited to 'pix_2pdp.h')
-rwxr-xr-xpix_2pdp.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/pix_2pdp.h b/pix_2pdp.h
new file mode 100755
index 0000000..64229d6
--- /dev/null
+++ b/pix_2pdp.h
@@ -0,0 +1,56 @@
+/*
+ * pix_2pdp : pix to pdp bridge
+ *
+ * Capture the contents of the Gem pix and transform it to a PDP Packet whenever a bang is received
+ *
+ * Based on code of gem2pdp by Yves Degoyon
+ * Many thanks to IOhannes M Zmölnig
+ *
+ * Copyright (c) 2005 Georg Holzmann <grh@mur.at>
+ *
+ */
+
+#ifndef INCLUDE_PIX2PDP_H_
+#define INCLUDE_PIX2PDP_H_
+
+#include "Base/GemPixObj.h"
+#include "pdp-light.h"
+
+class GEM_EXTERN pix_2pdp : public GemPixObj
+{
+ CPPEXTERN_HEADER(pix_2pdp, GemPixObj)
+
+ public:
+
+ // Constructor
+ pix_2pdp(void);
+
+ protected:
+
+ // Destructor
+ virtual ~pix_2pdp(void);
+
+ // Image processing
+ virtual void processImage(imageStruct &image);
+
+ // pdp processing
+ virtual void bangMess(void);
+
+ // the pixBlock with the current image
+ unsigned char *gem_image;
+ int gem_xsize;
+ int gem_ysize;
+ int gem_csize;
+ int gem_format;
+
+ // pdp data
+ t_outlet *m_pdpoutlet;
+ int m_packet0;
+ t_pdp *m_header;
+ short int *m_data;
+
+ private:
+ static void bangMessCallback(void *data);
+};
+
+#endif