This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> // defines NULL | |
template <class T> | |
class Singleton{ | |
public: | |
static T* Instance() { | |
if(!m_pInstance) m_pInstance = new T; | |
assert(m_pInstance != NULL); | |
return m_pInstance; | |
} | |
protected: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Script to make multi frame movies. | |
# how to export to frames: | |
# ffmpeg -i yourmovie.avi -sameq ../Outputdir/frame%4d.jpg | |
# or use -f image2 as export option. | |
# names the frames as frame0001.jpg, frame0002.jpg, etc. | |
# for long movies use %5d.jpg | |
#choose four prefixes | |
DA="gow"; |