Home    MontiVision DirectShow SDK Documentation Prev Next
MontiVision Development Kit
Product Release Notes
What's new?
Installation
Overview
Components
The MontiVision Workbench
How to use the Workbench
How to insert an Filter
How to make a connction between two filter
How to change filter properties
How to get mediatypes of a pin or connection
How to delete a connection
How to delete a filter
How to find a filter
How to select a filter, pin or connection
How to make a video visible
How to preview a video stream
Workbench Menus and Commands
File menu commands
Edit menu commands
View menu commands
Graph menu commands
Extras menu commands
Help menu commands
Context menu commands
Status Bar
Toolbar
Sorting Filters
MontiVision DirectShow Filter
Common filter functions
MV Absolute Difference
MV Advanced Optical Flow
MV Affine Transformation
MV Alignment
MV Audio Test Source
MV Batch Image File Source
MV Background Subtraction
MV Bayer To Gray
MV Bayer To RGB
MV Bitmap Overlay
MV Blob Counter
MV Blob Finder
MV BlockRecording
MV Buffer Access
MV Camera Calibration
MV Camera Syncronisation
MV Camera Undistortion
MV Color Filter
MV Color Channel Mixer
MV Color Space Converter
MV Color To Gray
MV Color Twist
MV Constant Framerate
MV Convolution
MV Cooccurrence
MV Crop
MV Deinterlace
MV DeInterlace Temporal
MV Delay
MV Demo Source
MV Demultiplexer
MV DPS Renderer
MV DPS Source
MV Dyadic Arithmetic
MV Dyadic Logic
MV Fast Color Filter
MV Frame Access
MV Gauge
MV GDI Overlay
MV Gray To Color
MV Image File Source
MV Image Grabber
MV Image File Renderer
MV Integral
MV Inverse
MV I/O Bool Source
MV I/O Comparator
MV I/O Logic
MV I/O Not
MV I/O Renderer
MV I/O RS232
MV I/O RS232 Trigger Source
MV I/O Switch Source
MV I/O Textfile Renderer
MV I/O Textfile Source
MV I/O To String
MV IP Camera Source
MV Look Up Table
MV Mean
MV Mean Profile
MV Merge Frames
MV Mirror
MV MJPEG Compressor
MV MJPEG Decompressor
MV Mondic Arithmetic
MV Mondic Logic
MV Morphology
MV Motion Detection
MV Motion Direction
MV Multi File Writer
MV Network Renderer
MV Network Source
MV Nonlinear Filter
MV Object Tracker
MV Optical Flow
MV Playlist Source
MV Polar
MV Presence Detection
MV Profile
MV Recording
MV ReInterlace
MV Resize
MV Resized Rotation
MV Rotate90
MV Rotation
MV Segmentation
MV Select Mediatype
MV Separate Fields
MV Smooth Sequence
MV Splitter
MV Text Overlay
MV Ticker Overlay
MV Topography
MV Trigger Source
MV Video File Overlay
MV Video Overlay
MV Video Scaler
MV Watchdog
MV Zoom
Filter Event Mechanism
MontiVision DirectShow Filter SDK
Create a new Filter SDK DLL
Implement your custom Algorithm
Register the Filter SDK DLL
Use the new DirectShow Filter
Debugging a DirectShow Filter
Configure a Filter SDK DirectShow Filter
MontiVision Smart ActiveX Control
MV Smart Control Functions
MV Smart Control Interfaces
IMVSmartControl
IMVSCFilterGraph
IMVSCFilterGraph2
IMVSCVideoWindow
IMVSCVideoWindow2
IMVSCFullScreen
IMVSCSetFile
IMVSCSetSourceFilter
IMVSCSelectInput
IMVSCSetupVideoStream
IMVSCSetupVideoStream2
IMVSCClock
IMVSCFilterProperties
IMVSCLog
IMVSCCameraControl
IMVSCFilterEvents
IMVSCMediaSeeking
IMVSCMediaSeeking2
IMVSCQualityProperties
IMVSCFilterData
IMVSCCommonProperties
IMVSCExtDeviceControl
IMVSCVideoControl
IMVSCAnalogVideoFormat
IMVSCTVTuner
IMVSCTVAudio
Application Development with the MV Smart Control
Visual Basic 6.0
Visual Basic .NET
Visual C++ 6.0
Visual C++ .NET
Borland Delphi
MV Smart Control Samples
AviPlay Sample
CropVideo Sample
DirFinder Sample
FindObject Sample
FullScreen Sample
ImageStream Sample
IP Camera Sample
LiveDraw Sample
LoadFromString Sample
LumeneraCameraProperties Sample
MotionDetection Sample
PutBitmap Sample
SendReceiveRS232 Sample
MV Smart Control How To's
How to handle Input Events (Mouse, Keyboard) of the Video Window
How to Select and Configure a Video Input Device
How to handle Multiple Video Outputs
How to use Fullscreen Functionality
How to access the Results of a MontiVsion DirectShow Filter
MontiVision Utility ActiveX Controls
Video Source Combo Box
Video Format Combo Box
Video Size Combo Box
Input Selection Combo Box
Frame Rate Combo Box
Seeking Slider
Filter Property Page Display
Trigger Button
MontiVision I/O Controls
MVIODisplay
MVIOMonitor
MVIOLed
MVIOOutput
VMR Wrapper ActiveX Control
MV VMR Wrapper Interfaces
IMVVMRWrapper
IMVVMRFilterConfig
IMVVMRMixerControl
IMVVMRMixerBitmap
MV VMR Wrapper Sample Applications
VMR Control Sample
VMR Bitmap Overlay Sample
Extended Video Source ActiveX Control
MV Extended Video Source Control Interfaces
IMVExtendedVideoSource Interface
IMVLumeneraCustomConfig Interface
_IMVExtendedVideoSourceEvents Interface
MontiVision Tools
Getting Started
Create a MontiVision Project
Create a MontiVision Project using the MontiVision Workbench
Create new DirectShow Filters using the MontiVision Filter SDK
Use the new DirectShow Filter in your MontiVision Project
Integrate the MontiVision Project into your Application
Distribute your Application
Distributing your Applications
Application Development Examples
Apply standard Image Processing Operators to a Video Stream
Process a Sequence of Still Images, Do Batch Processing
Make your Existing Algorithms DirectShow compatible
Creating your own Image/Video Processing DirectShow Filters
Access the Image Data of a Video Stream directly from within a Windows Application
Capture Still Images from a running Video Stream
Convert a Video Stream to a Sequence of Still Images or vice versa
Sample Applications using the Smart Control
Camera Calibration
Additional HowTo's
How to Set Up Visual C++ for the MontiVision Development Kit
How to Set Up Borland Delphi for the MontiVision Development Kit
How to Set Up Borland Delphi 2005 for the MontiVision Development Kit
Interface Reference
_IMVFilterPropertyControlEvents
_IMVSeekingSliderEvents
_IMVSmartControlEvents
_ISelectInputComboBoxEvents
_IVideoFormatComboBoxEvents
_IVideoSizeComboBoxEvents
_IVideoSourceComboBoxEvents
IMVAbout
IMVAdvancedOpticalFlow
IMVAdvancedOpticalFlow2
IMVAffineTransformation
IMVAlignment
IMVAudioTestSource
IMVAutoCalcSetup
IMVBackgroundSubtraction
IMVBatchFileSource2
IMVBatchFileSource3
IMVBatchFileSource
IMVBinary
IMVBitmapOverlay
IMVBitmapOverlay2
IMVBlobCounter
IMVBlobCounter2
IMVBlobCounter3
IMVBlobCounter4
IMVBlobFinder
IMVBlobFinder2
IMVBlobFinder3
IMVBlobPostProcessing
IMVBlobPreProcessing
IMVBlockRecording
IMVBufferAccess
IMVBufferAccessCallbackC
IMVBufferAccessCallbackVB
IMVCameraCalibration
IMVCameraSync
IMVCameraUndistortion
IMVColor
IMVColorChannelMixer
IMVColorTwist
IMVConstantFramerate
IMVConvolution
IMVCooccurrence
IMVCrop
IMVCrypt
IMVDeinterlace
IMVDeInterlaceTemporal
IMVDelay
IMVDemoSource
IMVDemoSource2
IMVDPSRenderer
IMVDPSSource
IMVDyArith
IMVDyLogic
IMVEnumAudioEncoder
IMVEnumVideoEncoder
IMVFastColor
IMVFilterData
IMVFilterEvents
IMVFilterInfo
IMVFilterPropertyControl
IMVFilterSDK
IMVFrameAccess
IMVFrameAccessCallbackC
IMVFrameAccessCallbackVB
IMVGauge
IMVGaugeCalculations
IMVGDIOverlay
IMVGray
IMVGrayToColor
IMVGrid
IMVHistogram
IMVHistogram2
IMVHistogram3
IMVImageCapture
IMVImageCapture2
IMVImageCapture3
IMVImageFileSource
IMVImageFileSource2
IMVImageFileSource3
IMVImageInfo
IMVIntegral
IMVIOBoolSource
IMVIOBoolSource2
IMVIOComparator
IMVIOIntRenderer
IMVIOIntSource
IMVIOIntSource2
IMVIOLogic
IMVIONot
IMVIORenderer
IMVIORS232
IMVIORS232DataASCII
IMVIORS232DataHex.htm
IMVIORS232RxTxConnection
IMVIORS232TriggerSource
IMVIOSwitchSource
IMVIOTextfileRenderer
IMVIOTextfileSource
IMVIOToString
IMVIPCameraSource
IMVIPCameraSource2
IMVLinFilter
IMVLookUpTable
IMVMask
IMVMean
IMVMeanProfile
IMVMerger
IMVMirror
IMVMonArith
IMVMonLogic
IMVMorphology
IMVMotionDetection
IMVMotionDetection2
IMVMotionDirection
IMVMultiFileWriter
IMVNetworkReceiveInfo
IMVNetworkRenderer
IMVNetworkRenderer2
IMVNetworkRenderer3
IMVNetworkSendInfo
IMVNetworkSource
IMVNetworkSource2
IMVNonLinFilter
IMVObjectTracker
IMVOpticalFlow
IMVOpticalFlow2
IMVPlaylist
IMVPlaylistSource
IMVPolar
IMVPresenceDetection
IMVProfile
IMVRecording
IMVRegionOfInterest
IMVReinterlace
IMVResize
IMVResizedRotation
IMVRotate90
IMVRotation
IMVSCAnalogVideoFormat
IMVSCCameraControl
IMVSCCommonProperties
IMVSCClock
IMVSCExtDeviceControl
IMVSCFilterData
IMVSCFilterEvents
IMVSCFilterGraph
IMVSCFilterGraph2
IMVSCFilterProperties
IMVSCFullScreen
IMVSCLog
IMVSCMediaSeeking
IMVSCMediaSeeking2
IMVSCQualityProperties
IMVSCSelectInput
IMVSCSetFile
IMVSCSetSourceFilter
IMVSCTVTuner
IMVSCTVAudio
IMVSCVideoControl
IMVSCSetupVideoStream
IMVSCSetupVideoStream2
IMVSCVideoWindow
IMVSCVideoWindow2
IMVSeekingSlider
IMVSetImageFormat
IMVSmartControl
IMVSeparateFields
IMVSmoothSequence
IMVTextOverlay
IMVTextOverlay2
IMVTextOverlay3
IMVTickerOverlay
IMVTickerOverlay2
IMVTopography
IMVTrigger
IMVTriggerFilter
IMVVideoFileOverlay
IMVVideoScaler
IMVVMRFilterConfig
IMVVMRMixerBitmap
IMVVMRMixerControl
IMVVMRWrapper
IMVWatchdog
IMVZoom
IMVZoomConfig
ISelectInputComboBox
IVideoFormatComboBox
IVideoSizeComboBox
IVideoSourceComboBox

