ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 DShowParams.CameraControl_Focus
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tbilalis

Greece
1 Posts

Posted - Aug 29 2016 :  17:17:19  Show Profile  Reply
Dear ImageEn,

I need to manually focus a web camera that supports auto focus. I can do it from within the video dialog -> camera control -> set focus or
(ImageEnView1.IO.DShowParams.ShowPropertyPages(iepVideoInput, ietFilter,false)),
but I cannot do it programmatically. There is no focus setter in DShowParams as in a translated MS directshow file:

--Get/Set on the IAMCameraControl interface

code snippet from DShow.pas at http://www.micrel.cz/Dx/
(translation by Hiroyuki Hori
Mail: hori@ingjapan.ne.jp
Homepage: http://www.ingjapan.ne.jp/hori/index-e.html)

...
  TCameraControlProperty = (
    CameraControl_Pan,
    CameraControl_Tilt,
    CameraControl_Roll,
    CameraControl_Zoom,
    CameraControl_Exposure,
    CameraControl_Iris,
    CameraControl_Focus
  );

  TCameraControlFlags = (
    CameraControl_Flags_Manual,
    CameraControl_Flags_Auto
  );

  IAMCameraControl = interface(IUnknown)
    ['{C6E13370-30AC-11d0-A18C-00A0C9118956}']
    function GetRange(Property_: TCameraControlProperty;
        var pMin, pMax, pSteppingDelta, pDefault, pCapsFlags: Longint): HResult; stdcall;
    function Set_(Property_: TCameraControlProperty; lValue: Longint;
        Flags: TCameraControlFlags): HResult; stdcall;
    function Get(Property_: TCameraControlProperty; var lValue: Longint;
        var Flags: TCameraControlFlags): HResult; stdcall;
  end;
...


What should I do to set focus manually?

Thanks

tbilalis

xequte

38615 Posts

Posted - Aug 29 2016 :  19:21:53  Show Profile  Reply
Hi

I'm afraid there is no support for this in ImageEn at this time.

You might want to request it on our user voice page.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: