cloned from git://git.code.sf.net/p/opencamera/code