IMVSCSetupVideoStream2

The IMVSCVideoWindow2 Interface extends the IMVSCSetupVideoStream interface.

Methods:

GetAvailableFrameRate Get a avaiable frame rate
GetAvailableFrameRateCount Get the avaiable frame rate count.
GetCurrentFrameRate Get the current frame duration in seconds.
GetFrameInterval Get the current frame interval.
GetFrameIntervalD Get the current frame interval as double value.
GetFrameIntervalRange Get the frame interval range from a video format and size combination.
GetMaxAvailableFrameRate Get the maximum frame rate for a video format and size.
GetVideoStreamCaps Get the video source capabilities.
GetVideoStreamCapsCount Count of available video stream capabitilties.
SetFrameInterval Set the current frame interval.
SetFrameIntervalD Set the current frame interval.
SetVideoResolution Set the video resolution and standard for a video source.

Typelib: MV SmartControl

AnalogVideo Standard Table

Video Standard

Value

Description
MV_VIDEOSTANDARD_NONE

0x00000000

MV_VIDEOSTANDARD_NTSC_M

0x00000001

NTSC (M) standard, 7.5 IRE black
MV_VIDEOSTANDARD_NTSC_M_J

0x00000002

NTSC (M) standard, 0 IRE black (Japan)

MV_VIDEOSTANDARD_NTSC_433

0x00000004

NTSC-433

MV_VIDEOSTANDARD_PAL_B

0x00000010

PAL-B standard

MV_VIDEOSTANDARD_PAL_D

0x00000020

PAL (D) standard
MV_VIDEOSTANDARD_PAL_H

0x00000080

PAL (H) standard
MV_VIDEOSTANDARD_PAL_I

0x00000100

PAL (I) standard
MV_VIDEOSTANDARD_PAL_M

0x00000200

PAL (M) standard
MV_VIDEOSTANDARD_PAL_N

0x00000400

PAL (N) standard

MV_VIDEOSTANDARD_PAL_60

0x00000800

PAL-60 standard
MV_VIDEOSTANDARD_SECAM_B

0x00001000

SECAM (B) standard
MV_VIDEOSTANDARD_SECAM_D

0x00002000

SECAM (D) standard
MV_VIDEOSTANDARD_SECAM_G

0x00004000

SECAM (G) standard
MV_VIDEOSTANDARD_SECAM_H

0x00008000

SECAM (H) standard
MV_VIDEOSTANDARD_SECAM_K

0x00010000

SECAM (K) standard
MV_VIDEOSTANDARD_SECAM_K1

0x00020000

SECAM (K1) standard
MV_VIDEOSTANDARD_SECAM_L

