int is_xwindow() { return type==bmXShmImage || type==bmXImage; }
int is_shared() { return type==bmXvShmImage || type==bmXShmImage; }
int is_unshared() { return type==bmXvImage || type==bmXImage; }
+ int is_zombie() { return cur_bfr()->is_zombie(); }
int set_bg_color(int color);
int invert();
-//c++ -g -I../guicast testwindow.C ../guicast/x86_64/libguicast.a \
+//c++ -g -I../guicast test4.C ../guicast/x86_64/libguicast.a \
// -DHAVE_GL -DHAVE_XFT -I/usr/include/freetype2 -lGL -lX11 -lXext \
// -lXinerama -lXv -lpng -lfontconfig -lfreetype -lXft -pthread
struct stat st; fstat(fd,&st);
unsigned char *dat = new unsigned char[st.st_size];
read(fd, dat, st.st_size);
- VFrame ifrm(dat, st.st_size);
+ VFramePng ifrm(dat, st.st_size);
delete [] dat;
close(fd);
int w = ifrm.get_w(), h = ifrm.get_h();
cfrm.transfer_from(&bfrm, 0);
printf("xfer_%s_to_%s\n",cmdl[fr_cmdl],cmdl[to_cmdl]);
test_window.show_text(50,50, "xfer_%s_to_%s",cmdl[fr_cmdl],cmdl[to_cmdl]);
- write_pgm(cfrm.get_data(), w,h, "/tmp/test/xfer_%s_to_%s.pgm",
- cmdl[fr_cmdl],cmdl[to_cmdl]);
- //usleep(100000);
+// write_ppm(cfrm.get_data(), w,h, "/tmp/test/xfer_%s_to_%s.pgm",
+// cmdl[fr_cmdl],cmdl[to_cmdl]);
+// usleep(100000);
}
}
test_window.close_window();