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

DirectShow Filter COM Event Mechanism

All of the MontiVision filters support COM events through the IConnectionPoint interface mechanism, the following interface implements the events.

 

IMVFilterEvents

MVFilterMessage General MontiVision filter messages.

Header file: iMVFilterCommon.h
Interface definition language file: iMVFilterCommon.idl

 

HRESULT MVFilterMessage( [in ] int iMessage );

General MontiVision filter messages.

Parameter:

iMessage An integer value that identifies the event. See MV_COM_EVENTS for available events.

 

MontiVision Filter Events

Event Value Description
MV_ALGORITHM_START_EVENT 0 A filter starts processing a video frame or sample.
MV_ALGORITHM_END_EVENT 1 A filter finishes processing a video frame or sample.
MV_IMAGE_CAPTURE_START_EVENT 2 A filter starts saving an image to disk.
MV_IMAGE_CAPTURE_END_EVENT 3 A filter finishes saving an image to disk.
MV_IO_DATA_RECEIVE_EVENT 4 A filter receives IO data from an external source.
MV_CALIBRATION_VALID_IMAGE_EVENT 5 The MV Calibration Filter has detected a new valid calibration image.
MV_CALIBRATION_FINISHED_EVENT 6 The MV Calibration Filter has has finshed the calibration process.
MV_START_RECORDING_EVENT 7 A filter starts recording.
MV_STOP_RECORDING_EVENT 8 A filter stops recording.
MV_CANT_OPEN_COM_PORT_EVENT 9 A filter can't open a serial interface (COM port)
MV_CANT_WRITE_TO_COM_PORT_EVENT 10 A filter can't write to a serial interface (COM port)
MV_CANT_READ_FROM_COM_PORT_EVENT 11 A filter can't read from a serial interface (COM port)
MV_CANT_GET_EVENT_FROM_COM_PORT_EVENT 12 A filter can't get event notifications from a serial interface (COM port)
MV_PLAYLIST_ADD_ITEM_EVENT 13 The playlist from the MV Playlist filter contains a new entry.
MV_PLAYLIST_REMOVE_ITEM_EVENT 14 An item from the playlist of the MV PLaylist filter was removed.
MV_PLAYLIST_NEW_CURRENT_ITEM_EVENT 15 The MV Playlist filter plays a new item.
MV_PLAYLIST_ITEM_CHANGED_EVENT 16 An playlist item parameter from the MV Playlist filter has changed.
MV_MOTION_START_EVENT 17 Motion was recognized within the video.
MV_MOTION_END_EVENT 18 Currently recognized motion stopped.
MV_RECORD_START_EVENT 19 Recording starts.
MV_RECORD_END_EVENT 20 Recording ends.
MV_WATCHDOG_RELEASE_EVENT 21 The MV Watchdog filter signals a period time overflow.
MV_WATCHDOG_FINISHED_EVENT 22 The MV Watchdog filter signals the end of a period time overflow.
MV_FILEWRITER_NEXT_FILE_EVENT 23 The MV Multi File Writer filter has switch to a new output file.
MV_FILEWRITER_INVALID_OUTPUT_PATH_EVENT 24 The MV Multi File Writer filter can't create capture graph because the output file path isn't valid.
MV_FILEWRITER_INVALID_VIDEO_ENCODER_EVENT 25 The MV Multi File Writer filter can't create capture graph because the video encoder inst't available or it doesn't accept the media format.
MV_FILEWRITER_INVALID_AUDIO_ENCODER_EVENT 26 The MV Multi File Writer filter can't create capture graph because the audio encoder inst't available or it doesn't accept the media format.
MV_FILEWRITER_LOW_DISKSPACE_EVENT 27 The MV Multi File Writer filter signals low disk space for the recording partition (< 50 MB).
MV_RXTXCONNECTION_ON_EVENT 28 A RS232 IO filter signals that the Rx and Tx lines are connected.
MV_RXTXCONNECTION_OFF_EVENT 29 A RS232 IO filter signalsthat the Rx and Tx lines are disconnected.
MV_IP_CAMERA_RECONNECT_EVENT 30 The MV IP Camera Source filter network connection timed out and the filter tries to reconnect.
MV_IP_CAMERA_INITIALIZED_EVENT 31 The MV IP Camera Source filter is initialized and its output pin is ready to get connected.
MV_TICKER_TEXT_COMPLETE 32 The MV Ticker Overlay filter sends this event when the text finisehd runing completly hrow the video image. 
MV_IP_CAMERA_GIO_START_EVENT 33 The MV IP Camera Source filter throws this event if an I/O start event was send by the IP camera. Only a few cameras are suported.
MV_IP_CAMERA_GIO_END_EVENT 34 The MV IP Camera Source filter throws this event if an I/O end event was send by the IP camera. Only a few cameras are suported.
MV_IP_CAMERA_VIDEO_LOST_EVENT 35 The MV IP Camera Source filter throws this event if an camera lost event was send by the IP camera. Only a few cameras are suported.
MV_BUFFER_ACCESS_BUFFERS_AVAILABLE 36
MV_BUFFER_ACCESS_BUFFERS_UNAVAILABLE 37
MV_SERIOUS_NETWORK_ERROR 38
MV_STREAM_CORRELATION_VIDEO_EVENT 39
MV_STREAM_CORRELATION_AUDIO_EVENT 40
MV_END_OF_FILE_EVENT 41 The end of a file was reached.
MV_OPEN_FILE_FINISHED_EVENT 42 A file open process finished.

 

Event structures and enumerators

typedef enum _MV_COM_EVENTS
{
    MV_ALGORITHM_START_EVENT=0,
    MV_ALGORITHM_END_EVENT,
    MV_IMAGE_CAPTURE_START_EVENT, 
    MV_IMAGE_CAPTURE_END_EVENT,
    MV_IO_DATA_RECEIVE_EVENT,
    MV_CALIBRATION_VALID_IMAGE_EVENT,
    MV_CALIBRATION_FINISHED_EVENT,
    MV_START_RECORDING_EVENT,
    MV_STOP_RECORDING_EVENT,
    MV_CANT_OPEN_COM_PORT_EVENT,
    MV_CANT_WRITE_TO_COM_PORT_EVENT,
    MV_CANT_READ_FROM_COM_PORT_EVENT,
    MV_CANT_GET_EVENT_FROM_COM_PORT_EVENT,
    MV_PLAYLIST_ADD_ITEM_EVENT,
    MV_PLAYLIST_REMOVE_ITEM_EVENT,
    MV_PLAYLIST_NEW_CURRENT_ITEM_EVENT,
    MV_PLAYLIST_ITEM_CHANGED_EVENT,
    MV_MOTION_START_EVENT,
    MV_MOTION_END_EVENT,
    MV_RECORD_START_EVENT,
    MV_RECORD_END_EVENT,
    MV_WATCHDOG_RELEASE_EVENT,
    MV_WATCHDOG_FINISHED_EVENT,
    MV_FILEWRITER_NEXT_FILE_EVENT,
    MV_FILEWRITER_INVALID_OUTPUT_PATH_EVENT,
    MV_FILEWRITER_INVALID_VIDEO_ENCODER_EVENT,
    MV_FILEWRITER_INVALID_AUDIO_ENCODER_EVENT,
    MV_FILEWRITER_LOW_DISKSPACE_EVENT,
    MV_RXTXCONNECTION_ON_EVENT,
    MV_RXTXCONNECTION_OFF_EVENT
    MV_IP_CAMERA_RECONNECT_EVENT,
    MV_IP_CAMERA_INITIALIZED_EVENT
} MV_COM_EVENTS;