0x00040000

SECAM (L) standard
MV_VIDEOSTANDARD_SECAM_L1

0x00080000

SECAM (L1) standard
MV_VIDEOSTANDARD_PAL_N_COMBO

0x00100000

Combination (N) PAL standard (Argentina)

 


Method IMVSCSetupVideoStream2::GetAvailableFrameRate

Declaration: Function GetAvailableFrameRate(SourceFilter As String, Format As Long, Size As Long, Index As Long) As Double

Get a avaiable frame durations in seconds.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Format Video format index.
Size Video size index.
Index Frame rate index.
C Prototype:

HRESULT GetAvailableFrameRate(BSTR SourceFilter, LONG Format, LONG Size, LONG Index, DOUBLE* value);


Method IMVSCSetupVideoStream2::GetAvailableFrameRateCount

Declaration: Function GetAvailableFrameRateCount(SourceFilter As String, Format As Long, Size As Long) As Long

Get the avaiable frame rate count.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Format Video format index.
Size Video size index.
C Prototype:

HRESULT GetAvailableFrameRateCount(BSTR SourceFilter, LONG Format, LONG Size, LONG* value);


Method IMVSCSetupVideoStream2::GetCurrentFrameRate

Declaration: Function GetCurrentFrameRate(SourceFilter As String) As Double

Get the current frame duration in seconds.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
C Prototype:

HRESULT GetCurrentFrameRate(BSTR SourceFilter, DOUBLE* value);


Method IMVSCSetupVideoStream2::GetFrameInterval

Declaration: Function GetFrameInterval(SourceFilter As String) As Empty

Get the current frame interval.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
C Prototype:

