mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 21:23:31 +08:00
Merge pull request #9134 from mshabunin:fix-static-6
This commit is contained in:
commit
d656d39ba2
@ -116,6 +116,7 @@ static void* WinGetProcAddress(const char* name)
|
|||||||
else if (GetProcAddress(handle, OPENCL_FUNC_TO_CHECK_1_1) == NULL)
|
else if (GetProcAddress(handle, OPENCL_FUNC_TO_CHECK_1_1) == NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, ERROR_MSG_INVALID_VERSION);
|
fprintf(stderr, ERROR_MSG_INVALID_VERSION);
|
||||||
|
FreeLibrary(handle);
|
||||||
handle = NULL;
|
handle = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -608,9 +608,9 @@ class videoInput{
|
|||||||
GUID CAPTURE_MODE;
|
GUID CAPTURE_MODE;
|
||||||
|
|
||||||
//Extra video subtypes
|
//Extra video subtypes
|
||||||
GUID MEDIASUBTYPE_Y800;
|
// GUID MEDIASUBTYPE_Y800;
|
||||||
GUID MEDIASUBTYPE_Y8;
|
// GUID MEDIASUBTYPE_Y8;
|
||||||
GUID MEDIASUBTYPE_GREY;
|
// GUID MEDIASUBTYPE_GREY;
|
||||||
|
|
||||||
videoDevice * VDList[VI_MAX_CAMERAS];
|
videoDevice * VDList[VI_MAX_CAMERAS];
|
||||||
GUID mediaSubtypes[VI_NUM_TYPES];
|
GUID mediaSubtypes[VI_NUM_TYPES];
|
||||||
@ -665,6 +665,9 @@ public:
|
|||||||
latestBufferLength = 0;
|
latestBufferLength = 0;
|
||||||
|
|
||||||
hEvent = CreateEvent(NULL, true, false, NULL);
|
hEvent = CreateEvent(NULL, true, false, NULL);
|
||||||
|
pixels = 0;
|
||||||
|
ptrBuffer = 0;
|
||||||
|
numBytes = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -798,6 +801,10 @@ videoDevice::videoDevice(){
|
|||||||
autoReconnect = false;
|
autoReconnect = false;
|
||||||
requestedFrameTime = -1;
|
requestedFrameTime = -1;
|
||||||
|
|
||||||
|
pBuffer = 0;
|
||||||
|
pixels = 0;
|
||||||
|
formatType = 0;
|
||||||
|
|
||||||
memset(wDeviceName, 0, sizeof(WCHAR) * 255);
|
memset(wDeviceName, 0, sizeof(WCHAR) * 255);
|
||||||
memset(nDeviceName, 0, sizeof(char) * 255);
|
memset(nDeviceName, 0, sizeof(char) * 255);
|
||||||
|
|
||||||
@ -1060,6 +1067,9 @@ videoInput::videoInput(){
|
|||||||
callbackSetCount = 0;
|
callbackSetCount = 0;
|
||||||
bCallback = true;
|
bCallback = true;
|
||||||
|
|
||||||
|
connection = PhysConn_Video_Composite;
|
||||||
|
CAPTURE_MODE = PIN_CATEGORY_PREVIEW;
|
||||||
|
|
||||||
//setup a max no of device objects
|
//setup a max no of device objects
|
||||||
for(int i=0; i<VI_MAX_CAMERAS; i++) VDList[i] = new videoDevice();
|
for(int i=0; i<VI_MAX_CAMERAS; i++) VDList[i] = new videoDevice();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user