Microsoft DirectX 8.0 |
Microsoft® DirectShow® Editing Services defines the following constants.
These flags specify the level of dynamic reconnection to use during rendering.
Constant | Value | Description |
---|---|---|
CONNECTF_DYNAMIC_NONE | 0x00 | No dynamic reconnection. Load everything before rendering the project. |
CONNECTF_DYNAMIC_SOURCES | 0x01 | Load sources only as needed. |
CONNECTF_DYNAMIC_EFFECTS | 0x02 | Reserved. Do not use. |
See Also
These flags specify the behavior of the media locator.
Constant | Value | Description |
---|---|---|
SFN_VALIDATEF_CHECK | 0x01 | Check the validity of file names. You must set this flag to validate file names. If not, the other flags have no effect. |
SFN_VALIDATEF_POPUP | 0x02 | If a file is not located, display an Open File dialog box for the end user. |
SFN_VALIDATEF_TELLME | 0x04 | If a missing file is located, briefly display a message box with the name and location of the file. This flag is mostly useful for testing purposes; the message box is probably not suitable for a retail product. |
SFN_VALIDATEF_REPLACE | 0x08 | If a missing file is located, update the name of the source object. (Only valid in the IAMTimeline::ValidateSourceNames method.) |
SFN_VALIDATEF_USELOCAL | 0x10 | Search local directories only, not directories on the network. |
SFN_VALIDATEF_NOFIND | 0x20 | Do not search for missing files. File names are still validated if you set the SFN_VALIDATEF_CHECK flag. |
SFN_VALIDATEF_IGNOREMUTED | 0x40 | Ignore muted source objects. (Only valid in the IAMTimeline::ValidateSourceNames method.) |
See Also
IMediaLocator::FindMediaFile, IRenderEngine::SetSourceNameValidation
These flags specify how a video source is rendered if its size does not match the output dimensions.
Constant | Value | Description |
---|---|---|
RESIZEF_STRETCH | 0 | The image is stretched to fit the target frame size in both dimensions, without preserving the aspect ratio. |
RESIZEF_CROP | 1 | The image is not resized. If the image is smaller than the target frame, the surrounding area is black. If the image is larger than the target frame, the image is cropped. |
RESIZEF_PRESERVEASPECTRATIO | 2 | The image is resized to fit the target frame along one dimension, while preserving the aspect ratio. If the ratio of width to height in the image does not match the ratio in the target frame, it creates a letterbox. |
RESIZEF_PRESERVEASPECTRATIO_NOLETTERBOX | 3 | The image is resized to fill the entire target frame while preserving the aspect ratio. Rather than create a letterbox, this mode crops the image, either along the sides or across the top and bottom. |
The following images show the effects of these flags.
See Also
IAMTimelineSrc::GetStretchMode, IAMTimelineSrc::SetStretchMode