The MontiVision Crop filter crops and outputs a region from the input video stream. The output video stream is resized to the width and the height of the crop rectangle. The width and the height of the crop rectangle can only be changed while the filters input pin is connected and the filters output pin is disconnected. The horizontal and vertical position of the rectangle may be changed while the output pin is connected.
This MontiVision DirectShow Filter is used in combination with the MontiVision Smart Control in the Crop Video Sample Application.
| File: | Crop.ax |
| CLSID: | CLSID_MVCrop |
Interface
Supported COM Events
The filter supports following events through the IMVFilterEvents interface. Look at the filter events page for more information.
| 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 Crop Property Page
Uses the IMVCrop configuration interface.
| Input size | Width and height of the input video stream. |
| Output size | Width and height of the output video stream. This values must be less than or equal to the input size. |
| Maintain aspect ratio | If this flag is enabled, the aspect ratio of the input video stream is used to calculate the output video stream size. |
| X Offset | Horizontal offset of the crop rectangle to the lower left corner. |
| Y Offset | Vertical offset of the crop rectangle to the lower left corner. |