Lines Matching refs:deviceID
491 static char * getDeviceName(int deviceID);
498 void setIdealFramerate(int deviceID, int idealFramerate);
506 bool setupDevice(int deviceID);
507 bool setupDevice(int deviceID, int w, int h);
508 bool setupDeviceFourcc(int deviceID, int w, int h,int fourcc);
512 bool setupDevice(int deviceID, int connection);
513 bool setupDevice(int deviceID, int w, int h, int connection);
525 bool isFrameNew(int deviceID);
527 bool isDeviceSetup(int deviceID) const;
530 unsigned char * getPixels(int deviceID, bool flipRedAndBlue = true, bool flipImage = false);
537 void showSettingsWindow(int deviceID);
541 …bool setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags = 0, bool useDefau…
542 bool setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags = 0);
543 …bool getVideoSettingFilter(int deviceID, long Property, long &min, long &max, long &SteppingDelta,…
545 …bool setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags = 0, bool useDefau…
546 bool setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags = 0);
547 …bool getVideoSettingCamera(int deviceID, long Property, long &min, long &max, long &SteppingDelta,…
552 int getWidth(int deviceID) const;
553 int getHeight(int deviceID) const;
554 int getSize(int deviceID) const;
555 int getFourcc(int deviceID) const;
556 double getFPS(int deviceID) const;
559 void stopDevice(int deviceID);
562 bool restartDevice(int deviceID);
572 void setPhyCon(int deviceID, int conn);
573 void setAttemptCaptureSize(int deviceID, int w, int h,GUID mediaType=MEDIASUBTYPE_RGB24);
574 bool setup(int deviceID);
576 int start(int deviceID, videoDevice * VD);
585 …HRESULT getDevice(IBaseFilter **pSrcFilter, int deviceID, WCHAR * wDeviceName, char * nDeviceName);
1311 char * videoInput::getDeviceName(int deviceID){
1312 if( deviceID >= VI_MAX_CAMERAS ){
1315 return deviceNames[deviceID];
1660 bool videoInput::getVideoSettingFilter(int deviceID, long Property, long &min, long &max, long &Ste…
1661 if( !isDeviceSetup(deviceID) )return false;
1666 videoDevice * VD = VDList[deviceID];
1668 hr = getDevice(&VD->pVideoInputFilter, deviceID, VD->wDeviceName, VD->nDeviceName);
1703 bool videoInput::setVideoSettingFilterPct(int deviceID, long Property, float pctValue, long Flags){
1704 if( !isDeviceSetup(deviceID) )return false;
1708 …if( !getVideoSettingFilter(deviceID, Property, min, max, stepAmnt, currentValue, flags, defaultVal…
1734 return setVideoSettingFilter(deviceID, Property, rasterValue, Flags, false);
1739 bool videoInput::setVideoSettingFilter(int deviceID, long Property, long lValue, long Flags, bool u…
1740 if( !isDeviceSetup(deviceID) )return false;
1748 videoDevice * VD = VDList[deviceID];
1750 hr = getDevice(&VD->pVideoInputFilter, deviceID, VD->wDeviceName, VD->nDeviceName);
1793 bool videoInput::setVideoSettingCameraPct(int deviceID, long Property, float pctValue, long Flags){
1794 if( !isDeviceSetup(deviceID) )return false;
1798 …if( !getVideoSettingCamera(deviceID, Property, min, max, stepAmnt, currentValue, flags, defaultVal…
1824 return setVideoSettingCamera(deviceID, Property, rasterValue, Flags, false);
1828 bool videoInput::setVideoSettingCamera(int deviceID, long Property, long lValue, long Flags, bool u…
1830 if(isDeviceSetup(deviceID))
1833 …hr = getDevice(&VDList[deviceID]->pVideoInputFilter, deviceID, VDList[deviceID]->wDeviceName, VDLi…
1839 …hr = VDList[deviceID]->pVideoInputFilter->QueryInterface(IID_IAMCameraControl, (void**)&pIAMCamera…
1842 if(VDList[deviceID]->pVideoInputFilter)VDList[deviceID]->pVideoInputFilter->Release();
1843 if(VDList[deviceID]->pVideoInputFilter)VDList[deviceID]->pVideoInputFilter = NULL;
1862 if(VDList[deviceID]->pVideoInputFilter)VDList[deviceID]->pVideoInputFilter->Release();
1863 if(VDList[deviceID]->pVideoInputFilter)VDList[deviceID]->pVideoInputFilter = NULL;
1872 bool videoInput::getVideoSettingCamera(int deviceID, long Property, long &min, long &max, long &Ste…
1873 if( !isDeviceSetup(deviceID) )return false;
1878 videoDevice * VD = VDList[deviceID];
1880 hr = getDevice(&VD->pVideoInputFilter, deviceID, VD->wDeviceName, VD->nDeviceName);
2478 int videoInput::start(int deviceID, videoDevice *VD){
2481 VD->myID = deviceID;
2486 DebugPrintOut("SETUP: Setting up device %i\n",deviceID);
2503 stopDevice(deviceID);
2512 stopDevice(deviceID);
2523 stopDevice(deviceID);
2530 hr = getDevice(&VD->pVideoInputFilter, deviceID, VD->wDeviceName, VD->nDeviceName);
2537 stopDevice(deviceID);
2566 stopDevice(deviceID);
2574 stopDevice(deviceID);
2651 stopDevice(deviceID);
2658 stopDevice(deviceID);
2665 stopDevice(deviceID);
2684 stopDevice(deviceID);
2711 stopDevice(deviceID);
2721 stopDevice(deviceID);
2728 stopDevice(deviceID);
2738 stopDevice(deviceID);
2761 stopDevice(deviceID);