Lines Matching refs:deviceID
459 …static HRESULT CreateInstance(ImageGrabber **ppIG, unsigned int deviceID, bool synchronous = false…
467 ImageGrabber(unsigned int deviceID, bool synchronous);
482 …tance(ImageGrabberThread **ppIGT, IMFMediaSource *pSource, unsigned int deviceID, bool synchroniou…
490 ImageGrabberThread(IMFMediaSource *pSource, unsigned int deviceID, bool synchronious);
675 void closeDevice(int deviceID);
677 void setEmergencyStopEvent(int deviceID, void *userData, void(*func)(int, void *));
681 CamParametrs getParametrs(int deviceID);
683 void setParametrs(int deviceID, CamParametrs parametrs);
687 unsigned int getCountFormats(int deviceID) const;
689 unsigned int getWidth(int deviceID) const;
691 unsigned int getHeight(int deviceID) const;
693 unsigned int getFrameRate(int deviceID) const;
695 wchar_t *getNameVideoDevice(int deviceID);
697 IMFMediaSource *getMediaSource(int deviceID);
699 MediaType getFormat(int deviceID, int unsigned id);
703 bool isDeviceSetup(int deviceID);
705 bool isDeviceMediaSource(int deviceID);
707 bool isDeviceRawDataSource(int deviceID);
713 bool setupDevice(int deviceID, unsigned int id = 0);
715 … bool setupDevice(int deviceID, unsigned int w, unsigned int h, unsigned int idealFramerate = 30);
717 bool isFrameNew(int deviceID);
719 void waitForDevice(int deviceID);
722 …bool getPixels(int deviceID, unsigned char * pixels, bool flipRedAndBlue = false, bool flipImage =…
1211 ImageGrabber::ImageGrabber(unsigned int deviceID, bool synchronous): in ImageGrabber() argument
1213 ig_DeviceID(deviceID), in ImageGrabber()
1629 HRESULT ImageGrabber::CreateInstance(ImageGrabber **ppIG, unsigned int deviceID, bool synchronious) in CreateInstance() argument
1631 *ppIG = new (std::nothrow) ImageGrabber(deviceID, synchronious); in CreateInstance()
1636 DebugPrintOut(L"IMAGEGRABBER VIDEODEVICE %i: Creating instance of ImageGrabber\n", deviceID); in CreateInstance()
1774 …tance(ImageGrabberThread **ppIGT, IMFMediaSource *pSource, unsigned int deviceID, bool synchroniou… in CreateInstance() argument
1776 *ppIGT = new (std::nothrow) ImageGrabberThread(pSource, deviceID, synchronious); in CreateInstance()
1779 DebugPrintOut(L"IMAGEGRABBERTHREAD VIDEODEVICE %i: Memory cannot be allocated\n", deviceID); in CreateInstance()
1783 …(L"IMAGEGRABBERTHREAD VIDEODEVICE %i: Creating of the instance of ImageGrabberThread\n", deviceID); in CreateInstance()
1787 ImageGrabberThread::ImageGrabberThread(IMFMediaSource *pSource, unsigned int deviceID, bool synchro… in ImageGrabberThread() argument
1792 HRESULT hr = ImageGrabber::CreateInstance(&igt_pImageGrabber, deviceID, synchronious); in ImageGrabberThread()
1793 igt_DeviceID = deviceID; in ImageGrabberThread()
1799 …%i: There is a problem with initialization of the instance of the ImageGrabber class\n", deviceID); in ImageGrabberThread()
1803 …GEGRABBERTHREAD VIDEODEVICE %i: Initialization of instance of the ImageGrabber class\n", deviceID); in ImageGrabberThread()
1808 …EVICE %i: There is a problem with creation of the instance of the ImageGrabber class\n", deviceID); in ImageGrabberThread()
3012 IMFMediaSource *videoInput::getMediaSource(int deviceID) in getMediaSource() argument
3016 videoDevice * VD = videoDevices::getInstance().getDevice(deviceID); in getMediaSource()
3021 … DebugPrintOut(L"VideoDevice %i: There is not any suitable IMFMediaSource interface\n", deviceID); in getMediaSource()
3032 bool videoInput::setupDevice(int deviceID, unsigned int id) in setupDevice() argument
3034 if (deviceID < 0 ) in setupDevice()
3036 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in setupDevice()
3042 videoDevice * VD = VDS->getDevice(deviceID); in setupDevice()
3047 DebugPrintOut(L"VIDEODEVICE %i: This device cannot be started\n", deviceID); in setupDevice()
3058 bool videoInput::setupDevice(int deviceID, unsigned int w, unsigned int h, unsigned int idealFramer… in setupDevice() argument
3060 if (deviceID < 0 ) in setupDevice()
3062 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in setupDevice()
3068 videoDevice * VD = VDS->getDevice(deviceID); in setupDevice()
3073 DebugPrintOut(L"VIDEODEVICE %i: this device cannot be started\n", deviceID); in setupDevice()
3079 DebugPrintOut(L"VIDEODEVICE(s): There is not any suitable video device\n", deviceID); in setupDevice()
3084 MediaType videoInput::getFormat(int deviceID, unsigned int id) in getFormat() argument
3086 if (deviceID < 0) in getFormat()
3088 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getFormat()
3094 videoDevice * VD = VDS->getDevice(deviceID); in getFormat()
3105 bool videoInput::isDeviceSetup(int deviceID) in isDeviceSetup() argument
3107 if (deviceID < 0) in isDeviceSetup()
3109 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in isDeviceSetup()
3115 videoDevice * VD = VDS->getDevice(deviceID); in isDeviceSetup()
3126 bool videoInput::isDeviceMediaSource(int deviceID) in isDeviceMediaSource() argument
3128 if (deviceID < 0) in isDeviceMediaSource()
3130 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in isDeviceMediaSource()
3136 videoDevice * VD = VDS->getDevice(deviceID); in isDeviceMediaSource()
3147 bool videoInput::isDeviceRawDataSource(int deviceID) in isDeviceRawDataSource() argument
3149 if (deviceID < 0) in isDeviceRawDataSource()
3151 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in isDeviceRawDataSource()
3157 videoDevice * VD = VDS->getDevice(deviceID); in isDeviceRawDataSource()
3171 bool videoInput::isFrameNew(int deviceID) in isFrameNew() argument
3173 if (deviceID < 0) in isFrameNew()
3175 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in isFrameNew()
3180 if(!isDeviceSetup(deviceID)) in isFrameNew()
3182 if(isDeviceMediaSource(deviceID)) in isFrameNew()
3186 videoDevice * VD = VDS->getDevice(deviceID); in isFrameNew()
3200 void videoInput::waitForDevice(int deviceID) in waitForDevice() argument
3202 if (deviceID < 0) in waitForDevice()
3204 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in waitForDevice()
3209 if(!isDeviceSetup(deviceID)) in waitForDevice()
3211 if(isDeviceMediaSource(deviceID)) in waitForDevice()
3215 videoDevice * VD = VDS->getDevice(deviceID); in waitForDevice()
3229 unsigned int videoInput::getCountFormats(int deviceID) const in getCountFormats()
3231 if (deviceID < 0) in getCountFormats()
3233 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getCountFormats()
3239 videoDevice * VD = VDS->getDevice(deviceID); in getCountFormats()
3257 void videoInput::setParametrs(int deviceID, CamParametrs parametrs) in setParametrs() argument
3259 if (deviceID < 0) in setParametrs()
3261 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in setParametrs()
3267 videoDevice *VD = VDS->getDevice(deviceID); in setParametrs()
3277 CamParametrs videoInput::getParametrs(int deviceID) in getParametrs() argument
3280 if (deviceID < 0) in getParametrs()
3282 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getParametrs()
3288 videoDevice *VD = VDS->getDevice(deviceID); in getParametrs()
3299 void videoInput::closeDevice(int deviceID) in closeDevice() argument
3301 if (deviceID < 0) in closeDevice()
3303 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in closeDevice()
3309 videoDevice *VD = VDS->getDevice(deviceID); in closeDevice()
3319 unsigned int videoInput::getWidth(int deviceID) const in getWidth()
3321 if (deviceID < 0) in getWidth()
3323 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getWidth()
3329 videoDevice * VD = VDS->getDevice(deviceID); in getWidth()
3340 unsigned int videoInput::getHeight(int deviceID) const in getHeight()
3342 if (deviceID < 0) in getHeight()
3344 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getHeight()
3350 videoDevice * VD = VDS->getDevice(deviceID); in getHeight()
3361 unsigned int videoInput::getFrameRate(int deviceID) const in getFrameRate()
3363 if (deviceID < 0) in getFrameRate()
3365 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getFrameRate()
3370 videoDevice * VD = videoDevices::getInstance().getDevice(deviceID); in getFrameRate()
3381 wchar_t *videoInput::getNameVideoDevice(int deviceID) in getNameVideoDevice() argument
3383 if (deviceID < 0) in getNameVideoDevice()
3385 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getNameVideoDevice()
3391 videoDevice * VD = VDS->getDevice(deviceID); in getNameVideoDevice()
3446 void videoInput::setEmergencyStopEvent(int deviceID, void *userData, void(*func)(int, void *)) in setEmergencyStopEvent() argument
3448 if (deviceID < 0) in setEmergencyStopEvent()
3450 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in setEmergencyStopEvent()
3458 videoDevice * VD = VDS->getDevice(deviceID); in setEmergencyStopEvent()
3469 bool videoInput::getPixels(int deviceID, unsigned char * dstBuffer, bool flipRedAndBlue, bool flipI… in getPixels() argument
3472 if (deviceID < 0) in getPixels()
3474 DebugPrintOut(L"VIDEODEVICE %i: Invalid device ID\n", deviceID); in getPixels()
3479 bool isRaw = isDeviceRawDataSource(deviceID); in getPixels()
3482 videoDevice *VD = videoDevices::getInstance().getDevice(deviceID); in getPixels()
3502 … DebugPrintOut(L"ERROR: GetPixels() - Unable to grab frame for device %i\n", deviceID); in getPixels()
3507 DebugPrintOut(L"ERROR: GetPixels() - Not raw data source device %i\n", deviceID); in getPixels()