IBasicVideo Interface
IBasicVideo Interface
The IBasicVideo interface sets video properties such as the destination and source rectangles. The Video Renderer filter and Video Mixing Renderer filters implement this interface, but the interface is exposed to applications through the Filter Graph Manager. Applications should always retrieve this interface from the Filter Graph Manager.
The IBasicVideo interface manipulates the following rectangles associated with the video image:
- The source rectangle is the portion of the original image that gets displayed.
- The destination rectangle is the portion of the video window the receives the source rectangle.
- The video rectangle is the original video image.
In other words, the video renderer crops the image to the source rectangle, and then stretches or shrinks the cropped image to the destination rectangle. All rectangle dimensions are given in pixels.
Properties set on the Video Renderer persist between successive connections and disconnections.
Error codes: If the video renderer filter is not connected to another filter, all methods return the error code VFW_E_NOT_CONNECTED. For the Filter Graph Manager's implementation, if the graph does not contain a video renderer filter, all methods return E_NOINTERFACE. Note that the Filter Graph Manager exposes the interface even when the graph does not contain a video renderer, so an application can query for the interface before it builds the graph.
In addition to the methods inherited from IDispatch, the IBasicVideo interface exposes the following methods.
Requirements
Header: Declared in Control.h; include Dshow.h.
Library: Use Strmiids.lib.