[PD-cvs] externals/gem2pdp pdp2gem.cpp,1.5,1.6

Jamie Tittle tigital at users.sourceforge.net
Thu Apr 14 20:44:07 CEST 2005


Update of /cvsroot/pure-data/externals/gem2pdp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25006

Modified Files:
	pdp2gem.cpp 
Log Message:
cleanup & improve instance initialization

Index: pdp2gem.cpp
===================================================================
RCS file: /cvsroot/pure-data/externals/gem2pdp/pdp2gem.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** pdp2gem.cpp	14 Apr 2005 16:03:28 -0000	1.5
--- pdp2gem.cpp	14 Apr 2005 18:44:05 -0000	1.6
***************
*** 16,21 ****
  
  pdp2gem :: pdp2gem(t_symbol *colorspace)
! 		 : m_colorspace(GL_YUV422_GEM)
  {
    // csMess allows us to select what colorspace to convert
    //  the YV12 pixels into while handing it over to GEM
--- 16,23 ----
  
  pdp2gem :: pdp2gem(t_symbol *colorspace)
! 		 : m_colorspace(GL_YUV422_GEM), m_data(NULL), m_xsize(0), m_ysize(0),
! 		 m_mutex(NULL), m_packet0(-1), m_dropped(0), m_pdpdata(NULL)
  {
+   
    // csMess allows us to select what colorspace to convert
    //  the YV12 pixels into while handing it over to GEM
***************
*** 65,76 ****
  	post("pdp2gem:  needs to know what colorspace to import to:  YUV, RGB, RGBA, or Gray");
    }
-   
-   m_data = NULL;
-   m_packet0 = -1;
-   m_xsize = 0;
-   m_ysize = 0;
-   m_dropped = 0;
-   m_pdpdata = NULL;
-   m_mutex = NULL;
  
    m_mutex = (pthread_mutex_t*) malloc(sizeof(pthread_mutex_t));
--- 67,70 ----
***************
*** 127,131 ****
    m_pixBlock.image.data = m_data;
  
!   post("pdp2gem : created buffer %dx%d", m_xsize, m_ysize );
  }
  
--- 121,125 ----
    m_pixBlock.image.data = m_data;
  
!   post("pdp2gem : created buffer %d x %d", m_xsize, m_ysize );
  }
  





More information about the Pd-cvs mailing list