Video Image Transitions

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The Windows Media Video 9 Image v2 codec animates a series of images, resulting in a video stream. The codec can manipulate two images at once, blending them together and creating a transition from one to the other according to the configuration you supply. This section describes the supported transitions and the parameters they require.

The transitions are listed in the following table by their global identifiers.

Transition identifier Description
WMT_VIDEOIMAGE_TRANSITION_BOW_TIE New image is revealed in a set of triangles on opposite sides of the frame.
WMT_VIDEOIMAGE_TRANSITION_CIRCLE New image is revealed in a circle.
WMT_VIDEOIMAGE_TRANSITION_CROSS_FADE No special transition, the blend coefficients of the two images determine the cross-fade (dissolve).
WMT_VIDEOIMAGE_TRANSITION_DIAGONAL New image is revealed along a diagonal line originating in one corner of the frame.
WMT_VIDEOIMAGE_TRANSITION_DIAMOND New image is revealed in a diamond.
WMT_VIDEOIMAGE_TRANSITION_FADE_TO_COLOR Dissolves from the image to a frame of solid color.
WMT_VIDEOIMAGE_TRANSITION_FILLED_V New image is revealed in a triangle originating from one side of the frame.
WMT_VIDEOIMAGE_TRANSITION_FLIP Old image is rotated on a y-axis through the center of the frame. The new image is revealed as the back of the old image.
WMT_VIDEOIMAGE_TRANSITION_INSET New image is revealed by a rectangle originating from one corner of the frame.
WMT_VIDEOIMAGE_TRANSITION_IRIS New image is revealed along an x-axis and a y-axis.
WMT_VIDEOIMAGE_TRANSITION_PAGE_ROLL Old image is transformed in a page-flipping effect, revealing the new image underneath.
WMT_VIDEOIMAGE_TRANSITION_RECTANGLE New image is revealed by a rectangle within the frame.
WMT_VIDEOIMAGE_TRANSITION_REVEAL New image is revealed along a straight line originating from one side of the frame.
WMT_VIDEOIMAGE_TRANSITION_SLIDE Old image slides out of the frame, revealing the new image underneath.
WMT_VIDEOIMAGE_TRANSITION_SPLIT New image is revealed by a horizontal or vertical split in the old image. The split appears along a straight line starting inside the frame.
WMT_VIDEOIMAGE_TRANSITION_STAR New image is revealed by a five-pointed star inside the frame.
WMT_VIDEOIMAGE_TRANSITION_WHEEL New image is revealed by four rotating spokes with a common pivot point.

 

Each transition is fully described in its own topic.

Programming Reference

WMT_VIDEOIMAGE_SAMPLE2