//////////////////////////////////////////////////////// // // GEM - Graphics Environment for Multimedia // // zmoelnig@iem.kug.ac.at // // Implementation file // // Copyright (c) 1997-1999 Mark Danks. // Copyright (c) Günther Geiger. // Copyright (c) 2001-2011 IOhannes m zmölnig. forum::für::umläute. IEM. zmoelnig@iem.at // For information on usage and redistribution, and for a DISCLAIMER OF ALL // WARRANTIES, see the file, "GEM.LICENSE.TERMS" in this distribution. // ///////////////////////////////////////////////////////// #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include "filmTEST.h" #include "plugins/PluginFactory.h" #include "Gem/RTE.h" #include "Gem/Properties.h" using namespace gem::plugins; REGISTER_FILMFACTORY("test", filmTEST); ///////////////////////////////////////////////////////// // // filmTEST // ///////////////////////////////////////////////////////// // Constructor // ///////////////////////////////////////////////////////// filmTEST :: filmTEST(void) { m_image.image.setCsizeByFormat(GL_RGBA); m_image.image.xsize=320; m_image.image.ysize=240; m_image.image.reallocate(); } ///////////////////////////////////////////////////////// // really open the file ! (OS dependent) // ///////////////////////////////////////////////////////// bool filmTEST :: open(const std::string filename, const gem::Properties&wantProps) { m_numFrames=100; m_fps=20; changeImage(0,0); return true; } void filmTEST::close(void) {} bool filmTEST::isThreadable(void) {return true;} void filmTEST::setProperties(gem::Properties&props) { } void filmTEST::getProperties(gem::Properties&props) { std::vector keys=props.keys(); unsigned int i=0; for(i=0; i0) { *data++=value; value++; } m_image.newimage=true; return film::SUCCESS; } bool filmTEST::enumProperties(gem::Properties&readprops, gem::Properties&writeprops) { readprops.clear(); writeprops.clear(); double d=0; readprops.set("width", d); readprops.set("height", d); readprops.set("fps", d); readprops.set("frames", d); return true; }