コード例 #1
0
ファイル: moPS3EyeModule.cpp プロジェクト: craut/Movid
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
ファイル: ofxPS3.cpp プロジェクト: jr-weber/BigBlobby
bool ofxPS3::isFrameNew()
{
	return PS3EyeMulticamGetFrame(pBuffer);
}