DirectShowAMCameraControlMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

DirectShowAMCameraControlMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
This interface provides local or remote control over a camera.
Example
dim srcFilter as DirectShowBaseFilterMBS // your device
dim a as DirectShowAMCameraControlMBS = srcFilter.AMCameraControl

// query range for zoom
dim ZoomMin as integer
dim ZoomMax as integer
dim ZoomStep as integer
dim ZoomDefault as Integer
dim ZoomFlags as integer
a.GetRange(a.kPropertyZoom, ZoomMin, ZoomMax, ZoomStep, ZoomDefault, ZoomFlags)
dim ErrorCode as integer = a.Lasterror
dim ErrorText as string = a.LasterrorMessage

Break // check in debugger

// set a minimum value
a.Set(a.kPropertyZoom, (ZoomMax-ZoomMin)/2, 0)
ErrorCode = a.Lasterror
ErrorText = a.LasterrorMessage

Break // check in debugger

Applications can use this interface to control camera settings such as zoom, pan, aperture adjustment, or shutter speed. To obtain this interface, query the filter that controls the camera.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Flags

Constant Value Description
kFlagsAuto 1 The setting is controlled automatically.
kFlagsManual 2 The setting is controlled manually.

Properties

Constant Value Description
kPropertyExposure 4 Identifies the exposure setting, in log base 2 seconds. In other words, for values less than zero, the exposure time is 1/2n seconds, and for values zero or above, the exposure time is 2n seconds. For example: more
kPropertyFocus 6 Specifies the camera's focus setting, as the distance to the optimally focused target, in millimeters. The range and default value are specific to the device.
kPropertyIris 5 Specifies the camera's iris setting, in units of fstop * 10.
kPropertyPan 0 Identifies the camera's pan setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values are clockwise from the origin (the camera rotates clockwise when viewed from above), and negative values are counterclockwise from the origin.
kPropertyRoll 2 Identifies the camera's roll setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values cause a clockwise rotation of the camera along the image-viewing axis, and negative values cause a counterclockwise rotation of the camera.
kPropertyTilt 1 Identifies the camera's tilt setting, in degrees. Values range from –180 to +180, with the default set to zero. Positive values point the imaging plane up, and negative values point the imaging plane down.
kPropertyZoom 3 Identifies the camera's zoom setting, in millimeters. Values range from 10 to 600, and the default is specific to the device.

This class has no sub classes.

Some methods using this class:

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS Win Plugin.


DirectorySizeMBS   -   DirectShowAMCrossbarMBS


💬 Ask a question or report a problem