From 1c2854727070e6a3edbc4cbd3a88ee60979ffc50 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 11 Aug 2003 04:43:58 +0000 Subject: added sources from gem2pdp-0.4 for Linux svn path=/trunk/externals/unauthorized/; revision=839 --- gem2pdp/pdp2gem.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 gem2pdp/pdp2gem.h (limited to 'gem2pdp/pdp2gem.h') diff --git a/gem2pdp/pdp2gem.h b/gem2pdp/pdp2gem.h new file mode 100644 index 0000000..90969d0 --- /dev/null +++ b/gem2pdp/pdp2gem.h @@ -0,0 +1,61 @@ +/* + * pdp2gem : pdp to gem bridge + * + * Holds the contents of a PDP packet and introduce it in the GEM rendering chain + * + * Copyright (c) 2003 Yves Degoyon + * + */ + + +#ifndef __PDP_2_GEM_H +#define __PDP_2_GEM_H + +#define GEM_MOVIE_NONE 0 +#define GEM_MOVIE_AVI 1 +#define GEM_MOVIE_MPG 2 +#define GEM_MOVIE_MOV 3 + +#include +#include + +#include "Base/GemBase.h" +#include "Base/GemPixUtil.h" +#include "Base/config.h" +#include "pdp-light.h" +#include + +class GEM_EXTERN pdp2gem : public GemBase +{ + CPPEXTERN_HEADER(pdp2gem, GemBase) + + public: + pdp2gem(void); + + protected: + virtual ~pdp2gem(void); + virtual void createBuffer(void); + virtual void deleteBuffer(void); + virtual void render(GemState *state); + virtual void postrender(GemState *state); + virtual void startRendering(void); + virtual void stopRendering(void) {} + static void pdpCallback(void *data, t_symbol *action, t_floatarg fpcktno); + void pdpMess(t_symbol *action, t_int fpcktno); + + unsigned char *m_data; + pixBlock m_pixBlock; + t_int m_xsize; + t_int m_ysize; + t_int m_csize; + t_int m_format; + pthread_mutex_t *m_mutex; + + // PDP data + t_int m_packet0; + t_int m_dropped; + t_pdp *m_header; + short int *m_pdpdata; +}; + +#endif // for header file -- cgit v1.2.1