Microsoft DirectX 8.1 (C++) |
In addition to video and audio sources, DirectShow Editing Sources (DES) supports the following source objects.
Still Images
DES supports the following file formats for still images:
These files can be used as still images or to create animations. For bitmap, JPEG, and Targa files, if you are using the file as a still image, call the IAMTimelineSrc::SetDefaultFPS method to set the frame rate to zero.
DIB Sequences
Given a series of bitmap, JPEG, or Targa files, the render engine can construct a
If the sequence is too short to fill the duration, given the frame rate, the rest of the duration is solid black. No error occurs during rendering.
GIF Sources
DES supports GIF sources, including animated and transparent GIFs, using the GIF89a specification. With an animated GIF, unlike the other file types, you do not need to set the frame rate. The GIF file specifies the delay between each image in the animation.
To support transparent GIFs, DES converts transparent regions in the image to the RGB triplet RGB(0,0,0). You can then use the Key Transition to key on RGB(0,0,0).
DES also converts any black regions that fall within the range RGB(07,07,07) to the value RGB(8,8,8)except for the transparency index, if it falls in that range. This conversion is not detectable to the eye.
Video Color Source
The Video Color Source object creates a continuous video image of a solid color. One use for this object is to make it a layer in a transition. For example, use it in a video fade-in or fade-out.
Custom Source Filters
DES can use any DirectShow source filter or parser filter that supports seeking and produces a format that DES supports. (It can be a compressed format if DirectShow filters exist to decode it.) Specify the CLSID of the filter as the subobject GUID of the source object. For more information, see Subobjects.