void moPS3EyeModule::update() { if (frame != NULL) { // push a new image on the stream LOGM(MO_TRACE, "push a new image on the stream"); if (PS3EyeMulticamGetFrame(pBuffer)) { // is frame new? this->setFromPixels(pBuffer, camWidth, camHeight); this->stream->push(frame); } this->notifyUpdate(); } }
bool ofxPS3::isFrameNew() { return PS3EyeMulticamGetFrame(pBuffer); }