Пример #1
0
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();	
	}
}
Пример #2
0
bool ofxPS3::isFrameNew()
{
	return PS3EyeMulticamGetFrame(pBuffer);
}