diff options
Diffstat (limited to 'pix_2pdp.h')
-rwxr-xr-x | pix_2pdp.h | 56 |
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 |