Platforms to show: All Mac Windows Linux Cross-Platform

Back to DirectShowBaseFilterMBS class.

DirectShowBaseFilterMBS.AMCameraControl as DirectShowAMCameraControlMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries camera control object.
Example
dim srcfilter as DirectShowBaseFilterMBS // your basefilter
dim value, flags as Integer
dim c as DirectShowAMCameraControlMBS = srcfilter.AMCameraControl
if c<>nil then

c.Get(c.kPropertyZoom, value, flags)
if c.Lasterror = 0 then
MsgBox "Zoom: "+str(value)
else
MsgBox "Zoom: "+c.LasterrorMessage
end if

c.Get(c.kPropertyFocus, value, flags)
if c.Lasterror = 0 then
MsgBox "Focus: "+str(value)
else
MsgBox "Focus: "+c.LasterrorMessage
end if

c.Get(c.kPropertyExposure, value, flags)
if c.Lasterror = 0 then
MsgBox "Exposure: "+str(value)
else
MsgBox "Exposure: "+c.LasterrorMessage
end if

end if

Returns object when this filter represents a device supporting this interface.
Else returns nil on any error.
Also sets lasterror property.

Some examples using this method:

DirectShowBaseFilterMBS.AMCrossbar as DirectShowAMCrossbarMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.5 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the IAMCrossbar interface for this filter.

Returns nil if no such interface exists.

Some examples using this method:

DirectShowBaseFilterMBS.AMVideoCompression as DirectShowAMVideoCompressionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries video compression settings for the filter.

Some examples using this method:

DirectShowBaseFilterMBS.AMVideoControl as DirectShowAMVideoControlMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 21.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the video controls for this filter.

Should work for capture filters.
Lasterror is set.

DirectShowBaseFilterMBS.AMVideoProcAmp as DirectShowAMVideoProcAmpMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries video properties object.
Example
dim srcfilter as DirectShowBaseFilterMBS // your basefilter
dim value, flags as Integer
dim v as DirectShowAMVideoProcAmpMBS = srcfilter.AMVideoProcAmp
if v<>nil then
v.Get(v.kPropertyHue, value, flags)
if v.Lasterror = 0 then
MsgBox "Hue: "+str(value)
else
MsgBox "Hue: "+v.LasterrorMessage
end if

v.Get(v.kPropertyBrightness, value, flags)
if v.Lasterror = 0 then
MsgBox "Brightness: "+str(value)
else
MsgBox "Brightness: "+v.LasterrorMessage
end if

end if

Returns object when this filter represents a device supporting this interface.
Else returns nil on any error.
Also sets lasterror property.

DirectShowBaseFilterMBS.ConfigAviMux as DirectShowConfigAviMuxMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the config avimux object.

Lasterorr is set.
Works only with filters which support this interface.

Some examples using this method:

DirectShowBaseFilterMBS.ConfigInterleaving as DirectShowConfigInterleavingMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Queries the config interleaving object.

Lasterorr is set.
Works only with filters which support this interface.

Some examples using this method:

DirectShowBaseFilterMBS.Constructor   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The private constructor.

DirectShowBaseFilterMBS.EnumPins as DirectShowEnumPinsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The EnumPins method enumerates the pins on this filter.
Example
dim filter as DirectShowBaseFilterMBS // your device filter

dim pn as DirectShowEnumPinsMBS = srcfilter.EnumPins

// loop over them and show names of pins
dim p as DirectShowPinMBS = pn.NextObject
while p <> nil
dim name as string = p.Name

MsgBox name

p = pn.NextObject
wend

Lasterror is set.

DirectShowBaseFilterMBS.FindPin(name as string) as DirectShowPinMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The FindPin method retrieves the pin with the specified identifier.

name: string that identifies the pin.

Returns the pin object.
Lasterror is set.

This method supports graph persistence. Use the DirectShowPinMBS.QueryId method to save a pin's state, and use this method to restore the state. The pin's identifier string is defined by the filter implementation. The identifier must be unique within the filter.

DirectShowBaseFilterMBS.Info as DirectShowFilterInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves information about the filter.

Lasterror is set.
Returns nil on error.

DirectShowBaseFilterMBS.ShowPropertyDialog(parent as DesktopWindow, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows properties dialog for the filter.

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

DirectShowBaseFilterMBS.ShowPropertyDialog(parent as window = nil, x as integer = 0, y as integer = 0, title as string = "")

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 19.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
Shows properties dialog for the filter.
Example
dim srcfilter as DirectShowBaseFilterMBS // your filter

srcfilter.ShowPropertyDialog
MsgBox "Result: "+Str(srcfilter.Lasterror)+": "+srcfilter.LasterrorMessage

Parent: the parent window for the dialog.
X/Y: The offset of the dialog relative to the parent window.
Title: optional title for the dialog.

Sets lasterror property.

See also:

DirectShowBaseFilterMBS.VendorInfo as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method DirectShow MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a string containing vendor information.

Lasterror is set.
This method is optional; filters are not required to support it.

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


The biggest plugin in space...