|
Problems with IAMCameraControl & IKsPropertySet
|
| Author |
Message |
zil
Junior Member

Posts: 5
Group: Registered
Joined: Mar 2010
Status:
Offline
|
Problems with IAMCameraControl & IKsPropertySet
Hi all,
I have a little problem with these interfaces that is: my system is Windows 7 (64 bit) that is why the GetRange methods doesn't work absolutely good when I try
pCameraControl->GetRange(CameraControl_Pan, &min, &max, &step,&def, &flags);
It writes correct min and max only and doesn't return S_OK.
As opposed to IAMCameraControl IKsPropertySet interface works without problems. But I can't receive min and max values by it.
And the question now: how can I force IAMCameraControl to work correctly in my system or how can I receive min and max values by IKsPropertySet???
Thankyou, Ivan
|
|
| 2010-03-27 12:56 |
|
 |
mrubli
Logitech
    
Posts: 1,027
Group: QuickCam Team
Joined: Dec 2006
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
What value does the failing function call return? Can you maybe post the relevant few lines of code?
Martin
|
|
| 2010-03-28 18:10 |
|
 |
zil
Junior Member

Posts: 5
Group: Registered
Joined: Mar 2010
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
The returned value is 0x80070490
My code:
// Get a pointer to the IAMCameraControl interface used to control the camera
hr = pCamera->QueryInterface(IID_IAMCameraControl, (void **)&pCameraControl);
if(hr != S_OK)
fwprintf(lfile,L"Error: Unable to access IAMCameraControl interface\n");
// Retrieve information about the pan, focus and tilt controls
hr = pCameraControl->GetRange(CameraControl_Pan, &panInfo.min, &panInfo.max, &panInfo.step, &panInfo.def, &panInfo.flags);
if(hr != S_OK)
fwprintf(lfile,L"Error: Unable to retrieve CameraControl_Pan property information\n");
fwprintf(lfile,L"%d\n",hr);
hr = pCameraControl->GetRange(CameraControl_Focus, &focusInfo.min, &focusInfo.max, &focusInfo.step, &focusInfo.def, &focusInfo.flags);
if(hr != S_OK)
fwprintf(lfile,L"Error: Unable to retrieve CameraControl_Focus property information\n");
fwprintf(lfile,L"%d\n",hr);
hr = pCameraControl->GetRange(CameraControl_Tilt, &tiltInfo.min, &tiltInfo.max, &tiltInfo.step, &tiltInfo.def, &tiltInfo.flags);
if(hr != S_OK)
fwprintf(lfile,L"Error: Unable to retrieve CameraControl_Tilt property information\n");
fwprintf(lfile,L"%d\n",hr);
|
|
| 2010-03-28 21:13 |
|
 |
mrubli
Logitech
    
Posts: 1,027
Group: QuickCam Team
Joined: Dec 2006
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
Please remember that the Pan/Tilt properties in the CameraControl property set only work for cameras that have actual mechanical pan/tilt. For other cameras you will get the 'Element not found' error. If you're looking to control digital pan/tilt/zoom, then the Logitech UVC Driver public property sets provides appropriate functions.
Martin
|
|
| 2010-03-31 09:05 |
|
 |
zil
Junior Member

Posts: 5
Group: Registered
Joined: Mar 2010
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
Of course I have this camera, it's Sphere Af. There is this problem in Windows 7 only: in Xp and Vista I don't have it. And as I've written before, in Windows 7 the GetRange method returns min and max values, it doesn't return flags and return the error too.
It's simply interesting to me why in Win7 there are these problems and in others win there are no
|
|
| 2010-03-31 11:35 |
|
 |
mrubli
Logitech
    
Posts: 1,027
Group: QuickCam Team
Joined: Dec 2006
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
What version of the Logitech UVC driver are you using? (You can check that in the device manager or in the filter property page.) I remember some older drivers had this problem on Windows 7, but that was fixed around the time of the Windows 7 release.
Martin
This post was last modified: 2010-04-03 08:21 by mrubli.
|
|
| 2010-03-31 18:31 |
|
 |
zil
Junior Member

Posts: 5
Group: Registered
Joined: Mar 2010
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
My driver version is 12.0.1278.0
|
|
| 2010-04-01 08:17 |
|
 |
mrubli
Logitech
    
Posts: 1,027
Group: QuickCam Team
Joined: Dec 2006
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
Please download the latest version of Logitech Webcam Software, 1.1. It contains a newer driver that should fix the issue.
Martin
|
|
| 2010-04-01 08:23 |
|
 |
zil
Junior Member

Posts: 5
Group: Registered
Joined: Mar 2010
Status:
Offline
|
RE: Problems with IAMCameraControl & IKsPropertySet
Oh, last software solved my problem.
Thanks for consultation
|
|
| 2010-04-01 09:21 |
|
 |