예제 #1
0
CaptureRecording::DeviceRecording::DeviceRecording(PXCCapture::Device *d, PXCScheduler *s, PXCImage::ImageType t) { 
    device=d; scheduler=s; types=t; file=INVALID_HANDLE_VALUE; 
    QueryDevice(&dinfo); 
    InitializeCriticalSection(&cs);
}
예제 #2
0
Dynacoe::InputDevice * Dynacoe::X11InputManager::QueryDevice(DefaultDeviceSlots slot) {
    return QueryDevice((int)slot);
}
예제 #3
0
pxcI32 UtilCaptureFile::QueryPosition(void) { 
    pxcF32 frame=0;
    QueryDevice()->QueryProperty((PXCCapture::Device::Property)CapturePlayback::DevicePlayback::PLAYBACK_GET_FRAME, &frame);
    return (pxcI32)frame;
}
예제 #4
0
void UtilCaptureFile::SetPosition(pxcI32 frame) { 
    QueryDevice()->SetProperty((PXCCapture::Device::Property)CapturePlayback::DevicePlayback::PLAYBACK_SET_FRAME, (pxcF32)frame);
}
예제 #5
0
void UtilCaptureFile::SetRealtime(pxcBool realtime) { 
    QueryDevice()->SetProperty((PXCCapture::Device::Property)CapturePlayback::DevicePlayback::PLAYBACK_REALTIME, (pxcF32)realtime);
}
예제 #6
0
void UtilCaptureFile::SetPause(pxcBool pause) { 
    QueryDevice()->SetProperty((PXCCapture::Device::Property)CapturePlayback::DevicePlayback::PLAYBACK_PAUSE, (pxcF32)pause);
}
예제 #7
0
MBEG
#else
int main( int argc, char* argv[] )
#endif
{
	mUpnpControlPoint *ctrlPoint;
	int key;
	
	ctrlPoint = mupnp_controlpoint_new();
	mupnp_controlpoint_setssdplistener(ctrlPoint, SSDPNotifyListner);
	mupnp_controlpoint_seteventlistener(ctrlPoint, EventListener);
	if (mupnp_controlpoint_start(ctrlPoint) == false) {
		printf("Couldn't start this control point !!");
		exit(1);
	}
	
	PrintKeyMessage();

#if (!defined(WIN32) || defined(__CYGWIN__)) && !defined(TENGINE)
	kbinit();
#endif
	
	key = 0;
	do
	{
#if !defined(TENGINE)
		key = kbgetkey();
		key = toupper(key);
		switch (key) {
		case 'P':
			PrintControlPointDevice(ctrlPoint);
			break;
#if !defined(MUPNP_NOUSE_ACTIONCTRL)
		case 'C':
			ControlDeviceAlter(ctrlPoint, CMD_NO_ALTERATIONS);
			break;

		case 'O':
			ControlDeviceAlter(ctrlPoint, CMD_LOOP_ACTION_CALLS);
			break;
#endif
#if !defined(MUPNP_NOUSE_QUERYCTRL)
		case 'Q':
			QueryDevice(ctrlPoint);
			break;
#endif
#if !defined(MUPNP_NOUSE_SUBSCRIPTION)
		case 'S':
			SubscribeService(ctrlPoint);
			break;
		case 'U':
			UnsubscribeService(ctrlPoint);
			break;
#endif
                case 'M':
                        SetMXValue(ctrlPoint);
                        break;
		case 'R':
	          printf("M-Search upnp::rootdevice\n");
		  mupnp_controlpoint_search(ctrlPoint, MUPNP_ST_ROOT_DEVICE);
		  break;
		case 'H':
	          printf("M-Search ssdp:all\n");
		  mupnp_controlpoint_search(ctrlPoint, "ssdp:all");
		  break;
		case 'V':
	          printf("M-Search device type\n");
		  mupnp_controlpoint_search(ctrlPoint, "urn:schemas-upnp-org:device:clock:1");
		  break;
		case 'T':
	          printf("M-Search service type\n");
		  mupnp_controlpoint_search(ctrlPoint, "urn:schemas-upnp-org:service:timer:1");
		  break;
		case 'A':
		  {
			  int i;

			  printf("Doing all searches four times...\n");
			  
			  for (i=0; i<4; i++)
			  {
				  mupnp_controlpoint_search(ctrlPoint, MUPNP_ST_ROOT_DEVICE);
				  mupnp_controlpoint_search(ctrlPoint, "ssdp:all");
				  mupnp_controlpoint_search(ctrlPoint, "urn:schemas-upnp-org:device:clock:1");
				  mupnp_controlpoint_search(ctrlPoint, "urn:schemas-upnp-org:service:timer:1");
			  }
			  
			  printf("Done (doing all searches four times).\n");
		  }
		  break;
		case 'X':
			break;
		default:
			PrintKeyMessage();
		}
#else
		mupnp_wait(1000);
#endif
	} while( key != 'X');

#if (!defined(WIN32) || defined(__CYGWIN__)) && !defined(TENGINE)
	kbexit();
#endif
	
	mupnp_controlpoint_stop(ctrlPoint);
	mupnp_controlpoint_delete(ctrlPoint);
	
	return(0);
}