HRESULT GetFrameInterval(BSTR SourceFilter, EMPTY* value);


Method IMVSCSetupVideoStream2::GetFrameIntervalD

Declaration: Function GetFrameIntervalD(SourceFilter As String) As Double

Get the current frame interval as double value.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
C Prototype:

HRESULT GetFrameIntervalD(BSTR SourceFilter, DOUBLE* value);


Method IMVSCSetupVideoStream2::GetFrameIntervalRange

Declaration: Sub GetFrameIntervalRange(SourceFilter As String, Format As Long, Size As Long, min As Empty, max As Empty)

Get the frame interval range from a video format and size combination.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Format Video format index.
Size Video size index.
min Minimum frame duration in 100 nano seconds units.
max Maximum frame duration in 100 nano seconds units.
C Prototype:

HRESULT GetFrameIntervalRange(BSTR SourceFilter, LONG Format, LONG Size, LONGLONG* min, LONGLONG* max);


Method IMVSCSetupVideoStream2::GetMaxAvailableFrameRate

Declaration: Function GetMaxAvailableFrameRate(SourceFilter As String, Format As Long, Size As Long) As Double

Get the maximum frame duration for a video format and size in seconds.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Format Video format index.
Size Video size index.
C Prototype:

HRESULT GetMaxAvailableFrameRate(BSTR SourceFilter, LONG Format, LONG Size, DOUBLE* value);


Method IMVSCSetupVideoStream2::GetVideoStreamCaps

Declaration: Sub GetVideoStreamCaps(SourceFilter As String, Index As Long, VideoStandard As Long, MinWidth As Long, MinHeight As Long, MaxWidth As Long, MaxHeight As Long, WidthGranularity As Long, HeightGranularity As Long, MinFrameInterval As Double, MaxFrameInterval As Double)

Get the video source capabilities.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Index Stream devive capability index.
VideoStandard Video standard from the table above.
MinWidth Min. video frame width.
MinHeight Min. video frame height.
MaxWidth Max video frame width.
MaxHeight Max video frame height.
WidthGranularity Width granularity for video frame width.
HeightGranularity Height granularity for video frame width.
MinFrameInterval Min frame interval in seconds.
MaxFrameInterval Max frame interval in seconds.
C Prototype:

HRESULT GetVideoStreamCaps(BSTR SourceFilter, LONG Index, LONG* VideoStandard, LONG* MinWidth, LONG* MinHeight, LONG* MaxWidth, LONG* MaxHeight, LONG* WidthGranularity, LONG* HeightGranularity, DOUBLE* MinFrameInterval, DOUBLE* MaxFrameInterval);


Method IMVSCSetupVideoStream2::GetVideoStreamCapsCount

Declaration: Function GetVideoStreamCapsCount(SourceFilter As String) As Long

Count of available video stream capabitilties.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
C Prototype:

HRESULT GetVideoStreamCapsCount(BSTR SourceFilter, LONG* value);


Method IMVSCSetupVideoStream2::SetFrameInterval

Declaration: Sub SetFrameInterval(SourceFilter As String, Interval As Empty)

Set the current frame interval.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Interval Video frame interval in 100 nano second units.
C Prototype:

HRESULT SetFrameInterval(BSTR SourceFilter, LONGLONG Interval);


Method IMVSCSetupVideoStream2::SetFrameIntervalD

Declaration: Sub SetFrameIntervalD(SourceFilter As String, Interval As Double)

Set the current frame interval.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Interval Frame interval in seconds.
C Prototype:

HRESULT SetFrameIntervalD(BSTR SourceFilter, DOUBLE Interval);


Method IMVSCSetupVideoStream2::SetVideoResolution

Declaration: Sub SetVideoResolution(SourceFilter As String, Width As Long, Height As Long, VideoStandard As Long)

Set the video resolution and standard for a video source.

Parameter:

SourceFilter Label from the video source filter within the filter graph.
Width Video frame width in pixel.
Height Video frame height in pixel.
VideoStandard Video standard from the table above.
C Prototype:

HRESULT SetVideoResolution(BSTR SourceFilter, LONG Width, LONG Height, LONG VideoStandard);