aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2008-05-27 21:22:50 +0000
committerN.N. <sevyves@users.sourceforge.net>2008-05-27 21:22:50 +0000
commitbd9c26420cba7589d7e37d593e17690995511334 (patch)
treea3548e33428a7085d198ae6c94c00b94b373fca5
parent0c8d66505969be612d767da8abc81e86a21c57cf (diff)
tried to fix rendering issues
svn path=/trunk/externals/gem2pdp/; revision=9930
-rw-r--r--CHANGES.LOG2
-rw-r--r--configure.ac2
-rw-r--r--gem2pdp-help.pd84
-rw-r--r--gem2pdp.cpp10
4 files changed, 63 insertions, 35 deletions
diff --git a/CHANGES.LOG b/CHANGES.LOG
index bbb464b..f1fd978 100644
--- a/CHANGES.LOG
+++ b/CHANGES.LOG
@@ -1,3 +1,5 @@
+0.7
+ adapted to gem 0.91 by iohannes + rendering problems
0.6
added colorspace message, now we can choose what to decode the YV12 into:
YUV, RGBA/BGRA, or RGB/BGR
diff --git a/configure.ac b/configure.ac
index 42f021a..2358a67 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT
-GEM2PDP_VERSION=0.6
+GEM2PDP_VERSION=0.7
if test -d /usr/local/pd;
then
diff --git a/gem2pdp-help.pd b/gem2pdp-help.pd
index aea42fd..15e624d 100644
--- a/gem2pdp-help.pd
+++ b/gem2pdp-help.pd
@@ -1,17 +1,15 @@
-#N canvas 179 54 825 504 12;
+#N canvas 193 58 909 767 12;
#X obj 38 229 gemwin;
#X msg 70 12 create;
#X obj 526 46 gemhead;
#X msg 76 39 destroy;
#X msg 15 88 1;
#X msg 14 113 0;
-#X floatatom 634 118 0 0 0;
+#X floatatom 612 120 0 0 0 0 - - -;
#X obj 526 106 color;
#X msg 628 51 1 1 1;
#X obj 526 157 rotateXYZ;
-#X obj 228 166 gemhead;
-#X obj 228 188 world_light;
-#N canvas 203 -12 600 400 init 0;
+#N canvas 203 49 600 400 init 0;
#X obj 73 30 loadbang;
#X obj 73 53 t b b;
#X msg 113 77 reset;
@@ -40,10 +38,8 @@
#X obj 239 336 pdp_spigot;
#X obj 355 327 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
-#X obj 239 390 pdp_glx;
#X msg 126 360 dim 320 240;
#X obj 43 359 loadbang;
-#X obj 526 199 teapot;
#X obj 674 157 metro 10;
#X obj 713 185 + 1;
#X obj 673 184 f;
@@ -55,6 +51,22 @@
#X text 352 281 Convert to PDP frames;
#X msg 84 99 dimen 320 240;
#X obj 84 73 loadbang;
+#X obj 543 362 pdp_rec~;
+#X msg 587 318 open /tmp/output.mov;
+#X msg 643 356 start;
+#X msg 655 386 stop;
+#X floatatom 543 395 5 0 0 0 - - -;
+#X msg 562 287 compressor divx;
+#X msg 100 185 buffer 1;
+#X msg 102 217 buffer 2;
+#X msg 406 230 bang;
+#X msg 527 12 bang;
+#X obj 526 231 pix_write;
+#X obj 239 390 pdp_xv;
+#X obj 526 194 cube;
+#X obj 292 111 world_light;
+#X obj 292 82 gemhead;
+#X msg 378 192 file /tmp/gem gif;
#X connect 1 0 0 0;
#X connect 2 0 7 0;
#X connect 3 0 0 0;
@@ -62,28 +74,42 @@
#X connect 5 0 0 0;
#X connect 6 0 9 1;
#X connect 6 0 9 2;
+#X connect 6 0 45 0;
#X connect 7 0 9 0;
#X connect 8 0 7 1;
-#X connect 9 0 29 0;
-#X connect 10 0 11 0;
-#X connect 12 0 0 0;
-#X connect 13 0 7 1;
-#X connect 20 1 24 0;
-#X connect 21 0 23 0;
-#X connect 22 0 23 0;
-#X connect 23 0 20 0;
-#X connect 24 0 26 0;
-#X connect 24 1 35 0;
-#X connect 25 0 24 1;
-#X connect 27 0 26 0;
+#X connect 9 0 48 0;
+#X connect 10 0 0 0;
+#X connect 11 0 7 1;
+#X connect 18 1 22 0;
+#X connect 18 1 36 0;
+#X connect 19 0 21 0;
+#X connect 20 0 21 0;
+#X connect 21 0 18 0;
+#X connect 22 0 47 0;
+#X connect 22 1 31 0;
+#X connect 23 0 22 1;
+#X connect 24 0 47 0;
+#X connect 25 0 24 0;
+#X connect 26 0 28 0;
+#X connect 27 0 28 1;
#X connect 28 0 27 0;
-#X connect 30 0 32 0;
-#X connect 31 0 32 1;
-#X connect 32 0 31 0;
-#X connect 32 0 6 0;
-#X connect 33 0 30 0;
-#X connect 34 0 33 0;
-#X connect 35 0 26 0;
-#X connect 36 0 35 1;
-#X connect 38 0 0 0;
-#X connect 39 0 38 0;
+#X connect 28 0 6 0;
+#X connect 29 0 26 0;
+#X connect 30 0 29 0;
+#X connect 31 0 47 0;
+#X connect 32 0 31 1;
+#X connect 34 0 0 0;
+#X connect 35 0 34 0;
+#X connect 36 0 40 0;
+#X connect 37 0 36 0;
+#X connect 38 0 36 0;
+#X connect 39 0 36 0;
+#X connect 41 0 36 0;
+#X connect 42 0 0 0;
+#X connect 43 0 0 0;
+#X connect 44 0 46 0;
+#X connect 45 0 2 0;
+#X connect 45 0 50 0;
+#X connect 48 0 46 0;
+#X connect 50 0 49 0;
+#X connect 51 0 46 0;
diff --git a/gem2pdp.cpp b/gem2pdp.cpp
index 72113d8..01a17a8 100644
--- a/gem2pdp.cpp
+++ b/gem2pdp.cpp
@@ -69,8 +69,8 @@ void gem2pdp :: bangMess()
GemMan::getDimen(&m_width, &m_height);
#endif
pbuffers = GemMan::m_buffer;
- GemMan::m_buffer = 1;
- GemMan::render(idontknowwhatitis);
+ // GemMan::m_buffer = 1;
+ // GemMan::render(idontknowwhatitis);
// post("gem2pdp : got dimensions : x=%d y=%d w=%d h=%d", m_x, m_y, m_width, m_height);
if (m_width <= 0 || m_height <= 0)
@@ -142,8 +142,8 @@ void gem2pdp :: bangMess()
pdp_packet_pass_if_valid(m_pdpoutlet, &m_packet0);
// restore buffer state
- GemMan::m_buffer = pbuffers;
- GemMan::render(idontknowwhatitis);
+ // GemMan::m_buffer = pbuffers;
+ // GemMan::render(idontknowwhatitis);
// post("gem2pdp : read image");
}
@@ -167,8 +167,8 @@ void gem2pdp :: bangMessCallback(void *data)
GetMyClass(data)->bangMess();
}
-// stubs just to make gem happy
void gem2pdp :: render(GemState *state)
{
+ GemMan::render(state);
return;
}